From c3647fe082f202dd4b648e72ab483f23c5107c68 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 19 Oct 1995 18:56:08 -0400 Subject: (stdlib.h): Be more general in edit to change declaration of {c,m,re}alloc. From-SVN: r10477 --- gcc/fixincludes | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc') diff --git a/gcc/fixincludes b/gcc/fixincludes index 29d0f8f..6c2d157 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -907,10 +907,10 @@ if [ -r ${LIB}/$file ]; then echo Fixing $file sed -e 's/int abort/void abort/g' \ -e 's/int free/void free/g' \ - -e 's/char \* calloc/void \* calloc/g' \ - -e 's/char \* malloc/void \* malloc/g' \ - -e 's/char \* realloc/void \* realloc/g' \ - -e 's/int exit/void exit/g' \ + -e 's/char[ ]*\*[ ]*calloc/void \* calloc/g' \ + -e 's/char[ ]*\*[ ]*malloc/void \* malloc/g' \ + -e 's/char[ ]*\*[ ]*realloc/void \* realloc/g' \ + -e 's/int[ ][ ]*exit/void exit/g' \ -e '/typedef[ a-zA-Z_]*[ ]size_t[ ]*;/i\ #ifndef _GCC_SIZE_T\ #define _GCC_SIZE_T -- cgit v1.1