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

Function acl_foreach

lib_acl/samples/json/json7/main.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#define EQ !strcmp
22
23 acl_foreach(iter, json) {
24 ACL_JSON_NODE* node = (ACL_JSON_NODE*) iter.data;
25 if (LEN(node->ltag) == 0) {
26 continue;
27 }
28
29 acl_foreach(iter2, names) {
30 const char *name = (const char*) iter2.data;
31 if (EQ(STR(node->ltag), name)) {
32 acl_json_node_disable(node, 1);
33 }
34 }
35 }
36
37 acl_json_build(json, buf);
38 printf("%s\r\n", STR(buf));

Callers

nothing calls this directly

Calls 1

acl_json_node_disableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…