diff options
| author | jwadams <none@none> | 2005-06-20 17:53:07 -0700 |
|---|---|---|
| committer | jwadams <none@none> | 2005-06-20 17:53:07 -0700 |
| commit | 6f55da5ae59f8e0e733e692a9289e9a8f92e636d (patch) | |
| tree | 85767344de90716c8210c9e8c24e37b9a9e9189e | |
| parent | abdbd06dc090fa6a49e129523156a8fc75b1868d (diff) | |
| download | illumos-joyent-6f55da5ae59f8e0e733e692a9289e9a8f92e636d.tar.gz | |
6288411 New cstyle -c does not allow no-argument, non-statement macros
| -rw-r--r-- | usr/src/tools/scripts/cstyle.pl | 3 |
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 {"); |
