};
static int ec_node_empty_parse(const struct ec_node *node,
- struct ec_parse *state,
+ struct ec_pnode *pstate,
const struct ec_strvec *strvec)
{
(void)node;
- (void)state;
+ (void)pstate;
(void)strvec;
return 0;
}
static struct ec_node_type ec_node_empty_type = {
.name = "empty",
.parse = ec_node_empty_parse,
- .complete = ec_node_complete_unknown,
.size = sizeof(struct ec_node_empty),
};
return -1;
}
testres |= EC_TEST_CHECK_COMPLETE(node,
- "", EC_NODE_ENDLIST,
- EC_NODE_ENDLIST);
+ "", EC_VA_END,
+ EC_VA_END);
testres |= EC_TEST_CHECK_COMPLETE(node,
- "foo", EC_NODE_ENDLIST,
- EC_NODE_ENDLIST);
+ "foo", EC_VA_END,
+ EC_VA_END);
ec_node_free(node);
return testres;