summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-03 01:55:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-03 01:55:10 +0000
commitd0987afc748dca7c2cab11011a5ee4b86bb59ba0 (patch)
tree53cb108158057282856ca15d4523c9dd712079ae /include
parent48bb55edc95bbfd9e3c0f6deac034e7aea3200bc (diff)
make symbol conversion functions public
* include/ruby/encoding.h (rb_check_symbol_cstr): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/encoding.h1
-rw-r--r--include/ruby/ruby.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 94a7f0f..4a5324d 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -232,6 +232,7 @@ char *rb_enc_path_end(const char *,const char *,rb_encoding*);
const char *ruby_enc_find_basename(const char *name, long *baselen, long *alllen, rb_encoding *enc);
const char *ruby_enc_find_extname(const char *name, long *len, rb_encoding *enc);
ID rb_check_id_cstr(const char *ptr, long len, rb_encoding *enc);
+VALUE rb_check_symbol_cstr(const char *ptr, long len, rb_encoding *enc);
RUBY_EXTERN VALUE rb_cEncoding;
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 472e1e4..1f2fbaf 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -1356,6 +1356,8 @@ ID rb_check_id(volatile VALUE *);
ID rb_to_id(VALUE);
VALUE rb_id2str(ID);
VALUE rb_sym2str(VALUE);
+VALUE rb_to_symbol(VALUE name);
+VALUE rb_check_symbol(volatile VALUE *namep);
#define CONST_ID_CACHE(result, str) \
{ \