gtk.cfg: Add some g_list_*() function / macro configurations.
Found missing by daca@home.
This commit is contained in:
parent
b2e3af5869
commit
206488c0ea
69
cfg/gtk.cfg
69
cfg/gtk.cfg
|
@ -115,6 +115,9 @@
|
|||
<!-- https://github.com/GNOME/glib/blob/master/glib/galloca.h -->
|
||||
<define name="g_alloca(size)" value="alloca (size)"/>
|
||||
<define name="g_newa(struct_type, n_structs)" value="((struct_type*) g_alloca (sizeof (struct_type) * (gsize) (n_structs)))"/>
|
||||
<!-- 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)"/>
|
||||
<memory>
|
||||
<alloc init="true">g_thread_new</alloc>
|
||||
<alloc init="true">g_thread_try_new</alloc>
|
||||
|
@ -809,8 +812,57 @@
|
|||
<function name="g_hash_table_replace">
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
<!-- GList * g_list_append (GList *list, gpointer data); -->
|
||||
<function name="g_list_append">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="GList *"/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- GList * g_list_first (GList *list); -->
|
||||
<function name="g_list_first">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="GList *"/>
|
||||
<use-retval/>
|
||||
<leak-ignore/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void g_list_free (GList *list); -->
|
||||
<function name="g_list_free">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void g_list_free_1 (GList *list); -->
|
||||
<function name="g_list_free_1">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void g_list_free_full (GList *list, GDestroyNotify free_func); -->
|
||||
<function name="g_list_free_full">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<function name="g_list_insert_before">
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -1226,6 +1278,16 @@
|
|||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
<!-- GList * g_list_copy (GList *list); -->
|
||||
<function name="g_list_copy">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="GList *"/>
|
||||
<use-retval/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<function name="g_list_delete_link">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -1254,9 +1316,16 @@
|
|||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
<!-- guint g_list_length (GList *list); -->
|
||||
<function name="g_list_length">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="guint"/>
|
||||
<use-retval/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<function name="g_list_nth">
|
||||
<leak-ignore/>
|
||||
|
|
Loading…
Reference in New Issue