gtk.cfg: Add/fix some g_slist_*() functions
Reference: https://developer.gnome.org/glib/stable/glib-Singly-Linked-Lists.html https://github.com/GNOME/glib/blob/master/glib/gslist.h
This commit is contained in:
parent
f9d29a4ab9
commit
89e0911c9c
69
cfg/gtk.cfg
69
cfg/gtk.cfg
|
@ -127,6 +127,7 @@
|
|||
<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_]"/>
|
||||
<define name="g_slist_next(slist)" value="((slist) ? (((GSList *)(slist))->next) : NULL)"/>
|
||||
<memory>
|
||||
<alloc init="true">g_thread_new</alloc>
|
||||
<alloc init="true">g_thread_try_new</alloc>
|
||||
|
@ -953,6 +954,39 @@
|
|||
<function name="g_slist_append">
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
<!-- GSList * g_slist_copy (GSList *list); -->
|
||||
<function name="g_slist_copy">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="GSList *"/>
|
||||
<use-retval/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void g_slist_free (GSList *list); -->
|
||||
<function name="g_slist_free">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1">
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void g_slist_free_full (GSList *list, GDestroyNotify free_func); -->
|
||||
<function name="g_slist_free_full">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1"/>
|
||||
<arg nr="2"/>
|
||||
</function>
|
||||
<!-- void g_slist_free_1 (GSList *list); -->
|
||||
<function name="g_slist_free_1">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1">
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<function name="g_slist_insert_before">
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
|
@ -965,8 +999,15 @@
|
|||
<function name="g_slist_insert_sorted_with_data">
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
<!-- GSList * g_slist_prepend (GSList *list, gpointer data); -->
|
||||
<function name="g_slist_prepend">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="GSList *"/>
|
||||
<use-retval/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2"/>
|
||||
</function>
|
||||
<!-- void gtk_list_store_set (GtkListStore *list_store,
|
||||
GtkTreeIter *iter,
|
||||
|
@ -1499,21 +1540,49 @@
|
|||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
<!-- void g_slist_foreach (GSList *list, GFunc func, gpointer user_data); -->
|
||||
<function name="g_slist_foreach">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2"/>
|
||||
<arg nr="3"/>
|
||||
</function>
|
||||
<!-- gint g_slist_index (GSList *list, gconstpointer data); -->
|
||||
<function name="g_slist_index">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="gint"/>
|
||||
<use-retval/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2" direction="in">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- GSList * g_slist_last (GSList *list); -->
|
||||
<function name="g_slist_last">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="GSList *"/>
|
||||
<use-retval/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- guint g_slist_length (GSList *list); -->
|
||||
<function name="g_slist_length">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="guint"/>
|
||||
<use-retval/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<function name="g_slist_nth">
|
||||
<leak-ignore/>
|
||||
|
|
Loading…
Reference in New Issue