X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=blobdiff_plain;f=src%2Fecoli_node_sh_lex.c;fp=src%2Fecoli_node_sh_lex.c;h=7dd0358af93753c8a818d6e54b3c7c85db09997a;hp=c6b6867a1ae6253ae019d71574394a589660b858;hb=331d87b8f34493ea7eb4db75fa9d90b2e3ed503b;hpb=67b4d8d2b2593e3e64a848ce548bc0fd76bc440a diff --git a/src/ecoli_node_sh_lex.c b/src/ecoli_node_sh_lex.c index c6b6867..7dd0358 100644 --- a/src/ecoli_node_sh_lex.c +++ b/src/ecoli_node_sh_lex.c @@ -214,7 +214,7 @@ static struct ec_strvec *tokenize(const char *str, int completion, static int ec_node_sh_lex_parse(const struct ec_node *node, - struct ec_pnode *state, + struct ec_pnode *pstate, const struct ec_strvec *strvec) { struct ec_node_sh_lex *priv = ec_node_priv(node); @@ -234,15 +234,15 @@ ec_node_sh_lex_parse(const struct ec_node *node, if (new_vec == NULL) goto fail; - ret = ec_parse_child(priv->child, state, new_vec); + ret = ec_parse_child(priv->child, pstate, new_vec); if (ret < 0) goto fail; if ((unsigned)ret == ec_strvec_len(new_vec)) { ret = 1; } else if (ret != EC_PARSE_NOMATCH) { - 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(pstate, child_parse); ec_pnode_free(child_parse); ret = EC_PARSE_NOMATCH; }