From cb46a57b224f228fb0b14170b49f84b07e0fb78e Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Mon, 12 Mar 2018 21:44:40 +0100 Subject: [PATCH] rename default complete as complete unknown --- lib/ecoli_completed.c | 4 ++-- lib/ecoli_completed.h | 2 +- lib/ecoli_node_any.c | 2 +- lib/ecoli_node_empty.c | 2 +- lib/ecoli_node_int.c | 4 ++-- lib/ecoli_node_re.c | 2 +- lib/ecoli_node_re_lex.c | 2 +- lib/ecoli_node_space.c | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/ecoli_completed.c b/lib/ecoli_completed.c index a1dbe16..cde9e9d 100644 --- a/lib/ecoli_completed.c +++ b/lib/ecoli_completed.c @@ -439,9 +439,9 @@ fail: return -1; } -/* default completion function: return a no-match element */ +/* return a completion item of type "unknown" */ int -ec_node_default_complete(const struct ec_node *gen_node, // XXX rename in nomatch +ec_node_complete_unknown(const struct ec_node *gen_node, struct ec_completed *completed, const struct ec_strvec *strvec) { diff --git a/lib/ecoli_completed.h b/lib/ecoli_completed.h index af1c45a..7aeb905 100644 --- a/lib/ecoli_completed.h +++ b/lib/ecoli_completed.h @@ -181,7 +181,7 @@ int ec_completed_item_set_completion(struct ec_completed_item *item, * */ int -ec_node_default_complete(const struct ec_node *gen_node, +ec_node_complete_unknown(const struct ec_node *gen_node, struct ec_completed *completed, const struct ec_strvec *strvec); diff --git a/lib/ecoli_node_any.c b/lib/ecoli_node_any.c index 91ddc48..9ee1d39 100644 --- a/lib/ecoli_node_any.c +++ b/lib/ecoli_node_any.c @@ -38,7 +38,7 @@ static int ec_node_any_parse(const struct ec_node *gen_node, static struct ec_node_type ec_node_any_type = { .name = "any", .parse = ec_node_any_parse, - .complete = ec_node_default_complete, + .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_any), }; diff --git a/lib/ecoli_node_empty.c b/lib/ecoli_node_empty.c index 568f7e7..98a7614 100644 --- a/lib/ecoli_node_empty.c +++ b/lib/ecoli_node_empty.c @@ -35,7 +35,7 @@ static int ec_node_empty_parse(const struct ec_node *gen_node, static struct ec_node_type ec_node_empty_type = { .name = "empty", .parse = ec_node_empty_parse, - .complete = ec_node_default_complete, + .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_empty), }; diff --git a/lib/ecoli_node_int.c b/lib/ecoli_node_int.c index db7de48..8e92c8a 100644 --- a/lib/ecoli_node_int.c +++ b/lib/ecoli_node_int.c @@ -130,7 +130,7 @@ ec_node_uint_init_priv(struct ec_node *gen_node) static struct ec_node_type ec_node_int_type = { .name = "int", .parse = ec_node_int_uint_parse, - .complete = ec_node_default_complete, + .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_int_uint), .init_priv = ec_node_uint_init_priv, }; @@ -161,7 +161,7 @@ fail: static struct ec_node_type ec_node_uint_type = { .name = "uint", .parse = ec_node_int_uint_parse, - .complete = ec_node_default_complete, + .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_int_uint), }; diff --git a/lib/ecoli_node_re.c b/lib/ecoli_node_re.c index cbbeb34..8563d6d 100644 --- a/lib/ecoli_node_re.c +++ b/lib/ecoli_node_re.c @@ -61,7 +61,7 @@ static void ec_node_re_free_priv(struct ec_node *gen_node) static struct ec_node_type ec_node_re_type = { .name = "re", .parse = ec_node_re_parse, - .complete = ec_node_default_complete, + .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_re), .free_priv = ec_node_re_free_priv, }; diff --git a/lib/ecoli_node_re_lex.c b/lib/ecoli_node_re_lex.c index e0220e6..91e4f82 100644 --- a/lib/ecoli_node_re_lex.c +++ b/lib/ecoli_node_re_lex.c @@ -157,7 +157,7 @@ static void ec_node_re_lex_free_priv(struct ec_node *gen_node) static struct ec_node_type ec_node_re_lex_type = { .name = "re_lex", .parse = ec_node_re_lex_parse, - .complete = ec_node_default_complete, + .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_re_lex), .free_priv = ec_node_re_lex_free_priv, }; diff --git a/lib/ecoli_node_space.c b/lib/ecoli_node_space.c index 378c425..c905882 100644 --- a/lib/ecoli_node_space.c +++ b/lib/ecoli_node_space.c @@ -48,7 +48,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_default_complete, + .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_space), }; -- 2.39.5