| 345 | } |
| 346 | |
| 347 | void cbm_destroy_thread_parser(void) { |
| 348 | // Full cleanup: delete the parser. Call on worker thread exit. |
| 349 | if (tl_parser) { |
| 350 | ts_parser_delete(tl_parser); |
| 351 | tl_parser = NULL; |
| 352 | tl_parser_lang = CBM_LANG_COUNT; |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | void cbm_shutdown(void) { |
| 357 | // Clean up thread-local parser for the calling thread. |
no outgoing calls
no test coverage detected