diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-01 21:30:36 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-01 21:30:36 +0000 |
commit | 1d83928804d270c47f8a37a39cfc2a422b7e922d (patch) | |
tree | 7522603c0f6548df7a51e9e4e9332315dc96c295 /include/ruby | |
parent | 26c0513b3c128670059eefc05291c4c1d823db75 (diff) | |
download | ruby-1d83928804d270c47f8a37a39cfc2a422b7e922d.tar.gz ruby-1d83928804d270c47f8a37a39cfc2a422b7e922d.tar.xz ruby-1d83928804d270c47f8a37a39cfc2a422b7e922d.zip |
* include/ruby/node.h: add new constants for rb_call()'s scope.
* eval.c (iterate_method): use CALL_* scope constant to specify
proper scope value.
* eval.c (rb_each, rb_apply, rb_funcall, rb_funcall2, rb_funcall3):
ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/node.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ruby/node.h b/include/ruby/node.h index b72a3e9f3..5272b0e68 100644 --- a/include/ruby/node.h +++ b/include/ruby/node.h @@ -475,6 +475,11 @@ typedef struct RNode { #define NOEX_WITH(n, s) ((s << 8) | n) #define NOEX_WITH_SAFE(n) NOEX_WITH(n, rb_safe_level()) +#define CALL_PUBLIC 0 +#define CALL_FCALL 1 +#define CALL_VCALL 2 +#define CALL_SUPER 3 + VALUE rb_parser_new(void); VALUE rb_parser_end_seen_p(VALUE); VALUE rb_parser_encoding(VALUE); |