From 67e0cf0608f8758b56cd06f6c39a44b9622f6c54 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Wed, 1 Aug 2012 22:10:13 +0200 Subject: [PATCH] undo controlled_exit: not compatible with ancient tests in cmath under LINUX --- src/misc/alloc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/misc/alloc.c b/src/misc/alloc.c index 449011645..971d5554b 100644 --- a/src/misc/alloc.c +++ b/src/misc/alloc.c @@ -9,8 +9,6 @@ Copyright 1990 Regents of the University of California. All rights reserved. #ifndef HAVE_LIBGC -extern void controlled_exit(int status); - /*saj For Tcl module locking*/ #ifdef TCL_MODULE #include @@ -44,7 +42,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); } @@ -80,7 +78,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); }