rem: int i = bPtr->subviewCount;  bPtr->subviewCount++; if (!bPtr->subviews) bPtr->subviews = wmalloc(sizeof(SubviewItem)); else bPtr->subviews = wrealloc(bPtr->subviews, bPtr->subviewCount*sizeof(SubviewItem)); bPtr->subviews[i].view = view; bPtr->subviews[i].minSize = minSize; bPtr->subviews[i].maxSize = maxSize; bPtr->subviews[i].expand = expand; bPtr->subviews[i].fill = fill; bPtr->subviews[i].space = space; bPtr->subviews[i].end = 1;
add: SubviewItem *subView;  subView = wmalloc(sizeof(SubviewItem)); subView->view = view; subView->minSize = minSize; subView->maxSize = maxSize; subView->expand = expand; subView->fill = fill; subView->space = space; subView->end = 1;  WMAddToArray(bPtr->subviews, subView);
context: WMAddBoxSubviewAtEnd(WMBox *bPtr, WMView *view, Bool expand, Bool fill,		     int minSize, int maxSize, int space){    int i = bPtr->subviewCount;        bPtr->subviewCount++;    if (!bPtr->subviews)	bPtr->subviews = wmalloc(sizeof(SubviewItem));    else	bPtr->subviews = wrealloc(bPtr->subviews, 				  bPtr->subviewCount*sizeof(SubviewItem));    bPtr->subviews[i].view = view;    bPtr->subviews[i].minSize = minSize;    bPtr->subviews[i].maxSize = maxSize;    bPtr->subviews[i].expand = expand;    bPtr->subviews[i].fill = fill;    bPtr->subviews[i].space = space;    bPtr->subviews[i].end = 1;    rearrange(bPtr);}