mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* variable.c (autoload_delete): An autoload entry is still in a
RCLASS_IV_TBL, not in a RCLASS_CONST_TBL, so take back the table changed in r29600. And an autoload entry keeps not a rb_const_entry_t but a NODE so remove rb_const_entry_t thing added in r29602. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7b05ac78e1
commit
8f97a2c537
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Thu Aug 11 15:37:42 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
|
||||||
|
|
||||||
|
* variable.c (autoload_delete): An autoload entry is still in a
|
||||||
|
RCLASS_IV_TBL, not in a RCLASS_CONST_TBL, so take back the table
|
||||||
|
changed in r29600. And an autoload entry keeps not a
|
||||||
|
rb_const_entry_t but a NODE so remove rb_const_entry_t thing added
|
||||||
|
in r29602.
|
||||||
|
|
||||||
Thu Aug 11 15:07:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Aug 11 15:07:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (link_command): use LIBRUBYARG in rbconfig for
|
* lib/mkmf.rb (link_command): use LIBRUBYARG in rbconfig for
|
||||||
|
|
|
@ -1495,9 +1495,7 @@ autoload_delete(VALUE mod, ID id)
|
||||||
|
|
||||||
if (tbl->num_entries == 0) {
|
if (tbl->num_entries == 0) {
|
||||||
n = autoload;
|
n = autoload;
|
||||||
st_delete(RCLASS_CONST_TBL(mod), &n, &val);
|
st_delete(RCLASS_IV_TBL(mod), &n, &val);
|
||||||
ce = (rb_const_entry_t*)val;
|
|
||||||
if (ce) xfree(ce);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue