| 133 | } |
| 134 | |
| 135 | static void file_error_set(artifact_file_error_t *out, const char *err, int err_no) { |
| 136 | if (out) { |
| 137 | out->err = err; |
| 138 | out->err_no = err_no; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | /* Build path: <repo>/.codebase-memory/<name> into caller-owned buf. */ |
| 143 | static bool artifact_path(char *buf, size_t bufsz, const char *repo_path, const char *name) { |