]> granicus.if.org Git - graphviz/commitdiff
correct Agiddisc_s to agree with cgraph.h, add missing "it", clarify where "void...
authorJohn Ellson <ellson@research.att.com>
Sat, 25 Feb 2012 21:26:23 +0000 (16:26 -0500)
committerJohn Ellson <ellson@research.att.com>
Sat, 25 Feb 2012 21:26:23 +0000 (16:26 -0500)
lib/cgraph/cgraph.3

index aee87f3665822fb7783972032bc219f8b5e9e37e..7bb6a520e13e67940ec4fb0843dee4539d2d16b0 100644 (file)
@@ -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