EC_NODE_FREE(3)
π EC_NODE_FREE π
okay so hi bestie, welcome to the Libecoli Programmer's Manual π this page is about one lil function that does one lil job and honestly? it eats. it's giving "clean up after yourself" energy and we respect it. π«Ά
β¨ NAME β¨
ec_node_free β decrements the node's reference counter, and frees the node if that was the last reference. that's the whole plot. no plot twists. π
so like, if other people are still holding a reference to that node, it just quietly drops the count and walks away. but if you were the last one holding it? boom. freed. main character exit. π
π SYNOPSIS π
#include <ecoli/node.h>
void ec_node_free(
struct ec_node *node /* The grammar node to free. */
);
so yeah, you gotta pull in <ecoli/node.h> first, no cap β that's where the whole thing lives. π¦
and then you hand it exactly one thing: node, which is the grammar node you want to free. that's your girl. she's a struct ec_node *. send her off. π
heads up bestie: the return type is void. it does not hand you back a status, a code, a little note, nothing. it just does the thing. silence. iconic behaviour, honestly. β¨
πΈ SEE ALSO πΈ
like, go read her friends too, they're all part of the same squad π:
ec_node_check_type(3)ec_node_iter(3)ec_node_attrs(3)ec_node_find(3)ec_node_type_name(3)ec_node_id(3)ec_node_type_dump(3)ec_node_get_config(3)ec_node_schema_dump(3)ec_node_priv(3)ec_node_type_lookup(3)ec_node_clone(3)ec_node_dump(3)ec_node_desc(3)ec_node_iter_free(3)ec_node_iter_get_parent(3)ec_node_from_type(3)ec_node_type(3)ec_node_iter_next(3)ec_node_type_schema(3)ec_node(3)ec_node_get_children_count(3)ec_node_get_type_name(3)ec_node_type_register(3)ec_node_set_config(3)ec_node_iter_get_node(3)ec_node_get_child(3)
iykyk, that's a whole friend group right there π§
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the page bestie, we're done here π thanks for coming to my ted talk β this was libecoli, dated 2026-06-11, and she ate every single time πβ¨π
π¦ 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