From aa2a845168537c1e495823bfe643924f7f19c28b Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 29 Jul 2013 08:00:34 +0000 Subject: parse.y, vm_eval.c: file encoding in eval * parse.y (yycompile): store file name as String to keep the encoding. * parse.y (rb_parser_compile_string_path, rb_parser_compile_file_path): new functions to pass file name as a String. * parse.y (gettable_gen): return a copy of the original file name, not a copy in filesystem encoding. * vm_eval.c (eval_string_with_cref): use Qundef instead of "(eval)". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node.h') diff --git a/node.h b/node.h index 57b1bc775a..97c3214d87 100644 --- a/node.h +++ b/node.h @@ -486,6 +486,8 @@ NODE *rb_parser_while_loop(VALUE, NODE *, int, int); NODE *rb_parser_compile_cstr(volatile VALUE, const char*, const char*, int, int); NODE *rb_parser_compile_string(volatile VALUE, const char*, VALUE, int); NODE *rb_parser_compile_file(volatile VALUE, const char*, VALUE, int); +NODE *rb_parser_compile_string_path(volatile VALUE vparser, VALUE fname, VALUE src, int line); +NODE *rb_parser_compile_file_path(volatile VALUE vparser, VALUE fname, VALUE input, int line); NODE *rb_compile_cstr(const char*, const char*, int, int); NODE *rb_compile_string(const char*, VALUE, int); -- cgit v1.2.3