EC_COMPLETE_CHILD(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

πŸ’– 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 πŸ‘‘

  • 0 on success πŸŽ€
  • -1 on error, and errno is set when that happens 😭

🌈 SEE ALSO 🌈

bestie the whole squad showed up, look at this lineup:

iykyk πŸ’œ


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