summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-12 08:38:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-12 08:38:46 +0000
commit9fd5fe739c55bfed9aa22728c1cefcb2e19d1720 (patch)
tree3bf69ffa8692d9ec762cf91ad102c2c291b9d539 /eval.c
parent22f9db2795acb6c0434dda9e963cf7066a426f5f (diff)
1.1b9_18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/eval.c b/eval.c
index c383a813e8..49364df54b 100644
--- a/eval.c
+++ b/eval.c
@@ -286,8 +286,8 @@ rb_export_method(klass, name, noex)
}
}
-static VALUE
-method_boundp(klass, id, ex)
+int
+rb_method_boundp(klass, id, ex)
VALUE klass;
ID id;
int ex;
@@ -302,17 +302,6 @@ method_boundp(klass, id, ex)
return FALSE;
}
-int
-rb_method_boundp(klass, id, ex)
- VALUE klass;
- ID id;
- int ex;
-{
- if (method_boundp(klass, id, ex))
- return TRUE;
- return FALSE;
-}
-
void
rb_attr(klass, id, read, write, ex)
VALUE klass;
@@ -1333,8 +1322,8 @@ is_defined(self, node, buf)
case NODE_SUPER:
case NODE_ZSUPER:
if (the_frame->last_func == 0) return 0;
- else if (method_boundp(RCLASS(the_frame->last_class)->super,
- the_frame->last_func, 1)) {
+ else if (rb_method_boundp(RCLASS(the_frame->last_class)->super,
+ the_frame->last_func, 1)) {
if (nd_type(node) == NODE_SUPER) {
return arg_defined(self, node->nd_args, buf, "super");
}
@@ -1359,7 +1348,7 @@ is_defined(self, node, buf)
return 0;
}
check_bound:
- if (method_boundp(val, node->nd_mid, nd_type(node)== NODE_CALL)) {
+ if (rb_method_boundp(val, node->nd_mid, nd_type(node)== NODE_CALL)) {
return arg_defined(self, node->nd_args, buf, "method");
}
break;