diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-06-07 19:54:09 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-06-07 19:54:09 -0700 |
commit | 267c1c96144c983f7c6d4826cb0fede4471c3233 (patch) | |
tree | 70c76d2e21b0020dd77880e1e749bd6b89ec7c30 /txr.1 | |
parent | b0906871e8a6bbd2f5b4c25eca511ac1827a30d5 (diff) | |
download | txr-267c1c96144c983f7c6d4826cb0fede4471c3233.tar.gz txr-267c1c96144c983f7c6d4826cb0fede4471c3233.tar.bz2 txr-267c1c96144c983f7c6d4826cb0fede4471c3233.zip |
* stream.c (catenated_stream_p, catenated_stream_push): New functions.
* stream.h (catenated_stream_p, catenated_stream_push): Declared.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -24304,6 +24304,47 @@ and .code unget-byte operations throw an exception. +.coNP Function @ catenated-stream-p +.synb +.mets (catenated-stream-p << obj ) +.syne +.desc +The +.code catenated-stream-p +function returns +.code t +if +.meta obj +is a catenated stream. Otherwise it returns +.codn nil . + +.coNP Function @ catenated-stream-push +.synb +.mets (catenated-stream-push < new-stream << cat-stream ) +.syne +.desc +The +.code catenated-stream-push +function pushes +.meta new-stream +to the front of the stream list inside +.metn cat-stream . + +If an +.code unget-byte +or +.code unget-char +operation was successfully performed on +.meta cat-stream +previously to a call to +.codn catenated-stream-push , +those operations were forwarded to the front stream. +If those bytes or characters are still pending, +they are pending inside that stream, and thus +are logically preceded by the contents +of +.metn new-stream . + .coNP Functions @ open-files and @ open-files* .synb .mets (open-files < path-list <> [ alternative-stream ]) |