diff options
author | Peter Zhu <peter@peterzhu.ca> | 2024-02-22 16:02:10 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2024-02-23 10:24:21 -0500 |
commit | df5b8ea4dbcc9a84969c4b941ffd0a5f468fd0fa (patch) | |
tree | 916957fa57658e91b51fc8aa9eda938e64843395 | |
parent | 386a00663092fc5eff0770dcb4b4ce5d6797dd74 (diff) | |
download | ruby-df5b8ea4dbcc9a84969c4b941ffd0a5f468fd0fa.tar.gz |
Remove unneeded RUBY_FUNC_EXPORTED
-rw-r--r-- | array.c | 2 | ||||
-rw-r--r-- | file.c | 2 | ||||
-rw-r--r-- | hash.c | 2 | ||||
-rw-r--r-- | io.c | 2 | ||||
-rw-r--r-- | shape.c | 2 | ||||
-rw-r--r-- | shape.h | 6 | ||||
-rw-r--r-- | string.c | 2 | ||||
-rw-r--r-- | variable.c | 4 |
8 files changed, 11 insertions, 11 deletions
@@ -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)) { @@ -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; @@ -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); @@ -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); @@ -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); @@ -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); @@ -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) { |