aboutsummaryrefslogtreecommitdiffstats
path: root/gawkmisc.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2017-06-25 23:20:54 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2017-06-25 23:20:54 -0400
commitc07e72504d045f8e5070668e61fa5d8a3290ab66 (patch)
tree27881767587e12327c16d39ef3cce5915e90b1c6 /gawkmisc.c
parent44e29458a6355ad64e8d89676a441b224ce76cbc (diff)
downloadegawk-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.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gawkmisc.c b/gawkmisc.c
index f1658921..bef4f365 100644
--- a/gawkmisc.c
+++ b/gawkmisc.c
@@ -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;
-}