summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwadams <none@none>2005-06-20 17:53:07 -0700
committerjwadams <none@none>2005-06-20 17:53:07 -0700
commit6f55da5ae59f8e0e733e692a9289e9a8f92e636d (patch)
tree85767344de90716c8210c9e8c24e37b9a9e9189e
parentabdbd06dc090fa6a49e129523156a8fc75b1868d (diff)
downloadillumos-joyent-6f55da5ae59f8e0e733e692a9289e9a8f92e636d.tar.gz
6288411 New cstyle -c does not allow no-argument, non-statement macros
-rw-r--r--usr/src/tools/scripts/cstyle.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/tools/scripts/cstyle.pl b/usr/src/tools/scripts/cstyle.pl
index bd28ffa3e6..833b359384 100644
--- a/usr/src/tools/scripts/cstyle.pl
+++ b/usr/src/tools/scripts/cstyle.pl
@@ -747,6 +747,9 @@ process_indent($)
return if (/{$/);
return if (/}[,;]?$/);
+ # Allow macros on their own lines
+ return if (/^\s*[A-Z_][A-Z_0-9]*$/);
+
# cases we don't deal with, generally non-kosher
if (/{/) {
err("stuff after {");