rem: puts("doing wrealloc()");
add: dputs("doing wrealloc()");
context: wMenuInsertCallback(WMenu *menu, int index, char *text,		    void (*callback)(WMenu *menu, WMenuEntry *entry), 		    void *clientdata){    WMenuEntry *entry;#ifdef DEBUG    if (!menu) {	printf("Passed NULL as menu parameter to wMenuAddCallback() \n");	return NULL;    }    #endif    assert(menu->flags.brother==0);    menu->flags.realized = 0;    menu->brother->flags.realized = 0;        /* reallocate array if it's too small */    if (menu->entry_no >= menu->alloced_entries) {	void *tmp;#ifdef DEBUG	puts("doing wrealloc()");#endif		tmp = wrealloc(menu->entries,		       sizeof(WMenuEntry)*(menu->alloced_entries+5));	if (tmp==NULL) {	    wwarning(_("wrealloc() failed while trying to add menu item"));	    return NULL;	}	menu->entries = tmp;	menu->alloced_entries += 5;		menu->brother->entries = tmp;	menu->brother->alloced_entries = menu->alloced_entries;    }    entry = wmalloc(sizeof(WMenuEntry));    memset(entry, 0, sizeof(WMenuEntry));    entry->flags.enabled = 1;    entry->text = wstrdup(text);    entry->cascade = -1;    entry->clientdata = clientdata;    entry->callback = callback;    if (index<0 || index>=menu->entry_no) {	entry->order = menu->entry_no;	menu->entries[menu->entry_no] = entry;    } else {	entry->order = index;	insertEntry(menu, entry, index);    }        menu->entry_no++;    menu->brother->entry_no = menu->entry_no;        return entry;}