summaryrefslogtreecommitdiffstats
path: root/tests/012
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-08-20 06:31:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-08-20 06:31:14 -0700
commitcabd313483e2f2d23aebb9710458b67f0933f98b (patch)
treef3fe46b63cd0883fe9d269958618dfff3ee9f7a8 /tests/012
parent4aaf96f5aaab5c249c3c8ea6d24ee6683bca6f10 (diff)
downloadtxr-cabd313483e2f2d23aebb9710458b67f0933f98b.tar.gz
txr-cabd313483e2f2d23aebb9710458b67f0933f98b.tar.bz2
txr-cabd313483e2f2d23aebb9710458b67f0933f98b.zip
listener: additional reductions in non-termios build.
* linenoise/linenoise.c (struct lino_state): these members are now absent in non-termios build: atom_callback, ca_ctx, rawmode, mlmode, clip, result, buf, plen, pos, sel, end, len, dlen, dpos, dsel, dend, cols, oldrow, maxrows, history_index, need_resize, need_refresh, selmode, selinclusive, noninteractive and undo_stack. (lino_set_multiline, lino_get_multiline, lino_set_selinclusive, lino_get_selinculsive, lino_set_noninteractive, lino_get_noninteractive, lino_set_atom_cb): Functions now only defined in termios build. (linenoise): Adjustments for missing members in non-termios mode. (lino_make): We no longer need to set noninteractive to 1 in non-termios build. The flag no longer exists. (lino_copy, lino_cleanup): Avoid referencing nonexistent members in non-termios build. (lino_set_result): Another termios-only function. * linenoise/linenoise.h (lino_set_result, lino_clear_screen, lino_set_multiline, lino_get_multiline, lino_set_selinclusive, lino_get_selinculsive, lino_set_noninteractive, lino_get_noninteractive, lino_atom_cb_t, lino_set_atom_cb): Declare only in termios build. * parser.c (repl): Add #if HAVE_TERMIOS to avoid using linenoise features not available in non-termios build, and to remove any variables that thus become unused.
Diffstat (limited to 'tests/012')
0 files changed, 0 insertions, 0 deletions