Mercurial > emacs
changeset 95714:51e7d268aef8
* menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
defs to w32gui.h.
(single_keymap_panes, push_menu_item, push_menu_pane): Make
globally visible.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Mon, 09 Jun 2008 12:57:42 +0000 |
parents | 37802c533470 |
children | 082ea596d318 |
files | src/menu.c |
diffstat | 1 files changed, 3 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/menu.c Mon Jun 09 12:57:27 2008 +0000 +++ b/src/menu.c Mon Jun 09 12:57:42 2008 +0000 @@ -43,14 +43,6 @@ #ifdef HAVE_NTGUI #include "w32term.h" -/* Local memory management */ -#define local_heap (GetProcessHeap ()) -#define local_alloc(n) (HeapAlloc (local_heap, HEAP_ZERO_MEMORY, (n))) -#define local_free(p) (HeapFree (local_heap, 0, ((LPVOID) (p)))) - -#define malloc_widget_value() ((widget_value *) local_alloc (sizeof (widget_value))) -#define free_widget_value(wv) (local_free ((wv))) - extern AppendMenuW_Proc unicode_append_menu; #endif /* HAVE_NTGUI */ @@ -212,7 +204,7 @@ /* Start a new menu pane in menu_items. NAME is the pane name. PREFIX_VEC is a prefix key for this pane. */ -static void +void push_menu_pane (name, prefix_vec) Lisp_Object name, prefix_vec; { @@ -234,7 +226,7 @@ for this item (or nil if none). TYPE is the type of this menu item, one of nil, `toggle' or `radio'. */ -static void +void push_menu_item (name, enable, key, def, equiv, type, selected, help) Lisp_Object name, enable, key, def, equiv, type, selected, help; { @@ -271,7 +263,7 @@ If we encounter submenus deeper than MAXDEPTH levels, ignore them. */ -static void +void single_keymap_panes (keymap, pane_name, prefix, notreal, maxdepth) Lisp_Object keymap; Lisp_Object pane_name;