diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-08 06:05:08 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-08 06:05:08 +0000 |
commit | 17065d47a68eaa6a854297b94e4d85d379b23f2d (patch) | |
tree | 670a5d87beb9be1833869225ce4722607327f4ba /eval.c | |
parent | a89ac45548573342400a563b407f13a8d5b06841 (diff) |
* range.c (range_each): treat fixnums specially to boost.
* numeric.c (num_step): remove rb_scan_args() for small speedup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -917,14 +917,19 @@ static VALUE trace_func = 0; static int tracing = 0; static void call_trace_func _((char*,NODE*,VALUE,ID,VALUE)); +#if 0 #define SET_CURRENT_SOURCE() (ruby_sourcefile = ruby_current_node->nd_file, \ ruby_sourceline = nd_line(ruby_current_node)) +#else +#define SET_CURRENT_SOURCE() 0 +#endif void ruby_set_current_source() { if (ruby_current_node) { - SET_CURRENT_SOURCE(); + ruby_sourcefile = ruby_current_node->nd_file; + ruby_sourceline = nd_line(ruby_current_node); } } @@ -3390,7 +3395,6 @@ rb_eval(self, n) break; case NODE_NEWLINE: - ruby_sourcefile = node->nd_file; ruby_sourceline = node->nd_nth; if (trace_func) { call_trace_func("line", node, self, @@ -4443,7 +4447,7 @@ rb_undefined(obj, id, argc, argv, call_status) return rb_funcall2(obj, missing, argc+1, nargv); } -static VALUE +static inline VALUE call_cfunc(func, recv, len, argc, argv) VALUE (*func)(); VALUE recv; |