Lines Matching refs:op

126 static nxt_int_t nxt_conf_copy_value(nxt_mp_t *mp, nxt_conf_op_t *op,
128 static nxt_int_t nxt_conf_copy_array(nxt_mp_t *mp, nxt_conf_op_t *op,
130 static nxt_int_t nxt_conf_copy_object(nxt_mp_t *mp, nxt_conf_op_t *op,
826 nxt_conf_op_t *op, **parent; in nxt_conf_op_compile() local
838 op = nxt_mp_zget(mp, sizeof(nxt_conf_op_t)); in nxt_conf_op_compile()
839 if (nxt_slow_path(op == NULL)) { in nxt_conf_op_compile()
843 *parent = op; in nxt_conf_op_compile()
844 parent = (nxt_conf_op_t **) &op->ctx; in nxt_conf_op_compile()
854 node = nxt_conf_get_object_member(root, &token, &op->index); in nxt_conf_op_compile()
864 op->index = index; in nxt_conf_op_compile()
881 op->action = NXT_CONF_OP_PASS; in nxt_conf_op_compile()
891 op->action = NXT_CONF_OP_DELETE; in nxt_conf_op_compile()
905 op->action = NXT_CONF_OP_PASS; in nxt_conf_op_compile()
907 op = nxt_mp_zget(mp, sizeof(nxt_conf_op_t)); in nxt_conf_op_compile()
908 if (nxt_slow_path(op == NULL)) { in nxt_conf_op_compile()
912 *parent = op; in nxt_conf_op_compile()
914 op->index = node->u.array->count; in nxt_conf_op_compile()
915 op->action = NXT_CONF_OP_CREATE; in nxt_conf_op_compile()
916 op->ctx = value; in nxt_conf_op_compile()
922 op->action = NXT_CONF_OP_REPLACE; in nxt_conf_op_compile()
923 op->ctx = value; in nxt_conf_op_compile()
928 op->action = NXT_CONF_OP_CREATE; in nxt_conf_op_compile()
931 if (op->index > root->u.array->count) { in nxt_conf_op_compile()
935 op->ctx = value; in nxt_conf_op_compile()
950 op->index = root->u.object->count; in nxt_conf_op_compile()
951 op->ctx = member; in nxt_conf_op_compile()
959 nxt_conf_clone(nxt_mp_t *mp, nxt_conf_op_t *op, nxt_conf_value_t *value) in nxt_conf_clone() argument
969 rc = nxt_conf_copy_value(mp, op, copy, value); in nxt_conf_clone()
980 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 if (op != NULL in nxt_conf_copy_value()
1007 return nxt_conf_copy_array(mp, op, dst, src); in nxt_conf_copy_value()
1010 return nxt_conf_copy_object(mp, op, dst, src); in nxt_conf_copy_value()
1023 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 if (op != NULL) { in nxt_conf_copy_array()
1035 if (op->action == NXT_CONF_OP_CREATE) { in nxt_conf_copy_array()
1038 } else if (op->action == NXT_CONF_OP_DELETE) { in nxt_conf_copy_array()
1065 index = (op == NULL) ? src->u.array->count : op->index; in nxt_conf_copy_array()
1084 if (op != NULL) { in nxt_conf_copy_array()
1085 switch (op->action) { in nxt_conf_copy_array()
1087 pass_op = op->ctx; in nxt_conf_copy_array()
1092 value = op->ctx; in nxt_conf_copy_array()
1099 value = op->ctx; in nxt_conf_copy_array()
1111 op = NULL; in nxt_conf_copy_array()
1123 nxt_conf_copy_object(nxt_mp_t *mp, nxt_conf_op_t *op, nxt_conf_value_t *dst, in nxt_conf_copy_object() argument
1135 if (op != NULL) { in nxt_conf_copy_object()
1136 if (op->action == NXT_CONF_OP_CREATE) { in nxt_conf_copy_object()
1139 } else if (op->action == NXT_CONF_OP_DELETE) { in nxt_conf_copy_object()
1167 index = (op == NULL) ? src->u.object->count : op->index; in nxt_conf_copy_object()
1196 if (op != NULL) { in nxt_conf_copy_object()
1197 switch (op->action) { in nxt_conf_copy_object()
1199 pass_op = op->ctx; in nxt_conf_copy_object()
1204 member = op->ctx; in nxt_conf_copy_object()
1228 value = op->ctx; in nxt_conf_copy_object()
1241 op = NULL; in nxt_conf_copy_object()