Run the pass with a minimal ctx (same shape as run_configlink). */
| 21 | |
| 22 | /* Run the pass with a minimal ctx (same shape as run_configlink). */ |
| 23 | static int run_doclinks(cbm_gbuf_t *gb, const char *project, const char *repo_path) { |
| 24 | atomic_int cancelled; |
| 25 | atomic_init(&cancelled, 0); |
| 26 | cbm_pipeline_ctx_t ctx = { |
| 27 | .project_name = project, |
| 28 | .repo_path = repo_path, |
| 29 | .gbuf = gb, |
| 30 | .cancelled = &cancelled, |
| 31 | }; |
| 32 | return cbm_pipeline_pass_doclinks(&ctx); |
| 33 | } |
| 34 | |
| 35 | /* Create a File node the way pass_structure does: QN via fqn_compute with |
| 36 | * "__file__", file_path = repo-relative path. Returns the node id. */ |
no test coverage detected