diff --git a/ChangeLog b/ChangeLog index c264ec98a4..32e864bee2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed May 30 00:24:09 2007 Nobuyoshi Nakada + + * parse.y (open_args, arg_ambiguous, parser_warning): should not use + rb_warning in the parser. + Tue May 29 12:31:33 2007 Nobuyoshi Nakada * win32/win32.c (rb_w32_opendir): removed duplicated code. diff --git a/parse.y b/parse.y index 7b33068452..2bfd9c73fa 100644 --- a/parse.y +++ b/parse.y @@ -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; } diff --git a/version.h b/version.h index 15abe79ca6..3ab78c0e4f 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-05-29" +#define RUBY_RELEASE_DATE "2007-05-30" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070529 +#define RUBY_RELEASE_CODE 20070530 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 5 -#define RUBY_RELEASE_DAY 29 +#define RUBY_RELEASE_DAY 30 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];