From 12ce6f7980685636963dbaff6baa6bd4a218f4cd Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 30 Jan 2010 14:04:59 +0000 Subject: [PATCH] backup to exit() function --- src/misc/alloc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/misc/alloc.c b/src/misc/alloc.c index 1ff6b2a72..f28d2d91b 100644 --- a/src/misc/alloc.c +++ b/src/misc/alloc.c @@ -23,8 +23,6 @@ extern HANDLE outheap; #endif #endif -#include "../frontend/error.h" /* controlled_exit() */ - /* Malloc num bytes and initialize to zero. Fatal error if the space can't * be tmalloc'd. Return NULL for a request for 0 bytes. */ @@ -53,7 +51,7 @@ tmalloc(size_t num) #endif if (!s){ fprintf(stderr,"malloc: Internal Error: can't allocate %ld bytes. \n",(long)num); - controlled_exit(EXIT_FAILURE); + exit(EXIT_FAILURE); } return(s); } @@ -136,7 +134,7 @@ trealloc(void *ptr, size_t num) } if (!s) { fprintf(stderr,"realloc: Internal Error: can't allocate %ld bytes.\n", (long)num); - controlled_exit(EXIT_FAILURE); + exit(EXIT_FAILURE); } return(s); } @@ -177,7 +175,7 @@ hrealloc(void *ptr, size_t num) } if (!s) { fprintf(stderr,"HeapReAlloc: Internal Error: can't allocate %ld bytes.\n", (long)num); - controlled_exit(EXIT_FAILURE); + exit(EXIT_FAILURE); } return(s); }