# HG changeset patch # User Matt Johnston # Date 1496415714 -28800 # Node ID 080862694980ac8bbe32523149a5bfe9a8dcd1d4 # Parent b413787adcdb8992e4edbf28b457d90ad8d1cb66# Parent 8aed91ebf3c7f3bc44c40029e0fbc72d5de6f989 Merge pull request #33 from bengardner/termcodes termcodes: make VEOL2, VWERASE, VLNEXT, ECHOCTL, and ECHOKE optional diff -r b413787adcdb -r 080862694980 termcodes.c --- a/termcodes.c Fri Jun 02 23:00:05 2017 +0800 +++ b/termcodes.c Fri Jun 02 23:01:54 2017 +0800 @@ -34,7 +34,11 @@ {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 @@ #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 @@ {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