diff options
author | Jason Rumney <jasonr@gnu.org> | 2008-06-09 12:57:27 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2008-06-09 12:57:27 +0000 |
commit | 607db0aa6ad824830d7b0d25350ec198768bd37c (patch) | |
tree | d9f27220cceec7e6e9a4a0ffc09b81f589e24fca /src/w32gui.h | |
parent | 6fc032ed6fb0b960e7b8f1e347062c88115c6f0b (diff) |
* w32gui.h (widget_value, XtPointer, Boolean, enum button_type):
(local_heap, local_alloc, local_free, malloc_widget_value):
(free_widget_value): Define here.
Diffstat (limited to 'src/w32gui.h')
-rw-r--r-- | src/w32gui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/w32gui.h b/src/w32gui.h index c738f9b8d4..045c899e76 100644 --- a/src/w32gui.h +++ b/src/w32gui.h @@ -92,6 +92,14 @@ typedef struct _widget_value struct _widget_value *free_list; #endif } widget_value; +/* Local memory management for menus. */ +#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))) + enum w32_char_font_type { |