summaryrefslogtreecommitdiff
path: root/libguile/integers.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2022-01-04 10:59:01 +0100
committerAndy Wingo <wingo@pobox.com>2022-01-13 09:37:16 +0100
commitfc36cd610dc1822957afc9e441d81fc8b33d7e56 (patch)
tree75340497a43bed281df1e97520b0c9b950d992b3 /libguile/integers.h
parentfc4228c1967fc7c3cb7e408c202c526cfe04f237 (diff)
downloadguile-fc36cd610dc1822957afc9e441d81fc8b33d7e56.tar.gz
Implement integer-to-string with new integer library
* libguile/integers.c (scm_integer_to_string_i) (scm_integer_to_string_z): New internal functions. * libguile/integers.h: Declare the new internal functions. * libguile/numbers.c (scm_number_to_string): Use new internal functions.
Diffstat (limited to 'libguile/integers.h')
-rw-r--r--libguile/integers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libguile/integers.h b/libguile/integers.h
index 5bc2c7650..8ac4ca55f 100644
--- a/libguile/integers.h
+++ b/libguile/integers.h
@@ -144,6 +144,9 @@ SCM_INTERNAL SCM scm_integer_logcount_z (struct scm_bignum *n);
SCM_INTERNAL SCM scm_integer_length_i (scm_t_inum n);
SCM_INTERNAL SCM scm_integer_length_z (struct scm_bignum *n);
+SCM_INTERNAL SCM scm_integer_to_string_i (scm_t_inum n, int base);
+SCM_INTERNAL SCM scm_integer_to_string_z (struct scm_bignum *n, int base);
+
#endif /* SCM_INTEGERS_H */