]> gcc.gnu.org Git - gcc.git/commitdiff
Fix uses of new in Xm/Traversal.h.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 16 Feb 1994 05:55:34 +0000 (05:55 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 16 Feb 1994 05:55:34 +0000 (05:55 +0000)
From-SVN: r6573

gcc/fixincludes

index fa1c18f10c198c647ccf89c52b7ff72d6544c6bf..792c4b1ed3583fcbd73f9a0ef7dbdefa1f30adf2 100755 (executable)
@@ -1089,13 +1089,14 @@ if [ -r ${LIB}/$file ]; then
   if grep __cplusplus ${LIB}/$file >/dev/null 2>/dev/null; then
     true;
   else
-    echo Fixing $file, field new
+    echo Fixing $file, uses of new
     sed -e '/Widget    old, new;/i\
 #ifdef __cplusplus\
        Widget  old, c_new;\
 #else' \
         -e '/Widget    old, new;/a\
-#endif' ${LIB}/$file > ${LIB}/${file}.sed
+#endif' \
+       -e 's/Widget new,/Widget c_new,/g' ${LIB}/$file > ${LIB}/${file}.sed
     rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
   fi
   if cmp $file ${LIB}/$file >/dev/null 2>&1; then
This page took 0.101781 seconds and 5 git commands to generate.