Project

General

Profile

Bug #8677 » loadpath.patch

jiayp@glodon.com (贾 延平), 08/11/2013 03:19 PM

View differences:

ruby.c (working copy)
ruby_set_argv(argc, argv);
process_sflag(&opt->sflag);
{
long i;
VALUE load_path = GET_VM()->load_path;
for (i = 0; i < RARRAY_LEN(load_path); ++i) {
RARRAY_ASET(load_path, i,
rb_str_encode_ospath(RARRAY_AREF(load_path, i)));
}
}
toplevel_binding = rb_const_get(rb_cObject, rb_intern("TOPLEVEL_BINDING"));
#define PREPARE_PARSE_MAIN(expr) do { \
    (1-1/1)