EC_PNODE_FREE(3)
β¨ EC_PNODE_FREE(3) β¨
okay so this is a page from the Libecoli Programmer's Manual and bestie, we're talking about ec_pnode_free β it frees a parsing tree. that's the whole vibe. π
πΈ NAME πΈ
ec_pnode_free β free a parsing tree, no cap. it's giving "let it go" but for memory. π¦
β¨ SYNOPSIS β¨
#include <ecoli/parse.h>
void ec_pnode_free(
/*
* The root of the parsing tree to be freed. It must not have any parent.
*/
struct ec_pnode *pnode
);
π DESCRIPTION π
so like, real talk: ec_pnode_free takes your parsing tree and frees it. gone. bye. π
the one thing you cannot skip, the rule that's lowkey the whole plot: the pnode you pass in has to be the root of the tree, and it must not have any parent. it's giving main character energy β root nodes only, bestie. if your node has a parent, that's not this function's moment. π
the pnode argument is literally described in the source as:
The root of the parsing tree to be freed. It must not have any parent.
periodt. π
π SEE ALSO π
the whole friend group, fr fr β go read these too:
ec_pnode_len(3)ec_pnode_get_strvec(3)ec_parse(3)ec_parse_strvec(3)ec_pnode(3)ec_pnode_free_children(3)ec_pnode_get_root(3)ec_pnode_get_parent(3)ec_pnode_find_next(3)ec_pnode_get_first_child(3)ec_pnode_dup(3)ec_pnode_matches(3)ec_pnode_dump(3)ec_pnode_unlink_child(3)ec_pnode_next(3)ec_pnode_del_last_child(3)ec_pnode_link_child(3)ec_pnode_count(3)ec_pnode_get_attrs(3)ec_pnode_get_last_child(3)ec_pnode_get_node(3)ec_pnode_find(3)ec_parse_child(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
k bye bestie!! π«Ά this lil page came out of libecoli on 2026-06-11 and honestly? iconic. go free your trees responsibly β¨π·π
π¦ 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