summaryrefslogtreecommitdiff
path: root/lib/tracer.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-29 05:07:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-29 05:07:26 +0000
commit88abd791f522c7097141753c3480a456340215f8 (patch)
treeac7f94b43697aed5cb9306aa19a904f08ab8a2d7 /lib/tracer.rb
parent429f7ed113dc862b121ab63c73170e4169853581 (diff)
* parse.y (str_extend): shuould allow interpolation of $-x.
* variable.c (rb_cvar_set): empty iv_tbl may cause infinite loop. * variable.c (rb_cvar_get): ditto. * variable.c (cvar_override_check): ditto. * bignum.c (rb_big_eq): convert Bignum to Float, instead of reverse. * time.c (time_localtime): getting tm should not be prohibited for frozen time objects. * time.c (time_gmtime): ditto. * version.c (Init_version): freeze RUBY_VERSION, RUBY_RELEASE_DATE, and RUBY_PLATFORM. * file.c (Init_File): freeze File::SEPARATOR, ALT_SEPARATOR and PATH_SEPARATOR. * file.c (rb_stat_cmp): should check operand type before calling get_stat(). * eval.c (rb_eval_cmd): should not invoke "call" with a block on any occasion. * numeric.c (fix_aref): idx may be a Bignum. * numeric.c (num_remainder): a bug in Numeric#remainder. * eval.c (rb_exec_end_proc): END might be called within END block. * class.c (rb_mod_clone): should not copy class name, since clone should remain anonymous. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tracer.rb')
-rw-r--r--lib/tracer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tracer.rb b/lib/tracer.rb
index 54179dd..dbe18ea 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -17,12 +17,12 @@ class Tracer
@RCS_ID='-$Id: tracer.rb,v 1.8 1998/05/19 03:42:49 keiju Exp keiju $-'
@stdout = STDOUT
+ @verbose = false
class << self
attr :verbose, true
alias verbose? verbose
attr :stdout, true
end
- verbose = true
MY_FILE_NAME = caller(0)[0].scan(/^(.*):[0-9]+$/)[0][0]
@@ -155,7 +155,7 @@ class Tracer
end
-LINES__ = {} unless defined? LINES__
+SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
if caller(0).size == 1
if $0 == Tracer::MY_FILE_NAME