diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-05 22:39:10 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-05 22:39:10 -0700 |
commit | 9bc7cb70ae8d216f90f11ba66e202e941c469a91 (patch) | |
tree | 8f64edba42b9d2074604a4970b134fd90ac9e8df /hash.h | |
parent | fa2318f5fb705f106bf251e2dd52f22c5c6bc5f4 (diff) | |
download | txr-9bc7cb70ae8d216f90f11ba66e202e941c469a91.tar.gz txr-9bc7cb70ae8d216f90f11ba66e202e941c469a91.tar.bz2 txr-9bc7cb70ae8d216f90f11ba66e202e941c469a91.zip |
buffers: improve put-buf and fill-buf.
* stream.h (struct strm_ops): put_buf and fill_buf function
pointers get third argument to indicate starting position
of read and write.
(put_buf, fill_buf): Declarations updated.
* stream.c (unimpl_put_buf, unimpl_fill_buf): Third argument
added.
(generic_put_buf, generic_fill_buf, stdio_put_buf,
stdio_fill_buf): Implement position
argument.
(delegate_put_buf, delegate_fill_buf): Take third argument,
pass it down.
(put_buf, fill_buf): New position argument in second position.
Defaulted to zero. Passed down.
(stream_init): Updated registration of put-buf and fill-buf.
* txr.1: Updated documentation.
Diffstat (limited to 'hash.h')
0 files changed, 0 insertions, 0 deletions