[前][次][番号順一覧][スレッド一覧]

ruby-changes:41020

From: nobu <ko1@a...>
Date: Mon, 14 Dec 2015 00:51:08 +0900 (JST)
Subject: [ruby-changes:41020] nobu:r53099 (trunk): ytab.sed: work around

nobu	2015-12-14 00:50:44 +0900 (Mon, 14 Dec 2015)

  New Revision: 53099

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53099

  Log:
    ytab.sed: work around
    
    * tool/ytab.sed: work around for platforms where vairadic macro is
      not available.

  Modified files:
    trunk/parse.y
    trunk/tool/ytab.sed
Index: parse.y
===================================================================
--- parse.y	(revision 53098)
+++ parse.y	(revision 53099)
@@ -48,6 +48,7 @@ https://github.com/ruby/ruby/blob/trunk/parse.y#L48
 # define YYFPRINTF(f, fmt, ...) rb_parser_printf(parser, fmt, ##__VA_ARGS__)
 #else
 # define YYFPRINTF		rb_parser_printf
+# undef stderr
 # define stderr 		parser
 #endif
 #undef malloc
Index: tool/ytab.sed
===================================================================
--- tool/ytab.sed	(revision 53098)
+++ tool/ytab.sed	(revision 53099)
@@ -47,6 +47,16 @@ a\ https://github.com/ruby/ruby/blob/trunk/tool/ytab.sed#L47
   }
   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"/

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]