plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 35368876ebfd1eb9f4e5eddec86cf0176d607386
parent c2ab969ecafadef496845a525c7f19fa0ce7f42f
Author: rsc <devnull@localhost>
Date:   Mon, 29 Jan 2007 16:46:16 +0000

write YYARG def to ftable (fdefine might be null, and is not the right place anyway)

Diffstat:
Msrc/cmd/yacc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c @@ -1223,7 +1223,7 @@ setup(int argc, char *argv[]) openup(stemc, dflag, vflag, ytab, ytabc); fout = dflag?fdefine:ftable; if(yyarg){ - Bprint(fdefine, "#define\tYYARG\t1\n\n"); + Bprint(ftable, "#define\tYYARG\t1\n\n"); } if((fd = mkstemp(ttempname)) >= 0){ tempname = ttempname;