[前][次][番号順一覧][スレッド一覧]

ruby-changes:32880

From: nobu <ko1@a...>
Date: Sat, 15 Feb 2014 01:40:30 +0900 (JST)
Subject: [ruby-changes:32880] nobu:r44959 (trunk): load.c: call init

nobu	2014-02-15 01:40:26 +0900 (Sat, 15 Feb 2014)

  New Revision: 44959

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44959

  Log:
    load.c: call init
    
    * load.c (register_init_ext): call initialization function.

  Modified files:
    trunk/load.c
Index: load.c
===================================================================
--- load.c	(revision 44958)
+++ load.c	(revision 44959)
@@ -1049,6 +1049,7 @@ register_init_ext(st_data_t *key, st_dat https://github.com/ruby/ruby/blob/trunk/load.c#L1049
     else {
 	*value = (st_data_t)NEW_MEMO(init, 0, 0);
 	*key = (st_data_t)ruby_strdup(name);
+	(*(void (*)(void))init)();
     }
     return ST_CONTINUE;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]