| 923 | } |
| 924 | |
| 925 | static const char *path_basename(const char *path) { |
| 926 | if (!path || !path[0]) { |
| 927 | return path; |
| 928 | } |
| 929 | const char *slash = strrchr(path, '/'); |
| 930 | #ifdef _WIN32 |
| 931 | const char *bslash = strrchr(path, '\\'); |
| 932 | if (bslash && (!slash || bslash > slash)) { |
| 933 | slash = bslash; |
| 934 | } |
| 935 | #endif |
| 936 | return slash ? slash + 1 : path; |
| 937 | } |
| 938 | |
| 939 | /* Build and configuration languages have no cross-language call semantics: a |
| 940 | * Makefile's `$(eval ...)` or a CMake `function(...)` names nothing in a C |
no outgoing calls
no test coverage detected