ruby-changes:20882
From: nahi <ko1@a...>
Date: Thu, 11 Aug 2011 15:52:37 +0900 (JST)
Subject: [ruby-changes:20882] nahi:r32931 (trunk): * variable.c (autoload_delete): An autoload entry is still in a
nahi 2011-08-11 15:51:42 +0900 (Thu, 11 Aug 2011) New Revision: 32931 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32931 Log: * 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. Modified files: trunk/ChangeLog trunk/variable.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32930) +++ ChangeLog (revision 32931) @@ -1,3 +1,11 @@ +Thu Aug 11 15:37:42 2011 Hiroshi Nakamura <nahi@r...> + + * 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@r...> * lib/mkmf.rb (link_command): use LIBRUBYARG in rbconfig for Index: variable.c =================================================================== --- variable.c (revision 32930) +++ variable.c (revision 32931) @@ -1495,9 +1495,7 @@ if (tbl->num_entries == 0) { n = autoload; - st_delete(RCLASS_CONST_TBL(mod), &n, &val); - ce = (rb_const_entry_t*)val; - if (ce) xfree(ce); + st_delete(RCLASS_IV_TBL(mod), &n, &val); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/