Mercurial > hg > xemacs-beta
comparison src/alloc.c @ 392:1f50e6fe4f3f r21-2-11
Import from CVS: tag r21-2-11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:10:50 +0200 |
parents | 4af0ddfb7c5b |
children | 6719134a07c2 |
comparison
equal
deleted
inserted
replaced
391:e50d8e68d7a5 | 392:1f50e6fe4f3f |
---|---|
379 void *val = malloc (size); | 379 void *val = malloc (size); |
380 | 380 |
381 if (!val && (size != 0)) memory_full (); | 381 if (!val && (size != 0)) memory_full (); |
382 return val; | 382 return val; |
383 } | 383 } |
384 | |
385 #ifdef xcalloc | |
386 #undef xcalloc | |
387 #endif | |
384 | 388 |
385 static void * | 389 static void * |
386 xcalloc (size_t nelem, size_t elsize) | 390 xcalloc (size_t nelem, size_t elsize) |
387 { | 391 { |
388 void *val = calloc (nelem, elsize); | 392 void *val = calloc (nelem, elsize); |