summaryrefslogtreecommitdiff
path: root/libguile/numbers.h
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2004-09-21 00:42:30 +0000
committerMarius Vollmer <mvo@zagadka.de>2004-09-21 00:42:30 +0000
commitcd0362604b117133b49bb18596c59143dbf7d14f (patch)
tree76d5bf26f134ea8f7d4425944fe1594e9804b381 /libguile/numbers.h
parent9c0485fce24cb96796265f0602cb092fa8410de1 (diff)
downloadguile-cd0362604b117133b49bb18596c59143dbf7d14f.tar.gz
Include <gmp.h> in numbers.h, not in
numbers.c. (scm_to_mpz, scm_from_mpz): New. Thanks to Andreas Vögele!
Diffstat (limited to 'libguile/numbers.h')
-rw-r--r--libguile/numbers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libguile/numbers.h b/libguile/numbers.h
index 4e39a2cc1..f663e9e85 100644
--- a/libguile/numbers.h
+++ b/libguile/numbers.h
@@ -22,6 +22,8 @@
+#include <gmp.h>
+
#include "libguile/__scm.h"
#include "libguile/print.h"
@@ -323,6 +325,10 @@ SCM_API SCM scm_from_uint64 (scm_t_uint64 x);
#endif
+SCM_API void scm_to_mpz (SCM x, mpz_t rop);
+SCM_API SCM scm_from_mpz (mpz_t rop);
+
+
/* The conversion functions for other types are aliased to the
appropriate ones from above. We pick the right one based on the
size of the type.