Lines Matching refs:new
201 memory_header *new, *cur = heap.first_free; in buffer_alloc_calloc() local
297 new = (memory_header *) p; in buffer_alloc_calloc()
299 new->size = cur->size - len - sizeof(memory_header); in buffer_alloc_calloc()
300 new->alloc = 0; in buffer_alloc_calloc()
301 new->prev = cur; in buffer_alloc_calloc()
302 new->next = cur->next; in buffer_alloc_calloc()
304 new->trace = NULL; in buffer_alloc_calloc()
305 new->trace_count = 0; in buffer_alloc_calloc()
307 new->magic1 = MAGIC1; in buffer_alloc_calloc()
308 new->magic2 = MAGIC2; in buffer_alloc_calloc()
310 if (new->next != NULL) { in buffer_alloc_calloc()
311 new->next->prev = new; in buffer_alloc_calloc()
316 new->prev_free = cur->prev_free; in buffer_alloc_calloc()
317 new->next_free = cur->next_free; in buffer_alloc_calloc()
318 if (new->prev_free != NULL) { in buffer_alloc_calloc()
319 new->prev_free->next_free = new; in buffer_alloc_calloc()
321 heap.first_free = new; in buffer_alloc_calloc()
324 if (new->next_free != NULL) { in buffer_alloc_calloc()
325 new->next_free->prev_free = new; in buffer_alloc_calloc()
330 cur->next = new; in buffer_alloc_calloc()