diff options
| author | Jason Rumney | 2008-06-09 12:57:27 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-06-09 12:57:27 +0000 |
| commit | 607db0aa6ad824830d7b0d25350ec198768bd37c (patch) | |
| tree | d9f27220cceec7e6e9a4a0ffc09b81f589e24fca /src/w32gui.h | |
| parent | 6fc032ed6fb0b960e7b8f1e347062c88115c6f0b (diff) | |
| download | emacs-607db0aa6ad824830d7b0d25350ec198768bd37c.tar.gz emacs-607db0aa6ad824830d7b0d25350ec198768bd37c.zip | |
* 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 c738f9b8d46..045c899e767 100644 --- a/src/w32gui.h +++ b/src/w32gui.h | |||
| @@ -92,6 +92,14 @@ typedef struct _widget_value | |||
| 92 | struct _widget_value *free_list; | 92 | struct _widget_value *free_list; |
| 93 | #endif | 93 | #endif |
| 94 | } widget_value; | 94 | } widget_value; |
| 95 | /* Local memory management for menus. */ | ||
| 96 | #define local_heap (GetProcessHeap ()) | ||
| 97 | #define local_alloc(n) (HeapAlloc (local_heap, HEAP_ZERO_MEMORY, (n))) | ||
| 98 | #define local_free(p) (HeapFree (local_heap, 0, ((LPVOID) (p)))) | ||
| 99 | |||
| 100 | #define malloc_widget_value() ((widget_value *) local_alloc (sizeof (widget_value))) | ||
| 101 | #define free_widget_value(wv) (local_free ((wv))) | ||
| 102 | |||
| 95 | 103 | ||
| 96 | enum w32_char_font_type | 104 | enum w32_char_font_type |
| 97 | { | 105 | { |