diff options
author | Brian Behlendorf <[email protected]> | 2013-12-17 13:30:44 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-12-18 16:46:35 -0800 |
commit | 8ffef572ed2ba97e0c2d6a8aa2240012e611dc6f (patch) | |
tree | d1810e4163b2c746f0955f91fc933a65fbe5fcf5 /scripts/cstyle.pl | |
parent | 351a26ddc0a1ec85886fc961612f05686cce82e6 (diff) |
cstyle: Allow spaces in all comments
Update the cstyle.pl script to allow pictures in all comments not
just header comments. Recent changes from Illumos such as d3cc8b1
have relocated various pictures in the standard block comments to
make the code more readable.
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #1821
Diffstat (limited to 'scripts/cstyle.pl')
-rwxr-xr-x | scripts/cstyle.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cstyle.pl b/scripts/cstyle.pl index 9f67b1d2e..083b30f6e 100755 --- a/scripts/cstyle.pl +++ b/scripts/cstyle.pl @@ -441,8 +441,8 @@ line: while (<$filehandle>) { # check for errors that might occur in comments and in code. - # allow spaces to be used to draw pictures in header comments. - if (/[^ ] / && !/".* .*"/ && !$in_header_comment) { + # allow spaces to be used to draw pictures in all comments. + if (/[^ ] / && !/".* .*"/ && !$in_comment) { err("spaces instead of tabs"); } if (/^ / && !/^ \*[ \t\/]/ && !/^ \*$/ && |