EC_INTERA..._CALLBACK(3)
β¨ NAME β¨
ec_interact_get_callback β bestie, this is the little function that goes and gets the callback attached to a parse tree π
It lives in the Libecoli Programmer's Manual, section 3, and its whole name is EC_INTERA..._CALLBACK(3). iykyk.
πΈ SYNOPSIS πΈ
#include <ecoli/interact.h>
ec_interact_command_cb_t ec_interact_get_callback(
struct ec_pnode *parse /* The parsed tree. */
);
okay so you #include <ecoli/interact.h> first, obviously, and then you hand over one thing: a struct ec_pnode *parse, which is the parsed tree, and that's it, that's the whole vibe π¦
π DESCRIPTION π
So like, here's the tea β: this function browses the parse tree and tries to find an attribute called EC_INTERACT_CB_ATTR that's attached to a grammar node referenced in the tree. That's the whole quest. It's giving treasure hunt, ngl π₯
Once it finds that attribute, it returns the value of it β and that value is a function pointer. Not me casually handing you a function pointer, slay π β¨
π RETURN VALUE π
It gives you back the function pointer that's used as the command callback. That's the main character of this whole page, fr fr π
π SEE ALSO π
The whole friend group, one big group chat of related calls π:
ec_interact_get_completions(3)ec_interact_print_helps(3)ec_interact_print_error_helps(3)ec_interact_print_cols(3)ec_interact_set_help(3)ec_interact_append_chars(3)ec_interact_set_desc(3)ec_interact_set_callback(3)ec_interact_get_error_helps(3)ec_interact_free_completions(3)ec_interact_get_helps(3)ec_interact_free_helps(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
bestie this waslibecoli, dated2026-06-11, and the page isEC_INTERA..._CALLBACK(3)β obsessed with her honestly, periodt π«ΆπΈ
π¦ 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