summaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
commitf0f206d828e37bf452f53fe63f729d16b42df2c9 (patch)
tree0726d5ac3dbee381503921a9a6016c6dea786115 /class.c
parent37a8fef38bc7a1751b4bd9899400536e333d41fd (diff)
downloadruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.tar.gz
ruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.tar.xz
ruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.zip
2000-03-07
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/class.c b/class.c
index 5dcdcf6c0..404830549 100644
--- a/class.c
+++ b/class.c
@@ -15,10 +15,6 @@
#include "st.h"
#include <ctype.h>
-#ifdef USE_CWGUSI
-#include <stdio.h>
-#endif
-
extern st_table *rb_class_tbl;
VALUE
@@ -511,6 +507,7 @@ rb_singleton_class(obj)
VALUE obj;
{
VALUE klass;
+
if (rb_special_const_p(obj)) {
rb_raise(rb_eTypeError, "can't define singleton");
}