1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* transcode.c (rb_str_transcode): argc is 1, and argv is &to.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-05-23 23:15:14 +00:00
parent 08dbc8902b
commit 327515a95b
3 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Sat May 24 08:13:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
* transcode.c (rb_str_transcode): argc is 1, and argv is &to.
Fri May 23 17:55:11 2008 Akinori MUSHA <knu@iDaemons.org>
* array.c (rb_ary_slice_bang): Be consistent with Array#slice()

View file

@ -441,10 +441,7 @@ str_encode(int argc, VALUE *argv, VALUE str)
VALUE
rb_str_transcode(VALUE str, VALUE to)
{
int argc = 1;
VALUE argv = rb_ary_new2(1);
rb_ary_push(argv, to);
return str_encode(argc, &argv, str);
return str_encode(1, &to, str);
}
void

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2008-05-23"
#define RUBY_RELEASE_DATE "2008-05-24"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20080523
#define RUBY_RELEASE_CODE 20080524
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 5
#define RUBY_RELEASE_DAY 23
#define RUBY_RELEASE_DAY 24
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];