diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-06-07 13:43:28 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-06-07 13:43:28 +0000 |
commit | 670d8b9f4f79c7b4a977e1c881bd03618c5a83b5 (patch) | |
tree | 8cfded24bab1159f6464db2737dfe66199b4d251 /lib/sbin/c_file_processor.pl | |
parent | b0fa1663ad17136e3fc788ab25b3b9903bafe16f (diff) |
Put the USE_CCTK_XXX macros on the same line as the return statement
so that preprocessed files keep their total number of source lines.
If you want to follow compiler warnings the source lines it tells you
should be okay now.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1676 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/c_file_processor.pl')
-rw-r--r-- | lib/sbin/c_file_processor.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sbin/c_file_processor.pl b/lib/sbin/c_file_processor.pl index 2aaf6512..d686d3da 100644 --- a/lib/sbin/c_file_processor.pl +++ b/lib/sbin/c_file_processor.pl @@ -92,17 +92,17 @@ while(<>) { ## Start adding first macro, deal with "return }"first, "}" after if ($domacro1) { - if (!($routine=~s/([ \t\f]*)(return\s*\S*\s*}\s*)$/$1$addmacro1\n$1$2/s)) + if (!($routine=~s/([ \t\f]*)(return\s*\S*\s*}\s*)$/$1$addmacro1; $1$2/s)) { - ($routine=~s/(}\s*$)/ $addmacro1\n$1/s) + ($routine=~s/(}\s*$)/ $addmacro1; $1/s) } } ## Start adding second macro if ($domacro2) { - if (!($routine=~s/([ \t\f]*)(return\s*\S*\s*}\s*)$/$1$addmacro2\n$1$2/s)) + if (!($routine=~s/([ \t\f]*)(return\s*\S*\s*}\s*)$/$1$addmacro2 $1$2/s)) { - ($routine=~s/(}\s*$)/ $addmacro2\n$1/s) + ($routine=~s/(}\s*$)/ $addmacro2 $1/s) } } $n_arg_braces = -2; |