summaryrefslogtreecommitdiffstats
path: root/node.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-07 19:18:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-07 19:18:16 +0000
commit4b37ef828031a3f9cb8281a2d583f559abdd71a1 (patch)
treea78adc8cdeb42f4a59788e2e5dda13627a130446 /node.h
parent211a0b556843c1c6aed8069d8b231db86b321cd2 (diff)
downloadruby-4b37ef828031a3f9cb8281a2d583f559abdd71a1.tar.gz
ruby-4b37ef828031a3f9cb8281a2d583f559abdd71a1.tar.xz
ruby-4b37ef828031a3f9cb8281a2d583f559abdd71a1.zip
* class.c (rb_define_method): do not set NOEX_CFUNC if klass is
really a module, whose methods must be safe for reciever's type. * eval.c (rb_eval): nosuper should not be inherited unless the overwritten method is an undef placeholder. * parse.y (primary): allow 'when'-less case statement; persuaded by Sean Chittenden. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r--node.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/node.h b/node.h
index ec27c8601..691a4cd8c 100644
--- a/node.h
+++ b/node.h
@@ -334,12 +334,14 @@ typedef struct RNode {
#define NEW_BMETHOD(b) rb_node_newnode(NODE_BMETHOD,0,0,b)
#define NOEX_PUBLIC 0
-#define NOEX_UNDEF 1
-#define NOEX_CFUNC 1
+#define NOEX_NOSUPER 1
#define NOEX_PRIVATE 2
#define NOEX_PROTECTED 4
#define NOEX_MASK 6
+#define NOEX_UNDEF NOEX_NOSUPER
+#define NOEX_CFUNC NOEX_NOSUPER
+
NODE *rb_compile_cstr _((const char*, const char*, int, int));
NODE *rb_compile_string _((const char*, VALUE, int));
NODE *rb_compile_file _((const char*, VALUE, int));