diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-22 12:52:18 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-22 12:52:18 +0000 |
| commit | b821c792258fc81e065e3b28e08d2669ed45c28b (patch) | |
| tree | e139ff6c1bb02c3cfda4d5fa224f6b88c5b898f3 /parse.y | |
| parent | aa3209a0272b0eabde6283eac6fc8f60577e763b (diff) | |
| download | ruby-b821c792258fc81e065e3b28e08d2669ed45c28b.tar.gz ruby-b821c792258fc81e065e3b28e08d2669ed45c28b.tar.xz ruby-b821c792258fc81e065e3b28e08d2669ed45c28b.zip | |
* eval.c (call_trace_func): should not call trace function while
compilation.
* eval.c (rb_call0): also inside c-func.
* parse.y (yycompile): ditto.
* ruby.c (require_libraries): preserve source file/line for each
require.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2335,6 +2335,7 @@ yycompile(f, line) NODE *node = 0; struct RVarmap *vp, *vars = ruby_dyna_vars; + ruby_in_compile = 1; if (!compile_for_eval && rb_safe_level() == 0 && rb_const_defined(rb_cObject, rb_intern("SCRIPT_LINES__"))) { VALUE hash, fname; @@ -2365,7 +2366,6 @@ yycompile(f, line) quoted_term = -1; ruby_current_node = 0; ruby_sourcefile = rb_source_filename(f); - ruby_in_compile = 1; n = yyparse(); ruby_debug_lines = 0; compile_for_eval = 0; |
