optimise – we already did that one range check before
This commit is contained in:
parent
3a94b076a0
commit
0cd850b207
5
lex.c
5
lex.c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#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
|
/* Structure to keep track of the lexing state and the various pieces of info
|
||||||
* needed for each particular state. */
|
* needed for each particular state. */
|
||||||
@ -687,8 +687,7 @@ yylex(int cf)
|
|||||||
* ((...); (...))
|
* ((...); (...))
|
||||||
* and similar is broken
|
* and similar is broken
|
||||||
*/
|
*/
|
||||||
(c == '(' /*)*/ ) ? MDPAREN :
|
/* c == '(' ) */ MDPAREN;
|
||||||
YYERRCODE;
|
|
||||||
else if (c == '|' && c2 == '&')
|
else if (c == '|' && c2 == '&')
|
||||||
c = COPROC;
|
c = COPROC;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user