From a8d2e3e2c78b0cf88068d2f1cdb39371597a9408 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 25 Sep 2021 11:23:42 -0700 Subject: [PATCH] gv2gml: rename 'Agnodeinfo_t' type to 'Local_Agnodeinfo_t' 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tools/gv2gml.c b/cmd/tools/gv2gml.c index 3126bad78..40279a0f8 100644 --- a/cmd/tools/gv2gml.c +++ b/cmd/tools/gv2gml.c @@ -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++; -- 2.40.0