agar: Add static graph initializer
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 3 Jun 2016 10:07:10 +0000 (20:07 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 3 Jun 2016 10:07:45 +0000 (20:07 +1000)
commitc23a40c7f1ac9fad0146b46988a41f196aae933f
tree4ef6302f920cb981eba7ae88e93cd9f5935751ae
parentbae7806a52a48037925e3790d3a4336bc51e7d0f
agar: Add static graph initializer

Sometimes it's not convenient to initialize an agar graph at runtime with
agar_init_graph().  This adds an AGAR_INIT_GRAPH() macro to do the same
thing as a static initializer.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
12 files changed:
ccan/agar/agar.h
ccan/agar/test/api-adjacency.c
ccan/agar/test/api-bfs.c
ccan/agar/test/api-dfs.c
ccan/agar/test/api-dijkstra.c
ccan/agar/test/error-graph.c
ccan/agar/test/shortcut1.c
ccan/agar/test/shortcut2.c
ccan/agar/test/simple-graphr.h
ccan/agar/test/traversal1.c
ccan/agar/test/trivial.c
ccan/dgraph/_info