path: root/internal.h
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-08 17:05:12 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-08 17:05:12 (GMT)
commit3b6c4dad0c0e3e7a27fd1e89f9cf9579e9f53079 (patch)
tree585115bcfb27e47356a0d242c64fe3997ae614b5 /internal.h
parent45c593d89ee29253e6c98427f58f32d55ff55aa1 (diff)
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:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 3970431..86a0852 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);