all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Menus and w32 memory management
@ 2014-06-02 14:21 Dmitry Antipov
  2014-06-02 16:07 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Antipov @ 2014-06-02 14:21 UTC (permalink / raw)
  To: Emacs development discussions; +Cc: Eli Zaretskii

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

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

Dmitry



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-02 19:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 14:21 Menus and w32 memory management Dmitry Antipov
2014-06-02 16:07 ` Eli Zaretskii
2014-06-02 18:54   ` Lennart Borgman
2014-06-02 19:02     ` Eli Zaretskii
2014-06-02 19:40       ` Lennart Borgman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.