]> granicus.if.org Git - graphviz/commitdiff
Removing all existing usage of USE_CGRAPH
authorellson <devnull@localhost>
Thu, 7 Aug 2008 17:17:46 +0000 (17:17 +0000)
committerellson <devnull@localhost>
Thu, 7 Aug 2008 17:17:46 +0000 (17:17 +0000)
    cgraph is now in full production in all these files

configure.ac still contains the --with-cgraph option in case Arif wants to use it.

cmd/tools/gv2gxl.c

index e2eccdd620414ba067a7e2d09a6c54e82266bd76..262f76541cfb28827fcd0baef3750a4878e0448b 100644 (file)
 **********************************************************/
 
 
-#include <convert.h>
-#ifndef USE_CGRAPH
-#include <aghdr.h>
-#endif
+#include "convert.h"
 #include <ctype.h>
 
 #define SMALLBUF    128
@@ -725,22 +722,14 @@ static void writeBody(gxlstate_t * stp, Agraph_t * g, FILE * gxlFile)
 
     writeSubgs(stp, g, gxlFile);
     dd = (Agdatadict_t *) agdatadict(g);
-#ifdef USE_CGRAPH
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
-#else
-    for (n = agfstnode(g); n; n = agnxtnode(n)) {
-#endif
        realn = agidnode(stp->root, AGID(n), 0);
        if (!writeval(realn)) {
            writeval(realn) = 1;
            writeNode(stp, n, gxlFile, dd->dict.n);
        }
 
-#ifdef USE_CGRAPH
        for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
-#else
-       for (e = agfstout(n); e; e = agnxtout(e)) {
-#endif
            if (writeEdgeTest(g, e))
                writeEdge(stp, e, gxlFile, dd->dict.e);
        }
@@ -781,11 +770,7 @@ static void iterateBody(gxlstate_t * stp, Agraph_t * g)
     Agedge_t *e;
 
     iterate_subgs(stp, g);
-#ifdef USE_CGRAPH
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
-#else
-    for (n = agfstnode(g); n; n = agnxtnode(n)) {
-#endif
        char *gxlId;
        char *nodename = agnameof(n);
 
@@ -800,11 +785,7 @@ static void iterateBody(gxlstate_t * stp, Agraph_t * g)
            addToMap(stp->nodeMap, nodename, gxlId);
        }
 
-#ifdef USE_CGRAPH
        for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
-#else
-       for (e = agfstout(n); e; e = agnxtout(e)) {
-#endif
            if (writeEdgeTest(g, e)) {
                char *edge_id = agget(e, GXL_ID);
                if (!EMPTY(edge_id))