Mercurial > hg > octave-lojdl > gnulib-hg
changeset 1070:03a03edf4361
.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 25 Oct 1997 21:49:45 +0000 |
parents | aa8262cf23e2 |
children | dba5761efd8d |
files | lib/xalloc.h |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/lib/xalloc.h @@ -0,0 +1,20 @@ +#undef PARAMS +#if defined (__STDC__) && __STDC__ +# define PARAMS(Args) Args +#else +# define PARAMS(Args) () +#endif + +/* Exit value when the requested amount of memory is not available. + The caller may set it to some other value. */ +extern int xalloc_exit_failure; + +/* FIXME: describe */ +extern char *const xalloc_msg_memory_exhausted; + +/* FIXME: describe */ +extern void (*xalloc_fail_func) (); + +void *xmalloc PARAMS ((size_t n)); +void *xcalloc PARAMS ((size_t n, size_t s)); +void *xrealloc PARAMS ((void *p, size_t n));