changeset 95713:37802c533470

* w32gui.h (widget_value, XtPointer, Boolean, enum button_type): (local_heap, local_alloc, local_free, malloc_widget_value): (free_widget_value): Define here.
author Jason Rumney <jasonr@gnu.org>
date Mon, 09 Jun 2008 12:57:27 +0000
parents f8644ed7e357
children 51e7d268aef8
files src/w32gui.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32gui.h	Mon Jun 09 12:38:07 2008 +0000
+++ b/src/w32gui.h	Mon Jun 09 12:57:27 2008 +0000
@@ -92,6 +92,14 @@
   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
 {