| 982 | for (j = 0; j < BITSET_WORD_BITS; ++j, ++ch) |
| 983 | if (isalnum (ch) || ch == '_') |
| 984 | dfa->word_char[i] |= (bitset_word_t) 1 << j; |
| 985 | } |
| 986 | |
| 987 | /* Free the work area which are only used while compiling. */ |
| 988 | |
| 989 | static void |
| 990 | free_workarea_compile (regex_t *preg) |
| 991 | { |
| 992 | re_dfa_t *dfa = (re_dfa_t *) preg->buffer; |
| 993 | bin_tree_storage_t *storage, *next; |
| 994 | for (storage = dfa->str_tree_storage; storage; storage = next) |
| 995 | { |
| 996 | next = storage->next; |
| 997 | re_free (storage); |
| 998 | } |
| 999 | dfa->str_tree_storage = NULL; |
| 1000 | dfa->str_tree_storage_idx = BIN_TREE_STORAGE_SIZE; |
| 1001 | dfa->str_tree = NULL; |
| 1002 | re_free (dfa->org_indices); |
no outgoing calls
no test coverage detected