OSDN Git Service

* fixincludes: Fix the return type of bsearch, char* -> void*.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Aug 1999 04:06:31 +0000 (04:06 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Aug 1999 04:06:31 +0000 (04:06 +0000)
        * fixinc/inclhack.def: Likewise.

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

gcc/ChangeLog
gcc/fixinc/fixincl.sh
gcc/fixinc/fixincl.x
gcc/fixinc/inclhack.def
gcc/fixinc/inclhack.sh
gcc/fixincludes

index 6baa333..e3f9157 100644 (file)
@@ -1,3 +1,9 @@
+Tue Aug  3 00:03:41 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * fixincludes: Fix the return type of bsearch, char* -> void*.
+
+       * fixinc/inclhack.def: Likewise.
+
 Mon Aug  2 18:29:32 1999  Mark Mitchell  <mark@codesourcery.com>
 
        * invoke.texi (-fdump-translation-unit): New option.
index a7661ba..fd357a3 100755 (executable)
@@ -6,7 +6,7 @@
 # files which are fixed to work correctly with ANSI C and placed in a
 # directory that GNU C will search.
 #
-# This script contains 104 fixup scripts.
+# This script contains 105 fixup scripts.
 #
 # See README-fixinc for more information.
 #
index 5f79228..92fe69b 100644 (file)
@@ -2946,6 +2946,7 @@ const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
     "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
     "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
     "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
+    "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
     "-e", "s/int[ \t][ \t]*exit/void\texit/g",
     "-e", "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n\
 #ifndef _GCC_SIZE_T\\\n\
index a1fc549..c5c4a1c 100644 (file)
@@ -2083,6 +2083,7 @@ fix = {
     sed   = "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g";
     sed   = "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g";
     sed   = "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g";
+    sed   = "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g";
     sed   = "s/int[ \t][ \t]*exit/void\texit/g";
 
     sed   = "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n"
index ec2501b..67577cb 100755 (executable)
@@ -2440,6 +2440,7 @@ extern unsigned int\
         -e 's/char[    ]*\*[   ]*calloc/void \*        calloc/g' \
         -e 's/char[    ]*\*[   ]*malloc/void \*        malloc/g' \
         -e 's/char[    ]*\*[   ]*realloc/void \*       realloc/g' \
+        -e 's/char[    ]*\*[   ]*bsearch/void \*       bsearch/g' \
         -e 's/int[     ][      ]*exit/void     exit/g' \
         -e '/typedef[  a-zA-Z_]*[      ]size_t[        ]*;/i\
 #ifndef _GCC_SIZE_T\
index ea03183..e5cc1c3 100755 (executable)
@@ -1002,6 +1002,7 @@ if [ -r ${LIB}/$file ]; then
   -e 's/char[  ]*\*[   ]*calloc/void \*        calloc/g' \
   -e 's/char[  ]*\*[   ]*malloc/void \*        malloc/g' \
   -e 's/char[  ]*\*[   ]*realloc/void \*       realloc/g' \
+  -e 's/char[  ]*\*[   ]*bsearch/void \*       bsearch/g' \
   -e 's/int[   ][      ]*exit/void     exit/g' \
   -e "/$size_t_pattern/"'i\
 #ifndef _GCC_SIZE_T\