EC_NODE_EXPR_ADD_PRE_OP(3)

πŸ“¦
version 0.11.7 Β· 4 versions
, in fedora 44

πŸ’– 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 ⭐

  • 0 on success πŸŽ‰ slay, we love a clean return
  • -1 on error, and errno is set so you can go find out what went wrong 😭

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group fr fr, go read these too:


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