EC_NODE_EXPR_SET_VAL_NODE(3)
π ec_node_expr_set_val_node β Libecoli Programmer's Manual π
okay bestie, gather round, we're in the Libecoli Programmer's Manual and this page is literally about one tiny function with main character energy β¨
π NAME π
ec_node_expr_set_val_node β sets the value node for an expression, and the value node is the terminal one, no cap πΈ
β¨ SYNOPSIS β¨
#include <ecoli/node_expr.h>
int ec_node_expr_set_val_node(
struct ec_node *gen_node, /* The expression node. */
/*
* The node matching values. It is consumed and will be freed when the
* parent is freed, or immediately on error.
*/
struct ec_node *val_node
);
so like, you pass in gen_node β that's the expression node, the main one, the parent, the one holding the whole situation together π«Ά
and then val_node is the node matching values. but here's the tea, and it's important tea: val_node gets consumed π it gets freed when the parent is freed, OR immediately if there's an error. so do not go touching it afterwards, bestie, it's gone, it's giving ghost π»
π₯ RETURN VALUE π₯
0β success, we ate, slay π-1β error, anderrnois set, so go check it π
π SEE ALSO π
the whole friend group, fr fr:
ec_node_expr_add_bin_op(3)ec_node_expr(3)ec_node_expr_add_pre_op(3)ec_node_expr_add_parenthesis(3)ec_node_expr_eval(3)ec_node_expr_add_post_op(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, periodt π this was libecoli, dated 2026-06-11, and honestly? iconic. go forth and set those value nodes, bestie π¦π
π¦ 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