mirror of https://github.com/mirror/busybox.git
bc: undo debugging change, add a small optimization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_30_stable
parent
ab9a98602f
commit
8af11087b2
|
@ -3016,7 +3016,7 @@ static BC_STATUS zbc_lex_string(void)
|
||||||
for (;;) {
|
for (;;) {
|
||||||
char c = peek_inbuf(); // strings can cross lines
|
char c = peek_inbuf(); // strings can cross lines
|
||||||
if (c == '\0') {
|
if (c == '\0') {
|
||||||
RETURN_STATUS(bc_error("unterminated string1"));
|
RETURN_STATUS(bc_error("unterminated string"));
|
||||||
}
|
}
|
||||||
if (c == '"')
|
if (c == '"')
|
||||||
break;
|
break;
|
||||||
|
@ -3060,7 +3060,7 @@ static BC_STATUS zbc_lex_comment(void)
|
||||||
check_star:
|
check_star:
|
||||||
if (c == '*') {
|
if (c == '*') {
|
||||||
p->lex_inbuf++;
|
p->lex_inbuf++;
|
||||||
c = peek_inbuf();
|
c = *p->lex_inbuf; // no need to peek_inbuf()
|
||||||
if (c == '/')
|
if (c == '/')
|
||||||
break;
|
break;
|
||||||
goto check_star;
|
goto check_star;
|
||||||
|
|
Loading…
Reference in New Issue