X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f5e8daaa6e9f74521068aa75837200bcd182ea6..de7d161240f434a809ae7739fbb15a1db6ab86f2:/src/bindings/ruby/simgrid_ruby.c diff --git a/src/bindings/ruby/simgrid_ruby.c b/src/bindings/ruby/simgrid_ruby.c index fd1ebf7f59..d6c5338185 100644 --- a/src/bindings/ruby/simgrid_ruby.c +++ b/src/bindings/ruby/simgrid_ruby.c @@ -33,7 +33,7 @@ static void msg_init(VALUE Class, VALUE args) } ptr = RARRAY(args)->ptr; argc = RARRAY(args)->len; - // Create C Array to Hold Data_Get_Struct + // Create C array to hold data_get_struct argc++; argv = xbt_new0(char *, argc); argv[0] = strdup("ruby"); @@ -148,12 +148,10 @@ static VALUE msg_get_clock(VALUE class) } -extern const char *xbt_ctx_factory_to_use; /*Hack: let msg load directly the right factory */ - typedef VALUE(*rb_meth) (ANYARGS); void Init_libsimgrid() { - xbt_ctx_factory_to_use = "ruby"; + factory_initializer_to_use = SIMIX_ctx_ruby_factory_init; // Modules rb_msg = rb_define_module("MSG");