From 583fedcd909f68391d30cdbe0fb2c65baf23e6d3 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Fri, 19 Nov 2021 17:29:17 +0000 Subject: Make function prototype parsing a bit stricter, reducing the risk of accidental misparsing: Require whitespace after the function return type (before the asterisk indicating that the function returns a pointer, if any) and do not accept whitespace between the function name and the opening parenthesis of the parameter list. These changes are not a problem because we want that style for KNF reasons anyway. --- src/regress/lib/libcrypto/man/check_complete.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/regress/lib') diff --git a/src/regress/lib/libcrypto/man/check_complete.pl b/src/regress/lib/libcrypto/man/check_complete.pl index 1086fd8627..d31b7c6756 100755 --- a/src/regress/lib/libcrypto/man/check_complete.pl +++ b/src/regress/lib/libcrypto/man/check_complete.pl @@ -228,7 +228,7 @@ try_again: } next; } - if (/^\w+(?:\(\w+\))?(?:\s+\w+)?(?:\s+|\s*\(?\*\s*)(\w+)\s*\(/) { + if (/^\w+(?:\(\w+\))?(?:\s+\w+)?\s+(?:\(?\*\s*)?(\w+)\(/) { my $id = $1; /\);$/ or $in_function = 1; unless (system "$MANW $id > /dev/null 2>&1") { -- cgit v1.2.3-55-g6feb