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 <behlendorf1@llnl.gov>
Issue 
This commit is contained in:
Brian Behlendorf 2013-12-17 13:30:44 -08:00
parent 351a26ddc0
commit 8ffef572ed
1 changed files with 2 additions and 2 deletions
scripts

View File

@ -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\/]/ && !/^ \*$/ &&