summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-09 04:25:58 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-09 04:25:58 +0000
commit014347511c17615c9958383621a3c945fafefa81 (patch)
treea0dd22871bcdc7eebef819c2603675cd4a8b7119 /tool
parent995e42817c01111bc3dfeb092d3ed7e080edd8c2 (diff)
merge revision(s) 36533: [Backport #7316]
* tool/ytab.sed: fix for Bison 2.6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/ytab.sed6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/ytab.sed b/tool/ytab.sed
index f956c065e2..46317db284 100755
--- a/tool/ytab.sed
+++ b/tool/ytab.sed
@@ -5,6 +5,12 @@ i\
a\
#endif
}
+/^extern int yydebug;/{
+i\
+#ifndef yydebug
+a\
+#endif
+}
/^yydestruct.*yymsg/,/#endif/{
/^yydestruct/{
/parser/!{