path: root/load.c
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-28 21:39:24 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-28 21:39:24 (GMT)
commitd7935475fc46adc50def2f89bfe3a5b99d7707ac (patch)
tree94055a58e49eab1b1c6682d8502b435791ef7384 /load.c
parent0a41425ad424dbf52e30bce1e649204e9a7553c3 (diff)
remove rb_thread_t::parse_in_eval
* parse.y (struct parser_params): move parse_in_eval flag from rb_thread_t. * parse.y (rb_parser_set_context): set parsing context, not only mild error flag. * iseq.c (rb_iseq_compile_with_option): the parser now refers no thread local states to be restored. * vm_eval.c (eval_string_with_cref): ditto. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/load.c b/load.c
index f00cceb..a3b32d4 100644
--- a/load.c
+++ b/load.c
@@ -610,7 +610,7 @@ rb_load_internal0(rb_thread_t *th, VALUE fname, int wrap)
else {
VALUE parser = rb_parser_new();
- rb_parser_mild_error(parser);
+ rb_parser_set_context(parser, NULL, TRUE);
node = (NODE *)rb_parser_load_file(parser, fname);
iseq = rb_iseq_new_top(node, rb_str_new2("<top (required)>"), fname, rb_realpath_internal(Qnil, fname, 1), NULL);