summaryrefslogtreecommitdiffstats
path: root/lisplib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-28 20:28:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-28 20:28:21 -0700
commit9d64cdbc5ce9809073e1be099696616327dfe3c6 (patch)
tree9725d6aef73baf95b3eb14047bdaccfab1213cd5 /lisplib.h
parent757f79a369ca63faa8934512f4a53d4cec4f8fd0 (diff)
downloadtxr-9d64cdbc5ce9809073e1be099696616327dfe3c6.tar.gz
txr-9d64cdbc5ce9809073e1be099696616327dfe3c6.tar.bz2
txr-9d64cdbc5ce9809073e1be099696616327dfe3c6.zip
Support ISO C stream direction switching rules.
* stream.c (CONFIG_STDIO_STRICT): New preprocessor symbol. (enum stdio_op): New enum. (struct stdio_handle): New member, last_op. (stdio_switch): New static function, or macro. (stdio_put_string, stdio_put_char, stdio_put_byte): Indicate possible switch to write mode via stdio_switch. (stdio_flush): If the last direction wasn't write, don't bother doing anything. (stdio_get_char, stdio_get_byte): Indicate possible switch to read mode. (tail_strategy): Set last mode to stdio_none whenever new FILE * stream is installed. (make_stdio_stream_common): Initialize last_op member.
Diffstat (limited to 'lisplib.h')
0 files changed, 0 insertions, 0 deletions