Author: coke
Date: Thu Feb 21 13:32:56 2008
New Revision: 25953
Modified:
trunk/t/codingstd/c_macro_args.t
Log:
[codingstd]
... Might be nice to warn about all the errors in a file, not just the first.
Modified: trunk/t/codingstd/c_macro_args.t
==============================================================================
--- trunk/t/codingstd/c_macro_args.t (original)
+++ trunk/t/codingstd/c_macro_args.t Thu Feb 21 13:32:56 2008
@@ -53,7 +53,7 @@
# combine lines extended with \\n
$buf =~ s/\\\n//g;
- if ( $buf =~ m{ ^ \s* \#define \s+ ([a-zA-Z_]+) \( ([^)]+) \)
([^\n]*) }smx ) {
+ while ( $buf =~ m{ ^ \s* \#define \s+ ([a-zA-Z_]+) \( ([^)]+) \)
([^\n]*) }smgx ) {
my ($macro,$args,$definition) = ($1, $2, $3);
# for each of these args, verify it's wrapped in parens each time
# it's referenced in the definition.