From af984dc33edbe355b4d9ba84c174d6c4b175f870 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 20 Jun 2017 19:59:07 +0200 Subject: [PATCH] exclude more sources from "static function check" --- helper.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helper.pl b/helper.pl index 3f7202f..b39bffc 100755 --- a/helper.pl +++ b/helper.pl @@ -55,7 +55,10 @@ sub check_source { push @{$troubles->{unwanted_clock}}, $lineno if $file =~ /^src\/.*\.c$/ && $l =~ /\bclock\s*\(/; push @{$troubles->{unwanted_qsort}}, $lineno if $file =~ /^src\/.*\.c$/ && $l =~ /\bqsort\s*\(/; if ($file =~ m|src/.*\.c$| && + $file !~ m|src/ciphers/.*\.c$| && + $file !~ m|src/hashes/.*\.c$| && $file !~ m|src/math/.+_desc.c$| && + $file !~ m|src/stream/sober128/sober128.c$| && $l =~ /^static\s+\S+\s+([^_][a-zA-Z0-9_]+)\s*\(/) { push @{$troubles->{staticfunc_name}}, "$lineno($1)"; }