Lines Matching refs:newCell

342     Cell*     newCell;      // ptr to leftover block  in OSAllocFromHeap()  local
391 newCell = (Cell*) ((char*) cell + size); in OSAllocFromHeap()
392 newCell->size = leftoverSize; in OSAllocFromHeap()
394 newCell->hd = NULL; in OSAllocFromHeap()
398 newCell->prev = cell->prev; in OSAllocFromHeap()
399 newCell->next = cell->next; in OSAllocFromHeap()
400 if (newCell->next != NULL) in OSAllocFromHeap()
401 newCell->next->prev = newCell; in OSAllocFromHeap()
402 if (newCell->prev != NULL) in OSAllocFromHeap()
403 newCell->prev->next = newCell; in OSAllocFromHeap()
407 hd->free = newCell; in OSAllocFromHeap()
443 Cell* newCell; // for creating new objects if necessary in OSAllocFixed() local
516 newCell = (Cell*) end; in OSAllocFixed()
517 newCell->size = (char*) cellEnd - (char*) end; in OSAllocFixed()
519 newCell->hd = NULL; in OSAllocFixed()
521 newCell->next = cell->next; in OSAllocFixed()
522 if (newCell->next) in OSAllocFixed()
523 newCell->next->prev = newCell; in OSAllocFixed()
524 newCell->prev = cell->prev; in OSAllocFixed()
525 if (newCell->prev) in OSAllocFixed()
526 newCell->prev->next = newCell; in OSAllocFixed()
528 hd->free = newCell; // new head in OSAllocFixed()
548 newCell = (Cell*) end; in OSAllocFixed()
549 newCell->size = (char*) cellEnd - (char*) end; in OSAllocFixed()
551 newCell->hd = NULL; in OSAllocFixed()
553 newCell->next = cell->next; in OSAllocFixed()
554 if (newCell->next) in OSAllocFixed()
555 newCell->next->prev = newCell; in OSAllocFixed()
556 newCell->prev = cell; in OSAllocFixed()
557 cell->next = newCell; // cell is before newCell in OSAllocFixed()