rem: WEditMenuItem *newList;
add: WEditMenuItem **newList;
context: WInsertMenuItemWithTitle(WEditMenu *mPtr, char *title, int index){    WEditMenuItem *item;    item = WCreateEditMenuItem(mPtr, title);    item->menu = mPtr;    WMCreateEventHandler(item->view, ButtonPressMask|ButtonReleaseMask			 |Button1MotionMask, handleItemDrag, item);    WMMapWidget(item);    if (index < 0)	index = 0;    else if (index > mPtr->itemCount)	index = mPtr->itemCount;    if (mPtr->itemCount == mPtr->itemsAlloced) {	WEditMenuItem *newList;	newList = wmalloc(sizeof(WEditMenuItem*)*(mPtr->itemsAlloced+10));	memset(newList, 0, sizeof(WEditMenuItem*)*(mPtr->itemsAlloced+10));	memcpy(newList, mPtr->items, mPtr->itemsAlloced*sizeof(WEditMenuItem*));	mPtr->itemsAlloced += 10;	free(mPtr->items);	mPtr->items = newList;    }    if (index < mPtr->itemCount) {	memmove(&mPtr->items[index+1], &mPtr->items[index], 		sizeof(WEditMenuItem*));	mPtr->items[index] = item;	mPtr->itemCount++;    } else {	mPtr->items[mPtr->itemCount++] = item;    }    updateMenuContents(mPtr);    return item;}