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

Function scan_path

app/gson/src/main.cpp:61–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static 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
92static void usage(const char* procname)
93{

Callers 1

mainFunction · 0.85

Calls 6

acl_strrncasecmpFunction · 0.85
next_fileMethod · 0.80
copy_fileFunction · 0.70
last_serrorFunction · 0.50
openMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…