ruby-changes:51544
From: shyouhei <ko1@a...>
Date: Wed, 27 Jun 2018 16:58:22 +0900 (JST)
Subject: [ruby-changes:51544] shyouhei:r63755 (trunk): move function declarations from insns.def to internal.h
shyouhei 2018-06-27 09:57:16 +0900 (Wed, 27 Jun 2018) New Revision: 63755 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63755 Log: move function declarations from insns.def to internal.h Just avoid being loose. Modified files: trunk/insns.def trunk/internal.h trunk/string.c Index: insns.def =================================================================== --- insns.def (revision 63754) +++ insns.def (revision 63755) @@ -375,7 +375,6 @@ tostring https://github.com/ruby/ruby/blob/trunk/insns.def#L375 (VALUE val, VALUE str) (VALUE val) { - VALUE rb_obj_as_string_result(VALUE str, VALUE obj); val = rb_obj_as_string_result(str, val); } @@ -399,8 +398,6 @@ toregexp https://github.com/ruby/ruby/blob/trunk/insns.def#L398 (VALUE val) // attr rb_snum_t sp_inc = 1 - cnt; { - VALUE rb_reg_new_ary(VALUE ary, int options); - VALUE rb_ary_tmp_new_from_values(VALUE, long, const VALUE *); const VALUE ary = rb_ary_tmp_new_from_values(0, cnt, STACK_ADDR_FROM_TOP(cnt)); val = rb_reg_new_ary(ary, (int)opt); rb_ary_clear(ary); Index: internal.h =================================================================== --- internal.h (revision 63754) +++ internal.h (revision 63755) @@ -1083,6 +1083,7 @@ VALUE rb_ary_aref2(VALUE ary, VALUE b, V https://github.com/ruby/ruby/blob/trunk/internal.h#L1083 size_t rb_ary_memsize(VALUE); VALUE rb_to_array_type(VALUE obj); VALUE rb_check_to_array(VALUE ary); +VALUE rb_ary_tmp_new_from_values(VALUE, long, const VALUE *); #if defined(__GNUC__) && defined(HAVE_VA_ARGS_MACRO) #define rb_ary_new_from_args(n, ...) \ __extension__ ({ \ @@ -1735,6 +1736,7 @@ bool rb_reg_start_with_p(VALUE re, VALUE https://github.com/ruby/ruby/blob/trunk/internal.h#L1736 void rb_backref_set_string(VALUE string, long pos, long len); int rb_match_count(VALUE match); int rb_match_nth_defined(int nth, VALUE match); +VALUE rb_reg_new_ary(VALUE ary, int options); /* signal.c */ extern int ruby_enable_coredump; @@ -1804,6 +1806,7 @@ VALUE rb_sym_proc_call(ID mid, int argc, https://github.com/ruby/ruby/blob/trunk/internal.h#L1806 VALUE rb_sym_to_proc(VALUE sym); char *rb_str_to_cstr(VALUE str); VALUE rb_str_eql(VALUE str1, VALUE str2); +VALUE rb_obj_as_string_result(VALUE str, VALUE obj); /* symbol.c */ #ifdef RUBY_ENCODING_H Index: string.c =================================================================== --- string.c (revision 63754) +++ string.c (revision 63755) @@ -1432,8 +1432,6 @@ str_shared_replace(VALUE str, VALUE str2 https://github.com/ruby/ruby/blob/trunk/string.c#L1432 } } -VALUE rb_obj_as_string_result(VALUE str, VALUE obj); - VALUE rb_obj_as_string(VALUE obj) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/