[glib/wip/xclaesse/doc-part1: 106/107] Doc: Fix missing g_steal_pointer()
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/xclaesse/doc-part1: 106/107] Doc: Fix missing g_steal_pointer()
- Date: Thu, 12 Mar 2015 17:21:31 +0000 (UTC)
commit 80256c84472ac2446ca709056f7e6cbe8dd598ea
Author: Xavier Claessens <xavier claessens collabora com>
Date: Fri Feb 6 11:52:37 2015 -0500
Doc: Fix missing g_steal_pointer()
docs/reference/glib/glib-sections.txt | 1 +
glib/gmem.h | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt
index 45827d6..7e3b6bd 100644
--- a/docs/reference/glib/glib-sections.txt
+++ b/docs/reference/glib/glib-sections.txt
@@ -996,6 +996,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..fccbaf0 100644
--- a/glib/gmem.h
+++ b/glib/gmem.h
@@ -183,6 +183,7 @@ gpointer g_try_realloc_n (gpointer mem,
static inline gpointer
(g_steal_pointer) (gpointer pp)
{
+#ifndef __GTK_DOC_IGNORE__
gpointer *ptr = (gpointer *) pp;
gpointer ref;
@@ -190,6 +191,7 @@ static inline gpointer
*ptr = NULL;
return ref;
+#endif
}
/* type safety */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]