Lines Matching defs:nodes
27 static size_t len; // the number of nodes currently in use
28 static size_t capacity; // the number of available nodes
29 static struct node builtin[COUNT]; // 32 builtin nodes without malloc
38 struct node *nodes;
41 nodes = builtin;
42 head = nodes;
44 nodes = malloc(sizeof(struct node) * COUNT);
45 if (nodes == NULL) {
51 nodes[i].next = nodes + (i + 1);
53 nodes[COUNT - 1].next = NULL;
55 // link new nodes after tail
57 tail->next = nodes;