From 6fffce2588b19e5c80915cc9f713fc51d6dd3879 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 12 Mar 2015 17:24:05 -0400 Subject: [PATCH] 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 deletion(-) diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index af8a2458f..5fb0923e9 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -365,6 +365,7 @@ G_INLINE_FUNC 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
@@ -996,6 +998,7 @@ g_try_realloc_n g_free g_clear_pointer +g_steal_pointer g_mem_gc_friendly diff --git a/glib/gmem.h b/glib/gmem.h index b28604756..10fee07c7 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;