# state machine assumes the comments structure is enforced by
# checkpatches.pl
(in_file) {
+ if ($0 ~ "^@@") {
+ in_comment = 0
+ }
# comment start
if (index($0,comment_start) > 0) {
in_comment = 1
}
for (i in deny_folders) {
re = "^\\+\\+\\+ b/" deny_folders[i];
- if ($0 ~ deny_folders[i]) {
+ if ($0 ~ re) {
in_file = 1
last_file = $0
}
}
END {
if (count > 0) {
- print "Warning in " substr(last_file,6) ":"
+ print "Warning in " substr(last_file,7) ":"
print MESSAGE
exit RET_ON_FAIL
}