changeset 146:af841e8d739d

fix ch lost in #if const
author kono
date Fri, 23 May 2003 13:55:40 +0900
parents fb61020a9b48
children cb7aa0089681
files mc-parse.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mc-parse.c	Fri May 23 13:27:48 2003 +0900
+++ b/mc-parse.c	Fri May 23 13:55:40 2003 +0900
@@ -3490,6 +3490,13 @@
 	    ch= *chptr;
 	    getsym();
 	    i=cexpr(expr(1));
+	    if (ch) {
+		if (chptr[-1]==ch) {
+		/* we are fall into getch(), which lost the last ch */
+		/* chptr[-1]==ch check is fanatic, but ... */
+		    chptr--;
+		} else error(-1);
+	    }
 	    macro_if_depth = macro_if_current;
 	    macro_if_skip = !i;
 	}