/dports/irc/ninja/ninja-1.5.8.1/source/ |
H A D | list.c | 95 add_to_list_ext(list, add, cmp_func) in add_to_list_ext() argument 98 int (*cmp_func) _((List *, List *)); 103 if (!cmp_func) 104 cmp_func = add_list_strcmp; 109 && cmp_func(tmp, add) > 0) 140 int (*cmp_func) _((List *, u_char *)); 146 if (!cmp_func) 167 if (cmp_func(tmp, name) == 0) 196 if (!cmp_func) 197 cmp_func = list_strcmp; [all …]
|
/dports/irc/scrollz/ScrollZ-ScrollZ-2.3/source/ |
H A D | list.c | 100 add_to_list_ext(list, add, cmp_func) in add_to_list_ext() argument 103 int (*cmp_func) _((List *, List *)); 108 if (!cmp_func) 109 cmp_func = add_list_strcmp; 113 if (cmp_func(tmp, add) > 0) 144 int (*cmp_func) _((List *, char *)); 150 if (!cmp_func) 171 if (cmp_func(tmp, name) == 0) 200 if (!cmp_func) 201 cmp_func = list_strcmp; [all …]
|
/dports/irc/ircII/ircii-20210314/source/ |
H A D | list.c | 95 if (!cmp_func) in add_to_list_ext() 96 cmp_func = add_list_strcmp; in add_to_list_ext() 100 if (cmp_func(tmp, add) > 0) in add_to_list_ext() 131 if (!cmp_func) in find_in_list_ext() 132 cmp_func = wild ? list_match : list_strcmp; in find_in_list_ext() 152 if (cmp_func(tmp, name) == 0) in find_in_list_ext() 175 if (!cmp_func) in remove_from_list_ext() 176 cmp_func = list_strcmp; in remove_from_list_ext() 180 if (cmp_func(tmp, name) == 0) in remove_from_list_ext() 211 tmp = remove_from_list_ext(list, name, cmp_func); in list_lookup_ext() [all …]
|
/dports/devel/efl/efl-1.25.1/src/examples/eina/ |
H A D | eina_list_02.c | 17 Eina_Compare_Cb cmp_func = (Eina_Compare_Cb)strcmp; in main() local 25 data = eina_list_search_unsorted(list, cmp_func, "boomer"); in main() 26 l = eina_list_search_unsorted_list(list, cmp_func, "boomer"); in main() 30 list = eina_list_sort(list, 0, cmp_func); in main() 32 data = eina_list_search_sorted(list, cmp_func, "starbuck"); in main() 33 l = eina_list_search_sorted_list(list, cmp_func, "starbuck"); in main() 37 list = eina_list_sorted_insert(list, cmp_func, "helo"); in main() 39 l = eina_list_search_sorted_near_list(list, cmp_func, "hera", &cmp_result); in main() 45 l = eina_list_search_sorted_list(list, cmp_func, "boomer"); in main() 48 other_list = eina_list_sort(other_list, 0, cmp_func); in main() [all …]
|
/dports/chinese/bitchx/bitchx-1.2.1/source/ |
H A D | list.c | 100 if (!cmp_func) in BX_add_to_list_ext() 101 cmp_func = add_list_stricmp; in BX_add_to_list_ext() 105 if (cmp_func(tmp, add) > 0) in BX_add_to_list_ext() 134 if (!cmp_func) in BX_find_in_list_ext() 135 cmp_func = wild ? list_match : list_stricmp; in BX_find_in_list_ext() 155 if (cmp_func(tmp, name) == 0) in BX_find_in_list_ext() 176 if (!cmp_func) in BX_remove_from_list_ext() 177 cmp_func = list_stricmp; in BX_remove_from_list_ext() 181 if (!cmp_func(tmp, name)) in BX_remove_from_list_ext() 215 tmp = remove_from_list_ext(list, name, cmp_func); in BX_list_lookup_ext() [all …]
|
/dports/irc/bitchx/bitchx-1.2.1/source/ |
H A D | list.c | 100 if (!cmp_func) in BX_add_to_list_ext() 101 cmp_func = add_list_stricmp; in BX_add_to_list_ext() 105 if (cmp_func(tmp, add) > 0) in BX_add_to_list_ext() 134 if (!cmp_func) in BX_find_in_list_ext() 135 cmp_func = wild ? list_match : list_stricmp; in BX_find_in_list_ext() 155 if (cmp_func(tmp, name) == 0) in BX_find_in_list_ext() 176 if (!cmp_func) in BX_remove_from_list_ext() 177 cmp_func = list_stricmp; in BX_remove_from_list_ext() 181 if (!cmp_func(tmp, name)) in BX_remove_from_list_ext() 215 tmp = remove_from_list_ext(list, name, cmp_func); in BX_list_lookup_ext() [all …]
|
/dports/lang/seed7/seed7/src/ |
H A D | hsh_rtl.h | 34 compareType cmp_func); 47 intType hashcode, compareType cmp_func, 51 compareType cmp_func); 54 intType hashcode, compareType cmp_func); 57 intType hashcode, compareType cmp_func); 65 intType hashcode, compareType cmp_func); 68 intType hashcode, compareType cmp_func); 71 compareType cmp_func, const createFuncType key_create_func, 80 compareType cmp_func, const createFuncType key_create_func,
|
H A D | hshlib.c | 565 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_contains_element() 597 objectType cmp_func; in hsh_contains() local 615 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_contains() 836 objectType cmp_func; in hsh_excl() local 862 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_excl() 1012 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_idx() 1101 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_idx2() 1197 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_idx2() 1299 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_incl() 1460 cmp_obj = param3_call(cmp_func, &hashelem->key, aKey, cmp_func); in hsh_refidx() [all …]
|
/dports/biology/rainbow/rainbow_2.0.4/ |
H A D | sort.h | 29 #define define_bubble_sort(name, e_type, cmp_func) \ argument 37 if(cmp_func(list[j-1], list[j], ref) > 0){ \ 114 #define define_quick_sort(name, e_type, cmp_func) \ argument 125 if(cmp_func(rs[m], rs[e], obj) > 0){ \ 132 while(cmp_func(rs[i], p, obj) < 0) i ++; \ 133 while(cmp_func(p, rs[j], obj) < 0) j --; \ 158 if(cmp_func(list1[i], list2[j], ref) != 1){ \ 187 } else if(cmp_func(es[i], es[min], ref) != 1){ \ 207 switch(cmp_func(list1[i], list2[j])){ \ 241 #define define_search_array(name, e_type, cmp_func) \ argument [all …]
|
/dports/www/c-icap/c_icap-0.5.10/ |
H A D | array.c | 523 list->cmp_func = NULL; in ci_list_create() 537 list->cmp_func = cmp_func; in ci_list_cmp_handler() 694 if (list->cmp_func) in ci_list_remove() 695 cmp_func = list->cmp_func; in ci_list_remove() 697 cmp_func = default_cmp; in ci_list_remove() 727 if (list->cmp_func) in ci_list_search() 728 cmp_func = list->cmp_func; in ci_list_search() 730 cmp_func = default_cmp; in ci_list_search() 755 if (list->cmp_func) in ci_list_sort() 756 cmp_func = list->cmp_func; in ci_list_sort() [all …]
|
/dports/devel/libds/libds-2.2/ |
H A D | heap.c | 204 HeapInternCmp cmp_func; in heap_heapify() local 213 cmp_func = heap_larger; in heap_heapify() 215 cmp_func = heap_smaller; in heap_heapify() 241 HeapInternCmp cmp_func; in heap_delete() local 251 cmp_func = heap_larger; in heap_delete() 253 cmp_func = heap_smaller; in heap_delete() 435 HeapInternCmp cmp_func; in heapInsert() local 444 cmp_func = heap_larger; in heapInsert() 592 HeapInternCmp cmp_func; in check_values() local 598 cmp_func = heap_larger; in check_values() [all …]
|
/dports/databases/pgbouncer/pgbouncer-1.16.0/lib/usual/ |
H A D | list.c | 22 static struct List *merge(list_cmp_f cmp_func, struct List *p, struct List *q) in merge() argument 27 if (cmp_func(p, q) <= 0) { in merge() 46 void list_sort(struct List *list, list_cmp_f cmp_func) in list_sort() argument 62 p = merge(cmp_func, stack[i], p); in list_sort() 73 p = merge(cmp_func, stack[i], p); in list_sort()
|
/dports/audio/zrythm/zrythm-1.0.0-alpha.26.0.13/src/utils/ |
H A D | algorithms.c | 40 GenericCmpFunc cmp_func, 75 if (cmp_func (pivot, key) == 0) 100 cmp_func (pivot_succ, key) <= 0; 103 cmp_func (pivot, key) <= 0;
|
/dports/math/R-cran-xts/xts/src/ |
H A D | binsearch.c | 84 bound_comparer cmp_func = NULL; in binsearch() local 91 cmp_func = (use_start) ? cmp_dbl_lower : cmp_dbl_upper; in binsearch() 99 cmp_func = (use_start) ? cmp_int_lower : cmp_int_upper; in binsearch() 114 if (cmp_func(data, mid)) { in binsearch() 129 if (!cmp_func(data, length(vec)-1)) { in binsearch() 137 if (cmp_func(data, lo)) { in binsearch()
|
/dports/devel/glib20/glib-2.70.4/glib/ |
H A D | gsequence.h | 56 GCompareDataFunc cmp_func, 60 GSequenceIterCompareFunc cmp_func, 92 GCompareDataFunc cmp_func, 101 GCompareDataFunc cmp_func, 119 GCompareDataFunc cmp_func, 129 GCompareDataFunc cmp_func,
|
H A D | gsequence.c | 219 GCompareDataFunc cmp_func; member 689 GCompareDataFunc cmp_func, in g_sequence_sort() argument 694 info.cmp_func = cmp_func; in g_sequence_sort() 738 info.cmp_func = cmp_func; in g_sequence_insert_sorted() 779 info.cmp_func = cmp_func; in g_sequence_sort_changed() 815 GCompareDataFunc cmp_func, in g_sequence_search() argument 822 info.cmp_func = cmp_func; in g_sequence_search() 860 GCompareDataFunc cmp_func, in g_sequence_lookup() argument 867 info.cmp_func = cmp_func; in g_sequence_lookup() 900 g_return_if_fail (cmp_func != NULL); in g_sequence_sort_iter() [all …]
|
/dports/multimedia/vcdimager/vcdimager-2.0.1/lib/ |
H A D | data_structures.c | 57 _bubble_sort_iteration (CdioList_t *p_list, _cdio_list_cmp_func_t cmp_func) in _bubble_sort_iteration() argument 68 if (cmp_func (p_node->data, p_node->next->data) <= 0) in _bubble_sort_iteration() 85 void _vcd_list_sort (CdioList_t *list, _cdio_list_cmp_func_t cmp_func) in _vcd_list_sort() argument 90 vcd_assert (cmp_func != 0); in _vcd_list_sort() 92 while (_bubble_sort_iteration (list, cmp_func)); in _vcd_list_sort() 257 _vcd_tree_node_cmp_func cmp_func) in _vcd_tree_node_sort_children() argument 262 _vcd_list_sort (p_node->children, (_cdio_list_cmp_func_t) cmp_func); in _vcd_tree_node_sort_children()
|
/dports/devel/cutter/cutter-1.2.6/glib-compatible/ |
H A D | gsequence.h | 46 GCompareDataFunc cmp_func, 49 GSequenceIterCompareFunc cmp_func, 70 GCompareDataFunc cmp_func, 77 GCompareDataFunc cmp_func, 90 GCompareDataFunc cmp_func,
|
/dports/net-mgmt/statsite/statsite-0.8.0/src/ |
H A D | heap.c | 199 int (*cmp_func)(void*,void*) = h->compare_func; in heap_insert() local 221 if (cmp_func(key, parent->key) < 0) { in heap_insert() 279 int (*cmp_func)(void*,void*) = h->compare_func; in heap_delmin() local 294 if (cmp_func(left_child->key, right_child->key) <= 0) { in heap_delmin() 297 if (cmp_func(current->key, left_child->key) == 1) { in heap_delmin() 310 if (cmp_func(current->key, right_child->key) == 1) { in heap_delmin() 323 } else if (cmp_func(current->key, left_child->key) == 1) { in heap_delmin()
|
/dports/textproc/libstree/libstree-0.4.2/src/ |
H A D | lst_string.c | 269 return !(s1->sclass->cmp_func(lst_string_get_item(s1, item1), in lst_string_eq() 382 lst_stringclass_new(LST_StringItemCmpFunc cmp_func, in lst_stringclass_new() argument 392 sclass->cmp_func = cmp_func ? cmp_func : (LST_StringItemCmpFunc) string_byte_cmp_func; in lst_stringclass_new() 409 lst_stringclass_set_defaults(LST_StringItemCmpFunc cmp_func, in lst_stringclass_set_defaults() argument 413 byte_class.cmp_func = cmp_func ? cmp_func : (LST_StringItemCmpFunc) string_byte_cmp_func; in lst_stringclass_set_defaults()
|
/dports/misc/mc-nox11/mc-4.8.27/src/viewer/ |
H A D | coord_cache.c | 144 mcview_ccache_find (WView * view, const coord_cache_entry_t * coord, cmp_func_t cmp_func) in mcview_ccache_find() argument 156 if (cmp_func (coord, view->coord_cache->cache[i])) in mcview_ccache_find() 288 cmp_func_t cmp_func; in mcview_ccache_lookup() local 314 cmp_func = mcview_coord_cache_entry_less_offset; in mcview_ccache_lookup() 316 cmp_func = mcview_coord_cache_entry_less_nroff; in mcview_ccache_lookup() 318 cmp_func = mcview_coord_cache_entry_less_plain; in mcview_ccache_lookup() 325 i = mcview_ccache_find (view, coord, cmp_func); in mcview_ccache_lookup() 343 if (!cmp_func (¤t, coord)) in mcview_ccache_lookup()
|
/dports/misc/mc/mc-4.8.27/src/viewer/ |
H A D | coord_cache.c | 144 mcview_ccache_find (WView * view, const coord_cache_entry_t * coord, cmp_func_t cmp_func) in mcview_ccache_find() argument 156 if (cmp_func (coord, view->coord_cache->cache[i])) in mcview_ccache_find() 288 cmp_func_t cmp_func; in mcview_ccache_lookup() local 314 cmp_func = mcview_coord_cache_entry_less_offset; in mcview_ccache_lookup() 316 cmp_func = mcview_coord_cache_entry_less_nroff; in mcview_ccache_lookup() 318 cmp_func = mcview_coord_cache_entry_less_plain; in mcview_ccache_lookup() 325 i = mcview_ccache_find (view, coord, cmp_func); in mcview_ccache_lookup() 343 if (!cmp_func (¤t, coord)) in mcview_ccache_lookup()
|
/dports/irc/epic4/epic4-2.10.9/source/ |
H A D | list.c | 99 int (*cmp_func) (List *, const char *); in find_in_list() local 101 cmp_func = wild ? list_match : list_strcmp; in find_in_list() 108 if ((current_match = cmp_func(tmp, name)) > best_match) in find_in_list() 116 if (cmp_func(tmp, name) == 0) in find_in_list()
|
/dports/editors/abiword/abiword-3.0.5/goffice-bits2/goffice/utils/ |
H A D | go-glib-extras.h | 44 #define GO_SLIST_SORT(list,cmp_func) \ argument 45 (list = g_slist_sort (list, cmp_func)) 47 gint go_list_index_custom (GList *list, gpointer data, GCompareFunc cmp_func); 68 #define GO_LIST_SORT(list,cmp_func) \ argument 69 (list = g_list_sort (list, cmp_func))
|
/dports/security/libressl-static/libressl-3.3.5/crypto/objects/ |
H A D | o_names.c | 22 int (*cmp_func)(const char *a, const char *b); 53 int (*cmp_func)(const char *, const char *), 74 name_funcs->cmp_func = strcmp; 85 if (cmp_func != NULL) 86 name_funcs->cmp_func = cmp_func; 105 a->type)->cmp_func(a->name, b->name);
|