diff options
author | Rich Salz <rsalz@openssl.org> | 2016-12-27 15:00:06 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-01-09 16:09:50 -0500 |
commit | 121677b4875b08df99a48d20ab5c26f54782f21d (patch) | |
tree | bd5a7086130be15c911181be9d1c99467e32b2eb /util | |
parent | 9c4319bd03f17fc87ae63b6231c87c678e5cabd1 (diff) |
Doc nits: callback function typedefs
Enhance find-doc-nits to be better about finding typedefs for
callback functions. Fix all nits it now finds. Added some new
typedef names to ssl.h some of which were documented but did not
exist
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2151)
Diffstat (limited to 'util')
-rwxr-xr-x | util/find-doc-nits.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/find-doc-nits.pl b/util/find-doc-nits.pl index fc795b8789..e90b3d7d07 100755 --- a/util/find-doc-nits.pl +++ b/util/find-doc-nits.pl @@ -85,7 +85,14 @@ sub name_synopsis() my $sym; $line =~ s/STACK_OF\([^)]+\)/int/g; $line =~ s/__declspec\([^)]+\)//; - if ( $line =~ /typedef.* (\S+);/ ) { + if ( $line =~ /env (\S*)=/ ) { + # environment variable env NAME=... + $sym = $1; + } elsif ( $line =~ /typedef.*\(\*(\S+)\)\(.*/ ) { + # a callback function: typedef ... (*NAME)(... + $sym = $1; + } elsif ( $line =~ /typedef.* (\S+);/ ) { + # a simple typedef: typedef ... NAME; $sym = $1; } elsif ( $line =~ /#define ([A-Za-z0-9_]+)/ ) { $sym = $1; |