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

Function print_json_node

lib_acl/samples/json/json1/main.cpp:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 "}\r\n";
33
34static void print_json_node(const ACL_JSON* json, const ACL_JSON_NODE* node)
35{
36 for (int i = 1; i < node->depth; i++)
37 printf("\t");
38 printf("tag> %s, parent %s, text: %s, child: %s, type: %u\n",
39 STR(node->ltag), node->parent == json->root
40 ? "root" : STR(node->parent->ltag),
41 STR(node->text), node->tag_node ? "yes" : "no",
42 node->type);
43}
44
45static void test_json_foreach1(ACL_JSON* json)
46{

Callers 2

acl_foreachFunction · 0.85
test_json_foreach2Function · 0.85

Calls

no outgoing calls

Tested by 1

test_json_foreach2Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…