Teach OpenSSL::ParseC about OPENSSL_EXPORT and OPENSSL_EXTERN

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17215)
This commit is contained in:
Richard Levitte 2021-12-06 21:06:06 +01:00 committed by Dmitry Belyavskiy
parent d977a26ed8
commit 7a2ad00f3e
1 changed files with 6 additions and 0 deletions

View File

@ -610,6 +610,12 @@ EOF
},
},
# OpenSSL's declaration of externs with possible export linkage
# (really only relevant on Windows)
{ regexp => qr/OPENSSL_(?:EXPORT|EXTERN)/,
massager => sub { return ("extern"); }
},
# Spurious stuff found in the OpenSSL headers
# Usually, these are just macros that expand to, well, something
{ regexp => qr/__NDK_FPABI__/,