From 0cd850b207f568595acebceb067a51825316ca44 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 23 Jun 2007 00:05:04 +0000 Subject: [PATCH] =?UTF-8?q?optimise=20=E2=80=93=20we=20already=20did=20tha?= =?UTF-8?q?t=20one=20range=20check=20before?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lex.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lex.c b/lex.c index 2fcbc29..3f1f5b1 100644 --- a/lex.c +++ b/lex.c @@ -2,7 +2,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.36 2007/06/22 23:34:40 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.37 2007/06/23 00:05:04 tg Exp $"); /* Structure to keep track of the lexing state and the various pieces of info * needed for each particular state. */ @@ -687,8 +687,7 @@ yylex(int cf) * ((...); (...)) * and similar is broken */ - (c == '(' /*)*/ ) ? MDPAREN : - YYERRCODE; + /* c == '(' ) */ MDPAREN; else if (c == '|' && c2 == '&') c = COPROC; else