diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-07-25 07:07:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-07-25 07:07:55 -0700 |
commit | 15b3801eca45ce47c80f6eb19b45dbdbc2da83cf (patch) | |
tree | e07e9bb6dbe3d2c9dd57bb03f8889fbeb9edf788 /eval.c | |
parent | f3e8151605506935a04ea34e758452bf55881e9b (diff) | |
download | txr-15b3801eca45ce47c80f6eb19b45dbdbc2da83cf.tar.gz txr-15b3801eca45ce47c80f6eb19b45dbdbc2da83cf.tar.bz2 txr-15b3801eca45ce47c80f6eb19b45dbdbc2da83cf.zip |
lib: get rid of internal rewindable iter nonsense.
Iterator rewinding is only used by the three functions isec,
isecp and diff, which can easily just re-initialize the
iterator.
* lib.c (seq_iter_rewind): Static function removed.
(seq_iter_init_with_info): Remove support_rewind argument, and
adjust all code referencing it on the assumption that it's zero.
(seq_iter_init_with_rewind): Static function removed.
(seq_iter_init, iter_begin, iter_reset, nullify, find, rfind):
Drop last argument from seq_iter_init_with_info.
(diff, isec, iescp): Use seq_iter_init rather than
seq_iter_init_with_rewind. Instead of seq_iter_rewind, just
reinitialize the iterator.
* lib.h (seq_iter_init_with_info): Declaration updated.
* eval.c (tprint): Drop last argument from seq_iter_init_with_info.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6982,7 +6982,7 @@ val tprint(val obj, val out) seq_iter_t iter; val elem; - seq_iter_init_with_info(self, &iter, si, 0); + seq_iter_init_with_info(self, &iter, si); while (seq_get(&iter, &elem)) tprint(elem, out); |