summaryrefslogtreecommitdiffhomepage
path: root/termcodes.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-14 23:31:42 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-06-14 23:31:42 +0800
commit88ce30beb62716b000289d255deca50006880633 (patch)
treea15e89f770e72a4eef240e776082018ce5579594 /termcodes.c
parent723ec19eedd2618cd850e703519fd8432c67e44c (diff)
parentd260d5148e2eec62e7af8d6ec86dae438e4a0ec9 (diff)
merge from main
--HG-- branch : fuzz
Diffstat (limited to 'termcodes.c')
-rw-r--r--termcodes.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/termcodes.c b/termcodes.c
index 490e6ce..c5819c1 100644
--- a/termcodes.c
+++ b/termcodes.c
@@ -34,7 +34,11 @@ const struct TermCode termcodes[MAX_TERMCODE+1] = {
{VKILL, TERMCODE_CONTROLCHAR},
{VEOF, TERMCODE_CONTROLCHAR},
{VEOL, TERMCODE_CONTROLCHAR},
+#ifdef VEOL2
{VEOL2, TERMCODE_CONTROLCHAR},
+#else
+ {0, 0},
+#endif
{VSTART, TERMCODE_CONTROLCHAR},
{VSTOP, TERMCODE_CONTROLCHAR},
{VSUSP, TERMCODE_CONTROLCHAR},
@@ -51,17 +55,25 @@ const struct TermCode termcodes[MAX_TERMCODE+1] = {
#ifdef AIX
{CERASE, TERMCODE_CONTROLCHAR},
#else
+#ifdef VWERASE
{VWERASE, TERMCODE_CONTROLCHAR},
+#else
+ {0, 0},
#endif
+#endif
+#ifdef VLNEXT
{VLNEXT, TERMCODE_CONTROLCHAR},
+#else
+ {0, 0},
+#endif
#ifdef VFLUSH
{VFLUSH, TERMCODE_CONTROLCHAR},
-#else
+#else
{0, 0},
#endif
#ifdef VSWTCH
{VSWTCH, TERMCODE_CONTROLCHAR},
-#else
+#else
{0, 0},
#endif
#ifdef VSTATUS
@@ -135,8 +147,16 @@ const struct TermCode termcodes[MAX_TERMCODE+1] = {
{NOFLSH, TERMCODE_LOCAL},
{TOSTOP, TERMCODE_LOCAL},
{IEXTEN, TERMCODE_LOCAL},
+#ifdef ECHOCTL
{ECHOCTL, TERMCODE_LOCAL},
+#else
+ {0, 0},
+#endif
+#ifdef ECHOKE
{ECHOKE, TERMCODE_LOCAL},
+#else
+ {0, 0},
+#endif
#ifdef PENDIN
{PENDIN, TERMCODE_LOCAL},
#else