From 0223ca0987aa8c3b0c4adc084c1f03a5e4e32288 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 28 Apr 2015 14:34:58 +0200 Subject: [PATCH] Allow for types with leading underscore when checking error macros. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We have an increasing number of function declarations starting with '__owur'. Unfortunately, util/ck_errf.pl fails to detect them. A simple change fixes that issue. Reviewed-by: Emilia Käsper --- util/ck_errf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ck_errf.pl b/util/ck_errf.pl index 1a8665ab6a..922e5f644b 100755 --- a/util/ck_errf.pl +++ b/util/ck_errf.pl @@ -21,7 +21,7 @@ foreach $file (@ARGV) $func=""; while () { - if (!/;$/ && /^\**([a-zA-Z].*[\s*])?([A-Za-z_0-9]+)\(.*([),]|$)/) + if (!/;$/ && /^\**([a-zA-Z_].*[\s*])?([A-Za-z_0-9]+)\(.*([),]|$)/) { /^([^()]*(\([^()]*\)[^()]*)*)\(/; $1 =~ /([A-Za-z_0-9]*)$/; -- 2.25.1