| 32 | "}\r\n"; |
| 33 | |
| 34 | static 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 | |
| 45 | static void test_json_foreach1(ACL_JSON* json) |
| 46 | { |
no outgoing calls
searching dependent graphs…