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

Function main

lib_acl_cpp/samples/xml/xml4/main.cpp:122–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122int main(int argc, char* argv[])
123{
124 int ch;
125 acl::string path;
126 bool use_mmap = false;
127
128 while ((ch = getopt(argc, argv, "hf:m")) > 0)
129 {
130 switch (ch)
131 {
132 case 'h':
133 usage(argv[0]);
134 return 0;
135 case 'f':
136 path = optarg;
137 break;
138 case 'm':
139 use_mmap = true;
140 break;
141 default:
142 break;
143 }
144 }
145
146 if (path.empty())
147 test_build();
148 else
149 {
150 if (use_mmap)
151 test_parse_mmap(path);
152 else
153 test_parse(path);
154 }
155
156 return 0;
157}

Callers

nothing calls this directly

Calls 6

test_parse_mmapFunction · 0.85
usageFunction · 0.70
test_buildFunction · 0.70
test_parseFunction · 0.70
getoptFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…