diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-01-20 09:39:00 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-01-20 09:39:00 +0000 |
commit | 229f84a33cf3f8bb144302b205c2c675149c8e5b (patch) | |
tree | 8de3b697dc6e86faa99db102bf7a54c291cf21f3 /bin/ACE-casts-convert | |
parent | d00825892d24fb36bdcf2fad615cae8ebb4d6423 (diff) | |
download | ATCD-229f84a33cf3f8bb144302b205c2c675149c8e5b.tar.gz |
ChangeLogTag:Thu Jan 20 01:16:21 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'bin/ACE-casts-convert')
-rwxr-xr-x | bin/ACE-casts-convert | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ACE-casts-convert b/bin/ACE-casts-convert index b0b0c397f23..11de33eac2a 100755 --- a/bin/ACE-casts-convert +++ b/bin/ACE-casts-convert @@ -11,7 +11,7 @@ # static_cast<foo> (bar)). # # Use this script at your own risk. It appears to work correctly for -# all cases, but verify the results "just in case". +# most cases, but verify the results "just in case". # # @note Wildcards may be supplied as the "FILE" arguments to this # script since the shell should expand the wildcards before @@ -37,8 +37,8 @@ do shift if grep "ACE_\(static\|dynamic\|const\|reinterpret\)_cast" $arg > /dev/null 2>&1; then - echo $arg - sed -e :a -e 's/ACE_\(const\|static\|reinterpret\|dynamic\)_cast[ \t]*([ \t]*\([^,]*\)[ \t]*,[ \t]*\([^ \t].*\)/\1_cast<\2> (\3/g; /ACE_\(const\|static\|reinterpret\|dynamic\)_cast[ \t]*([ \t]*\([^,]*\)[ \t]*,[ \t]*$/{N;s/\n//;ba;}; /ACE_\(const\|static\|reinterpret\|dynamic\)_cast[ \t]*(/ba' $arg > ${arg}.new + echo " $arg" + sed -e :a -e 's/ACE_\(const\|static\|reinterpret\|dynamic\)_cast[ \t]*([ \t]*\([^,]*\)[ \t]*,[ \t]*\([^ \t].*\)/\1_cast<\2> (\3/g; /ACE_\(const\|static\|reinterpret\|dynamic\)_cast[ \t]*([ \t]*\([^,]*\)[ \t]*,[ \t]*$/{N;s/\n//;ba;}; /ACE_\(const\|static\|reinterpret\|dynamic\)_cast[ \t]*([ \t]*$/{N;s/\n//;ba;}; /ACE_\(const\|static\|reinterpret\|dynamic\)_cast[ \t]*(/ba' $arg > ${arg}.new mv ${arg}.new $arg fi done |