diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-09 06:25:21 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-09 06:25:21 -0700 |
commit | 76a770d9826c080f4d6be2cc959c3ce3e972c1b8 (patch) | |
tree | 04ac311f57c5b90ee005549a80429aee6bd6535f /linenoise/example.c | |
parent | 64ed411ed0747d1faf8284409ba858450baa2028 (diff) | |
download | txr-76a770d9826c080f4d6be2cc959c3ce3e972c1b8.tar.gz txr-76a770d9826c080f4d6be2cc959c3ce3e972c1b8.tar.bz2 txr-76a770d9826c080f4d6be2cc959c3ce3e972c1b8.zip |
linenoise: remove input-viewing debug function.
This is unused code which just addds to the executable size.
Also it passes a char to isprint, which is undefined behavior
if that char happens to be negative.
* linenoise/example.c (main): Remove --keycodes option
and reference to lino_print_keycodes function.
* linenoise/linenoise.c, linenoise/linenoise.h
(lino_print_keycodes): Function removed.
Diffstat (limited to 'linenoise/example.c')
-rw-r--r-- | linenoise/example.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/linenoise/example.c b/linenoise/example.c index f884c962..fc7ae78c 100644 --- a/linenoise/example.c +++ b/linenoise/example.c @@ -35,9 +35,6 @@ int main(int argc, char **argv) { if (!strcmp(*argv,"--multiline")) { lino_set_multiline(ls, 1); printf("Multi-line mode enabled.\n"); - } else if (!strcmp(*argv,"--keycodes")) { - lino_print_keycodes(ls); - exit(0); } else { fprintf(stderr, "Usage: %s [--multiline] [--keycodes]\n", prgname); exit(1); |