struct cond_result **in, size_t in_len);
void cond_result_free(struct cond_result *res)
struct cond_result **in, size_t in_len);
void cond_result_free(struct cond_result *res)
if (ec_htable_set(out->htable, &root, sizeof(root), NULL, NULL) < 0)
goto fail;
if (ec_htable_set(out->htable, &root, sizeof(root), NULL, NULL) < 0)
goto fail;
for (iter = ec_htable_iter(in[0]->htable);
iter != NULL; iter = ec_htable_iter_next(iter)) {
pparse = ec_htable_iter_get_key(iter);
for (iter = ec_htable_iter(in[0]->htable);
iter != NULL; iter = ec_htable_iter_next(iter)) {
pparse = ec_htable_iter_get_key(iter);
if (parse == NULL)
continue;
if (ec_htable_set(out->htable, &parse, sizeof(parse), NULL,
if (parse == NULL)
continue;
if (ec_htable_set(out->htable, &parse, sizeof(parse), NULL,
for (iter = ec_htable_iter(in[0]->htable);
iter != NULL; iter = ec_htable_iter_next(iter)) {
pparse = ec_htable_iter_get_key(iter);
for (iter = ec_htable_iter(in[0]->htable);
iter != NULL; iter = ec_htable_iter_next(iter)) {
pparse = ec_htable_iter_get_key(iter);
- parse = ec_parse_find_next(*pparse, parse, id, 1);
+ parse = ec_pnode_find_next(*pparse, parse, id, 1);
- const struct ec_parse *func = NULL, *func_name = NULL, *arg_list = NULL;
- const struct ec_parse *value = NULL;
+ const struct ec_pnode *func = NULL, *func_name = NULL, *arg_list = NULL;
+ const struct ec_pnode *value = NULL;
- EC_PARSE_FOREACH_CHILD(iter, func) {
- id = ec_node_id(ec_parse_get_node(iter));
+ EC_PNODE_FOREACH_CHILD(iter, func) {
+ id = ec_node_id(ec_pnode_get_node(iter));
if (!strcmp(id, "id_function_name"))
func_name = iter;
if (!strcmp(id, "id_arg_list"))
arg_list = iter;
}
if (!strcmp(id, "id_function_name"))
func_name = iter;
if (!strcmp(id, "id_arg_list"))
arg_list = iter;
}
while (iter != NULL) {
args = ec_realloc(args, (n_arg + 1) * sizeof(*args));
args[n_arg] = eval_condition(iter, state);
if (args[n_arg] == NULL)
goto fail;
n_arg++;
while (iter != NULL) {
args = ec_realloc(args, (n_arg + 1) * sizeof(*args));
args[n_arg] = eval_condition(iter, state);
if (args[n_arg] == NULL)
goto fail;
n_arg++;
- child = ec_parse_get_last_child(state);
- ec_parse_unlink_child(state, child);
- ec_parse_free(child);
+ child = ec_pnode_get_last_child(state);
+ ec_pnode_unlink_child(state, child);
+ ec_pnode_free(child);