From c07e72504d045f8e5070668e61fa5d8a3290ab66 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Sun, 25 Jun 2017 23:20:54 -0400 Subject: Remove xmalloc from gawkmisc.c, and improve dfa xalloc by using calloc instead of malloc+memset. --- gawkmisc.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'gawkmisc.c') 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; -} -- cgit v1.2.3