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 4b6d7c5e611132681f53b58d5d36319e81488e2f..b9c72803a1c3c283a4c5e32af4acd45b421d6f65 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+);/ ) {