One batch of the token phases: tokenize functions [first, first+count) into * a fresh packed array the caller frees with sem_batch_free_tokens(). */
| 1805 | /* One batch of the token phases: tokenize functions [first, first+count) into |
| 1806 | * a fresh packed array the caller frees with sem_batch_free_tokens(). */ |
| 1807 | static void sem_batch_tokenize(const cbm_gbuf_node_t **node_ptrs, cbm_gbuf_t *gbuf, int first, |
| 1808 | int count, int worker_count, CBMHashTable **pools, int *token_counts, |
| 1809 | char ***out_tokens, size_t **out_offsets) { |
| 1810 | phase2_tokenize(node_ptrs + first, gbuf, out_tokens, out_offsets, token_counts + first, count, |
| 1811 | worker_count, pools); |
| 1812 | } |
| 1813 | |
| 1814 | static void sem_batch_free_tokens(char **tokens, size_t *offsets) { |
| 1815 | cbm_free(CBM_MEM_CLASS_SEMANTIC, tokens); |
no test coverage detected