improve 'typedef' patterns of find-doc-nits
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
bbe486cf61
commit
86a15d8366
1 changed files with 2 additions and 2 deletions
|
@ -147,10 +147,10 @@ sub name_synopsis {
|
|||
if ( $line =~ /env (\S*)=/ ) {
|
||||
# environment variable env NAME=...
|
||||
$sym = $1;
|
||||
} elsif ( $line =~ /typedef.*\(\*(\S+)\)\(.*/ ) {
|
||||
} elsif ( $line =~ /typedef.*\(\*(\S+)\)\s*\(/ ) {
|
||||
# a callback function pointer: typedef ... (*NAME)(...
|
||||
$sym = $1;
|
||||
} elsif ( $line =~ /typedef.* (\S+)\(.*/ ) {
|
||||
} elsif ( $line =~ /typedef.* (\S+)\(/ ) {
|
||||
# a callback function signature: typedef ... NAME(...
|
||||
$sym = $1;
|
||||
} elsif ( $line =~ /typedef.* (\S+);/ ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue