mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
argument unintentionally. [ruby-talk:253676] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
284565992f
commit
44475bb208
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu May 31 17:27:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
|
||||||
|
argument unintentionally. [ruby-talk:253676]
|
||||||
|
|
||||||
Wed May 30 14:43:00 2007 Koichi Sasada <ko1@atdot.net>
|
Wed May 30 14:43:00 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* cont.c (cont_capture): store all local variables in heap
|
* cont.c (cont_capture): store all local variables in heap
|
||||||
|
|
|
@ -331,7 +331,7 @@ module Benchmark
|
||||||
#
|
#
|
||||||
def item(label = "", &blk) # :yield:
|
def item(label = "", &blk) # :yield:
|
||||||
raise ArgmentError, "no block" unless block_given?
|
raise ArgmentError, "no block" unless block_given?
|
||||||
label.concat ' '
|
label += ' '
|
||||||
w = label.length
|
w = label.length
|
||||||
@width = w if @width < w
|
@width = w if @width < w
|
||||||
@list.push [label, blk]
|
@list.push [label, blk]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define RUBY_VERSION "1.9.0"
|
#define RUBY_VERSION "1.9.0"
|
||||||
#define RUBY_RELEASE_DATE "2007-05-30"
|
#define RUBY_RELEASE_DATE "2007-05-31"
|
||||||
#define RUBY_VERSION_CODE 190
|
#define RUBY_VERSION_CODE 190
|
||||||
#define RUBY_RELEASE_CODE 20070530
|
#define RUBY_RELEASE_CODE 20070531
|
||||||
#define RUBY_PATCHLEVEL 0
|
#define RUBY_PATCHLEVEL 0
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 5
|
#define RUBY_RELEASE_MONTH 5
|
||||||
#define RUBY_RELEASE_DAY 30
|
#define RUBY_RELEASE_DAY 31
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue