]> git.proxmox.com Git - mirror_zfs.git/commitdiff
cstyle: Allow spaces in all comments
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 17 Dec 2013 21:30:44 +0000 (13:30 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 19 Dec 2013 00:46:35 +0000 (16:46 -0800)
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 #1821

scripts/cstyle.pl

index 9f67b1d2e4d59df2dc1e8874c4623d888d1f97a7..083b30f6e8e9620eefa060749033fb04348d232b 100755 (executable)
@@ -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\/]/ && !/^ \*$/ &&