summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-07 14:26:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-07 14:26:56 -0700
commit73584c632d9a61c679cea57ba09f5d1843bf1435 (patch)
treece00779351ef10f7f77e07fb5f457839a9b3640c /parser.c
parent2d5fcd953cd1632dece9d4202e477a5b2cc95663 (diff)
downloadtxr-73584c632d9a61c679cea57ba09f5d1843bf1435.tar.gz
txr-73584c632d9a61c679cea57ba09f5d1843bf1435.tar.bz2
txr-73584c632d9a61c679cea57ba09f5d1843bf1435.zip
TXR 105 regression: real-time stream not used on tty.
When the -n option was introduced, on Mar 29, 2015, the change didn't take into account that the hacky complex_open function takes the C stdin stream directly, and not the std_input Lisp stream. After that change, only the std_input is automaticaly marked for real-time input if standard input is a tty, and not any stream later opened from stdin. * match.c (enum fpip_close): New enum member, fpip_close_stream. (struct fpip): New member s, for smuggling through a stream. (complex_open): If name is "-", then plant std_input or std_output as the s member of fpip_t, rather than planting stdin or stdout as the f member. (complex_open_failed): Check for nil stream also. (complex_snarf, complex_stream): Handle stream case.
Diffstat (limited to 'parser.c')
0 files changed, 0 insertions, 0 deletions