]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix getfuncs.pl parse bug; require non-empty list of function parameters.
authorSimon Josefsson <simon@josefsson.org>
Tue, 6 Dec 2011 12:44:02 +0000 (13:44 +0100)
committerSimon Josefsson <simon@josefsson.org>
Tue, 6 Dec 2011 12:44:06 +0000 (13:44 +0100)
Otherwise it would detect a comment like '* foo()' as another function.

doc/manpages/Makefile.am
doc/scripts/getfuncs.pl

index d6e73ecede8ce2f03cc6e0302b8d67874c2b7ef3..e4010fc296061e80d8418be0b1fb9a7aca03ec3a 100644 (file)
@@ -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
index 08518ee17fab991dc5edfe2214ce127f9248fbb0..b626ade9e22714652ff09be0388a129b7404cb6a 100755 (executable)
@@ -11,15 +11,15 @@ while ($line=<STDIN>) {
 
   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;
     }