OSDN Git Service

Fix non-const atof parameter on NEWS-OS 4.2R
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 1994 16:42:18 +0000 (16:42 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 1994 16:42:18 +0000 (16:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8653 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixincludes

index 723824f..1f32b53 100755 (executable)
@@ -1555,7 +1555,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
   fi
 fi
 
-# parameter to atof not const on DECstation Ultrix V4.0.
+# parameter to atof not const on DECstation Ultrix V4.0 and NEWS-OS 4.2R.
 # also get rid of bogus inline definitions in HP-UX 8.0
 file=math.h
 if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
@@ -1566,7 +1566,7 @@ fi
 
 if [ -r ${LIB}/$file ]; then
   echo Fixing $file, non-const arg
-  sed -e 's@atof( char \*__nptr );@atof( const char *__nptr );@' \
+  sed -e 's@atof(\([   ]*char[         ]*\*[^)]*\))@atof(const \1)@' \
       -e 's@inline int abs(int [a-z][a-z]*) {.*}@@' \
       -e 's@inline double abs(double [a-z][a-z]*) {.*}@@' \
       -e 's@inline int sqr(int [a-z][a-z]*) {.*}@@' \