aboutsummaryrefslogtreecommitdiffstats
path: root/tool/ytab.sed
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 06:36:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 06:36:50 +0000
commitc9d0b0f9f6e93bcf27f2ca0d74ed5518250b78a5 (patch)
treef94a42b5400218606fa453b284c3a3fc9be88102 /tool/ytab.sed
parent77939ae715e722a5150242bf4a50e72c94cdaf10 (diff)
downloadruby-c9d0b0f9f6e93bcf27f2ca0d74ed5518250b78a5.tar.gz
ytab.sed: for bison 2
* tool/ytab.sed: substitute `fprintf`s used directory in yy_reduce_print by bison 2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ytab.sed')
-rwxr-xr-xtool/ytab.sed3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/ytab.sed b/tool/ytab.sed
index ce5a942b00..706cf75a9a 100755
--- a/tool/ytab.sed
+++ b/tool/ytab.sed
@@ -47,6 +47,9 @@ a\
}
x
}
+/^yy_reduce_print/,/^}/{
+ s/fprintf *(stderr,/YYFPRINTF (parser,/g
+}
s/\( YYFPRINTF *(\)yyoutput,/\1parser,/
s/\( YYFPRINTF *(\)stderr,/\1parser,/
s/\( YYDPRINTF *((\)stderr,/\1parser,/