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

Function main

lib_acl/samples/xml/xml3/xml.c:712–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710#endif
711
712int main(int argc, char *argv[])
713{
714 int ch, once = 0, multi_root = 0, benchmark_max = 0;
715 int parse_one = 0, build = 0, test_one = 0;
716 const char *data = __data1;
717 const char* root = "root";
718 char filepath[256];
719
720// acl_msg_stdout_enable(1);
721
722 filepath[0] = 0;
723
724 while ((ch = getopt(argc, argv, "hsp:d:mb:f:PBt")) > 0) {
725 switch (ch) {
726 case 'h':
727 usage(argv[0]);
728 return (0);
729 case 't':
730 test_one = 1;
731 break;
732 case 'm':
733 multi_root = 1;
734 break;
735 case 's':
736 once = 1;
737 break;
738 case 'b':
739 benchmark_max = atoi(optarg);
740 break;
741 case 'P':
742 parse_one = 1;
743 break;
744 case 'B':
745 build = 1;
746 break;
747 case 'd':
748 if (strcasecmp(optarg, "data2") == 0) {
749 data = __data2;
750 root = "root";
751 } else if (strcasecmp(optarg, "data3") == 0) {
752 data = __data3;
753 root = "root";
754 } else if (strcasecmp(optarg, "data4") == 0) {
755 data = __data4;
756 root = "request";
757 } else if (strcasecmp(optarg, "data5") == 0) {
758 data = __data5;
759 root = "request";
760 } else if (strcasecmp(optarg, "data6") == 0) {
761 data = __data6;
762 root = "request";
763 } else if (strcasecmp(optarg, "data7") == 0) {
764 data = __data7;
765 root = "request";
766 } else if (strcasecmp(optarg, "data8") == 0) {
767 data = __data8;
768 root = "root";
769 } else if (strcasecmp(optarg, "data9") == 0) {

Callers

nothing calls this directly

Calls 7

usageFunction · 0.70
parse_xml_benchmarkFunction · 0.70
test1Function · 0.70
parse_xmlFunction · 0.70
parse_xml_fileFunction · 0.70
build_xmlFunction · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…