summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-05-27 08:18:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-05-27 08:18:46 -0700
commitd021ddb220345dd93b251dc6ba50caf116c590c5 (patch)
tree8748e724b902cab23a2fc74aebb168e84ad74c52 /struct.c
parent6ad1aa9978b219f34799ae9db41e20452d06145f (diff)
downloadtxr-d021ddb220345dd93b251dc6ba50caf116c590c5.tar.gz
txr-d021ddb220345dd93b251dc6ba50caf116c590c5.tar.bz2
txr-d021ddb220345dd93b251dc6ba50caf116c590c5.zip
bugfix: fatal exception on missing .txr_history.
The new abstraction layer used by linenoise throws exceptions, but linenoise excpects a null pointer when a file open fails. * parser.c (lino_open, lino_open8): Catch error exceptions and convert to null return, using new macros to reduce repetitive coding. * unwind.h (ignerr_begin, ignerr_end): New macros.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions