diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-07 11:19:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-07 11:19:37 +0000 |
commit | ee36f57775c0d8715aa73486ee47b54c11cf920e (patch) | |
tree | f61b7e2710f6e94657630069b9a4c7232eea0141 /eval.c | |
parent | 0efb98cf12d661522fb24ed004fff511128c5e32 (diff) | |
download | ruby-ee36f57775c0d8715aa73486ee47b54c11cf920e.tar.gz ruby-ee36f57775c0d8715aa73486ee47b54c11cf920e.tar.xz ruby-ee36f57775c0d8715aa73486ee47b54c11cf920e.zip |
* gc.c (rb_source_filename): added. holds unique strings for file
names with GC space.
* gc.c (rb_gc_mark): mark source file name.
* gc.c (gc_sweep): ditto.
* gc.c (Init_GC): initialize source file name table.
* intern.h (rb_source_filename): added.
* eval.c (rb_eval_string): use rb_source_filename().
* parse.y (yycompile): ditto.
* ruby.c (proc_options): ditto.
* ruby.c (load_file): ditto.
* ruby.c (ruby_script): ditto.
* ruby.c (ruby_prog_init): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1248,7 +1248,7 @@ rb_eval_string(str) VALUE v; char *oldsrc = ruby_sourcefile; - ruby_sourcefile = "(eval)"; + ruby_sourcefile = rb_source_filename("(eval)"); v = eval(ruby_top_self, rb_str_new2(str), Qnil, 0, 0); ruby_sourcefile = oldsrc; |