aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-08 17:05:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-08 17:05:12 +0000
commit91595f8d60ee05f46527a11ecbb2534e0cb51dae (patch)
tree585115bcfb27e47356a0d242c64fe3997ae614b5 /internal.h
parent7ec29f3fb744f29f3f7431b27a767894d232d9bd (diff)
downloadruby-91595f8d60ee05f46527a11ecbb2534e0cb51dae.tar.gz
bignum.c: rb_cstr_parse_inum
* bignum.c (rb_cstr_parse_inum): [EXPERIMENTAL] new function to parse integer in C-string with length. the name and the arguments may be changed in the future. * bignum.c (rb_str_to_inum): preserve encoding of the argument in error messages, and no longer needs to copy non-terminated strings. * bignum.c (rb_str2big_{poweroftwo,normal,karatsuba,gmp}): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54518 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 3970431fcb..86a0852cc1 100644
--- a/internal.h
+++ b/internal.h
@@ -782,6 +782,7 @@ VALUE rb_big_odd_p(VALUE);
VALUE rb_big_even_p(VALUE);
VALUE rb_integer_float_cmp(VALUE x, VALUE y);
VALUE rb_integer_float_eq(VALUE x, VALUE y);
+VALUE rb_cstr_parse_inum(const char *str, ssize_t len, char **endp, int base);
/* class.c */
VALUE rb_class_boot(VALUE);