From 22444ae9b1a20e39b7278193f85e4d805bd1d54d Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 27 Jun 2018 00:57:16 +0000 Subject: [PATCH] move function declarations from insns.def to internal.h Just avoid being loose. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- insns.def | 3 --- internal.h | 3 +++ string.c | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/insns.def b/insns.def index cac337423f..91ae4563f0 100644 --- a/insns.def +++ b/insns.def @@ -375,7 +375,6 @@ tostring (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 (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); diff --git a/internal.h b/internal.h index c486a46d99..88258ed805 100644 --- a/internal.h +++ b/internal.h @@ -1083,6 +1083,7 @@ VALUE rb_ary_aref2(VALUE ary, VALUE b, VALUE e); 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 str); 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, const VALUE *argv, VALUE passed_proc); 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 diff --git a/string.c b/string.c index 435954d313..0ce8c40ecb 100644 --- a/string.c +++ b/string.c @@ -1432,8 +1432,6 @@ str_shared_replace(VALUE str, VALUE str2) } } -VALUE rb_obj_as_string_result(VALUE str, VALUE obj); - VALUE rb_obj_as_string(VALUE obj) {