Remove unneeded RUBY_FUNC_EXPORTED

This commit is contained in:
Peter Zhu 2024-02-22 16:02:10 -05:00
parent 386a006630
commit df5b8ea4db
8 changed files with 11 additions and 11 deletions

View File

@ -880,7 +880,7 @@ rb_ary_free(VALUE ary)
} }
} }
RUBY_FUNC_EXPORTED size_t size_t
rb_ary_memsize(VALUE ary) rb_ary_memsize(VALUE ary)
{ {
if (ARY_OWNS_HEAP_P(ary)) { if (ARY_OWNS_HEAP_P(ary)) {

2
file.c
View File

@ -2463,7 +2463,7 @@ rb_file_ctime(VALUE obj)
* *
*/ */
RUBY_FUNC_EXPORTED VALUE VALUE
rb_file_s_birthtime(VALUE klass, VALUE fname) rb_file_s_birthtime(VALUE klass, VALUE fname)
{ {
statx_data st; statx_data st;

2
hash.c
View File

@ -1600,7 +1600,7 @@ rb_hash_modify_check(VALUE hash)
rb_check_frozen(hash); rb_check_frozen(hash);
} }
RUBY_FUNC_EXPORTED struct st_table * struct st_table *
rb_hash_tbl_raw(VALUE hash, const char *file, int line) rb_hash_tbl_raw(VALUE hash, const char *file, int line)
{ {
return ar_force_convert_table(hash, file, line); return ar_force_convert_table(hash, file, line);

2
io.c
View File

@ -5622,7 +5622,7 @@ rb_io_fptr_finalize(rb_io_t *fptr)
} }
#define rb_io_fptr_finalize(fptr) rb_io_fptr_finalize_internal(fptr) #define rb_io_fptr_finalize(fptr) rb_io_fptr_finalize_internal(fptr)
RUBY_FUNC_EXPORTED size_t size_t
rb_io_memsize(const rb_io_t *fptr) rb_io_memsize(const rb_io_t *fptr)
{ {
size_t size = sizeof(rb_io_t); size_t size = sizeof(rb_io_t);

View File

@ -322,7 +322,7 @@ rb_shape_each_shape(each_shape_callback callback, void *data)
} }
} }
RUBY_FUNC_EXPORTED rb_shape_t* RUBY_FUNC_EXPORTED rb_shape_t *
rb_shape_get_shape_by_id(shape_id_t shape_id) rb_shape_get_shape_by_id(shape_id_t shape_id)
{ {
RUBY_ASSERT(shape_id != INVALID_SHAPE_ID); RUBY_ASSERT(shape_id != INVALID_SHAPE_ID);

View File

@ -150,12 +150,12 @@ int32_t rb_shape_id_offset(void);
rb_shape_t * rb_shape_get_parent(rb_shape_t * shape); rb_shape_t * rb_shape_get_parent(rb_shape_t * shape);
rb_shape_t* rb_shape_get_shape_by_id(shape_id_t shape_id); RUBY_FUNC_EXPORTED rb_shape_t *rb_shape_get_shape_by_id(shape_id_t shape_id);
shape_id_t rb_shape_get_shape_id(VALUE obj); RUBY_FUNC_EXPORTED shape_id_t rb_shape_get_shape_id(VALUE obj);
rb_shape_t * rb_shape_get_next_iv_shape(rb_shape_t * shape, ID id); rb_shape_t * rb_shape_get_next_iv_shape(rb_shape_t * shape, ID id);
bool rb_shape_get_iv_index(rb_shape_t * shape, ID id, attr_index_t * value); bool rb_shape_get_iv_index(rb_shape_t * shape, ID id, attr_index_t * value);
bool rb_shape_get_iv_index_with_hint(shape_id_t shape_id, ID id, attr_index_t * value, shape_id_t *shape_id_hint); bool rb_shape_get_iv_index_with_hint(shape_id_t shape_id, ID id, attr_index_t * value, shape_id_t *shape_id_hint);
bool rb_shape_obj_too_complex(VALUE obj); RUBY_FUNC_EXPORTED bool rb_shape_obj_too_complex(VALUE obj);
void rb_shape_set_shape(VALUE obj, rb_shape_t* shape); void rb_shape_set_shape(VALUE obj, rb_shape_t* shape);
rb_shape_t* rb_shape_get_shape(VALUE obj); rb_shape_t* rb_shape_get_shape(VALUE obj);

View File

@ -1578,7 +1578,7 @@ rb_str_free(VALUE str)
} }
} }
RUBY_FUNC_EXPORTED size_t size_t
rb_str_memsize(VALUE str) rb_str_memsize(VALUE str)
{ {
if (FL_TEST(str, STR_NOEMBED|STR_SHARED|STR_NOFREE) == STR_NOEMBED) { if (FL_TEST(str, STR_NOEMBED|STR_SHARED|STR_NOFREE) == STR_NOEMBED) {

View File

@ -1166,7 +1166,7 @@ rb_free_generic_ivar(VALUE obj)
} }
} }
RUBY_FUNC_EXPORTED size_t size_t
rb_generic_ivar_memsize(VALUE obj) rb_generic_ivar_memsize(VALUE obj)
{ {
struct gen_ivtbl *ivtbl; struct gen_ivtbl *ivtbl;
@ -2546,7 +2546,7 @@ get_autoload_data(VALUE autoload_const_value, struct autoload_const **autoload_c
return autoload_data; return autoload_data;
} }
RUBY_FUNC_EXPORTED void void
rb_autoload(VALUE module, ID name, const char *feature) rb_autoload(VALUE module, ID name, const char *feature)
{ {
if (!feature || !*feature) { if (!feature || !*feature) {