EC_NODE_EXPR_ADD_BIN_OP(3)
β¨ EC_NODE_EXPR_ADD_BIN_OP(3) β¨
okay bestie, welcome to the Libecoli Programmer's Manual π this one is a lil function page from libecoli and it's genuinely so simple you're gonna eat it up π
πΈ NAME πΈ
ec_node_expr_add_bin_op β add a binary operator to an expression node π¦
like. that's it. that's the whole job. she adds a bin op and she slays β¨
π SYNOPSIS π
#include <ecoli/node_expr.h>
int ec_node_expr_add_bin_op(
struct ec_node *gen_node, /* The expression node. */
/*
* The operator node. It is consumed and will be freed when the parent is
* freed, or immediately on error.
*/
struct ec_node *op
);
so we got two args, no cap:
gen_nodeβ the expression node π« this is your main character, the thing you're decorating. the comment in the header literally says The expression node. iconic, no notes.opβ the operator node π₯ and listen, this is the important part: it is consumed. she's been eaten. she will be freed when the parent is freed, or immediately on error. so do NOT go touching her afterwards, bestie, that's giving use-after-free and we don't do that here π
β οΈ real talk: because op gets consumed, you don't own it anymore after this call. hand her over and let go. no takebacks π
β RETURN VALUE β
0β success, we ate, we devoured π-1β error, anderrnois set so go check it fr fr
π«Ά SEE ALSO π«Ά
her little friend group, go read them too:
ec_node_expr_set_val_node(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, bestie!! πβ¨π¦ this was libecoli, dated 2026-06-11, and you understood every word of it, I'm so proud of you π 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