From 8ffef572ed2ba97e0c2d6a8aa2240012e611dc6f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 17 Dec 2013 13:30:44 -0800 Subject: [PATCH] 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 --- scripts/cstyle.pl | 4 ++-- 1 file 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\/]/ && !/^ \*$/ &&