aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-10-19 18:56:08 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-10-19 18:56:08 -0400
commitc3647fe082f202dd4b648e72ab483f23c5107c68 (patch)
treee2064fa2a7194c24df3b0e45471cc7bf5f54e728 /gcc
parentce13d15fbcad86f65e2fd0c094809c25a6f00907 (diff)
downloadgcc-c3647fe082f202dd4b648e72ab483f23c5107c68.zip
gcc-c3647fe082f202dd4b648e72ab483f23c5107c68.tar.gz
gcc-c3647fe082f202dd4b648e72ab483f23c5107c68.tar.bz2
(stdlib.h): Be more general in edit to change declaration of
{c,m,re}alloc. From-SVN: r10477
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes8
1 files changed, 4 insertions, 4 deletions
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