X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=src%2Fecoli_node_space.c;h=4ab6ad32540862267be914cbb290181dc9556ced;hb=984760622f2c8472fd2667e24bcceb543bdb1aff;hp=761ed763f7f401cb67905f4715155ac0d23014c0;hpb=18d03456d96f7a086a2ccc82ce97fcf056848d90;p=protos%2Flibecoli.git diff --git a/src/ecoli_node_space.c b/src/ecoli_node_space.c index 761ed76..4ab6ad3 100644 --- a/src/ecoli_node_space.c +++ b/src/ecoli_node_space.c @@ -19,19 +19,18 @@ 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; @@ -48,7 +47,7 @@ ec_node_space_parse(const struct ec_node *gen_node, 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), }; @@ -80,14 +79,14 @@ static int ec_node_space_testcase(void) } /* 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;