summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/cstyle.pl
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/tools/scripts/cstyle.pl')
-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 {");