| 19636 | } adr_sections_ctx_t; |
| 19637 | |
| 19638 | static void adr_sections_cb(void *ctx, const cbm_adr_heading_t *h) { |
| 19639 | adr_sections_ctx_t *c = (adr_sections_ctx_t *)ctx; |
| 19640 | char hdr[CBM_SZ_1K]; |
| 19641 | snprintf(hdr, sizeof(hdr), "## %.*s", h->name_len, h->name); |
| 19642 | yyjson_mut_arr_add_strcpy(c->doc, c->arr, hdr); |
| 19643 | } |
| 19644 | |
| 19645 | /* ADR "sections" mode: list the section headings of the ADR. |
| 19646 | * |
nothing calls this directly
no outgoing calls
no test coverage detected