mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (load_file_internal): no need to define DATA when error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
04d1998ff8
commit
bc832b8e5b
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Sep 13 19:38:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ruby.c (load_file_internal): no need to define DATA when error.
|
||||||
|
|
||||||
Sun Sep 13 18:48:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Sep 13 18:48:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (XLDFLAGS): link startup code with ObjC support.
|
* configure.in (XLDFLAGS): link startup code with ObjC support.
|
||||||
|
|
2
ruby.c
2
ruby.c
|
@ -1584,7 +1584,7 @@ load_file_internal(VALUE arg)
|
||||||
rb_funcall(f, set_encoding, 2, rb_enc_from_encoding(enc), rb_str_new_cstr("-"));
|
rb_funcall(f, set_encoding, 2, rb_enc_from_encoding(enc), rb_str_new_cstr("-"));
|
||||||
tree = rb_parser_compile_file(parser, fname, f, line_start);
|
tree = rb_parser_compile_file(parser, fname, f, line_start);
|
||||||
rb_funcall(f, set_encoding, 1, rb_parser_encoding(parser));
|
rb_funcall(f, set_encoding, 1, rb_parser_encoding(parser));
|
||||||
if (script && rb_parser_end_seen_p(parser)) {
|
if (script && tree && rb_parser_end_seen_p(parser)) {
|
||||||
rb_define_global_const("DATA", f);
|
rb_define_global_const("DATA", f);
|
||||||
}
|
}
|
||||||
else if (f != rb_stdin) {
|
else if (f != rb_stdin) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue