aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-08 07:46:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-08 07:46:39 +0000
commit18034276608ec2c61198e7e38065997d47cf3725 (patch)
tree4af95913ee21d5aac93eda434340cd28a33adba1 /internal.h
parentbdc2876597a30f133ccca65a3be37345fcb2e710 (diff)
downloadruby-18034276608ec2c61198e7e38065997d47cf3725.tar.gz
symbol.c: rb_cstr_intern
* symbol.c (rb_cstr_intern): new function to make Symbol object like as rb_str_intern() but from pointer to the name, its length and its encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index d135035607..eb78a88ae1 100644
--- a/internal.h
+++ b/internal.h
@@ -1129,6 +1129,11 @@ size_t rb_str_memsize(VALUE);
VALUE rb_sym_proc_call(VALUE args, VALUE sym, int argc, const VALUE *argv, VALUE passed_proc);
VALUE rb_sym_to_proc(VALUE sym);
+/* symbol.c */
+#ifdef RUBY_ENCODING_H
+VALUE rb_cstr_intern(const char *ptr, long len, rb_encoding *enc);
+#endif
+
/* struct.c */
VALUE rb_struct_init_copy(VALUE copy, VALUE s);