util/find-doc-nits: allow #undef
authorRichard Levitte <levitte@openssl.org>
Thu, 29 Nov 2018 11:03:03 +0000 (11:03 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 6 Dec 2018 11:24:48 +0000 (12:24 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7724)

util/find-doc-nits

index c041c1c81900bd493498a4faeeec204fa25c4b80..eb234ff205cb3fd5fa85b9535c45b9f973c61ac1 100755 (executable)
@@ -115,7 +115,7 @@ sub name_synopsis()
         } elsif ( $line =~ /enum (\S*) \{/ ) {
             # an enumeration: enum ... {
             $sym = $1;
-        } elsif ( $line =~ /#define ([A-Za-z0-9_]+)/ ) {
+        } elsif ( $line =~ /#(?:define|undef) ([A-Za-z0-9_]+)/ ) {
             $sym = $1;
         } elsif ( $line =~ /([A-Za-z0-9_]+)\(/ ) {
             $sym = $1;