| 1206 | return match_last; |
| 1207 | } |
| 1208 | |
| 1209 | /* Check NODE match the current context. */ |
| 1210 | |
| 1211 | static int |
| 1212 | internal_function |
| 1213 | check_halt_node_context (const re_dfa_t *dfa, int node, unsigned int context) |
| 1214 | { |
| 1215 | re_token_type_t type = dfa->nodes[node].type; |
| 1216 | unsigned int constraint = dfa->nodes[node].constraint; |
| 1217 | if (type != END_OF_RE) |
| 1218 | return 0; |
| 1219 | if (!constraint) |
| 1220 | return 1; |
| 1221 | if (NOT_SATISFY_NEXT_CONSTRAINT (constraint, context)) |
| 1222 | return 0; |
| 1223 | return 1; |
| 1224 | } |
no outgoing calls
no test coverage detected