summaryrefslogtreecommitdiff
path: root/internal/string.h
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-09-16 12:29:24 -0400
committerPeter Zhu <[email protected]>2024-09-16 14:38:49 -0400
commit1e53e46275e2f49a711ff90adddc804d11a347b1 (patch)
tree0a9f3761471b06225576e7a64b7f3bcbc6ccd56b /internal/string.h
parent2beb4c6e878dd519b82a96e10838e5da69e942f5 (diff)
Don't export unnecessary string functions
These functions are not used publicly, so we don't need to export them.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11634
Diffstat (limited to 'internal/string.h')
-rw-r--r--internal/string.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/string.h b/internal/string.h
index 3533766ffb..10879bd1d9 100644
--- a/internal/string.h
+++ b/internal/string.h
@@ -51,6 +51,12 @@ int rb_enc_str_coderange_scan(VALUE str, rb_encoding *enc);
int rb_ascii8bit_appendable_encoding_index(rb_encoding *enc, unsigned int code);
VALUE rb_str_include(VALUE str, VALUE arg);
VALUE rb_str_byte_substr(VALUE str, VALUE beg, VALUE len);
+VALUE rb_str_tmp_frozen_no_embed_acquire(VALUE str);
+void rb_str_make_embedded(VALUE);
+VALUE rb_str_upto_each(VALUE, VALUE, int, int (*each)(VALUE, VALUE), VALUE);
+size_t rb_str_size_as_embedded(VALUE);
+bool rb_str_reembeddable_p(VALUE);
+VALUE rb_str_upto_endless_each(VALUE, int (*each)(VALUE, VALUE), VALUE);
static inline bool STR_EMBED_P(VALUE str);
static inline bool STR_SHARED_P(VALUE str);
@@ -63,14 +69,8 @@ static inline VALUE rb_str_eql_internal(const VALUE str1, const VALUE str2);
RUBY_SYMBOL_EXPORT_BEGIN
/* string.c (export) */
VALUE rb_str_tmp_frozen_acquire(VALUE str);
-VALUE rb_str_tmp_frozen_no_embed_acquire(VALUE str);
void rb_str_tmp_frozen_release(VALUE str, VALUE tmp);
VALUE rb_setup_fake_str(struct RString *fake_str, const char *name, long len, rb_encoding *enc);
-VALUE rb_str_upto_each(VALUE, VALUE, int, int (*each)(VALUE, VALUE), VALUE);
-VALUE rb_str_upto_endless_each(VALUE, int (*each)(VALUE, VALUE), VALUE);
-void rb_str_make_embedded(VALUE);
-size_t rb_str_size_as_embedded(VALUE);
-bool rb_str_reembeddable_p(VALUE);
RUBY_SYMBOL_EXPORT_END
VALUE rb_fstring_new(const char *ptr, long len);