gtk.cfg: Add some macros and functions reported as missing by daca@home (#2005)
This commit is contained in:
parent
2ae5ac7dc2
commit
820ffdeee8
34
cfg/gtk.cfg
34
cfg/gtk.cfg
|
@ -114,6 +114,12 @@
|
|||
<!-- https://github.com/GNOME/glib/blob/master/glib/glist.h -->
|
||||
<define name="g_list_previous(list)" value="((list) ? (((GList *)(list))->prev) : NULL)"/>
|
||||
<define name="g_list_next(list)" value="((list) ? (((GList *)(list))->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, &(v), 1)"/>
|
||||
<define name="g_array_prepend_val(a,v)" value="g_array_prepend_vals (a, &(v), 1)"/>
|
||||
<define name="g_array_insert_val(a,i,v)" value="g_array_insert_vals (a, i, &(v), 1)"/>
|
||||
<define name="g_array_index(a,t,i)" value="(((t*) (void *) (a)->data) [(i)])"/>
|
||||
<define name="g_ptr_array_index(array,index_)" value="((array)->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>
|
||||
|
|
Loading…
Reference in New Issue