diff options
author | schwarze <> | 2021-11-19 17:29:17 +0000 |
---|---|---|
committer | schwarze <> | 2021-11-19 17:29:17 +0000 |
commit | 93d953445dfa90d5397b96418016f1eb93e02fa5 (patch) | |
tree | 66cbc9552876e304085c3f63f813528f1f1af481 /src | |
parent | f7fe22aa981dc9d6edb29d674fd126ae8dac06cc (diff) | |
download | openbsd-93d953445dfa90d5397b96418016f1eb93e02fa5.tar.gz openbsd-93d953445dfa90d5397b96418016f1eb93e02fa5.tar.bz2 openbsd-93d953445dfa90d5397b96418016f1eb93e02fa5.zip |
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 'src')
-rwxr-xr-x | src/regress/lib/libcrypto/man/check_complete.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
228 | } | 228 | } |
229 | next; | 229 | next; |
230 | } | 230 | } |
231 | if (/^\w+(?:\(\w+\))?(?:\s+\w+)?(?:\s+|\s*\(?\*\s*)(\w+)\s*\(/) { | 231 | if (/^\w+(?:\(\w+\))?(?:\s+\w+)?\s+(?:\(?\*\s*)?(\w+)\(/) { |
232 | my $id = $1; | 232 | my $id = $1; |
233 | /\);$/ or $in_function = 1; | 233 | /\);$/ or $in_function = 1; |
234 | unless (system "$MANW $id > /dev/null 2>&1") { | 234 | unless (system "$MANW $id > /dev/null 2>&1") { |