diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-28 13:14:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-28 13:14:28 -0700 |
commit | 42367d8856e5476245b218e1b2bbf416a0341327 (patch) | |
tree | f1da85ccabd1c670c44c916c744b63c4064dbef6 /share/txr/stdlib/place.tl | |
parent | 0c2ccd85a2a237c442f0706e420797af64a4398f (diff) | |
download | txr-42367d8856e5476245b218e1b2bbf416a0341327.tar.gz txr-42367d8856e5476245b218e1b2bbf416a0341327.tar.bz2 txr-42367d8856e5476245b218e1b2bbf416a0341327.zip |
Add a byte mode to stdio streams.
* stream.c (byte_oriented_k): New keyword symbol variable.
(struct stdio_handle): New member, is_byte_oriented.
(stdio_get_prop): Retrieve the value of is_byte_oriented when
the :byte-oriented property is inquired.
(stdio_set_prop): Map :byte-oriented to the is_byte_oriented
flag.
(stdio_get_char): Do not decode UTF-8 if is_byte_oriented is
set; just read one character.
(make_stdio_stream_common): Initialize is_byte_oriented to 0.
(stream_init): Initialize byte_oriented_k.
* txr.1: Document :byte-oriented property, along
with some clean-up and clarification in the description of
properties.
Diffstat (limited to 'share/txr/stdlib/place.tl')
0 files changed, 0 insertions, 0 deletions