improve 'typedef' patterns of find-doc-nits
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Sat, 21 Dec 2019 18:35:45 +0000 (19:35 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 13 Jan 2020 12:28:18 +0000 (12:28 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10673)

util/find-doc-nits

index 4b6d7c5..b9c7280 100755 (executable)
@@ -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+);/ ) {