aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1994-02-16 05:55:34 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1994-02-16 05:55:34 +0000
commitdd22b925ad78dc0192157bb0587f120edac8cea5 (patch)
tree652f3376ce694744e55bad14b87378cd49f4fbec /gcc
parentc41f817d7f6f20a3d0df7512dc00167c466d78fe (diff)
downloadgcc-dd22b925ad78dc0192157bb0587f120edac8cea5.zip
gcc-dd22b925ad78dc0192157bb0587f120edac8cea5.tar.gz
gcc-dd22b925ad78dc0192157bb0587f120edac8cea5.tar.bz2
Fix uses of new in Xm/Traversal.h.
From-SVN: r6573
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index fa1c18f..792c4b1 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -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