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

Function acl_xml3_node_delete

lib_acl/src/xml/acl_xml3.c:141–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141int acl_xml3_node_delete(ACL_XML3_NODE *node)
142{
143 ACL_RING *next;
144 ACL_XML3_NODE *node_next;
145 int n = 1;
146
147 while ((next = acl_ring_pop_head(&node->children)) != NULL) {
148 node_next = acl_ring_to_appl(next, ACL_XML3_NODE, node);
149 n += acl_xml3_node_delete(node_next);
150 }
151
152 if (node->id != NULL)
153 acl_htable_delete(node->xml->id_table, node->id, NULL);
154
155 acl_ring_detach(&node->node);
156 node->xml->node_cnt--;
157
158 return n;
159}
160
161void acl_xml3_node_append(ACL_XML3_NODE *node1, ACL_XML3_NODE *node2)
162{

Callers 1

parse_xmlFunction · 0.85

Calls 3

acl_ring_pop_headFunction · 0.85
acl_htable_deleteFunction · 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…