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