OSDN Git Service

(stdlib.h): Be more general in edit to change declaration of
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Oct 1995 22:56:08 +0000 (22:56 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Oct 1995 22:56:08 +0000 (22:56 +0000)
{c,m,re}alloc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10477 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixincludes

index 29d0f8f..6c2d157 100755 (executable)
@@ -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