* Return a `prefix_state` constant describing the relationship * between the directory with the specified `dirname` and `prefix`. */
| 262 | * between the directory with the specified `dirname` and `prefix`. |
| 263 | */ |
| 264 | static enum prefix_state overlaps_prefix(const char *dirname, |
| 265 | const char *prefix) |
| 266 | { |
| 267 | while (*prefix && *dirname == *prefix) { |
| 268 | dirname++; |
| 269 | prefix++; |
| 270 | } |
| 271 | if (!*prefix) |
| 272 | return PREFIX_CONTAINS_DIR; |
| 273 | else if (!*dirname) |
| 274 | return PREFIX_WITHIN_DIR; |
| 275 | else |
| 276 | return PREFIX_EXCLUDES_DIR; |
| 277 | } |
| 278 | |
| 279 | /* |
| 280 | * Load all of the refs from `dir` (recursively) that could possibly |
no outgoing calls
no test coverage detected