EC_LOG_TYPE_REGISTER(node_space);
struct ec_node_space {
- struct ec_node gen;
};
static int
-ec_node_space_parse(const struct ec_node *gen_node,
- struct ec_parse *state,
+ec_node_space_parse(const struct ec_node *node,
+ struct ec_pnode *state,
const struct ec_strvec *strvec)
{
const char *str;
size_t len = 0;
(void)state;
- (void)gen_node;
+ (void)node;
if (ec_strvec_len(strvec) == 0)
return EC_PARSE_NOMATCH;
static struct ec_node_type ec_node_space_type = {
.name = "space",
.parse = ec_node_space_parse,
- .complete = ec_node_complete_unknown,
+ .complete = ec_complete_unknown,
.size = sizeof(struct ec_node_space),
};
}
/* never completes whatever the input */
testres |= EC_TEST_CHECK_COMPLETE(node,
- "", EC_NODE_ENDLIST,
- EC_NODE_ENDLIST);
+ "", EC_VA_END,
+ EC_VA_END);
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;