obj->u.g = g;
obj->emit_state = EMIT_GDRAW;
+#ifndef WITH_CGRAPH
+ initObjMapData (job, GD_label(g), "graph", g->meta_node->id, g);
+#else
initObjMapData (job, GD_label(g), "graph", AGID(g), g);
+#endif
#ifdef WITH_CODEGENS
Obj = NONE;
/* support for stderr_once */
static void free_string_entry(Dict_t * dict, char *key, Dtdisc_t * disc)
{
+#ifndef WITH_CGRAPH
agstrfree(key);
+#else
+ free(key);
+#endif
}
static Dict_t *strings;
if (strings == 0)
strings = dtopen(&stringdict, Dtoset);
if (!dtsearch(strings, str)) {
+#ifndef WITH_CGRAPH
dtinsert(strings, agstrdup(str));
+#else
+ dtinsert(strings, strdup(str));
+#endif
return TRUE;
}
return FALSE;
obj->u.sg = sg;
obj->emit_state = EMIT_CDRAW;
+#ifndef WITH_CGRAPH
+ initObjMapData (job, GD_label(sg), "graph", sg->meta_node->id, sg);
+#else
initObjMapData (job, GD_label(sg), "graph", AGID(sg), sg);
+#endif
#ifdef WITH_CODEGENS
Obj = CLST;