diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-02 09:41:47 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-02 09:41:47 +0000 |
| commit | 5bae951c1f5f7dadd192f66a22cfb5eb5860c405 (patch) | |
| tree | 2c79a9e49497e0d103db92a5065b8683e30776c8 | |
| parent | 20dbaedaeef1453d809e5cd9a39ccf315d6e252a (diff) | |
| download | ruby-5bae951c1f5f7dadd192f66a22cfb5eb5860c405.tar.gz ruby-5bae951c1f5f7dadd192f66a22cfb5eb5860c405.tar.xz ruby-5bae951c1f5f7dadd192f66a22cfb5eb5860c405.zip | |
* variable.c (rb_cvar_set): remove warn argument.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | intern.h | 3 | ||||
| -rw-r--r-- | object.c | 2 | ||||
| -rw-r--r-- | variable.c | 6 |
4 files changed, 9 insertions, 6 deletions
@@ -8,6 +8,10 @@ Fri Feb 2 18:27:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c: remove duplicated global variables rb_cProc and rb_cBinding. [ruby-dev:30242] +Thu Feb 1 20:31:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * variable.c (rb_cvar_set): remove warn argument. + Wed Jan 31 14:52:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator): @@ -577,8 +577,7 @@ VALUE rb_const_get_from(VALUE, ID); void rb_const_set(VALUE, ID, VALUE); VALUE rb_mod_const_missing(VALUE,VALUE); VALUE rb_cvar_defined(VALUE, ID); -#define RB_CVAR_SET_4ARGS 1 -void rb_cvar_set(VALUE, ID, VALUE, int); +void rb_cvar_set(VALUE, ID, VALUE); VALUE rb_cvar_get(VALUE, ID); void rb_cv_set(VALUE, const char*, VALUE); VALUE rb_cv_get(VALUE, const char*); @@ -1793,7 +1793,7 @@ rb_mod_cvar_set(VALUE obj, VALUE iv, VALUE val) if (!rb_is_class_id(id)) { rb_name_error(id, "`%s' is not allowed as a class variable name", rb_id2name(id)); } - rb_cvar_set(obj, id, val, Qfalse); + rb_cvar_set(obj, id, val); return val; } diff --git a/variable.c b/variable.c index 4310f0a22..fea78232e 100644 --- a/variable.c +++ b/variable.c @@ -1565,7 +1565,7 @@ rb_define_global_const(const char *name, VALUE val) } void -rb_cvar_set(VALUE klass, ID id, VALUE val, int warn) +rb_cvar_set(VALUE klass, ID id, VALUE val) { mod_av_set(klass, id, val, Qfalse); } @@ -1600,7 +1600,7 @@ rb_cv_set(VALUE klass, const char *name, VALUE val) if (!rb_is_class_id(id)) { rb_name_error(id, "wrong class variable name %s", name); } - rb_cvar_set(klass, id, val, Qfalse); + rb_cvar_set(klass, id, val); } VALUE @@ -1621,7 +1621,7 @@ rb_define_class_variable(VALUE klass, const char *name, VALUE val) if (!rb_is_class_id(id)) { rb_name_error(id, "wrong class variable name %s", name); } - rb_cvar_set(klass, id, val, Qtrue); + rb_cvar_set(klass, id, val); } static int |
