gtk.cfg: Add some macros and functions reported as missing by daca@home (#2005)

This commit is contained in:
Sebastian 2019-07-16 13:42:01 +02:00 committed by GitHub
parent 2ae5ac7dc2
commit 820ffdeee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -114,6 +114,12 @@
<!-- https://github.com/GNOME/glib/blob/master/glib/glist.h -->
<define name="g_list_previous(list)" value="((list) ? (((GList *)(list))-&gt;prev) : NULL)"/>
<define name="g_list_next(list)" value="((list) ? (((GList *)(list))-&gt;next) : NULL)"/>
<!-- https://github.com/GNOME/glib/blob/master/glib/garray.h -->
<define name="g_array_append_val(a,v)" value="g_array_append_vals (a, &amp;(v), 1)"/>
<define name="g_array_prepend_val(a,v)" value="g_array_prepend_vals (a, &amp;(v), 1)"/>
<define name="g_array_insert_val(a,i,v)" value="g_array_insert_vals (a, i, &amp;(v), 1)"/>
<define name="g_array_index(a,t,i)" value="(((t*) (void *) (a)-&gt;data) [(i)])"/>
<define name="g_ptr_array_index(array,index_)" value="((array)-&gt;pdata)[index_]"/>
<memory>
<alloc init="true">g_thread_new</alloc>
<alloc init="true">g_thread_try_new</alloc>
@ -4174,6 +4180,18 @@
<leak-ignore/>
<noreturn>false</noreturn>
</function>
<!-- gchar * g_build_filename (const gchar *first_element, ...); -->
<function name="g_build_filename">
<noreturn>false</noreturn>
<returnValue type="gchar *"/>
<arg nr="1" direction="in">
<not-uninit/>
<strz/>
</arg>
<arg nr="variadic" direction="in">
<not-uninit/>
</arg>
</function>
<function name="g_bytes_compare">
<leak-ignore/>
<noreturn>false</noreturn>
@ -5713,6 +5731,14 @@
<leak-ignore/>
<noreturn>false</noreturn>
</function>
<!-- void g_strfreev (gchar **str_array); -->
<function name="g_strfreev">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- GString * g_string_append (GString *string, const gchar *val); -->
<function name="g_string_append">
<leak-ignore/>
@ -6141,6 +6167,14 @@
<arg nr="1" direction="in"/>
<arg nr="2" direction="in"/>
</function>
<!-- GLIB_AVAILABLE_IN_ALL gpointer g_type_instance_get_private (GTypeInstance *instance, GType private_type); -->
<function name="g_type_instance_get_private">
<noreturn>false</noreturn>
<returnValue type="gpointer"/>
<use-retval/>
<arg nr="1"/>
<arg nr="2"/>
</function>
<!-- GLIB_AVAILABLE_IN_ALL gboolean g_type_test_flags (GType type, guint flags) G_GNUC_CONST; -->
<function name="g_type_test_flags">
<noreturn>false</noreturn>