The end command of the open code block on this line, if any. */
| 358 | |
| 359 | /* The end command of the open code block on this line, if any. */ |
| 360 | static bool c_closes_block(const c_line_t *ln, int open) { |
| 361 | for (size_t i = 0; i < ln->n; i++) { |
| 362 | size_t cl = c_command_at(ln->p, i, ln->n); |
| 363 | if (cl && c_word_is(ln->p + i + SKIP_ONE, cl, C_BLOCK_CLOSE[open])) { |
| 364 | return true; |
| 365 | } |
| 366 | } |
| 367 | return false; |
| 368 | } |
| 369 | |
| 370 | static void c_harvest(CBMExtractCtx *ctx, const CBMDefinition *def, const char *doc, |
| 371 | uint32_t doc_line) { |
no test coverage detected