summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-07-25 07:07:55 -0700
committerKaz Kylheku <kaz@kylheku.com>2024-07-25 07:07:55 -0700
commit15b3801eca45ce47c80f6eb19b45dbdbc2da83cf (patch)
treee07e9bb6dbe3d2c9dd57bb03f8889fbeb9edf788 /eval.c
parentf3e8151605506935a04ea34e758452bf55881e9b (diff)
downloadtxr-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index b5eb32dc..066e1c1c 100644
--- a/eval.c
+++ b/eval.c
@@ -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);