]> granicus.if.org Git - graphviz/commitdiff
Add debug functions to make it easy to access the *info structures.
authorEmden Gansner <erg@research.att.com>
Fri, 23 Dec 2011 23:09:50 +0000 (18:09 -0500)
committerEmden Gansner <erg@research.att.com>
Fri, 23 Dec 2011 23:09:50 +0000 (18:09 -0500)
lib/common/utils.c

index 966d97a1219ce17be5cb08a36bd53164de9495e0..0a7bf949734d496e83edeb55c69039b15ee116c3 100644 (file)
@@ -2034,3 +2034,11 @@ findCluster (Dt_t* map, char* name)
        return NULL;
 }
 #endif
+
+#ifdef WITH_CGRAPH
+#ifdef DEBUG
+Agnodeinfo_t* ninfo(Agnode_t* n) {return (Agnodeinfo_t*)AGDATA(n);}
+Agraphinfo_t* ginfo(Agraph_t* g) {return (Agraphinfo_t*)AGDATA(g);}
+Agedgeinfo_t* einfo(Agedge_t* e) {return (Agedgeinfo_t*)AGDATA(e);}
+#endif
+#endif