diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-06-25 23:20:54 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-06-25 23:20:54 -0400 |
commit | c07e72504d045f8e5070668e61fa5d8a3290ab66 (patch) | |
tree | 27881767587e12327c16d39ef3cce5915e90b1c6 /gawkmisc.c | |
parent | 44e29458a6355ad64e8d89676a441b224ce76cbc (diff) | |
download | egawk-c07e72504d045f8e5070668e61fa5d8a3290ab66.tar.gz egawk-c07e72504d045f8e5070668e61fa5d8a3290ab66.tar.bz2 egawk-c07e72504d045f8e5070668e61fa5d8a3290ab66.zip |
Remove xmalloc from gawkmisc.c, and improve dfa xalloc by using calloc instead of malloc+memset.
Diffstat (limited to 'gawkmisc.c')
-rw-r--r-- | gawkmisc.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -41,19 +41,3 @@ #include "posix/gawkmisc.c" #endif /* not VMS */ #endif /* not __DJGPP__, not __MINGW32__ */ - -/* xmalloc --- provide this so that other GNU library routines work */ - -typedef void *pointer; - -extern pointer xmalloc(size_t bytes); /* get rid of gcc warning */ - -pointer -xmalloc(size_t bytes) -{ - pointer p; - if (bytes == 0) - bytes = 1; /* avoid dfa.c mishegos */ - emalloc(p, pointer, bytes, "xmalloc"); - return p; -} |