17 #define NULL ((char*)0) 38 #define NEWLISTGRAPH (LISTGRAPH *) calloc(1, sizeof(LISTGRAPH)) 40 #define NUMGBUCKETS 16 53 #define SETGRAPH(pgraph, id) (pgraph)->graphid = (id); \ 54 (pgraph)->degree = 1; \ 55 (pgraph)->linestyle = -1 73 pgraph = &list->
graph;
76 if (!GBucket[BucketId].list) {
77 GBucket[BucketId].
list = list;
82 GBucket[BucketId].
list = list;
106 return (&list->
graph);
121 bcopy(graph, ret,
sizeof(
struct graph));
126 for (ret->
keyed =
NULL, k = graph->keyed; k; k = k->next) {
147 struct _keyed *k, *nextk;
215 for (gbucket = GBucket; gbucket < &GBucket[
NUMGBUCKETS]; gbucket++) {
216 list = gbucket->
list;
240 #define NEWGCSTACK (GCSTACK *) calloc(1, sizeof(GCSTACK)) 257 gcstacktop = gcstack;
261 gcstacktop = gcstack;
264 currentgraph =
graph;
275 currentgraph = gcstacktop->
pgraph;
277 gcstacktop = gcstacktop->
next;
GRAPH * CopyGraph(GRAPH *graph)
static GBUCKET GBucket[NUMGBUCKETS]
#define SETGRAPH(pgraph, id)
void PushGraphContext(GRAPH *graph)
internalerror(char *message)
GRAPH * FindGraph(int id)
struct listgraph LISTGRAPH
struct graph::_keyed * keyed
void bcopy(char *from, char *to, int num)
void SetGraphContext(int graphid)