summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-22 19:20:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-22 19:20:43 -0700
commitbd59f9a3c30f6853e0f23fefbe0fc80705cc9906 (patch)
tree278d9b5a98b9302e133daff2390734a01d6a53c4 /arith.h
parent944a258b1dbf1465b91690cf5784eef9336a2471 (diff)
downloadtxr-bd59f9a3c30f6853e0f23fefbe0fc80705cc9906.tar.gz
txr-bd59f9a3c30f6853e0f23fefbe0fc80705cc9906.tar.bz2
txr-bd59f9a3c30f6853e0f23fefbe0fc80705cc9906.zip
arith: move c_unum and unum declaration into lib.h
The c_unum and unum functions are fairly often needed and and are closely related to c_num and num, which have always been declared in lib.h even though they live in arith.c. Files not doing arithmetic are including "arith.h" just for the sake of c_num or unum. * arith.h (c_unum, unum): Declarations removed. * lib.h (c_unum, unum): Declarations moved here. * chksum.c, debug.c, stream.c, strudel.c, sysif.c, vm.c: These files no longer require #include "arith.h" as a result, which is therefore removed.
Diffstat (limited to 'arith.h')
-rw-r--r--arith.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arith.h b/arith.h
index cf352040..177b2417 100644
--- a/arith.h
+++ b/arith.h
@@ -39,8 +39,6 @@ val bignum_dbl_ipt(double_intptr_t di);
val bignum_dbl_uipt(double_uintptr_t dui);
#endif
val in_int_ptr_range(val bignum);
-ucnum c_unum(val num);
-val unum(ucnum u);
#if HAVE_DOUBLE_INTPTR_T
double_intptr_t c_dbl_num(val num);
double_uintptr_t c_dbl_unum(val num);