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
@ -35,15 +35,15 @@ a\
|
|||||||
/^yy_stack_print/{
|
/^yy_stack_print/{
|
||||||
/parser/!{
|
/parser/!{
|
||||||
H
|
H
|
||||||
s/)$/, parser)/
|
s/)$/, p)/
|
||||||
/\*/s/parser)$/struct parser_params *&/
|
/\*/s/p)$/struct parser_params *&/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/yy_stack_print.*;/{
|
/yy_stack_print.*;/{
|
||||||
x
|
x
|
||||||
/yy_stack_print/{
|
/yy_stack_print/{
|
||||||
x
|
x
|
||||||
s/\(yy_stack_print *\)(\(.*\));/\1(\2, parser);/
|
s/\(yy_stack_print *\)(\(.*\));/\1(\2, p);/
|
||||||
x
|
x
|
||||||
}
|
}
|
||||||
x
|
x
|
||||||
@ -51,9 +51,9 @@ a\
|
|||||||
/^yy_reduce_print/,/^}/{
|
/^yy_reduce_print/,/^}/{
|
||||||
s/fprintf *(stderr,/YYFPRINTF (parser,/g
|
s/fprintf *(stderr,/YYFPRINTF (parser,/g
|
||||||
}
|
}
|
||||||
s/\( YYFPRINTF *(\)yyoutput,/\1parser,/
|
s/\( YYFPRINTF *(\)yyoutput,/\1p,/
|
||||||
s/\( YYFPRINTF *(\)stderr,/\1parser,/
|
s/\( YYFPRINTF *(\)stderr,/\1p,/
|
||||||
s/\( YYDPRINTF *((\)stderr,/\1parser,/
|
s/\( YYDPRINTF *((\)stderr,/\1p,/
|
||||||
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…
x
Reference in New Issue
Block a user