]> granicus.if.org Git - graphviz/commitdiff
gv2gml: rename 'Agnodeinfo_t' type to 'Local_Agnodeinfo_t'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Sep 2021 18:23:42 +0000 (11:23 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 1 Oct 2021 14:49:27 +0000 (07:49 -0700)
This has no immediate effect, but having a type named `Agnodeinfo_t` prevents
including lib/common/types.h which has its own `Agnodeinfo_t`. We will want to
include this header (transitively) in an upcoming commit.

Related to #1276.

cmd/tools/gv2gml.c

index 3126bad784e6743afb7b03e898ec097402170550..40279a0f8f5892caff1f30bcbef521cb4f0cc4a1 100644 (file)
@@ -81,9 +81,9 @@ typedef struct {
 typedef struct {
     Agrec_t h;
     uint64_t id;
-} Agnodeinfo_t;
+} Local_Agnodeinfo_t;
 
-#define ID(n)  (((Agnodeinfo_t*)(n->base.data))->id)
+#define ID(n)  (((Local_Agnodeinfo_t*)(n->base.data))->id)
 
 static void indent (int ix, FILE* outFile)
 {
@@ -417,7 +417,7 @@ emitNodeAttrs (Agraph_t* G, Agnode_t* np, FILE* outFile, int ix)
 static void 
 emitNode (Agraph_t* G, Agnode_t* n, FILE* outFile)
 {
-    agbindrec (n, "nodeinfo", sizeof(Agnodeinfo_t), TRUE);
+    agbindrec(n, "nodeinfo", sizeof(Local_Agnodeinfo_t), TRUE);
     fprintf(outFile, "  node [\n    id %" PRIu64 "\n    name \"%s\"\n", id,
             agnameof(n));
     ID(n) = id++;