Make some internal functions static

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-11-16 06:52:00 +00:00
Родитель 429245aa9f
Коммит 34cc6fef83
4 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -34756,9 +34756,11 @@ struct uniname2ctype_struct {
}; };
#define uniname2ctype_offset(str) offsetof(struct uniname2ctype_pool_t, uniname2ctype_pool_##str) #define uniname2ctype_offset(str) offsetof(struct uniname2ctype_pool_t, uniname2ctype_pool_##str)
#if !1+0 static const struct uniname2ctype_struct *uniname2ctype_p(
static const struct uniname2ctype_struct *uniname2ctype_p(const char *, unsigned int); #if !(1+0) /* if ANSI, old style not to conflict with generated prototype */
const char *, unsigned int
#endif #endif
);
#ifndef USE_UNICODE_PROPERTIES #ifndef USE_UNICODE_PROPERTIES
#define TOTAL_KEYWORDS 15 #define TOTAL_KEYWORDS 15

Просмотреть файл

@ -3902,7 +3902,7 @@ rb_int_modulo(VALUE x, VALUE y)
* See Numeric#divmod. * See Numeric#divmod.
*/ */
VALUE static VALUE
int_remainder(VALUE x, VALUE y) int_remainder(VALUE x, VALUE y)
{ {
if (FIXNUM_P(x)) { if (FIXNUM_P(x)) {

Просмотреть файл

@ -448,9 +448,11 @@ struct uniname2ctype_struct {
}; };
#define uniname2ctype_offset(str) offsetof(struct uniname2ctype_pool_t, uniname2ctype_pool_##str) #define uniname2ctype_offset(str) offsetof(struct uniname2ctype_pool_t, uniname2ctype_pool_##str)
#if !(/*ANSI*/+0) static const struct uniname2ctype_struct *uniname2ctype_p(
static const struct uniname2ctype_struct *uniname2ctype_p(const char *, unsigned int); #if !(/*ANSI*/+0) /* if ANSI, old style not to conflict with generated prototype */
const char *, unsigned int
#endif #endif
);
%} %}
struct uniname2ctype_struct; struct uniname2ctype_struct;
%% %%

Просмотреть файл

@ -693,7 +693,7 @@ rb_ec_backtrace_str_ary(const rb_execution_context_t *ec, long lev, long n)
return backtrace_to_str_ary(rb_ec_backtrace_object(ec), lev, n); return backtrace_to_str_ary(rb_ec_backtrace_object(ec), lev, n);
} }
VALUE static VALUE
ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n) ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n)
{ {
return backtrace_to_location_ary(rb_ec_backtrace_object(ec), lev, n); return backtrace_to_location_ary(rb_ec_backtrace_object(ec), lev, n);