Lines Matching refs:mp

106 static u_char *nxt_conf_json_parse_value(nxt_mp_t *mp, nxt_conf_value_t *value,
108 static u_char *nxt_conf_json_parse_object(nxt_mp_t *mp, nxt_conf_value_t *value,
110 static nxt_int_t nxt_conf_object_hash_add(nxt_mp_t *mp,
116 static u_char *nxt_conf_json_parse_array(nxt_mp_t *mp, nxt_conf_value_t *value,
118 static u_char *nxt_conf_json_parse_string(nxt_mp_t *mp, nxt_conf_value_t *value,
120 static u_char *nxt_conf_json_parse_number(nxt_mp_t *mp, nxt_conf_value_t *value,
125 static nxt_int_t nxt_conf_copy_value(nxt_mp_t *mp, nxt_conf_op_t *op,
127 static nxt_int_t nxt_conf_copy_array(nxt_mp_t *mp, nxt_conf_op_t *op,
129 static nxt_int_t nxt_conf_copy_object(nxt_mp_t *mp, nxt_conf_op_t *op,
195 nxt_conf_set_string_dup(nxt_conf_value_t *value, nxt_mp_t *mp, in nxt_conf_set_string_dup() argument
203 ptr = nxt_str_dup(mp, &tmp, str); in nxt_conf_set_string_dup()
244 nxt_conf_create_object(nxt_mp_t *mp, nxt_uint_t count) in nxt_conf_create_object() argument
253 value = nxt_mp_get(mp, size); in nxt_conf_create_object()
282 nxt_conf_set_member_dup(nxt_conf_value_t *object, nxt_mp_t *mp, nxt_str_t *name, in nxt_conf_set_member_dup() argument
291 return nxt_conf_set_string_dup(&member->name, mp, name); in nxt_conf_set_member_dup()
310 nxt_conf_set_member_string_dup(nxt_conf_value_t *object, nxt_mp_t *mp, in nxt_conf_set_member_string_dup() argument
319 return nxt_conf_set_string_dup(&member->value, mp, value); in nxt_conf_set_member_string_dup()
359 nxt_conf_create_array(nxt_mp_t *mp, nxt_uint_t count) in nxt_conf_create_array() argument
368 value = nxt_mp_get(mp, size); in nxt_conf_create_array()
391 nxt_conf_set_element_string_dup(nxt_conf_value_t *array, nxt_mp_t *mp, in nxt_conf_set_element_string_dup() argument
398 return nxt_conf_set_string_dup(element, mp, value); in nxt_conf_set_element_string_dup()
576 nxt_conf_map_object(nxt_mp_t *mp, nxt_conf_value_t *value, nxt_conf_map_t *map, in nxt_conf_map_object() argument
691 s = nxt_str_dup(mp, &ptr->str, &str); in nxt_conf_map_object()
701 ptr->cstrz = nxt_str_cstrz(mp, &str); in nxt_conf_map_object()
810 nxt_conf_op_compile(nxt_mp_t *mp, nxt_conf_op_t **ops, nxt_conf_value_t *root, in nxt_conf_op_compile() argument
827 op = nxt_mp_zget(mp, sizeof(nxt_conf_op_t)); in nxt_conf_op_compile()
896 op = nxt_mp_zget(mp, sizeof(nxt_conf_op_t)); in nxt_conf_op_compile()
927 member = nxt_mp_zget(mp, sizeof(nxt_conf_object_member_t)); in nxt_conf_op_compile()
932 ret = nxt_conf_set_string_dup(&member->name, mp, &token); in nxt_conf_op_compile()
948 nxt_conf_clone(nxt_mp_t *mp, nxt_conf_op_t *op, nxt_conf_value_t *value) in nxt_conf_clone() argument
953 copy = nxt_mp_get(mp, sizeof(nxt_conf_value_t)); in nxt_conf_clone()
958 rc = nxt_conf_copy_value(mp, op, copy, value); in nxt_conf_clone()
969 nxt_conf_copy_value(nxt_mp_t *mp, nxt_conf_op_t *op, nxt_conf_value_t *dst, in nxt_conf_copy_value() argument
983 dst->u.string.start = nxt_mp_nget(mp, src->u.string.length); in nxt_conf_copy_value()
996 return nxt_conf_copy_array(mp, op, dst, src); in nxt_conf_copy_value()
999 return nxt_conf_copy_object(mp, op, dst, src); in nxt_conf_copy_value()
1012 nxt_conf_copy_array(nxt_mp_t *mp, nxt_conf_op_t *op, nxt_conf_value_t *dst, in nxt_conf_copy_array() argument
1034 dst->u.array = nxt_mp_get(mp, size); in nxt_conf_copy_array()
1058 rc = nxt_conf_copy_value(mp, pass_op, &dst->u.array->elements[d], in nxt_conf_copy_array()
1112 nxt_conf_copy_object(nxt_mp_t *mp, nxt_conf_op_t *op, nxt_conf_value_t *dst, in nxt_conf_copy_object() argument
1136 dst->u.object = nxt_mp_get(mp, size); in nxt_conf_copy_object()
1160 rc = nxt_conf_copy_value(mp, NULL, in nxt_conf_copy_object()
1168 rc = nxt_conf_copy_value(mp, pass_op, in nxt_conf_copy_object()
1195 rc = nxt_conf_copy_value(mp, NULL, in nxt_conf_copy_object()
1209 rc = nxt_conf_copy_value(mp, NULL, in nxt_conf_copy_object()
1242 nxt_conf_json_parse(nxt_mp_t *mp, u_char *start, u_char *end, in nxt_conf_json_parse() argument
1248 value = nxt_mp_get(mp, sizeof(nxt_conf_value_t)); in nxt_conf_json_parse()
1266 p = nxt_conf_json_parse_value(mp, value, p, end, error); in nxt_conf_json_parse()
1373 nxt_conf_json_parse_value(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_value() argument
1382 return nxt_conf_json_parse_object(mp, value, start, end, error); in nxt_conf_json_parse_value()
1385 return nxt_conf_json_parse_array(mp, value, start, end, error); in nxt_conf_json_parse_value()
1388 return nxt_conf_json_parse_string(mp, value, start, end, error); in nxt_conf_json_parse_value()
1434 p = nxt_conf_json_parse_number(mp, value, start, end, error); in nxt_conf_json_parse_value()
1483 nxt_conf_json_parse_object(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_object() argument
1541 p = nxt_conf_json_parse_string(mp, &member->name, p, end, error); in nxt_conf_json_parse_object()
1595 p = nxt_conf_json_parse_value(mp, &member->value, p, end, error); in nxt_conf_json_parse_object()
1628 object = nxt_mp_get(mp, sizeof(nxt_conf_object_t) in nxt_conf_json_parse_object()
1664 nxt_conf_object_hash_add(nxt_mp_t *mp, nxt_lvlhsh_t *lvlhsh, in nxt_conf_object_hash_add() argument
1675 lhq.pool = mp; in nxt_conf_object_hash_add()
1710 nxt_conf_json_parse_array(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_array() argument
1757 p = nxt_conf_json_parse_value(mp, element, p, end, error); in nxt_conf_json_parse_array()
1790 array = nxt_mp_get(mp, sizeof(nxt_conf_array_t) in nxt_conf_json_parse_array()
1818 nxt_conf_json_parse_string(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_string() argument
1955 value->u.string.start = nxt_mp_nget(mp, size); in nxt_conf_json_parse_string()
2079 nxt_conf_json_parse_number(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_number() argument