From: Brian Behlendorf Date: Tue, 17 Dec 2013 21:30:44 +0000 (-0800) Subject: cstyle: Allow spaces in all comments X-Git-Tag: zfs-0.6.3~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ffef572ed2ba97e0c2d6a8aa2240012e611dc6f;p=zfs 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 Issue #1821 --- 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\/]/ && !/^ \*$/ &&