* 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
This commit is contained in:
nobu 2001-11-18 10:49:28 +00:00
parent 050a1687d2
commit 5ca24aa3e8
3 changed files with 12 additions and 9 deletions

View File

@ -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

10
parse.y
View File

@ -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 '\\':

View File

@ -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