diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-09-15 13:03:52 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-09-15 13:03:52 -0700 |
commit | 23af2e9ad0e190331fa1ef588c50b08c70faeaff (patch) | |
tree | 303dcc52cae79f0226e40d966267aa7df6ef7546 | |
parent | 3775eb7b3afe49d6b39e5a907747c23de8b5f42e (diff) | |
download | txr-23af2e9ad0e190331fa1ef588c50b08c70faeaff.tar.gz txr-23af2e9ad0e190331fa1ef588c50b08c70faeaff.tar.bz2 txr-23af2e9ad0e190331fa1ef588c50b08c70faeaff.zip |
regex: misleading comment.
* regex.c (mfa_move_closure): Fix misleading wording in
comment. The state which matches the character (has a
transition for it) is not the one added to the move set.
-rw-r--r-- | regex.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1369,7 +1369,8 @@ static int nfa_move_closure(nfa_state_t **stack, nfa_state_t **set, int nin, continue; } - /* The state matches the character, so add it to the move set. + /* The state has a transition on the character, add the transition's + destination set to the move set. C trick: all character-transitioning state types have the pointer to the next state in the same position, among a common set of leading struct members in the union, |