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.
This commit is contained in:
Ryan Lortie 2015-03-12 17:24:05 -04:00
parent bf19b8e6c3
commit 6fffce2588
2 changed files with 4 additions and 1 deletions

View File

@ -365,6 +365,7 @@ G_INLINE_FUNC
<SUBSECTION> <SUBSECTION>
g_auto g_auto
g_autoptr g_autoptr
g_autofree
G_DEFINE_AUTOPTR_CLEANUP_FUNC G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC
G_DEFINE_AUTO_CLEANUP_FREE_FUNC G_DEFINE_AUTO_CLEANUP_FREE_FUNC
@ -442,6 +443,7 @@ GLIB_DEPRECATED_FOR
GLIB_UNAVAILABLE GLIB_UNAVAILABLE
G_ANALYZER_ANALYZING G_ANALYZER_ANALYZING
G_ANALYZER_NORETURN G_ANALYZER_NORETURN
g_autoptr_cleanup_generic_gfree
</SECTION> </SECTION>
<SECTION> <SECTION>
@ -996,6 +998,7 @@ g_try_realloc_n
<SUBSECTION> <SUBSECTION>
g_free g_free
g_clear_pointer g_clear_pointer
g_steal_pointer
g_mem_gc_friendly g_mem_gc_friendly
<SUBSECTION> <SUBSECTION>

View File

@ -181,7 +181,7 @@ gpointer g_try_realloc_n (gpointer mem,
* Since: 2.44 * Since: 2.44
*/ */
static inline gpointer static inline gpointer
(g_steal_pointer) (gpointer pp) g_steal_pointer (gpointer pp)
{ {
gpointer *ptr = (gpointer *) pp; gpointer *ptr = (gpointer *) pp;
gpointer ref; gpointer ref;