summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-types.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-16 23:14:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-16 23:14:50 -0700
commitd7a1ff1138adeb49e7b2590c5ea2e4180d684e5e (patch)
treee663431bf9b64cfe714241cc69fdbf2a880b38a9 /mpi/mpi-types.h
parent351e9a9fe35fcad942ac578f107a15342b12bfd7 (diff)
downloadtxr-d7a1ff1138adeb49e7b2590c5ea2e4180d684e5e.tar.gz
txr-d7a1ff1138adeb49e7b2590c5ea2e4180d684e5e.tar.bz2
txr-d7a1ff1138adeb49e7b2590c5ea2e4180d684e5e.zip
linenoise: callback for checking syntax completeness.
The idea is that when the user types Enter to submit a line, it can be checked whether it is complete syntax using a callback. If the callback indicates that the syntax is incomplete (there are open expressions, string literals or whatever), then Enter is inserted verbatim. This is active in multi-line mode only. * linenoise.c (struct lino_state): New members, enter_callback and ce_ctx. (lino_set_enter_cb): New function. (edit): If enter is issued, and multi-line mode is in effect, and there is an enter callback, then call it. If the callback returns false, then just insert the character. * linenoise.h (lino_enter_cb_t): New typedef. (lino_set_enter_cb): Declared.
Diffstat (limited to 'mpi/mpi-types.h')
0 files changed, 0 insertions, 0 deletions