MCPcopy Create free account
hub / github.com/crawl/crawl / append_node

Function append_node

crawl-ref/source/json.cc:575–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575static void append_node(JsonNode *parent, JsonNode *child)
576{
577 child->parent = parent;
578 child->prev = parent->children.tail;
579 child->next = nullptr;
580
581 if (parent->children.tail != nullptr)
582 parent->children.tail->next = child;
583 else
584 parent->children.head = child;
585 parent->children.tail = child;
586}
587
588static void prepend_node(JsonNode *parent, JsonNode *child)
589{

Callers 2

append_memberFunction · 0.85
json_append_elementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected