Skip to content

Commit

Permalink
merges r32342 from trunk into ruby_1_9_2.
Browse files Browse the repository at this point in the history
--
* class.c (Init_class_hierarchy): should name BasicObject
  explicitly.

* variable.c (rb_const_defined_0): should not check for
  superclasses as const_get.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@32925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
yugui committed Aug 11, 2011
1 parent 3360e3e commit 01d1a35
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
@@ -1,3 +1,11 @@
Fri Jul 1 03:28:25 2011 Yukihiro Matsumoto <matz@ruby-lang.org>

* class.c (Init_class_hierarchy): should name BasicObject
explicitly.

* variable.c (rb_const_defined_0): should not check for
superclasses as const_get.

Thu Jun 30 22:17:04 2011 Koichi Sasada <ko1@atdot.net>

* vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
Expand Down
1 change: 1 addition & 0 deletions class.c
Expand Up @@ -347,6 +347,7 @@ Init_class_hierarchy(void)
rb_cModule = boot_defclass("Module", rb_cObject);
rb_cClass = boot_defclass("Class", rb_cModule);

rb_const_set(rb_cObject, rb_intern("BasicObject"), rb_cBasicObject);
RBASIC(rb_cClass)->klass
= RBASIC(rb_cModule)->klass
= RBASIC(rb_cObject)->klass
Expand Down
2 changes: 1 addition & 1 deletion variable.c
Expand Up @@ -1779,7 +1779,7 @@ rb_const_defined_0(VALUE klass, ID id, int exclude, int recurse)
return (int)Qfalse;
return (int)Qtrue;
}
if (!recurse && klass != rb_cObject) break;
if (!recurse) break;
tmp = RCLASS_SUPER(tmp);
}
if (!exclude && !mod_retry && BUILTIN_TYPE(klass) == T_MODULE) {
Expand Down
2 changes: 1 addition & 1 deletion version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_PATCHLEVEL 310
#define RUBY_PATCHLEVEL 311
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1
Expand Down

0 comments on commit 01d1a35

Please sign in to comment.