Fix problems in "for (;;)" and put back in quiet mode.
This commit is contained in:
parent
025b45e604
commit
bb9bc62285
4
gnu/dist/bc/bc/bc.y
vendored
4
gnu/dist/bc/bc/bc.y
vendored
@ -203,7 +203,7 @@ statement : Warranty
|
||||
{
|
||||
if ($4 & 2)
|
||||
warn ("Comparison in first for expression");
|
||||
if ($4 >= 0)
|
||||
if ($4 <= 0)
|
||||
generate ("p");
|
||||
$4 = next_label++;
|
||||
sprintf (genstr, "N%1d:", $4);
|
||||
@ -211,7 +211,7 @@ statement : Warranty
|
||||
}
|
||||
opt_expression ';'
|
||||
{
|
||||
if ($7 < 0) generate ("1");
|
||||
if ($7 & 16 ) generate ("1");
|
||||
$7 = next_label++;
|
||||
sprintf (genstr, "B%1d:J%1d:", $7, break_label);
|
||||
generate (genstr);
|
||||
|
2
gnu/dist/bc/bc/main.c
vendored
2
gnu/dist/bc/bc/main.c
vendored
@ -171,7 +171,7 @@ main (argc, argv)
|
||||
interactive = TRUE;
|
||||
else
|
||||
interactive = FALSE;
|
||||
quiet = FALSE;
|
||||
quiet = TRUE;
|
||||
file_names = NULL;
|
||||
|
||||
#ifdef HAVE_SETVBUF
|
||||
|
Loading…
Reference in New Issue
Block a user