diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-13 16:54:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-13 16:54:43 +0000 |
commit | aaacf2ccaa9b236b9cdcb83022bb2625186093ee (patch) | |
tree | 7d19d56a6e54a372e044129f36011573e3c03d28 /tool/ytab.sed | |
parent | 308590dc0a29f9da6cf269c32b93f7fde9bf8f2b (diff) | |
download | ruby-aaacf2ccaa9b236b9cdcb83022bb2625186093ee.tar.gz |
ytab.sed: replace argument
* tool/ytab.sed: substitute the first argument of YYFPRINTF, instead
of substitution by preprocessor, not to redefine stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ytab.sed')
-rwxr-xr-x | tool/ytab.sed | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tool/ytab.sed b/tool/ytab.sed index c1700edbc0..ce5a942b00 100755 --- a/tool/ytab.sed +++ b/tool/ytab.sed @@ -47,16 +47,9 @@ 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/\( YYFPRINTF *(\)yyoutput,/\1parser,/ +s/\( YYFPRINTF *(\)stderr,/\1parser,/ +s/\( YYDPRINTF *((\)stderr,/\1parser,/ s/^\([ ]*\)\(yyerror[ ]*([ ]*parser,\)/\1parser_\2/ s!^ *extern char \*getenv();!/* & */! s/^\(#.*\)".*\.tab\.c"/\1"parse.c"/ |