From: ellson Date: Wed, 22 Oct 2008 20:37:59 +0000 (+0000) Subject: now I don't understand what I'm doing -- cgraph X-Git-Tag: LAST_LIBGRAPH~32^2~3024 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea7adf22d0aa3aaa5a5aa246ebeef289ee563101;p=graphviz now I don't understand what I'm doing -- cgraph --- diff --git a/lib/gvc/gvc.c b/lib/gvc/gvc.c index d51d4f8a1..0b0c04560 100644 --- a/lib/gvc/gvc.c +++ b/lib/gvc/gvc.c @@ -40,11 +40,11 @@ GVC_t *gvContext(void) { GVC_t *gvc; - aginit(); #ifndef WITH_CGRAPH + aginit(); agnodeattr(NULL, "label", NODENAME_ESC); #else - agattr(NULL, AGNODE, "label", NODENAME_ESC, 1); + agattr(NULL, AGNODE, "label", NODENAME_ESC); #endif gvc = gvNEWcontext(LibInfo, gvUsername()); gvconfig(gvc, FALSE); /* configure for available plugins and codegens */ diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index f91d1759e..718cdc6fe 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -457,6 +457,7 @@ void gvplugin_write_status(GVC_t * gvc) Agraph_t * gvplugin_graph(GVC_t * gvc) { +#ifndef WITH_CGRAPH Agraph_t *g, *sg, *ssg; Agnode_t *n, *m; Agedge_t *e; @@ -610,4 +611,7 @@ Agraph_t * gvplugin_graph(GVC_t * gvc) } return g; +#else + return NULL; +#endif }