aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/yacc.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-01-29 16:46:16 +0000
committerrsc <devnull@localhost>2007-01-29 16:46:16 +0000
commit35368876ebfd1eb9f4e5eddec86cf0176d607386 (patch)
treef27f768f84e294000aee8c2f13b31882551c8ccd /src/cmd/yacc.c
parentc2ab969ecafadef496845a525c7f19fa0ce7f42f (diff)
downloadplan9port-35368876ebfd1eb9f4e5eddec86cf0176d607386.tar.gz
plan9port-35368876ebfd1eb9f4e5eddec86cf0176d607386.tar.bz2
plan9port-35368876ebfd1eb9f4e5eddec86cf0176d607386.zip
write YYARG def to ftable (fdefine might be null, and is not the right place anyway)
Diffstat (limited to 'src/cmd/yacc.c')
-rw-r--r--src/cmd/yacc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c
index c15db2e4..c080e012 100644
--- 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;