ruby-changes:28964
From: nobu <ko1@a...>
Date: Sat, 1 Jun 2013 10:13:41 +0900 (JST)
Subject: [ruby-changes:28964] nobu:r41016 (trunk): string.c: remove old interfaces
nobu 2013-06-01 10:13:21 +0900 (Sat, 01 Jun 2013) New Revision: 41016 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41016 Log: string.c: remove old interfaces * string.c (rb_str_new[2-5], rb_{tainted,usascii}_str_new2), (rb_str_buf_new2): remove old interfaces. Modified files: trunk/ChangeLog trunk/include/ruby/intern.h trunk/string.c Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 41015) +++ include/ruby/intern.h (revision 41016) @@ -661,16 +661,11 @@ VALUE rb_str_format(int, const VALUE *, https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L661 /* string.c */ VALUE rb_str_new(const char*, long); VALUE rb_str_new_cstr(const char*); -VALUE rb_str_new2(const char*); VALUE rb_str_new_shared(VALUE); -VALUE rb_str_new3(VALUE); VALUE rb_str_new_frozen(VALUE); -VALUE rb_str_new4(VALUE); VALUE rb_str_new_with_class(VALUE, const char*, long); -VALUE rb_str_new5(VALUE, const char*, long); VALUE rb_tainted_str_new_cstr(const char*); VALUE rb_tainted_str_new(const char*, long); -VALUE rb_tainted_str_new2(const char*); VALUE rb_external_str_new(const char*, long); VALUE rb_external_str_new_cstr(const char*); VALUE rb_locale_str_new(const char*, long); @@ -683,7 +678,6 @@ VALUE rb_str_buf_new2(const char*); https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L678 VALUE rb_str_tmp_new(long); VALUE rb_usascii_str_new(const char*, long); VALUE rb_usascii_str_new_cstr(const char*); -VALUE rb_usascii_str_new2(const char*); void rb_str_free(VALUE); void rb_str_shared_replace(VALUE, VALUE); VALUE rb_str_buf_append(VALUE, VALUE); Index: ChangeLog =================================================================== --- ChangeLog (revision 41015) +++ ChangeLog (revision 41016) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jun 1 10:13:17 2013 Nobuyoshi Nakada <nobu@r...> + + * string.c (rb_str_new[2-5], rb_{tainted,usascii}_str_new2), + (rb_str_buf_new2): remove old interfaces. + Sat Jun 1 08:00:46 2013 Nobuyoshi Nakada <nobu@r...> * ext/zlib/zlib.c (gzfile_read, gzfile_read_all, gzfile_getc), Index: string.c =================================================================== --- string.c (revision 41015) +++ string.c (revision 41016) @@ -38,15 +38,8 @@ https://github.com/ruby/ruby/blob/trunk/string.c#L38 #undef rb_usascii_str_new_cstr #undef rb_external_str_new_cstr #undef rb_locale_str_new_cstr -#undef rb_str_new2 -#undef rb_str_new3 -#undef rb_str_new4 -#undef rb_str_new5 -#undef rb_tainted_str_new2 -#undef rb_usascii_str_new2 #undef rb_str_dup_frozen #undef rb_str_buf_new_cstr -#undef rb_str_buf_new2 #undef rb_str_buf_cat2 #undef rb_str_cat2 @@ -458,9 +451,6 @@ rb_str_new_cstr(const char *ptr) https://github.com/ruby/ruby/blob/trunk/string.c#L451 return rb_str_new(ptr, strlen(ptr)); } -RUBY_ALIAS_FUNCTION(rb_str_new2(const char *ptr), rb_str_new_cstr, (ptr)) -#define rb_str_new2 rb_str_new_cstr - VALUE rb_usascii_str_new_cstr(const char *ptr) { @@ -469,9 +459,6 @@ rb_usascii_str_new_cstr(const char *ptr) https://github.com/ruby/ruby/blob/trunk/string.c#L459 return str; } -RUBY_ALIAS_FUNCTION(rb_usascii_str_new2(const char *ptr), rb_usascii_str_new_cstr, (ptr)) -#define rb_usascii_str_new2 rb_usascii_str_new_cstr - VALUE rb_tainted_str_new(const char *ptr, long len) { @@ -490,9 +477,6 @@ rb_tainted_str_new_cstr(const char *ptr) https://github.com/ruby/ruby/blob/trunk/string.c#L477 return str; } -RUBY_ALIAS_FUNCTION(rb_tainted_str_new2(const char *ptr), rb_tainted_str_new_cstr, (ptr)) -#define rb_tainted_str_new2 rb_tainted_str_new_cstr - VALUE rb_str_conv_enc_opts(VALUE str, rb_encoding *from, rb_encoding *to, int ecflags, VALUE ecopts) { @@ -688,9 +672,6 @@ rb_str_new_shared(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L672 return str2; } -RUBY_ALIAS_FUNCTION(rb_str_new3(VALUE str), rb_str_new_shared, (str)) -#define rb_str_new3 rb_str_new_shared - static VALUE str_new4(VALUE klass, VALUE str) { @@ -754,19 +735,12 @@ rb_str_new_frozen(VALUE orig) https://github.com/ruby/ruby/blob/trunk/string.c#L735 return str; } -RUBY_ALIAS_FUNCTION(rb_str_new4(VALUE orig), rb_str_new_frozen, (orig)) -#define rb_str_new4 rb_str_new_frozen - VALUE rb_str_new_with_class(VALUE obj, const char *ptr, long len) { return str_new(rb_obj_class(obj), ptr, len); } -RUBY_ALIAS_FUNCTION(rb_str_new5(VALUE obj, const char *ptr, long len), - rb_str_new_with_class, (obj, ptr, len)) -#define rb_str_new5 rb_str_new_with_class - static VALUE str_new_empty(VALUE str) { @@ -806,9 +780,6 @@ rb_str_buf_new_cstr(const char *ptr) https://github.com/ruby/ruby/blob/trunk/string.c#L780 return str; } -RUBY_ALIAS_FUNCTION(rb_str_buf_new2(const char *ptr), rb_str_buf_new_cstr, (ptr)) -#define rb_str_buf_new2 rb_str_buf_new_cstr - VALUE rb_str_tmp_new(long len) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/