I'd put down $10 says the author did a last minute tweak to awkgram.y (which

had an error in it), and applied it by hand to awkgram.c (getting it right)
rather than really generating an new awkgram.c properly using Bison/YACC...
Fix his mistake here.
This commit is contained in:
David E. O'Brien 2001-11-02 23:41:29 +00:00
parent ce83bef85e
commit 622bfc32f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/awk/dist/; revision=85919

View file

@ -438,7 +438,7 @@ statement
{
$$ = node($3, $1, $5);
if ($$->type == Node_K_printf)
count_args($$)
count_args($$);
}
| print opt_rexpression_list output_redir statement_term
{
@ -460,7 +460,7 @@ statement
$$ = node($2, $1, $3);
if ($$->type == Node_K_printf)
count_args($$)
count_args($$);
}
| LEX_NEXT statement_term
{ NODETYPE type;