| 23 | /* ── Local helpers ──────────────────────────────────────────────── */ |
| 24 | |
| 25 | static void ri_write_text(const char *dir, const char *name, const char *content) { |
| 26 | char path[700]; |
| 27 | snprintf(path, sizeof(path), "%s/%s", dir, name); |
| 28 | FILE *f = fopen(path, "wb"); |
| 29 | if (f) { |
| 30 | fputs(content, f); |
| 31 | fclose(f); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | /* Write a comment-only python file padded well past `bytes`. The file is never |
| 36 | * parsed (the size cap rejects it before extraction), so its content only needs |
no outgoing calls
no test coverage detected