From df5b8ea4dbcc9a84969c4b941ffd0a5f468fd0fa Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 22 Feb 2024 16:02:10 -0500 Subject: Remove unneeded RUBY_FUNC_EXPORTED --- array.c | 2 +- file.c | 2 +- hash.c | 2 +- io.c | 2 +- shape.c | 2 +- shape.h | 6 +++--- string.c | 2 +- variable.c | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/array.c b/array.c index aee8886e12..a6cfd9bd22 100644 --- a/array.c +++ b/array.c @@ -880,7 +880,7 @@ rb_ary_free(VALUE ary) } } -RUBY_FUNC_EXPORTED size_t +size_t rb_ary_memsize(VALUE ary) { if (ARY_OWNS_HEAP_P(ary)) { diff --git a/file.c b/file.c index 718ecaf2a0..2610449b49 100644 --- a/file.c +++ b/file.c @@ -2463,7 +2463,7 @@ rb_file_ctime(VALUE obj) * */ -RUBY_FUNC_EXPORTED VALUE +VALUE rb_file_s_birthtime(VALUE klass, VALUE fname) { statx_data st; diff --git a/hash.c b/hash.c index c8fe54eff9..fba394fc40 100644 --- a/hash.c +++ b/hash.c @@ -1600,7 +1600,7 @@ rb_hash_modify_check(VALUE 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) { return ar_force_convert_table(hash, file, line); diff --git a/io.c b/io.c index 94e6b50656..b4488170ea 100644 --- a/io.c +++ b/io.c @@ -5622,7 +5622,7 @@ rb_io_fptr_finalize(rb_io_t *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) { size_t size = sizeof(rb_io_t); diff --git a/shape.c b/shape.c index 8d8314db33..06d0f2135d 100644 --- a/shape.c +++ b/shape.c @@ -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) { RUBY_ASSERT(shape_id != INVALID_SHAPE_ID); diff --git a/shape.h b/shape.h index 4fc46b4525..60e68dfe9b 100644 --- a/shape.h +++ b/shape.h @@ -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_shape_by_id(shape_id_t shape_id); -shape_id_t rb_shape_get_shape_id(VALUE obj); +RUBY_FUNC_EXPORTED rb_shape_t *rb_shape_get_shape_by_id(shape_id_t shape_id); +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); 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_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); rb_shape_t* rb_shape_get_shape(VALUE obj); diff --git a/string.c b/string.c index f8a64fca13..24dd29b32e 100644 --- a/string.c +++ b/string.c @@ -1578,7 +1578,7 @@ rb_str_free(VALUE str) } } -RUBY_FUNC_EXPORTED size_t +size_t rb_str_memsize(VALUE str) { if (FL_TEST(str, STR_NOEMBED|STR_SHARED|STR_NOFREE) == STR_NOEMBED) { diff --git a/variable.c b/variable.c index ab779f7420..564fd643fb 100644 --- a/variable.c +++ b/variable.c @@ -1166,7 +1166,7 @@ rb_free_generic_ivar(VALUE obj) } } -RUBY_FUNC_EXPORTED size_t +size_t rb_generic_ivar_memsize(VALUE obj) { struct gen_ivtbl *ivtbl; @@ -2546,7 +2546,7 @@ get_autoload_data(VALUE autoload_const_value, struct autoload_const **autoload_c return autoload_data; } -RUBY_FUNC_EXPORTED void +void rb_autoload(VALUE module, ID name, const char *feature) { if (!feature || !*feature) { -- cgit v1.2.3