From: Richard Levitte Date: Thu, 29 Nov 2018 11:03:03 +0000 (+0000) Subject: util/find-doc-nits: allow #undef X-Git-Tag: openssl-3.0.0-alpha1~2837 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0695b193428b25b9fbb905ab5b913e69384e2554;p=oweals%2Fopenssl.git util/find-doc-nits: allow #undef Reviewed-by: Tim Hudson Reviewed-by: Matthias St. Pierre Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/7724) --- diff --git a/util/find-doc-nits b/util/find-doc-nits index c041c1c819..eb234ff205 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -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;