MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_json_node_delete

Function acl_json_node_delete

lib_acl/src/json/acl_json.c:123–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123int acl_json_node_delete(ACL_JSON_NODE *node)
124{
125 ACL_RING *next;
126 ACL_JSON_NODE *node_next;
127 int n = 1;
128
129 while ((next = acl_ring_pop_head(&node->children)) != NULL) {
130 node_next = acl_ring_to_appl(next, ACL_JSON_NODE, node);
131 n += acl_json_node_delete(node_next);
132 }
133
134 acl_ring_detach(&node->node);
135 node->json->node_cnt--;
136
137 return n;
138}
139
140ACL_JSON_NODE *acl_json_node_erase(ACL_JSON_NODE *node, ACL_ITER *it)
141{

Callers 5

acl_json_node_eraseFunction · 0.85
acl_json_node_reraseFunction · 0.85
acl_json_eraseFunction · 0.85
detachMethod · 0.85
removeMethod · 0.85

Calls 2

acl_ring_pop_headFunction · 0.85
acl_ring_detachFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…