From 79049567a0fac8707ea3f2927403445bdb2394fa Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Mar 2007 18:32:51 +0000 Subject: =?UTF-8?q?try=20to=20handle=20Beof=20in=20the=20macros=20(Michael?= =?UTF-8?q?=20Teichgr=C3=A4ber)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cmd/cb/cb.c | 6 +++--- src/cmd/cb/cbtype.c | 2 +- src/cmd/cb/cbtype.h | 22 +++++++++++----------- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/cmd/cb/cb.c b/src/cmd/cb/cb.c index 761ccf12..0b245896 100644 --- a/src/cmd/cb/cb.c +++ b/src/cmd/cb/cb.c @@ -685,7 +685,7 @@ gotop(int c) char *a, *b; op_ptr = optmp; *op_ptr++ = c; - while (isop(( *op_ptr = getch())))op_ptr++; + while (isop((uchar)( *op_ptr = getch())))op_ptr++; if(!strict)unget(*op_ptr); else if (*op_ptr != ' ')unget( *op_ptr); *op_ptr = '\0'; @@ -845,7 +845,7 @@ lookup(char *first, char *last) ptr = key; while ((ckey = ptr->name) != 0){ for (k = cptr; (*ckey == *k && *ckey != '\0'); k++, ckey++); - if(*ckey=='\0' && (k==last|| (k