Lines Matching refs:new
234 memory_header *new, *cur = heap.first_free; in buffer_alloc_calloc() local
324 new = (memory_header *) p; in buffer_alloc_calloc()
326 new->size = cur->size - len - sizeof(memory_header); in buffer_alloc_calloc()
327 new->alloc = 0; in buffer_alloc_calloc()
328 new->prev = cur; in buffer_alloc_calloc()
329 new->next = cur->next; in buffer_alloc_calloc()
331 new->trace = NULL; in buffer_alloc_calloc()
332 new->trace_count = 0; in buffer_alloc_calloc()
334 new->magic1 = MAGIC1; in buffer_alloc_calloc()
335 new->magic2 = MAGIC2; in buffer_alloc_calloc()
337 if( new->next != NULL ) in buffer_alloc_calloc()
338 new->next->prev = new; in buffer_alloc_calloc()
342 new->prev_free = cur->prev_free; in buffer_alloc_calloc()
343 new->next_free = cur->next_free; in buffer_alloc_calloc()
344 if( new->prev_free != NULL ) in buffer_alloc_calloc()
345 new->prev_free->next_free = new; in buffer_alloc_calloc()
347 heap.first_free = new; in buffer_alloc_calloc()
349 if( new->next_free != NULL ) in buffer_alloc_calloc()
350 new->next_free->prev_free = new; in buffer_alloc_calloc()
354 cur->next = new; in buffer_alloc_calloc()