Marshal tweaks
This commit is contained in:
parent
a0ba40916d
commit
99d0c2888a
|
|
@ -129,7 +129,7 @@ kernelLoadDataInt(const char *filename, bool rubyExc)
|
||||||
|
|
||||||
VALUE port = fileIntForPath(filename, rubyExc);
|
VALUE port = fileIntForPath(filename, rubyExc);
|
||||||
|
|
||||||
VALUE marsh = rb_const_get(rb_cObject, rb_intern("PureRubyMarshal"));
|
VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal"));
|
||||||
|
|
||||||
// FIXME need to catch exceptions here with begin rescue
|
// FIXME need to catch exceptions here with begin rescue
|
||||||
VALUE result = rb_funcall2(marsh, rb_intern("load"), 1, &port);
|
VALUE result = rb_funcall2(marsh, rb_intern("load"), 1, &port);
|
||||||
|
|
@ -223,7 +223,7 @@ fileIntBindingInit()
|
||||||
/* We overload the built-in 'Marshal::load()' function to silently
|
/* We overload the built-in 'Marshal::load()' function to silently
|
||||||
* insert our utf8proc that ensures all read strings will be
|
* insert our utf8proc that ensures all read strings will be
|
||||||
* UTF-8 encoded */
|
* UTF-8 encoded */
|
||||||
VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal"));
|
// VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal"));
|
||||||
rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load");
|
// rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load");
|
||||||
_rb_define_module_function(marsh, "load", _marshalLoad);
|
// _rb_define_module_function(marsh, "load", _marshalLoad);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue