diff options
Diffstat (limited to 'gcc/cppalloc.c')
-rw-r--r-- | gcc/cppalloc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cppalloc.c b/gcc/cppalloc.c index 3cd72ee..a852d00 100644 --- a/gcc/cppalloc.c +++ b/gcc/cppalloc.c @@ -46,6 +46,16 @@ xmalloc (size) } PTR +xcalloc (number, size) + size_t number, size; +{ + register PTR ptr = (PTR) calloc (number, size); + if (ptr == 0) + memory_full (); + return ptr; +} + +PTR xrealloc (old, size) PTR old; size_t size; |