};
static int ec_node_many_parse(const struct ec_node *node,
- struct ec_pnode *state,
+ struct ec_pnode *pstate,
const struct ec_strvec *strvec)
{
struct ec_node_many *priv = ec_node_priv(node);
if (childvec == NULL)
goto fail;
- ret = ec_parse_child(priv->child, state, childvec);
+ ret = ec_parse_child(priv->child, pstate, childvec);
if (ret < 0)
goto fail;
/* it matches an empty strvec, no need to continue */
if (ret == 0) {
- child_parse = ec_pnode_get_last_child(state);
- ec_pnode_unlink_child(state, child_parse);
+ child_parse = ec_pnode_get_last_child(pstate);
+ ec_pnode_unlink_child(child_parse);
ec_pnode_free(child_parse);
break;
}
}
if (count < priv->min) {
- ec_pnode_free_children(state);
+ ec_pnode_free_children(pstate);
return EC_PARSE_NOMATCH;
}
struct ec_comp *comp,
const struct ec_strvec *strvec)
{
- struct ec_pnode *parse = ec_comp_get_state(comp);
+ struct ec_pnode *parse = ec_comp_get_cur_pstate(comp);
struct ec_strvec *childvec = NULL;
unsigned int i;
int ret;