summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-09-13 06:46:04 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-09-13 06:46:04 -0700
commit1dcaca6fb851e21b4b6da0a5639431c481a57b04 (patch)
tree3e7718caa1646ae17e64f09c844f1768bbc57032 /gc.c
parente7c55ed9b8ff89310dc08b98eb03fc35ef280e41 (diff)
downloadtxr-1dcaca6fb851e21b4b6da0a5639431c481a57b04.tar.gz
txr-1dcaca6fb851e21b4b6da0a5639431c481a57b04.tar.bz2
txr-1dcaca6fb851e21b4b6da0a5639431c481a57b04.zip
regex: factor out repeated visit-coloring pattern.
* regex.c (nfa_test_set_visited): New inline function. (nfa_map_states, nfa_thread_epsilons, nfa_closure, nfa_move_closure): Use function instead of coding pattern which tests the state and sets the visited member.
Diffstat (limited to 'gc.c')
0 files changed, 0 insertions, 0 deletions