.
[gnulib.git] / lib / xalloc.h
1 #undef PARAMS
2 #if defined (__STDC__) && __STDC__
3 # define PARAMS(Args) Args
4 #else
5 # define PARAMS(Args) ()
6 #endif
7
8 /* Exit value when the requested amount of memory is not available.
9    The caller may set it to some other value.  */
10 extern int xalloc_exit_failure;
11
12 /* FIXME: describe */
13 extern char *const xalloc_msg_memory_exhausted;
14
15 /* FIXME: describe */
16 extern void (*xalloc_fail_func) ();
17
18 void *xmalloc PARAMS ((size_t n));
19 void *xcalloc PARAMS ((size_t n, size_t s));
20 void *xrealloc PARAMS ((void *p, size_t n));