1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (yycompile): always store copy of filename.

* parse.y (rb_compile_file): no longer need to strdup() here.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2001-12-31 05:26:24 +00:00
parent 4487101681
commit 64889f2e20
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,9 @@
Mon Dec 31 14:20:46 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* parse.y (yycompile): always store copy of filename.
* parse.y (rb_compile_file): no longer need to strdup() here.
Sun Dec 30 18:04:07 2001 Tanaka Akira <akr@m17n.org>
* time.c (time_utc_offset): new function.

View file

@ -1947,6 +1947,8 @@ yycompile(f, line)
int n;
NODE *node = 0;
f = strdup(f);
if (!compile_for_eval && rb_safe_level() == 0 &&
rb_const_defined(rb_cObject, rb_intern("SCRIPT_LINES__"))) {
VALUE hash, fname;
@ -2057,7 +2059,7 @@ rb_compile_file(f, file, start)
lex_pbeg = lex_p = lex_pend = 0;
ruby_sourceline = start - 1;
return yycompile(strdup(f), start);
return yycompile(f, start);
}
static inline int

View file

@ -1,4 +1,4 @@
#define RUBY_VERSION "1.6.6"
#define RUBY_RELEASE_DATE "2001-12-30"
#define RUBY_RELEASE_DATE "2001-12-31"
#define RUBY_VERSION_CODE 166
#define RUBY_RELEASE_CODE 20011230
#define RUBY_RELEASE_CODE 20011231