mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
make find-doc-nits report function typedef w/ space before arg list
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10673)
This commit is contained in:
parent
1f9bfd8993
commit
28104cdda3
@ -144,6 +144,11 @@ sub name_synopsis {
|
||||
$line =~ s/STACK_OF\([^)]+\)/int/g;
|
||||
$line =~ s/SPARSE_ARRAY_OF\([^)]+\)/int/g;
|
||||
$line =~ s/__declspec\([^)]+\)//;
|
||||
if ( $line =~ /typedef.*\(\*\S+\)\s+\(/ ) {
|
||||
# a callback function with whitespace before the argument list:
|
||||
# typedef ... (*NAME) (...
|
||||
err($id, "function typedef has space before arg list: $line");
|
||||
}
|
||||
if ( $line =~ /env (\S*)=/ ) {
|
||||
# environment variable env NAME=...
|
||||
$sym = $1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user