aboutsummaryrefslogtreecommitdiffstats
path: root/tool/ytab.sed
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-13 15:50:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-13 15:50:44 +0000
commit308590dc0a29f9da6cf269c32b93f7fde9bf8f2b (patch)
tree6c5b63c03b609d67f8d02d5fb5633e3d9444321e /tool/ytab.sed
parent3c3f9bcaf701042540d385844020a5a50a7c7421 (diff)
downloadruby-308590dc0a29f9da6cf269c32b93f7fde9bf8f2b.tar.gz
ytab.sed: work around
* tool/ytab.sed: work around for platforms where vairadic macro is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ytab.sed')
-rwxr-xr-xtool/ytab.sed10
1 files changed, 10 insertions, 0 deletions
diff --git a/tool/ytab.sed b/tool/ytab.sed
index d8fb70016c..c1700edbc0 100755
--- a/tool/ytab.sed
+++ b/tool/ytab.sed
@@ -47,6 +47,16 @@ a\
}
x
}
+/^yy_symbol_value_print/{
+ a\
+#define yy_symbol_value_print(output, type, value, parser) yy_symbol_value_print(0, type, value, parser)
+}
+/^yy_symbol_print/{
+ a\
+#define yy_symbol_print(output, type, value, parser) yy_symbol_print(0, type, value, parser)
+ a\
+#define yyoutput parser
+}
s/^\([ ]*\)\(yyerror[ ]*([ ]*parser,\)/\1parser_\2/
s!^ *extern char \*getenv();!/* & */!
s/^\(#.*\)".*\.tab\.c"/\1"parse.c"/