summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-06-04 19:46:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-06-04 19:46:43 -0700
commitf7b4b05012a9e40deca1bdc72b02638d0be5a386 (patch)
tree5418bcad5bd1aed9a232ef54bba2a8d4151c7e62 /lib.h
parent18f4676d93c4601f76f28470865c2ae589cee095 (diff)
downloadtxr-f7b4b05012a9e40deca1bdc72b02638d0be5a386.tar.gz
txr-f7b4b05012a9e40deca1bdc72b02638d0be5a386.tar.bz2
txr-f7b4b05012a9e40deca1bdc72b02638d0be5a386.zip
seq_iter: null list object if rewind not needed.
* lib.c (seq_iter_init_with_info): Take new Boolean argument indicating whether the iterator needs to support the rewind operation. If this is false, and the object is a list, then we clobber the object, in order to eliminate the GC root. (seq_iter_init, iter_begin, iter_reset): Pass 0 for the new Boolean parameter. (seq_iter_init_with_rewind): New function. (diff, isec): Use seq_iter_init_with_rewind to request an iterator with rewind support for the second sequence.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions