emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/w32gui.h,v


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/w32gui.h,v
Date: Mon, 09 Jun 2008 12:57:27 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Jason Rumney <jasonr>   08/06/09 12:57:27

Index: w32gui.h
===================================================================
RCS file: /sources/emacs/emacs/src/w32gui.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- w32gui.h    9 Jun 2008 12:36:01 -0000       1.31
+++ w32gui.h    9 Jun 2008 12:57:27 -0000       1.32
@@ -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
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]