diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-29 15:22:49 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-29 15:22:49 +0000 |
| commit | 212a09f0158e2b98b6e5a29a03bd8186c82bd253 (patch) | |
| tree | fe169cb2e7bef370652a103d1eadbb0f0fb87bfa /parse.y | |
| parent | 5090609cb5177ce384359d34a560195665595deb (diff) | |
| download | ruby-212a09f0158e2b98b6e5a29a03bd8186c82bd253.tar.gz ruby-212a09f0158e2b98b6e5a29a03bd8186c82bd253.tar.xz ruby-212a09f0158e2b98b6e5a29a03bd8186c82bd253.zip | |
* parse.y (open_args, arg_ambiguous, parser_warning): should not use
rb_warning in the parser.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2339,7 +2339,7 @@ open_args : call_args | tLPAREN_ARG {lex_state = EXPR_ENDARG;} rparen { /*%%%*/ - rb_warning("don't put space before argument parentheses"); + rb_warning0("don't put space before argument parentheses"); $$ = 0; /*% $$ = dispatch1(space, dispatch1(arg_paren, arg_new())); @@ -2348,7 +2348,7 @@ open_args : call_args | tLPAREN_ARG call_args2 {lex_state = EXPR_ENDARG;} rparen { /*%%%*/ - rb_warning("don't put space before argument parentheses"); + rb_warning0("don't put space before argument parentheses"); $$ = $2; /*% $$ = dispatch1(space, dispatch1(arg_paren, $2)); @@ -5398,7 +5398,7 @@ parser_here_document(struct parser_params *parser, NODE *here) static void arg_ambiguous(void) { - rb_warning("ambiguous first argument; put parentheses or even spaces"); + rb_warning0("ambiguous first argument; put parentheses or even spaces"); } #else static void @@ -6920,7 +6920,7 @@ parser_warning(NODE *node, const char *mesg) { int line = ruby_sourceline; ruby_sourceline = nd_line(node); - rb_warning("%s", mesg); + rb_warningS("%s", mesg); ruby_sourceline = line; } |
