diff options
author | ache <ache@FreeBSD.org> | 2000-11-30 21:05:33 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-11-30 21:05:33 +0000 |
commit | 5e7fc01bd9bf3444f2d8b21ab1c56c1f2d599068 (patch) | |
tree | a212ee10b5214f5c4302ff44d44c2542d83cf7b6 /contrib/tcsh/ed.inputl.c | |
parent | d7d472004aa5fe13bc67f9aa639952d978d342e9 (diff) | |
download | FreeBSD-src-5e7fc01bd9bf3444f2d8b21ab1c56c1f2d599068.zip FreeBSD-src-5e7fc01bd9bf3444f2d8b21ab1c56c1f2d599068.tar.gz |
Initial import of slightly trimmed tcsh 6.10
Diffstat (limited to 'contrib/tcsh/ed.inputl.c')
-rw-r--r-- | contrib/tcsh/ed.inputl.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/tcsh/ed.inputl.c b/contrib/tcsh/ed.inputl.c index ed58cd3..7ba2ed6 100644 --- a/contrib/tcsh/ed.inputl.c +++ b/contrib/tcsh/ed.inputl.c @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/ed.inputl.c,v 3.48 2000/06/10 20:14:57 kim Exp $ */ +/* $Header: /src/pub/tcsh/ed.inputl.c,v 3.49 2000/11/11 23:03:34 christos Exp $ */ /* * ed.inputl.c: Input line handling. */ @@ -36,7 +36,7 @@ */ #include "sh.h" -RCSID("$Id: ed.inputl.c,v 3.48 2000/06/10 20:14:57 kim Exp $") +RCSID("$Id: ed.inputl.c,v 3.49 2000/11/11 23:03:34 christos Exp $") #include "ed.h" #include "ed.defns.h" /* for the function names */ @@ -737,9 +737,9 @@ GetNextChar(cp) if (Rawmode() < 0) /* make sure the tty is set up correctly */ return 0; /* oops: SHIN was closed */ -#ifdef WINNT +#ifdef WINNT_NATIVE __nt_want_vcode = 1; -#endif /* WINNT */ +#endif /* WINNT_NATIVE */ while ((num_read = read(SHIN, (char *) &tcp, 1)) == -1) { if (errno == EINTR) continue; @@ -751,14 +751,14 @@ GetNextChar(cp) if (errno != EINTR) stderror(ERR_SYSTEM, progname, strerror(errno)); #endif /* convex */ -#ifdef WINNT +#ifdef WINNT_NATIVE __nt_want_vcode = 0; -#endif /* WINNT */ +#endif /* WINNT_NATIVE */ *cp = '\0'; return -1; } } -#ifdef WINNT +#ifdef WINNT_NATIVE if (__nt_want_vcode == 2) *cp = __nt_vcode; else @@ -766,7 +766,7 @@ GetNextChar(cp) __nt_want_vcode = 0; #else *cp = tcp; -#endif /* WINNT */ +#endif /* WINNT_NATIVE */ return num_read; } @@ -810,12 +810,12 @@ SpellLine(cmdonly) mismatch[1] = HISTSUB; if (!Strchr(mismatch, *argptr) && (!cmdonly || starting_a_command(argptr, InputBuf))) { -#ifdef WINNT +#ifdef WINNT_NATIVE /* * This hack avoids correcting drive letter changes */ if((Cursor - InputBuf) != 2 || (char)InputBuf[1] != ':') -#endif /* WINNT */ +#endif /* WINNT_NATIVE */ { #ifdef HASH_SPELL_CHECK Char save; |