| 59 | } |
| 60 | |
| 61 | static void scan_path(std::vector<std::string>& files) |
| 62 | { |
| 63 | acl::scan_dir scan; |
| 64 | |
| 65 | if (scan.open(".") == false) |
| 66 | { |
| 67 | printf("scan open error %s\r\n", acl::last_serror()); |
| 68 | return; |
| 69 | } |
| 70 | |
| 71 | const char* file; |
| 72 | |
| 73 | while ((file = scan.next_file(false)) != NULL) |
| 74 | { |
| 75 | if (acl_strrncasecmp(file, ".stub", 2) == 0) |
| 76 | { |
| 77 | char buf[1024]; |
| 78 | |
| 79 | snprintf(buf, sizeof(buf), "%s", file); |
| 80 | char* dot = strrchr(buf, '.'); |
| 81 | assert(dot); |
| 82 | *dot = 0; |
| 83 | strcat(buf, ".h"); |
| 84 | |
| 85 | assert(copy_file(file, buf)); |
| 86 | |
| 87 | files.push_back(buf); |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | static void usage(const char* procname) |
| 93 | { |
no test coverage detected
searching dependent graphs…