diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-06-11 16:12:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-06-11 16:12:49 -0700 |
commit | a6b0130ceaeadce6845d698fb68712dc2786e918 (patch) | |
tree | dc7bf64d77c90a277ed9d322ae66f4b70cfb73c0 /match.c | |
parent | 573ac250cbf85b32f50545269c994292440d0b5d (diff) | |
download | txr-a6b0130ceaeadce6845d698fb68712dc2786e918.tar.gz txr-a6b0130ceaeadce6845d698fb68712dc2786e918.tar.bz2 txr-a6b0130ceaeadce6845d698fb68712dc2786e918.zip |
* eval.c (eval_init): lazy-str's third argument is optional.
Added lazy-stringp. Changing names of length-str-{gt,ge,lt,le}
to be consistent with the >, >=, < and <= functions.
* lib.c (lazy_stream_func): Greatly simplified implementation.
The lazy list now continues by means of recursing via
an optimized version of lazy_stream_cons called lazy_stream_cont.
The environment structure is simplified to just hold the next item,
rather than a pointless list. The pointless setting of lcons->lc.func
to nil is also removed; this is always done by the caller.
(lazy_stream_cont): New static function, similar to lazy_stream_cons,
but optimized by not consing up a new function and new environment
cell.
(lazy_stream_cons): The environment for the update function
is simplified to just a single cons.
* txr.1: Documented lazy string functions and lazy-stream-cons.
Diffstat (limited to 'match.c')
0 files changed, 0 insertions, 0 deletions