EC_NODE_E...D_POST_OP(3)
π NAME π
ec_node_expr_add_post_op β bestie, this one adds a postfix operator to an expression node. periodt.
β¨ SYNOPSIS β¨
#include <ecoli/node_expr.h>
int ec_node_expr_add_post_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
);
okay so real talk about gen_node β that's the expression node itself, the main character we're decorating π«Ά.
and then op is the operator node, and this is the part you gotta pay attention to bestie: it gets consumed. like, it's gone, absorbed into the parent. it will be freed when the parent is freed, or β plot twist β freed immediately if there's an error π. so don't go holding onto op after you hand it over, it's giving "no takebacks." π
π RETURN VALUE π
0β slay, success β¨-1β nope, 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_pre_op(3)ec_node_expr_add_parenthesis(3)ec_node_expr_eval(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page bestie, no cap π this was libecoli's programmer's manual, dated 2026-06-11, and honestly? iconic. now go add some postfix operators and eat πβ¨
π¦ 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