summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 07:47:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 07:47:37 +0000
commit638ba47303dbc54ea84147cbb21935b251f670da (patch)
tree997868272540a43f6927ab37128d8bb33a89bfd8 /load.c
parent673f1b30646b591f0366f2bb258f43bd5ab3cbc2 (diff)
load.c: defer static linked init
* enc/encinit.c.erb (Init_enc): initialize encdb and transdb directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/load.c b/load.c
index 7095ea3..5036d8b 100644
--- a/load.c
+++ b/load.c
@@ -1077,7 +1077,6 @@ register_init_ext(st_data_t *key, st_data_t *value, st_data_t init, int existing
else {
*value = (st_data_t)NEW_MEMO(init, 0, 0);
*key = (st_data_t)ruby_strdup(name);
- (*(void (*)(void))init)();
}
return ST_CONTINUE;
}
@@ -1093,7 +1092,6 @@ ruby_init_ext(const char *name, void (*init)(void))
GET_VM()->loading_table = loading_tbl = st_init_strtable();
}
st_update(loading_tbl, (st_data_t)name, register_init_ext, (st_data_t)init);
- rb_provide(name);
}
/*