EC_NODE_EXPR_ADD_PRE_OP(3)
π EC_NODE_EXPR_ADD_PRE_OP(3) π
okay bestie, welcome to the Libecoli Programmer's Manual β¨ this one's a little function page and it's honestly giving "tiny but mighty". sit with me, we're doing prefix operators today π
πΈ NAME πΈ
ec_node_expr_add_pre_op β Add a prefix operator to an expression node.
like. that's the whole job. she adds a prefix op to an expression node and she does it flawlessly π
π¦ SYNOPSIS π¦
#include <ecoli/node_expr.h>
int ec_node_expr_add_pre_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 you pull in <ecoli/node_expr.h> and then you call her with two things, and bestie let me walk you through both because the second one has lore π
gen_nodeβ this is your expression node. the main character. the one getting the prefix op. she's the parent π«Άopβ this is the operator node. and here's the tea: she gets consumed. like, eaten. absorbed. she will be freed when the parent gets freed, or immediately if there's an error. so do NOT go touching her afterwards, she belongs to the parent now π
β RETURN VALUE β
0on success π slay, we love a clean return-1on error, anderrnois set so you can go find out what went wrong π
π SEE ALSO π
the whole friend group fr fr, go read these too:
ec_node_expr_set_val_node(3)ec_node_expr_add_bin_op(3)ec_node_expr(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 page, bestie π this was libecoli, dated 2026-06-11, and you were reading EC_NODE_E...ADD_PRE_OP(3) the whole time π go forth and add your prefix operators, i'm obsessed with 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