[glib] docs: clean up a few glib issues



commit 6fffce2588b19e5c80915cc9f713fc51d6dd3879
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Mar 12 17:24:05 2015 -0400

    docs: clean up a few glib issues
    
    Fix a few typical problems, and also stop wrapping the inline definition
    of g_steal_pointer in parens, since it is not necessary and it confuses
    gtk-doc.

 docs/reference/glib/glib-sections.txt |    3 +++
 glib/gmem.h                           |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt
index af8a245..5fb0923 100644
--- a/docs/reference/glib/glib-sections.txt
+++ b/docs/reference/glib/glib-sections.txt
@@ -365,6 +365,7 @@ G_INLINE_FUNC
 <SUBSECTION>
 g_auto
 g_autoptr
+g_autofree
 G_DEFINE_AUTOPTR_CLEANUP_FUNC
 G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC
 G_DEFINE_AUTO_CLEANUP_FREE_FUNC
@@ -442,6 +443,7 @@ GLIB_DEPRECATED_FOR
 GLIB_UNAVAILABLE
 G_ANALYZER_ANALYZING
 G_ANALYZER_NORETURN
+g_autoptr_cleanup_generic_gfree
 </SECTION>
 
 <SECTION>
@@ -996,6 +998,7 @@ g_try_realloc_n
 <SUBSECTION>
 g_free
 g_clear_pointer
+g_steal_pointer
 g_mem_gc_friendly
 
 <SUBSECTION>
diff --git a/glib/gmem.h b/glib/gmem.h
index b286047..10fee07 100644
--- a/glib/gmem.h
+++ b/glib/gmem.h
@@ -181,7 +181,7 @@ gpointer g_try_realloc_n  (gpointer  mem,
  * Since: 2.44
  */
 static inline gpointer
-(g_steal_pointer) (gpointer pp)
+g_steal_pointer (gpointer pp)
 {
   gpointer *ptr = (gpointer *) pp;
   gpointer ref;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]