diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-11-19 17:29:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-11-19 17:29:18 +0000 |
commit | 4c3c0b45bea788f0476c602dd82d4e432c308d54 (patch) | |
tree | b156e63d2f36c843bd2a1007febc42e2ed03fd7a /regress | |
parent | 1063777492e568b2005af3db9573def2abdc062d (diff) |
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.
Diffstat (limited to 'regress')
-rwxr-xr-x | regress/lib/libcrypto/man/check_complete.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/man/check_complete.pl b/regress/lib/libcrypto/man/check_complete.pl index 1086fd8627d..d31b7c6756a 100755 --- a/regress/lib/libcrypto/man/check_complete.pl +++ b/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") { |