summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-31 05:26:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-31 05:26:24 +0000
commit4f459fd24aa2bc2e8bc4d6523f0856bd1b10c131 (patch)
tree5cf9ae2463d30f80bcce7da43143b33fbc509cc6
parentb37fb58ae62c1e0348f2542d673ad627c0fc3a1d (diff)
downloadruby-4f459fd24aa2bc2e8bc4d6523f0856bd1b10c131.tar.gz
ruby-4f459fd24aa2bc2e8bc4d6523f0856bd1b10c131.tar.xz
ruby-4f459fd24aa2bc2e8bc4d6523f0856bd1b10c131.zip
* parse.y (yycompile): always store copy of filename.
* parse.y (rb_compile_file): no longer need to strdup() here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--parse.y4
-rw-r--r--version.h4
3 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 28a34d57a..a2fc36721 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
+
Mon Dec 31 04:27:28 2001 Minero Aoki <aamine@mx.edit.ne.jp>
* lib/net/protocol.rb: Protocol#start returns the return value of
diff --git a/parse.y b/parse.y
index 4428386e5..d79dc6744 100644
--- a/parse.y
+++ b/parse.y
@@ -2118,6 +2118,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;
@@ -2228,7 +2230,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
diff --git a/version.h b/version.h
index 3ec89a4a1..5af333e8f 100644
--- a/version.h
+++ b/version.h
@@ -1,4 +1,4 @@
#define RUBY_VERSION "1.7.2"
-#define RUBY_RELEASE_DATE "2001-12-28"
+#define RUBY_RELEASE_DATE "2001-12-31"
#define RUBY_VERSION_CODE 172
-#define RUBY_RELEASE_CODE 20011228
+#define RUBY_RELEASE_CODE 20011231