diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-18 10:49:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-18 10:49:28 +0000 |
commit | 5ca24aa3e816759b838673743aed54b541c8d8e4 (patch) | |
tree | c32ee5249572a7c962bfe664af444d0eb380e365 | |
parent | 050a1687d2ff1c75727f163dc730ca79883eb435 (diff) | |
download | ruby-5ca24aa3e816759b838673743aed54b541c8d8e4.tar.gz |
* parse.y: needless conditionals.
* parse.y (parse_regx): parse error at unterminated regex /#{.
(ruby-bugs-ja:PR#142)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | parse.y | 10 | ||||
-rw-r--r-- | version.h | 4 |
3 files changed, 12 insertions, 9 deletions
@@ -1,3 +1,10 @@ +Sun Nov 18 19:37:55 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> + + * parse.y: needless conditionals. + + * parse.y (parse_regx): parse error at unterminated regex /#{. + (ruby-bugs-ja:PR#142) + Thu Nov 15 15:29:39 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> * array.c (rb_ary_join): non-nil separator must be converted to @@ -442,9 +442,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem } else { $$ = n; - if ($$) { - $$->nd_value = call_op(gettable($1),$2,1,$3); - } + $$->nd_value = call_op(gettable($1),$2,1,$3); } fixpos($$, $3); } @@ -789,9 +787,7 @@ arg : lhs '=' arg } else { $$ = n; - if ($$) { - $$->nd_value = call_op(gettable($1),$2,1,$3); - } + $$->nd_value = call_op(gettable($1),$2,1,$3); } fixpos($$, $3); } @@ -2518,7 +2514,7 @@ parse_regx(term, paren) switch (c) { case '#': list = str_extend(list, term); - if (list == (NODE*)-1) return 0; + if (list == (NODE*)-1) goto unterminated; continue; case '\\': @@ -1,4 +1,4 @@ #define RUBY_VERSION "1.7.2" -#define RUBY_RELEASE_DATE "2001-11-15" +#define RUBY_RELEASE_DATE "2001-11-18" #define RUBY_VERSION_CODE 172 -#define RUBY_RELEASE_CODE 20011115 +#define RUBY_RELEASE_CODE 20011118 |