]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Added doc-skip to skip certain functions from documentation.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 21 Mar 2012 17:32:22 +0000 (18:32 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 21 Mar 2012 17:32:22 +0000 (18:32 +0100)
doc/scripts/getfuncs.pl
lib/includes/gnutls/compat.h

index 59763f33a61d3ada9beb6d39019d8f92976062b0..383924045f8848855102c3b05933fa7a52e6774a 100755 (executable)
@@ -27,8 +27,9 @@ my $func;
 
 while ($line=<STDIN>) {
 
-  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;
     }
index 5c3f797ad50a4ba46a3a2b34109679e869024072..29bff39cb088f507327a47c922febce6a086c2ca 100644 (file)
@@ -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