1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

2000-03-17

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-03-17 08:58:21 +00:00
parent d8f981b972
commit 5c13dd59db
18 changed files with 129 additions and 62 deletions

View file

@ -226,6 +226,7 @@ rb_autoload_id(id, filename)
ID id;
const char *filename;
{
rb_secure(4);
if (!rb_is_const_id(id)) {
rb_raise(rb_eNameError, "autoload must be constant name",
rb_id2name(id));
@ -1036,6 +1037,7 @@ rb_autoload_load(id)
st_delete(autoload_tbl, &id, &modname);
module = rb_str_new2(modname);
FL_UNSET(module, FL_TAINT);
free(modname);
rb_f_require(Qnil, module);
}