mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y: Use "p" for the variable of struct parser_params consistently
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca6e1620bd
commit
14be478d88
2 changed files with 779 additions and 779 deletions
|
@ -35,15 +35,15 @@ a\
|
|||
/^yy_stack_print/{
|
||||
/parser/!{
|
||||
H
|
||||
s/)$/, parser)/
|
||||
/\*/s/parser)$/struct parser_params *&/
|
||||
s/)$/, p)/
|
||||
/\*/s/p)$/struct parser_params *&/
|
||||
}
|
||||
}
|
||||
/yy_stack_print.*;/{
|
||||
x
|
||||
/yy_stack_print/{
|
||||
x
|
||||
s/\(yy_stack_print *\)(\(.*\));/\1(\2, parser);/
|
||||
s/\(yy_stack_print *\)(\(.*\));/\1(\2, p);/
|
||||
x
|
||||
}
|
||||
x
|
||||
|
@ -51,9 +51,9 @@ a\
|
|||
/^yy_reduce_print/,/^}/{
|
||||
s/fprintf *(stderr,/YYFPRINTF (parser,/g
|
||||
}
|
||||
s/\( YYFPRINTF *(\)yyoutput,/\1parser,/
|
||||
s/\( YYFPRINTF *(\)stderr,/\1parser,/
|
||||
s/\( YYDPRINTF *((\)stderr,/\1parser,/
|
||||
s/\( YYFPRINTF *(\)yyoutput,/\1p,/
|
||||
s/\( YYFPRINTF *(\)stderr,/\1p,/
|
||||
s/\( YYDPRINTF *((\)stderr,/\1p,/
|
||||
s/^\([ ]*\)\(yyerror[ ]*([ ]*parser,\)/\1parser_\2/
|
||||
s!^ *extern char \*getenv();!/* & */!
|
||||
s/^\(#.*\)".*\.tab\.c"/\1"parse.c"/
|
||||
|
|
Loading…
Add table
Reference in a new issue