From: Nikos Mavrogiannopoulos Date: Wed, 21 Mar 2012 17:32:22 +0000 (+0100) Subject: Added doc-skip to skip certain functions from documentation. X-Git-Tag: gnutls_3_0_18~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90f7007defed1a9b710e9c98792dfcfc20c8d60e;p=thirdparty%2Fgnutls.git Added doc-skip to skip certain functions from documentation. --- diff --git a/doc/scripts/getfuncs.pl b/doc/scripts/getfuncs.pl index 59763f33a6..383924045f 100755 --- a/doc/scripts/getfuncs.pl +++ b/doc/scripts/getfuncs.pl @@ -27,8 +27,9 @@ my $func; while ($line=) { - if ($line !~ m/typedef/ && $line !~ m/Copyright/) { + if ($line !~ m/typedef/ && $line !~ m/Copyright/ && $line !~ m/doc-skip/) { $func = ''; + if ($line =~ m/^\s*\w+[\s\*]+([A-Za-z0-9_]+)\s*\([^\)]+/) { $func = $1; } diff --git a/lib/includes/gnutls/compat.h b/lib/includes/gnutls/compat.h index 5c3f797ad5..29bff39cb0 100644 --- a/lib/includes/gnutls/compat.h +++ b/lib/includes/gnutls/compat.h @@ -317,14 +317,14 @@ gnutls_sign_callback_get (gnutls_session_t session, void **userdata) static inline const void *gnutls_session_get_server_random (gnutls_session_t session) _GNUTLS_GCC_ATTR_DEPRECATED { gnutls_datum_t rnd; - gnutls_session_get_random(session, NULL, &rnd); + gnutls_session_get_random(session, NULL, &rnd);/*doc-skip*/ return rnd.data; } static inline const void *gnutls_session_get_client_random (gnutls_session_t session) _GNUTLS_GCC_ATTR_DEPRECATED { gnutls_datum_t rnd; - gnutls_session_get_random(session, &rnd, NULL); + gnutls_session_get_random(session, &rnd, NULL);/*doc-skip*/ return rnd.data; } #endif