summaryrefslogtreecommitdiff
path: root/xalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'xalloc.h')
-rw-r--r--xalloc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/xalloc.h b/xalloc.h
index aabfea4..098a6c2 100644
--- a/xalloc.h
+++ b/xalloc.h
@@ -1,5 +1,5 @@
/* xalloc.h -- malloc with out-of-memory checking
- Copyright (C) 1990-1998, 1999, 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1990-1998, 1999, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -36,6 +36,11 @@
# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
# endif
+/* Exit value when the requested amount of memory is not available.
+ It is initialized to EXIT_FAILURE, but the caller may set it to
+ some other value. */
+extern int xalloc_exit_failure;
+
/* If this pointer is non-zero, run the specified function upon each
allocation failure. It is initialized to zero. */
extern void (*xalloc_fail_func) PARAMS ((void));