summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-09 14:36:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-09 14:36:17 +0000
commitf64e7c834f95ecc1437394b2aba5ca03e9b10968 (patch)
treeda061126617189029db262894a38cdd70b1bf54c /internal.h
parent7057facef3376f5522783d70a2fa7d5396fabe1a (diff)
string.c: rb_str_symname_p
* string.c (rb_str_symname_p): new function that checks if the string is valid as a symbol name. split from sym_inspect(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 48a3a763d5..d17d2ba826 100644
--- a/internal.h
+++ b/internal.h
@@ -187,6 +187,7 @@ size_t rb_strftime(char *s, size_t maxsize, const char *format, rb_encoding *enc
/* string.c */
int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
+int rb_str_symname_p(VALUE);
/* struct.c */
VALUE rb_struct_init_copy(VALUE copy, VALUE s);