fix staticfunc_name detection

(cherry picked from commit 6d71d657ef0371ac50c51ef9001e2e340dedf95a)
This commit is contained in:
Karel Miko 2017-11-22 18:27:11 +01:00 committed by Steffen Jaeckel
parent 10ad3b5b41
commit dd868600b3

View File

@ -61,7 +61,7 @@ sub check_source {
$file !~ m|src/hashes/.*\.c$| && $file !~ m|src/hashes/.*\.c$| &&
$file !~ m|src/math/.+_desc.c$| && $file !~ m|src/math/.+_desc.c$| &&
$file !~ m|src/stream/sober128/sober128_stream.c$| && $file !~ m|src/stream/sober128/sober128_stream.c$| &&
$l =~ /^static(\s+\S+)+\s+([^_][a-zA-Z0-9_]+)\s*\(/) { $l =~ /^static(\s+[a-zA-Z0-9_]+)+\s+([^_][a-zA-Z0-9_]+)\s*\(/) {
push @{$troubles->{staticfunc_name}}, "$lineno($2)"; push @{$troubles->{staticfunc_name}}, "$lineno($2)";
} }
$lineno++; $lineno++;