mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
parent
bf19b8e6c3
commit
6fffce2588
@ -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>
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user