# HG changeset patch # User Richard M. Stallman # Date 824119500 0 # Node ID 00521a7aaa756c3d3b7423b71199aa545015d5ac # Parent e6f31368feeb27f7b2ddaf080e1b95d9e2afc06f (xmalloc_widget_value): Define only if USE_X_TOOLKIT. diff -r e6f31368feeb -r 00521a7aaa75 src/xmenu.c --- a/src/xmenu.c Mon Feb 12 09:49:01 1996 +0000 +++ b/src/xmenu.c Mon Feb 12 10:05:00 1996 +0000 @@ -116,20 +116,6 @@ static void list_of_panes (); static void list_of_items (); -/* Allocate a widget_value, blocking input. */ - -widget_value * -xmalloc_widget_value () -{ - widget_value *value; - - BLOCK_INPUT; - value = malloc_widget_value (); - UNBLOCK_INPUT; - - return value; -} - /* This holds a Lisp vector that holds the results of decoding the keymaps or alist-of-alists that specify a menu. @@ -1307,6 +1293,19 @@ popup_activated_flag = 0; } +/* Allocate a widget_value, blocking input. */ + +widget_value * +xmalloc_widget_value () +{ + widget_value *value; + + BLOCK_INPUT; + value = malloc_widget_value (); + UNBLOCK_INPUT; + + return value; +} /* This recursively calls free_widget_value on the tree of widgets. It must free all data that was malloc'ed for these widget_values.