util/perl/OpenSSL/ParseC.pm: Fix 'extern "C" DEPRECATEDIN_x_y(...)'
authorRichard Levitte <levitte@openssl.org>
Sun, 10 Nov 2019 12:03:15 +0000 (13:03 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 12 Nov 2019 12:30:34 +0000 (13:30 +0100)
commitdc5ce51983713dfbb8f3d0c8b198dee32b563ac6
treed920a40245517fb4feb33342a012343a87c4038b
parent7c6a0d909abda7c854b44831ef43ebdda49ed42e
util/perl/OpenSSL/ParseC.pm: Fix 'extern "C" DEPRECATEDIN_x_y(...)'

The parser expected an 'extern "C"' followed by a single declaration
to always end with a semicolon.  Then came along something like this:

    extern "C" DEPRECATEDIN_3_0(int ERR_load_KDF_strings(void))

This change adjusts the detector of 'extern "C"' to also take in
accound a declaration that ends with a parenthesis.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10368)
util/perl/OpenSSL/ParseC.pm