diff options
author | obrien <obrien@FreeBSD.org> | 2000-04-20 04:22:36 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-04-20 04:22:36 +0000 |
commit | efebb8d2fa02976f24760fdc8c7444d9cbfc1ca3 (patch) | |
tree | b621d4cee9510d59a22e8ba84f80bd04ed79bd74 /contrib/tcsh/sh.lex.c | |
parent | 4ad28cefef28ce6bdb44a0532cfe20a2076bc694 (diff) | |
download | FreeBSD-src-efebb8d2fa02976f24760fdc8c7444d9cbfc1ca3.zip FreeBSD-src-efebb8d2fa02976f24760fdc8c7444d9cbfc1ca3.tar.gz |
6.09.01 vendor update.
Diffstat (limited to 'contrib/tcsh/sh.lex.c')
-rw-r--r-- | contrib/tcsh/sh.lex.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/tcsh/sh.lex.c b/contrib/tcsh/sh.lex.c index caf202c..b252eaa 100644 --- a/contrib/tcsh/sh.lex.c +++ b/contrib/tcsh/sh.lex.c @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/sh.lex.c,v 3.49 1998/04/08 13:58:54 christos Exp $ */ +/* $Header: /src/pub/tcsh/sh.lex.c,v 3.50 2000/01/14 22:57:28 christos Exp $ */ /* * sh.lex.c: Lexical analysis into tokens */ @@ -36,7 +36,7 @@ */ #include "sh.h" -RCSID("$Id: sh.lex.c,v 3.49 1998/04/08 13:58:54 christos Exp $") +RCSID("$Id: sh.lex.c,v 3.50 2000/01/14 22:57:28 christos Exp $") #include "ed.h" /* #define DEBUG_INP */ @@ -295,6 +295,9 @@ word() int h; bool dolflg; int i; +#if defined(DSPMBYTE) + int mbytepos = 1; +#endif /* DSPMBYTE */ wp = wbuf; i = BUFSIZE - 4; @@ -355,6 +358,13 @@ loop: c1 = 0; dolflg = DOALL; for (;;) { +#if defined(DSPMBYTE) + if (mbytepos == 2) + mbytepos = 1; + else if (mbytepos == 1 && Ismbyte1(c) && 2 <= i) + mbytepos = 2; + else +#endif /* DSPMBYTE */ if (c1) { if (c == c1) { c1 = 0; |