Extract basename from a file path. */
| 593 | |
| 594 | /* Extract basename from a file path. */ |
| 595 | static const char *path_basename(const char *path) { |
| 596 | if (!path) { |
| 597 | return ""; |
| 598 | } |
| 599 | const char *slash = strrchr(path, '/'); |
| 600 | return slash ? slash + SKIP_ONE : path; |
| 601 | } |
| 602 | |
| 603 | /* Check if a Cargo.toml QN contains a dependency section in any dotted part. */ |
| 604 | static bool is_cargo_dep_section(const char *qn) { |
no outgoing calls
no test coverage detected