EC_COMPLETE_CHILD(3)
π EC_COMPLETE_CHILD(3) π
okay bestie, welcome to the Libecoli Programmer's Manual β this one's the page for ec_complete_child, and honestly? it's a team-player icon. let's get into it β¨
πΈ NAME πΈ
ec_complete_child β get the list of completions of a child node. π§
like, literally, that's the whole job. it goes and collects the completions from the children for you. no cap.
β¨ SYNOPSIS β¨
#include <ecoli/complete.h>
int ec_complete_child(
const struct ec_node *node, /* The grammar graph. */
struct ec_comp *comp, /* The current completion list to be filled. */
const struct ec_strvec *strvec /* The input string vector. */
);
π¦ DESCRIPTION π¦
so here's the vibe: this function is for intermediate ecoli nodes, meaning the nodes that have children β think ec_node_seq(), ec_node_or(), and the rest of the girlies that aren't leaf nodes. π³
what it does is fill an existing ec_comp structure, which gets passed in by the parent node. it's giving "the parent sent me to go handle this" energy and honestly? it ate. π
π not me about to say this again: comp is already there. you're not creating it, you're filling it. the parent node handed it over. periodt.
π RETURN VALUE π
0on success π-1on error, anderrnois set when that happens π
π SEE ALSO π
bestie the whole squad showed up, look at this lineup:
ec_comp_add_item(3)ec_comp_count(3)ec_comp_item_set_str(3)ec_complete(3)ec_comp_get_attrs(3)ec_comp_group_get_attrs(3)ec_comp_iter_next(3)ec_comp_item_get_node(3)ec_comp_iter_first(3)ec_comp_item_get_current(3)ec_comp_group_get_node(3)ec_complete_strvec_expand(3)ec_comp_free(3)ec_comp_get_cur_pstate(3)ec_complete_unknown(3)ec_complete_strvec(3)ec_comp_item_get_grp(3)ec_comp_item_get_type(3)ec_comp_item_get_str(3)ec_comp_item_set_display(3)ec_comp(3)ec_comp_item_get_display(3)ec_comp_item_get_completion(3)ec_comp_group_get_pstate(3)ec_comp_dump(3)ec_comp_merge(3)ec_comp_item_set_completion(3)ec_comp_get_cur_group(3)
iykyk π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie!! π thanks for reading the Libecoli Programmer's Manual with me β this edition dropped on 2026-06-11, brought to you by libecoli, and it's iconic fr fr. go forth and complete some children, mwah ππ«Ά
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms