| 116 | } |
| 117 | |
| 118 | static void file_error_set(artifact_file_error_t *out, const char *err, int err_no) { |
| 119 | if (out) { |
| 120 | out->err = err; |
| 121 | out->err_no = err_no; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /* Build path: <repo>/.codebase-memory/<name> into caller-owned buf. */ |
| 126 | static bool artifact_path(char *buf, size_t bufsz, const char *repo_path, const char *name) { |