34 |
#define _(msgid) gettext (msgid) |
#define _(msgid) gettext (msgid) |
35 |
#define N_(msgid) msgid |
#define N_(msgid) msgid |
36 |
|
|
37 |
#include "error.h" |
#include "err.h" |
38 |
#include "xalloc.h" |
#include "xalloc.h" |
39 |
|
|
40 |
#ifndef EXIT_FAILURE |
#ifndef EXIT_FAILURE |
57 |
{ |
{ |
58 |
if (xalloc_fail_func) |
if (xalloc_fail_func) |
59 |
(*xalloc_fail_func) (); |
(*xalloc_fail_func) (); |
60 |
error (xalloc_exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted)); |
err (xalloc_exit_failure, "%s", _(xalloc_msg_memory_exhausted)); |
|
/* The `noreturn' cannot be given to error, since it may return if |
|
|
its first argument is 0. To help compilers understand the |
|
|
xalloc_die does terminate, call exit. */ |
|
|
exit (EXIT_FAILURE); |
|
61 |
} |
} |
62 |
|
|
63 |
/* Allocate N bytes of memory dynamically, with error checking. */ |
/* Allocate N bytes of memory dynamically, with error checking. */ |