summaryrefslogtreecommitdiff
path: root/tool/ytab.sed
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-25 04:12:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-25 04:12:44 +0000
commitc5581959992c3fd621b48f9fc506454993daf077 (patch)
tree6730d3f7a253b8ceb8d5f8453d4d1e5f60062c96 /tool/ytab.sed
parent7edb26458688db159233895eba2ab0ac6c8dbb12 (diff)
* tool/ytab.sed: fix for Bison 2.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ytab.sed')
-rwxr-xr-xtool/ytab.sed6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/ytab.sed b/tool/ytab.sed
index f956c06..46317db 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/!{