Lines Matching refs:compar
53 int nghttp2_ksl_init(nghttp2_ksl *ksl, nghttp2_ksl_compar compar, size_t keylen, in nghttp2_ksl_init() argument
64 ksl->compar = compar; in nghttp2_ksl_init()
246 nghttp2_ksl_compar compar) { in ksl_bsearch() argument
253 if (compar((nghttp2_ksl_key *)node->key, key)) { in ksl_bsearch()
279 i = ksl_bsearch(ksl, blk, key, ksl->compar); in nghttp2_ksl_insert()
283 !ksl->compar(key, nghttp2_ksl_nth_node(ksl, blk, i)->key)) { in nghttp2_ksl_insert()
326 if (ksl->compar((nghttp2_ksl_key *)node->key, key)) { in nghttp2_ksl_insert()
328 if (ksl->compar((nghttp2_ksl_key *)node->key, key)) { in nghttp2_ksl_insert()
456 static int key_equal(nghttp2_ksl_compar compar, const nghttp2_ksl_key *lhs, in key_equal() argument
458 return !compar(lhs, rhs) && !compar(rhs, lhs); in key_equal()
474 i = ksl_bsearch(ksl, blk, key, ksl->compar); in nghttp2_ksl_remove()
484 if (ksl->compar(key, nghttp2_ksl_nth_node(ksl, blk, i)->key)) { in nghttp2_ksl_remove()
533 i = ksl_bsearch(ksl, blk, key, ksl->compar); in nghttp2_ksl_lower_bound()
564 nghttp2_ksl_compar compar) { in nghttp2_ksl_lower_bound_compar() argument
570 i = ksl_bsearch(ksl, blk, key, compar); in nghttp2_ksl_lower_bound_compar()
606 i = ksl_bsearch(ksl, blk, old_key, ksl->compar); in nghttp2_ksl_update_key()
612 assert(key_equal(ksl->compar, (nghttp2_ksl_key *)node->key, old_key)); in nghttp2_ksl_update_key()
617 if (key_equal(ksl->compar, (nghttp2_ksl_key *)node->key, old_key) || in nghttp2_ksl_update_key()
618 ksl->compar((nghttp2_ksl_key *)node->key, new_key)) { in nghttp2_ksl_update_key()