| 94 | } |
| 95 | |
| 96 | static void test_parse_mmap(const char* filepath) |
| 97 | { |
| 98 | acl::string buf; |
| 99 | if (acl::ifstream::load(filepath, &buf) == false) |
| 100 | { |
| 101 | printf("load %s error %s\r\n", filepath, acl::last_serror()); |
| 102 | return; |
| 103 | } |
| 104 | |
| 105 | const char* local_file = "./local.map"; |
| 106 | acl::xml2 xml(local_file, buf.size() * 2); |
| 107 | xml.update(buf.c_str()); |
| 108 | printf("------------- xml node walk -----------------------\r\n"); |
| 109 | xml_node_walk(xml.get_root(), 0); |
| 110 | printf("------------- xml node walk end -------------------\r\n"); |
| 111 | |
| 112 | printf("------------- build xml ---------------------------\r\n"); |
| 113 | printf("%s\r\n", xml.to_string()); |
| 114 | printf("------------- build xml end -----------------------\r\n"); |
| 115 | } |
| 116 | |
| 117 | static void usage(const char* procname) |
| 118 | { |
no test coverage detected
searching dependent graphs…