зеркало из https://github.com/github/ruby.git
* eval.c (is_defined): stupid mistakes fixed. [ruby-dev:24006]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
cd110140db
Коммит
fd404f03cb
|
@ -1,3 +1,7 @@
|
|||
Sat Jul 31 23:08:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (is_defined): stupid mistakes fixed. [ruby-dev:24006]
|
||||
|
||||
Sat Jul 31 17:39:47 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial,
|
||||
|
|
5
eval.c
5
eval.c
|
@ -2240,8 +2240,8 @@ is_defined(self, node, buf, noeval)
|
|||
val = self;
|
||||
if (node->nd_recv == (NODE *)1) goto check_bound;
|
||||
case NODE_CALL:
|
||||
if (noeval) return ex;
|
||||
if (!is_defined(self, node->nd_recv, buf, Qtrue)) return 0;
|
||||
if (noeval) return ex;
|
||||
val = rb_eval(self, node->nd_recv);
|
||||
check_bound:
|
||||
{
|
||||
|
@ -2333,8 +2333,9 @@ is_defined(self, node, buf, noeval)
|
|||
break;
|
||||
|
||||
case NODE_COLON2:
|
||||
if (noeval) return ex;
|
||||
if (!is_defined(self, node->nd_recv, buf, Qtrue)) return 0;
|
||||
if (noeval) return ex;
|
||||
val = rb_eval(self, node->nd_recv);
|
||||
switch (TYPE(val)) {
|
||||
case T_CLASS:
|
||||
case T_MODULE:
|
||||
|
|
Загрузка…
Ссылка в новой задаче