EC_NODE_SET_CONFIG(3)
β¨ EC_NODE_SET_CONFIG β¨
okay bestie, pull up a chair π this one's ec_node_set_config from the Libecoli Programmer's Manual β section 3, the library functions one, iykyk π
πΈ NAME πΈ
ec_node_set_config β set node configuration. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
#include <ecoli/node.h>
int ec_node_set_config(
struct ec_node *node, /* The grammar node to configure. */
struct ec_config *config /* The configuration to apply on the node. */
);
π DESCRIPTION π
so basically, if you've got a node that supports generic configuration, this is the function that gives it its config. like handing your bestie the aux cord π§ β you're passing config over to node and letting it do its thing.
but here's the important part, bestie, do not skip this: after you call this function, the config is owned by the node, and the caller must not use it anymore. it's not yours anymore. you gave it away. it's the node's config now. periodt. π
π STRUCTURES π
structure storing the configuration data π«Ά
struct ec_config {
union ec_config::@165033305204240054252215261010262276266146032272 @204272232073016241350260013126061051223010235320;
};
β RETURN VALUE β
0β success, we ate π- a negative value β error. and lowkey important detail: in this case, the
configyou passed as a parameter gets freed. so don't go touching it afterwards, she's gone π
π SEE ALSO π
the whole friend group, fr fr:
ec_node_check_type(3)ec_node_iter(3)ec_node_attrs(3)ec_node_find(3)ec_node_type_name(3)ec_node_free(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_iter_get_node(3)ec_node_get_child(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry. π
and that's the whole page, bestie! this one came from libecoli, dated 2026-06-11, and it lives at EC_NODE_SET_CONFIG(3) β go configure some nodes, you've got this πβ¨π
π¦ 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