• Home
  • Raw
  • Download

Lines Matching refs:bv

51   binn *bv = &jbl->bn;  in jbl_set_int64()  local
54 if (!binn_object_set_int64(bv, key, v)) { in jbl_set_int64()
62 if (!binn_list_add_int64(bv, v)) { in jbl_set_int64()
75 binn *bv = &jbl->bn; in jbl_set_f64() local
78 if (!binn_object_set_double(bv, key, v)) { in jbl_set_f64()
86 if (!binn_list_add_double(bv, v)) { in jbl_set_f64()
99 binn *bv = &jbl->bn; in jbl_set_string() local
102 if (!binn_object_set_str(bv, key, v)) { in jbl_set_string()
110 if (!binn_list_add_const_str(bv, v)) { in jbl_set_string()
197 binn *bv = &jbl->bn; in jbl_set_bool() local
200 if (!binn_object_set_bool(bv, key, v)) { in jbl_set_bool()
208 if (!binn_list_add_bool(bv, v)) { in jbl_set_bool()
221 binn *bv = &jbl->bn; in jbl_set_null() local
224 if (!binn_object_set_null(bv, key)) { in jbl_set_null()
232 if (!binn_list_add_null(bv)) { in jbl_set_null()
265 binn *bv = &jbl->bn; in jbl_set_nested() local
268 if (!binn_object_set_value(bv, key, &v->bn)) { in jbl_set_nested()
276 if (!binn_list_add_value(bv, &v->bn)) { in jbl_set_nested()
603 binn bv; in _jbl_as_json() local
627 for (int i = 0; binn_list_next(&iter, &bv); ++i) { in _jbl_as_json()
631 rc = _jbl_as_json(&bv, pt, op, lvl + 1, pf); in _jbl_as_json()
657 for (int i = 0; binn_object_next(&iter, key, &bv); ++i) { in _jbl_as_json()
668 rc = _jbl_as_json(&bv, pt, op, lvl + 1, pf); in _jbl_as_json()
678 for (int i = 0; binn_map_next(&iter, &lv, &bv); ++i) { in _jbl_as_json()
691 rc = _jbl_as_json(&bv, pt, op, lvl + 1, pf); in _jbl_as_json()
937 binn bv; in jbl_object_get_type() local
938 if (!binn_object_get_value(&jbl->bn, key, &bv)) { in jbl_object_get_type()
941 return _jbl_binn_type(bv.type); in jbl_object_get_type()
1119 binn bv; in _jbl_visit() local
1139 while (!vctx->terminate && binn_object_next(iter, key, &bv)) { in _jbl_visit()
1140 cmd = visitor(lvl, &bv, key, -1, vctx, &rc); in _jbl_visit()
1146 if (!(cmd & JBL_VCMD_SKIP_NESTED) && BINN_IS_CONTAINER_TYPE(bv.type)) { in _jbl_visit()
1148 if (!binn_iter_init(&it, &bv, bv.type)) { in _jbl_visit()
1158 while (!vctx->terminate && binn_map_next(iter, &idx, &bv)) { in _jbl_visit()
1159 cmd = visitor(lvl, &bv, 0, idx, vctx, &rc); in _jbl_visit()
1165 if (!(cmd & JBL_VCMD_SKIP_NESTED) && BINN_IS_CONTAINER_TYPE(bv.type)) { in _jbl_visit()
1167 if (!binn_iter_init(&it, &bv, bv.type)) { in _jbl_visit()
1177 for (idx = 0; !vctx->terminate && binn_list_next(iter, &bv); ++idx) { in _jbl_visit()
1178 cmd = visitor(lvl, &bv, 0, idx, vctx, &rc); in _jbl_visit()
1184 if (!(cmd & JBL_VCMD_SKIP_NESTED) && BINN_IS_CONTAINER_TYPE(bv.type)) { in _jbl_visit()
1186 if (!binn_iter_init(&it, &bv, bv.type)) { in _jbl_visit()
1293 static jbl_visitor_cmd_t _jbl_get_visitor2(int lvl, binn *bv, const char *key, int idx, JBL_VCTX *v… in _jbl_get_visitor2() argument
1298 memcpy(&jbl->bn, bv, sizeof(*bv)); in _jbl_get_visitor2()
1307 static jbl_visitor_cmd_t _jbl_get_visitor(int lvl, binn *bv, const char *key, int idx, JBL_VCTX *vc… in _jbl_get_visitor() argument
1316 memcpy(&jbl->bn, bv, sizeof(*bv)); in _jbl_get_visitor()
1487 int jbn_path_compare_bool(JBL_NODE n, const char *path, bool bv, iwrc *rcp) { in jbn_path_compare_bool() argument
1497 .vbool = bv in jbn_path_compare_bool()
1876 const binn *bv, in _jbl_create_node() argument
1899 switch (bv->type) { in _jbl_create_node()
1906 n->vptr = bv->ptr; in _jbl_create_node()
1907 n->vsize = bv->size; in _jbl_create_node()
1909 n->vptr = iwpool_strndup(ctx->pool, bv->ptr, bv->size, &rc); in _jbl_create_node()
1910 n->vsize = bv->size; in _jbl_create_node()
1931 n->vbool = bv->vbool; in _jbl_create_node()
1934 n->vi64 = bv->vuint8; in _jbl_create_node()
1938 n->vi64 = bv->vuint16; in _jbl_create_node()
1942 n->vi64 = bv->vuint32; in _jbl_create_node()
1946 n->vi64 = bv->vuint64; in _jbl_create_node()
1950 n->vi64 = bv->vint8; // NOLINT(bugprone-signed-char-misuse) in _jbl_create_node()
1954 n->vi64 = bv->vint16; in _jbl_create_node()
1958 n->vi64 = bv->vint32; in _jbl_create_node()
1962 n->vi64 = bv->vint64; in _jbl_create_node()
1967 n->vf64 = bv->vdouble; in _jbl_create_node()
1996 binn bv; in _jbl_node_from_binn_impl() local
2012 for (int i = 0; binn_object_next2(&iter, &key, &klidx, &bv); ++i) { in _jbl_node_from_binn_impl()
2013 rc = _jbl_node_from_binn_impl(ctx, &bv, parent, key, klidx, clone_strings); in _jbl_node_from_binn_impl()
2017 for (int i = 0; binn_map_next(&iter, &klidx, &bv); ++i) { in _jbl_node_from_binn_impl()
2018 rc = _jbl_node_from_binn_impl(ctx, &bv, parent, 0, klidx, clone_strings); in _jbl_node_from_binn_impl()
2032 for (int i = 0; binn_list_next(&iter, &bv); ++i) { in _jbl_node_from_binn_impl()
2033 rc = _jbl_node_from_binn_impl(ctx, &bv, parent, 0, i, clone_strings); in _jbl_node_from_binn_impl()
2414 binn bv; in _jbl_from_node_impl() local
2415 rc = _jbl_from_node_impl(&bv, n); in _jbl_from_node_impl()
2417 if (!binn_object_set_value2(res, n->key, n->klidx, &bv)) { in _jbl_from_node_impl()
2420 binn_free(&bv); in _jbl_from_node_impl()
2429 binn bv; in _jbl_from_node_impl() local
2430 rc = _jbl_from_node_impl(&bv, n); in _jbl_from_node_impl()
2432 if (!binn_list_add_value(res, &bv)) { in _jbl_from_node_impl()
2435 binn_free(&bv); in _jbl_from_node_impl()
2516 binn bv; in _jbl_patch() local
2524 rc = _jbl_from_node_impl(&bv, root); in _jbl_patch()
2526 bn = &bv; in _jbl_patch()
2730 binn bv = { 0 }; in jbl_fill_from_node() local
2731 iwrc rc = _jbl_binn_from_node(&bv, node); in jbl_fill_from_node()
2734 memcpy(&jbl->bn, &bv, sizeof(jbl->bn)); in jbl_fill_from_node()
2829 binn bv; in jbl_merge_patch() local
2840 rc = _jbl_binn_from_node(&bv, target); in jbl_merge_patch()
2844 memcpy(&jbl->bn, &bv, sizeof(jbl->bn)); in jbl_merge_patch()