| 13 | #include "write-or-die.h" |
| 14 | |
| 15 | static void odb_source_files_reparent(const char *name UNUSED, |
| 16 | const char *old_cwd, |
| 17 | const char *new_cwd, |
| 18 | void *cb_data) |
| 19 | { |
| 20 | struct odb_source_files *files = cb_data; |
| 21 | char *path = reparent_relative_path(old_cwd, new_cwd, |
| 22 | files->base.path); |
| 23 | free(files->base.path); |
| 24 | files->base.path = path; |
| 25 | } |
| 26 | |
| 27 | static void odb_source_files_free(struct odb_source *source) |
| 28 | { |
nothing calls this directly
no test coverage detected