]> gcc.gnu.org Git - gcc.git/commitdiff
Convert //-style comments to /*...*/ style.
authorRichard Stallman <rms@gnu.org>
Fri, 23 Oct 1992 07:30:01 +0000 (07:30 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 23 Oct 1992 07:30:01 +0000 (07:30 +0000)
From-SVN: r2569

gcc/fixincludes

index 8c2d52996497f3133d2638905998dd6e3cf804ba..aa99c7a1d96e4b7b08d711bad3595b2cb3135f9c 100755 (executable)
@@ -205,7 +205,7 @@ while [ $# != 0 ]; do
 # But the argument to egrep must be kept small, or many versions of egrep
 # won't be able to handle it.
 # rms: I removed `|#[el].*if.*[^/      ]' because it made egrep fail.
-    if egrep '[        _]_IO|CTRL|#define.NULL|#[el]*if.*([0-9]|sparc|vax|sun|pyr)' $file > /dev/null; then
+    if egrep '//|[     _]_IO|CTRL|#define.NULL|#[el]*if.*([0-9]|sparc|vax|sun|pyr)' $file > /dev/null; then
       echo Fixing $file
       if [ -r $file ]; then
        cp $file $2/$file >/dev/null 2>&1       \
@@ -219,6 +219,7 @@ while [ $# != 0 ]; do
                                   :loop
          /\\$/                 N
          /\\$/                 b loop
+         /\/\//                        s|//\(.*\)$|/*\1*/|
          /[    ]_IO[A-Z]*[     ]*(/    s/(\(.\),/('\''\1'\'',/
          /[    ]BSD43__IO[A-Z]*[       ]*(/    s/(\(.\),/('\''\1'\'',/
          /#define._IO/                 s/'\''x'\''/x/g
This page took 0.068545 seconds and 5 git commands to generate.