зеркало из https://github.com/github/ruby.git
* string.c (rb_str_reverse_bang): removed unsed variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c015c6fa8e
Коммит
d3545f0d3c
|
@ -1,4 +1,6 @@
|
||||||
Thu Feb 28 11:13:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Feb 28 11:19:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* string.c (rb_str_reverse_bang): removed unsed variables.
|
||||||
|
|
||||||
* include/ruby/encoding.h (rb_str_coderange_scan_restartable): added
|
* include/ruby/encoding.h (rb_str_coderange_scan_restartable): added
|
||||||
prototype.
|
prototype.
|
||||||
|
@ -6,6 +8,8 @@ Thu Feb 28 11:13:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
* string.c (rb_str_coderange_scan_restartable, rb_str_times): removed
|
* string.c (rb_str_coderange_scan_restartable, rb_str_times): removed
|
||||||
unsed variables.
|
unsed variables.
|
||||||
|
|
||||||
|
* string.c (rb_str_reverse_bang): ditto
|
||||||
|
|
||||||
* string.c (rb_enc_str_copy): unused now. may be used in future?
|
* string.c (rb_enc_str_copy): unused now. may be used in future?
|
||||||
|
|
||||||
Thu Feb 28 03:03:32 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Thu Feb 28 03:03:32 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
1
string.c
1
string.c
|
@ -3561,7 +3561,6 @@ rb_str_reverse(VALUE str)
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_str_reverse_bang(VALUE str)
|
rb_str_reverse_bang(VALUE str)
|
||||||
{
|
{
|
||||||
rb_encoding *enc = STR_ENC_GET(str);
|
|
||||||
char *s, *e, c;
|
char *s, *e, c;
|
||||||
|
|
||||||
if (RSTRING_LEN(str) > 1) {
|
if (RSTRING_LEN(str) > 1) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче