Lines Matching refs:node
133 StringSegment *node; in _del_StringGroup() local
137 for(node=sg->head; node; node=node->next) { in _del_StringGroup()
138 if(node->block) in _del_StringGroup()
139 free(node->block); in _del_StringGroup()
140 node->block = NULL; in _del_StringGroup()
230 StringSegment *node; /* A node of the list of string segments */ in _sg_alloc_string() local
242 for(node=sg->head; node && node->unused <= length; node=node->next) in _sg_alloc_string()
247 if(!node) { in _sg_alloc_string()
248 node = (StringSegment *) _new_FreeListNode(sg->node_mem); in _sg_alloc_string()
249 if(!node) in _sg_alloc_string()
254 node->next = NULL; in _sg_alloc_string()
255 node->block = NULL; in _sg_alloc_string()
256 node->unused = sg->block_size; in _sg_alloc_string()
260 node->block = (char *) malloc(sg->block_size); in _sg_alloc_string()
261 if(!node->block) in _sg_alloc_string()
266 node->next = sg->head; in _sg_alloc_string()
267 sg->head = node; in _sg_alloc_string()
272 copy = node->block + sg->block_size - node->unused; in _sg_alloc_string()
273 node->unused -= length + 1; in _sg_alloc_string()
289 StringSegment *node; /* A node in the list of string segments */ in _clr_StringGroup() local
293 for(node=sg->head; node; node=node->next) in _clr_StringGroup()
294 node->unused = sg->block_size; in _clr_StringGroup()