diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-05-17 17:35:13 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-05-17 17:35:13 +0000 |
commit | 28d43d07013f807f470730d51af2ef3be0534252 (patch) | |
tree | b4aceaecdb6764fc13bd9bfbcc5eb0d39ae81d7c /lib/sbin/c_file_processor.pl | |
parent | 891ad3e8072a38bb92cbe2375f2b53b678229250 (diff) |
Remove semicolons after the CCTK_FILEVERSION macro, so we can now use
them without producing compiler warnings.
With them TAGS will work properly again and also emacs auto-indentation.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2823 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/c_file_processor.pl')
-rw-r--r-- | lib/sbin/c_file_processor.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sbin/c_file_processor.pl b/lib/sbin/c_file_processor.pl index b948a7f1..7d9fa0ba 100644 --- a/lib/sbin/c_file_processor.pl +++ b/lib/sbin/c_file_processor.pl @@ -55,6 +55,10 @@ while (<>) $n_arg_braces = -1; } + # Remove a ; from after the fileversion macro + # such a semicolon could lead to warning messages. + $mline =~ s/^\s*(CCTK_FILEVERSION\s*\([^)]*\))(\s*;)?/$1/; + # start counting braces if there has been a DECLARE macro if ($closing_brackets) { |