| 442 | } |
| 443 | |
| 444 | static bool spawn_imports_module(const CBMImport *imports, int count, const char *module) { |
| 445 | size_t ml = strlen(module); |
| 446 | for (int i = 0; i < count; i++) { |
| 447 | if (!imports[i].module_path) { |
| 448 | continue; |
| 449 | } |
| 450 | const char *val = spawn_module(imports[i].module_path); |
| 451 | if (strncmp(val, module, ml) == 0 && |
| 452 | (val[ml] == '\0' || val[ml] == '.' || val[ml] == ':' || val[ml] == '/')) { |
| 453 | return true; |
| 454 | } |
| 455 | } |
| 456 | return false; |
| 457 | } |
| 458 | |
| 459 | /* Groovy `"git status".execute`: a quoted receiver, then the api suffix. */ |
| 460 | static bool spawn_string_receiver(const char *callee, const char *suffix) { |
no test coverage detected