Lines Matching refs:newCell

361     Cell   *newCell;                   // ptr to leftover block  in OS_AllocFromHeap()  local
433 newCell = (Cell *) ((char *)cell + size); in OS_AllocFromHeap()
434 newCell->size = leftoverSize; in OS_AllocFromHeap()
436 newCell->hd = NULL; in OS_AllocFromHeap()
440 newCell->prev = cell->prev; in OS_AllocFromHeap()
441 newCell->next = cell->next; in OS_AllocFromHeap()
443 if (newCell->next != NULL) in OS_AllocFromHeap()
445 newCell->next->prev = newCell; in OS_AllocFromHeap()
448 if (newCell->prev != NULL) in OS_AllocFromHeap()
450 newCell->prev->next = newCell; in OS_AllocFromHeap()
455 hd->free = newCell; in OS_AllocFromHeap()
495 Cell *newCell; // for creating new objects if necessary in OS_AllocFixed() local
587 newCell = (Cell *) end; in OS_AllocFixed()
588 newCell->size = (char *)cellEnd - (char *)end; in OS_AllocFixed()
590 newCell->hd = NULL; in OS_AllocFixed()
592 newCell->next = cell->next; in OS_AllocFixed()
593 if (newCell->next) in OS_AllocFixed()
595 newCell->next->prev = newCell; in OS_AllocFixed()
597 newCell->prev = cell->prev; in OS_AllocFixed()
598 if (newCell->prev) in OS_AllocFixed()
600 newCell->prev->next = newCell; in OS_AllocFixed()
604 hd->free = newCell; // new head in OS_AllocFixed()
626 newCell = (Cell *) end; in OS_AllocFixed()
627 newCell->size = (char *)cellEnd - (char *)end; in OS_AllocFixed()
629 newCell->hd = NULL; in OS_AllocFixed()
631 newCell->next = cell->next; in OS_AllocFixed()
632 if (newCell->next) in OS_AllocFixed()
634 newCell->next->prev = newCell; in OS_AllocFixed()
636 newCell->prev = cell; in OS_AllocFixed()
637 cell->next = newCell; // cell is before newCell in OS_AllocFixed()