aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-29 15:22:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-29 15:22:49 +0000
commit0d2109239d99af0710937c4bfe96a3c6e9db25ad (patch)
treefe169cb2e7bef370652a103d1eadbb0f0fb87bfa
parent82159c813bcf74b117ca37801a3fa527f1909a6b (diff)
downloadruby-0d2109239d99af0710937c4bfe96a3c6e9db25ad.tar.gz
* parse.y (open_args, arg_ambiguous, parser_warning): should not use
rb_warning in the parser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y8
-rw-r--r--version.h6
3 files changed, 12 insertions, 7 deletions
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 <nobu@ruby-lang.org>
+
+ * 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 <nobu@ruby-lang.org>
* 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[];