Paul Eggert <address@hidden
> schrieb am Do., 19. Nov. 2015 um 23:56 Uhr:
On 11/19/2015 02:45 PM, Philipp Stephani wrote:
> Maybe we should add a variant that behaves like xmalloc but is
> guaranteed to never call longjmp?
What should this new xmalloc variant do when it runs out of memory?
xmalloc never returns NULL, so presumably that should be true for the
variant as well.
Returning NULL is fine. malloc also returns NULL on OOM, and module.c handles that.
> Please don't use module.h; this header file is the only one that is
> intended for module authors to include, so it needs a globally unique
> name which should start with 'emacs'.
Yes, that's already done, it's renamed to emacs-module.h now.