Lines Matching refs:newCell
365 Cell *newCell; // ptr to leftover block in OS_AllocFromHeap() local
437 newCell = (Cell *) ((char *)cell + size); in OS_AllocFromHeap()
438 newCell->size = leftoverSize; in OS_AllocFromHeap()
440 newCell->hd = NULL; in OS_AllocFromHeap()
444 newCell->prev = cell->prev; in OS_AllocFromHeap()
445 newCell->next = cell->next; in OS_AllocFromHeap()
447 if (newCell->next != NULL) in OS_AllocFromHeap()
449 newCell->next->prev = newCell; in OS_AllocFromHeap()
452 if (newCell->prev != NULL) in OS_AllocFromHeap()
454 newCell->prev->next = newCell; in OS_AllocFromHeap()
459 hd->free = newCell; in OS_AllocFromHeap()
499 Cell *newCell; // for creating new objects if necessary in OS_AllocFixed() local
593 newCell = (Cell *) end; in OS_AllocFixed()
594 newCell->size = (char *)cellEnd - (char *)end; in OS_AllocFixed()
596 newCell->hd = NULL; in OS_AllocFixed()
598 newCell->next = cell->next; in OS_AllocFixed()
599 if (newCell->next) in OS_AllocFixed()
601 newCell->next->prev = newCell; in OS_AllocFixed()
603 newCell->prev = cell->prev; in OS_AllocFixed()
604 if (newCell->prev) in OS_AllocFixed()
606 newCell->prev->next = newCell; in OS_AllocFixed()
610 hd->free = newCell; // new head in OS_AllocFixed()
632 newCell = (Cell *) end; in OS_AllocFixed()
633 newCell->size = (char *)cellEnd - (char *)end; in OS_AllocFixed()
635 newCell->hd = NULL; in OS_AllocFixed()
637 newCell->next = cell->next; in OS_AllocFixed()
638 if (newCell->next) in OS_AllocFixed()
640 newCell->next->prev = newCell; in OS_AllocFixed()
642 newCell->prev = cell; in OS_AllocFixed()
643 cell->next = newCell; // cell is before newCell in OS_AllocFixed()