| 372 | } |
| 373 | |
| 374 | void cbm_destroy_thread_parser(void) { |
| 375 | // Full cleanup: delete the parser. Call on worker thread exit. |
| 376 | if (tl_parser) { |
| 377 | ts_parser_delete(tl_parser); |
| 378 | tl_parser = NULL; |
| 379 | tl_parser_lang = CBM_LANG_COUNT; |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | void cbm_shutdown(void) { |
| 384 | // Clean up thread-local parser for the calling thread. |
no outgoing calls
no test coverage detected