projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5956b11
)
Allow for types with leading underscore when checking error macros.
author
Richard Levitte
<levitte@openssl.org>
Tue, 28 Apr 2015 12:34:58 +0000
(14:34 +0200)
committer
Richard Levitte
<levitte@openssl.org>
Tue, 28 Apr 2015 12:34:58 +0000
(14:34 +0200)
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 <emilia@openssl.org>
util/ck_errf.pl
patch
|
blob
|
history
diff --git
a/util/ck_errf.pl
b/util/ck_errf.pl
index 1a8665ab6a1b45976baeb7287c58be64e91ed1a9..922e5f644bd042db8c7a33ea4605fba3aa7ab62f 100755
(executable)
--- a/
util/ck_errf.pl
+++ b/
util/ck_errf.pl
@@
-21,7
+21,7
@@
foreach $file (@ARGV)
$func="";
while (<IN>)
{
- 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]*)$/;