mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
543687e131
commit
a7b67cc82e
2 changed files with 11 additions and 0 deletions
1
parse.y
1
parse.y
|
@ -48,6 +48,7 @@
|
||||||
# define YYFPRINTF(f, fmt, ...) rb_parser_printf(parser, fmt, ##__VA_ARGS__)
|
# define YYFPRINTF(f, fmt, ...) rb_parser_printf(parser, fmt, ##__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
# define YYFPRINTF rb_parser_printf
|
# define YYFPRINTF rb_parser_printf
|
||||||
|
# undef stderr
|
||||||
# define stderr parser
|
# define stderr parser
|
||||||
#endif
|
#endif
|
||||||
#undef malloc
|
#undef malloc
|
||||||
|
|
|
@ -47,6 +47,16 @@ a\
|
||||||
}
|
}
|
||||||
x
|
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/^\([ ]*\)\(yyerror[ ]*([ ]*parser,\)/\1parser_\2/
|
||||||
s!^ *extern char \*getenv();!/* & */!
|
s!^ *extern char \*getenv();!/* & */!
|
||||||
s/^\(#.*\)".*\.tab\.c"/\1"parse.c"/
|
s/^\(#.*\)".*\.tab\.c"/\1"parse.c"/
|
||||||
|
|
Loading…
Add table
Reference in a new issue