Skip to content

Commit

Permalink
Eliminate use of two obsolete preprocessor symbols
Browse files Browse the repository at this point in the history
Resolves #1018
  • Loading branch information
krader1961 committed Nov 27, 2018
1 parent b690006 commit c530b43
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
12 changes: 0 additions & 12 deletions src/cmd/ksh93/edit/edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,8 @@ int tty_raw(int fd, int echomode) {
ttyparm.c_lflag &= ~FLUSHO;
#endif // FLUSHO
nttyparm = ttyparm;
#ifndef u370
nttyparm.c_iflag &= ~(IGNPAR | PARMRK | INLCR | IGNCR | ICRNL);
nttyparm.c_iflag |= BRKINT;
#else // u370
nttyparm.c_iflag &= ~(IGNBRK | PARMRK | INLCR | IGNCR | ICRNL | INPCK);
nttyparm.c_iflag |= (BRKINT | IGNPAR);
#endif // u370
if (echo) {
nttyparm.c_lflag &= ~(ICANON);
} else {
Expand Down Expand Up @@ -291,14 +286,7 @@ void ed_ringbell(void) { write(ERRIO, bellchr, 1); }
//
// Send a carriage return line feed to the terminal.
//

void ed_crlf(Edit_t *ep) {
#ifdef cray
ed_putchar(ep, '\r');
#endif // cray
#ifdef u370
ed_putchar(ep, '\r');
#endif // u370
ed_putchar(ep, '\n');
ed_flush(ep);
}
Expand Down
6 changes: 0 additions & 6 deletions src/cmd/ksh93/edit/emacs.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,6 @@ int ed_emacsread(void *context, int fd, char *buff, int scend, int reedit) {
tty_cooked(ERRIO);
return 0;
}
#ifdef u370
case cntl('S'):
case cntl('Q'): {
continue;
}
#endif // u370
case '\t': {
if ((cur > 0 || ep->ed->e_tabcount) && ep->ed->sh->nextprompt) {
if (ep->ed->e_tabcount == 0) {
Expand Down

0 comments on commit c530b43

Please sign in to comment.