Author: coke
Date: Thu Feb 21 18:08:25 2008
New Revision: 25968
Modified:
trunk/t/codingstd/c_macro_args.t
Log:
[codingstd]
Test was just checking for #define, when # define is also allowed.
Failures now up to 3248. Andy better hurry up before I find more failures!
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 18:08:25 2008
@@ -53,7 +53,7 @@
# combine lines extended with \\n
$buf =~ s/\\\n//g;
- while ( $buf =~ m{ ^ \s* \#define \s+ ([a-zA-Z_]+) \( ([^)]+) \)
([^\n]*) }smgx ) {
+ while ( $buf =~ m{ ^ \s* \# \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.