From: John Ellson Date: Sat, 25 Feb 2012 21:26:23 +0000 (-0500) Subject: correct Agiddisc_s to agree with cgraph.h, add missing "it", clarify where "void... X-Git-Tag: LAST_LIBGRAPH~32^2~478^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da4275d7f0134c47b578c69703d03da47d09a40e;p=graphviz correct Agiddisc_s to agree with cgraph.h, add missing "it", clarify where "void *state" comes from --- diff --git a/lib/cgraph/cgraph.3 b/lib/cgraph/cgraph.3 index aee87f366..7bb6a520e 100644 --- a/lib/cgraph/cgraph.3 +++ b/lib/cgraph/cgraph.3 @@ -391,19 +391,19 @@ of IDs (uninterpreted integer values) to objects, and possibly how they are mapped to and from strings. .P0 -struct Agiddisc_s { /* object ID allocator */ - void *(*open)(Agraph_t *g); /* associated with a graph */ - int (*map)(void *state, int objtype, char *str, ulong *id, int createflag); - int (*alloc)(void *state, int objtype, ulong id); - void (*free)(void *state, int objtype, ulong id); - char *(*print)(void *state, int objtype, ulong id); - void (*close)(void *state); -} ; +struct Agiddisc_s { /* object ID allocator */ + void *(*open) (Agraph_t * g); /* associated with a graph */ + long (*map) (void *state, int objtype, char *str, unsigned long *id, int createflag); + long (*alloc) (void *state, int objtype, unsigned long id); + void (*free) (void *state, int objtype, unsigned long id); + char *(*print) (void *state, int objtype, unsigned long id); + void (*close) (void *state); +}; .P1 .PP \fIopen\fP permits the ID discipline to initialize any data -structures that maintains per individual graph. -Its return value is then passed as the first argument to +structures that it maintains per individual graph. +Its return value is then passed as the first argument (void *state) to all subsequent ID manager calls. .PP \fIalloc\fP informs the ID manager that Libcgraph is attempting