From: Simon Josefsson Date: Tue, 6 Dec 2011 12:44:02 +0000 (+0100) Subject: Fix getfuncs.pl parse bug; require non-empty list of function parameters. X-Git-Tag: gnutls_3_0_9~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f8554e34b96c55616ee9639fa9f0546fc424430;p=thirdparty%2Fgnutls.git Fix getfuncs.pl parse bug; require non-empty list of function parameters. Otherwise it would detect a comment like '* foo()' as another function. --- diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am index d6e73ecede..e4010fc296 100644 --- a/doc/manpages/Makefile.am +++ b/doc/manpages/Makefile.am @@ -134,8 +134,6 @@ APIMANS += gnutls_dtls_get_mtu.3 APIMANS += gnutls_dtls_get_data_mtu.3 APIMANS += gnutls_dtls_set_mtu.3 APIMANS += gnutls_dtls_cookie_send.3 -APIMANS += gnutls_dtls_prestate_set.3 -APIMANS += gnutls_dtls_cookie_send.3 APIMANS += gnutls_dtls_cookie_verify.3 APIMANS += gnutls_dtls_prestate_set.3 APIMANS += gnutls_record_get_discarded.3 @@ -271,7 +269,6 @@ APIMANS += gnutls_certificate_set_x509_crl.3 APIMANS += gnutls_certificate_get_openpgp_keyring.3 APIMANS += gnutls_global_init.3 APIMANS += gnutls_global_deinit.3 -APIMANS += gnutls_global_set_time_function.3 APIMANS += gnutls_global_set_mutex.3 APIMANS += gnutls_global_set_mem_functions.3 APIMANS += gnutls_global_set_time_function.3 @@ -418,7 +415,6 @@ APIMANS += gnutls_openpgp_crt_verify_self.3 APIMANS += gnutls_openpgp_keyring_get_crt.3 APIMANS += gnutls_openpgp_keyring_get_crt_count.3 APIMANS += gnutls_openpgp_set_recv_key_function.3 -APIMANS += gnutls_openpgp_set_recv_key_function.3 APIMANS += gnutls_certificate_set_openpgp_key.3 APIMANS += gnutls_certificate_set_openpgp_key_file.3 APIMANS += gnutls_certificate_set_openpgp_key_mem.3 @@ -426,7 +422,6 @@ APIMANS += gnutls_certificate_set_openpgp_key_file2.3 APIMANS += gnutls_certificate_set_openpgp_key_mem2.3 APIMANS += gnutls_certificate_set_openpgp_keyring_mem.3 APIMANS += gnutls_certificate_set_openpgp_keyring_file.3 -APIMANS += gnutls_pkcs11_set_pin_function.3 APIMANS += gnutls_pkcs11_init.3 APIMANS += gnutls_pkcs11_deinit.3 APIMANS += gnutls_pkcs11_set_token_function.3 @@ -506,7 +501,6 @@ APIMANS += gnutls_x509_crt_get_subject_key_id.3 APIMANS += gnutls_x509_crt_get_subject_unique_id.3 APIMANS += gnutls_x509_crt_get_issuer_unique_id.3 APIMANS += gnutls_x509_crt_get_authority_info_access.3 -APIMANS += gnutls_x509_crt_get_authority_info_access.3 APIMANS += gnutls_x509_crt_get_crl_dist_points.3 APIMANS += gnutls_x509_crt_set_crl_dist_points2.3 APIMANS += gnutls_x509_crt_set_crl_dist_points.3 diff --git a/doc/scripts/getfuncs.pl b/doc/scripts/getfuncs.pl index 08518ee17f..b626ade9e2 100755 --- a/doc/scripts/getfuncs.pl +++ b/doc/scripts/getfuncs.pl @@ -11,15 +11,15 @@ while ($line=) { if ($line !~ m/typedef/ && $line !~ m/Copyright/) { $func = ''; - if ($line =~ m/^\s*\w+[\s\*]+([A-Za-z0-9_]+)\s*\(.*/) { + if ($line =~ m/^\s*\w+[\s\*]+([A-Za-z0-9_]+)\s*\([^\)]+/) { $func = $1; } - if ($line =~ m/^\s*\w+\s+\w+[\s\*]+([A-Za-z0-9_]+)\s*\(.*/) { + if ($line =~ m/^\s*\w+\s+\w+[\s\*]+([A-Za-z0-9_]+)\s*\([^\)]+/) { $func = $1; } - if ($line =~ m/^[\s\*]*([A-Za-z0-9_]+)\s*\(.*/) { + if ($line =~ m/^[\s\*]*([A-Za-z0-9_]+)\s*\([^\)]+/) { $func = $1; }