From f0221db4626bb589f230bf239a7f9df83d7e444f Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 28 Jun 2002 14:42:46 +0000 Subject: * re.c (rb_reg_expr_str): need to process backslashes properly. * object.c (rb_any_to_a): declare Object#to_a to be obsolete. * object.c (rb_Array): do not convert nil into [] automagically. * object.c (rb_Integer): use "to_int" instead of "to_i". [experimental] * object.c (nil_to_f): new method. * object.c (rb_Integer): Symbols and nil should cause error. * object.c (rb_Float): nil should cause error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mkmf.rb | 2 +- lib/pp.rb | 2 +- lib/tracer.rb | 2 +- lib/tsort.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 7f0e121176..58201d02a7 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -452,7 +452,7 @@ def create_makefile(target, srcprefix = nil) elsif RUBY_PLATFORM =~ /cygwin|mingw/ deffile = target + '.def' if not File.exist? deffile - if File.exist? File.join srcdir, deffile + if File.exist? File.join(srcdir, deffile) deffile = File.join srcdir, deffile else open(deffile, 'wb') do |f| diff --git a/lib/pp.rb b/lib/pp.rb index 699291c24a..aec54afa56 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -214,7 +214,7 @@ class PP < PrettyPrint text '=' group(1) { breakable '' - pp(obj.instance_eval v) + pp(obj.instance_eval(v)) } } } diff --git a/lib/tracer.rb b/lib/tracer.rb index 817f68484e..6ff9caa98c 100644 --- a/lib/tracer.rb +++ b/lib/tracer.rb @@ -84,7 +84,7 @@ class Tracer def get_line(file, line) if p = @get_line_procs[file] - return p.call line + return p.call(line) end unless list = SCRIPT_LINES__[file] diff --git a/lib/tsort.rb b/lib/tsort.rb index 2c3c4b2c4e..0dd68c6b8a 100644 --- a/lib/tsort.rb +++ b/lib/tsort.rb @@ -184,7 +184,7 @@ module TSort if component.size == 1 yield component.first else - raise Cyclic.new "topological sort failed: #{component.inspect}" + raise Cyclic.new("topological sort failed: #{component.inspect}") end } end -- cgit v1.2.3