diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-09 18:44:46 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-09 18:44:46 +0000 |
commit | 8ad3011df39aac9833be500a4c7df7c0186ea733 (patch) | |
tree | c14af796e9fa146b2f3289bd5f19bc068616fbbc /lib/xalloc.h | |
parent | e5f309aaf39d6697d417f78d9e2fecfc14608abb (diff) | |
download | coreutils-8ad3011df39aac9833be500a4c7df7c0186ea733.tar.xz |
Remove dependency of xalloc on error, etc.
Diffstat (limited to 'lib/xalloc.h')
-rw-r--r-- | lib/xalloc.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/xalloc.h b/lib/xalloc.h index 5985892c9..d81f2a676 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -38,19 +38,9 @@ extern "C" { # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) # endif - -/* If this pointer is non-zero, run the specified function upon each - allocation failure. It is initialized to zero. */ -extern void (*xalloc_fail_func) (void); - -/* If XALLOC_FAIL_FUNC is undefined or a function that returns, this - message is output. It is translated via gettext. - Its value is "memory exhausted". */ -extern char const xalloc_msg_memory_exhausted[]; - -/* This function is always triggered when memory is exhausted. It is - in charge of honoring the two previous items. It exits with status - exit_failure (defined in exitfail.h). This is the +/* This function is always triggered when memory is exhausted. + It must be defined by the application, either explicitly + or by using gnulib's xalloc-die module. This is the function to call when one wants the program to die because of a memory allocation failure. */ extern void xalloc_die (void) ATTRIBUTE_NORETURN; |