Lines Matching refs:compar
57 void nghttp3_ksl_init(nghttp3_ksl *ksl, nghttp3_ksl_compar compar,
67 ksl->compar = compar;
272 nghttp3_ksl_compar compar) {
277 i < blk->n && compar((nghttp3_ksl_key *)node->key, key);
309 i = ksl_bsearch(ksl, blk, key, ksl->compar);
313 !ksl->compar(key, nghttp3_ksl_nth_node(ksl, blk, i)->key)) {
356 if (ksl->compar((nghttp3_ksl_key *)node->key, key)) {
358 if (ksl->compar((nghttp3_ksl_key *)node->key, key)) {
501 * function |compar|.
503 static int key_equal(nghttp3_ksl_compar compar, const nghttp3_ksl_key *lhs,
505 return !compar(lhs, rhs) && !compar(rhs, lhs);
551 i = ksl_bsearch(ksl, blk, key, ksl->compar);
561 if (ksl->compar(key, nghttp3_ksl_nth_node(ksl, blk, i)->key)) {
625 i = ksl_bsearch(ksl, blk, key, ksl->compar);
656 nghttp3_ksl_compar compar) {
667 i = ksl_bsearch(ksl, blk, key, compar);
705 i = ksl_bsearch(ksl, blk, old_key, ksl->compar);
711 assert(key_equal(ksl->compar, (nghttp3_ksl_key *)node->key, old_key));
716 if (key_equal(ksl->compar, (nghttp3_ksl_key *)node->key, old_key) ||
717 ksl->compar((nghttp3_ksl_key *)node->key, new_key)) {