mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* variable.c (autoload_delete): should delete Qundef from iv_tbl.
(ruby-bugs-ja PR#504) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
17e1936d8b
commit
0c4fe2b522
3 changed files with 11 additions and 3 deletions
|
@ -1,7 +1,12 @@
|
||||||
|
Wed Jun 25 00:14:30 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* variable.c (autoload_delete): should delete Qundef from iv_tbl.
|
||||||
|
(ruby-bugs-ja PR#504)
|
||||||
|
|
||||||
Tue Jun 24 14:22:41 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
|
Tue Jun 24 14:22:41 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
|
||||||
|
|
||||||
* lib/yaml/types.rb: replaced Kernel::Hash reference with Object::Hash
|
* lib/yaml/types.rb: replaced Kernel::Hash reference with Object::Hash
|
||||||
from [ruby-talk:74270]
|
from [ruby-talk:74270]
|
||||||
|
|
||||||
Tue Jun 24 17:59:30 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Tue Jun 24 17:59:30 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ unless defined? $configure_args
|
||||||
end
|
end
|
||||||
for arg in Shellwords::shellwords(args)
|
for arg in Shellwords::shellwords(args)
|
||||||
arg, val = arg.split('=', 2)
|
arg, val = arg.split('=', 2)
|
||||||
|
next unless arg
|
||||||
if arg.sub!(/^(?!--)/, '--')
|
if arg.sub!(/^(?!--)/, '--')
|
||||||
val or next
|
val or next
|
||||||
arg.downcase!
|
arg.downcase!
|
||||||
|
@ -26,6 +27,7 @@ unless defined? $configure_args
|
||||||
end
|
end
|
||||||
for arg in ARGV
|
for arg in ARGV
|
||||||
arg, val = arg.split('=', 2)
|
arg, val = arg.split('=', 2)
|
||||||
|
next unless arg
|
||||||
if arg.sub!(/^(?!--)/, '--')
|
if arg.sub!(/^(?!--)/, '--')
|
||||||
val or next
|
val or next
|
||||||
arg.downcase!
|
arg.downcase!
|
||||||
|
|
|
@ -1170,12 +1170,13 @@ autoload_delete(mod, id)
|
||||||
{
|
{
|
||||||
VALUE val, file = Qnil;
|
VALUE val, file = Qnil;
|
||||||
|
|
||||||
|
st_delete(RCLASS(mod)->iv_tbl, &id, 0);
|
||||||
if (st_lookup(RCLASS(mod)->iv_tbl, autoload, &val)) {
|
if (st_lookup(RCLASS(mod)->iv_tbl, autoload, &val)) {
|
||||||
struct st_table *tbl = check_autoload_table(val);
|
struct st_table *tbl = check_autoload_table(val);
|
||||||
|
|
||||||
if (!st_delete(tbl, &id, &file)) file = Qnil;
|
if (!st_delete(tbl, &id, &file)) file = Qnil;
|
||||||
|
|
||||||
if (!tbl->num_entries) {
|
if (tbl->num_entries == 0) {
|
||||||
DATA_PTR(val) = 0;
|
DATA_PTR(val) = 0;
|
||||||
st_free_table(tbl);
|
st_free_table(tbl);
|
||||||
id = autoload;
|
id = autoload;
|
||||||
|
|
Loading…
Reference in a new issue