[Top][All Lists]

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

Menus and w32 memory management

From: Dmitry Antipov
Subject: Menus and w32 memory management
Date: Mon, 02 Jun 2014 18:21:26 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Looking through src/w32gui.h, I found the following fragment:

/* 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 
#define free_widget_value(wv) (local_free ((wv)))

Why we can't use generic xzalloc and xfree here?


reply via email to

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