aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorPaul Eggert2011-03-16 00:45:34 -0700
committerPaul Eggert2011-03-16 00:45:34 -0700
commit1384fa33581c398a3f3393c82be071d5784b0b04 (patch)
treebc34edb080ae86d64bd0fcaf0db7729c5242ab56 /src/floatfns.c
parent1faed8ae39da845b9e39d2ce7f20ee9f4e32fc31 (diff)
downloademacs-1384fa33581c398a3f3393c82be071d5784b0b04.tar.gz
emacs-1384fa33581c398a3f3393c82be071d5784b0b04.zip
* floatfns.c (domain_error2): Define only if needed.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index c00923643d1..c8b5236d34a 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -187,8 +187,10 @@ static const char *float_error_fn_name;
187 xsignal3 (Qrange_error, build_string ((op)), (a1), (a2)) 187 xsignal3 (Qrange_error, build_string ((op)), (a1), (a2))
188#define domain_error(op,arg) \ 188#define domain_error(op,arg) \
189 xsignal2 (Qdomain_error, build_string ((op)), (arg)) 189 xsignal2 (Qdomain_error, build_string ((op)), (arg))
190#ifdef FLOAT_CHECK_DOMAIN
190#define domain_error2(op,a1,a2) \ 191#define domain_error2(op,a1,a2) \
191 xsignal3 (Qdomain_error, build_string ((op)), (a1), (a2)) 192 xsignal3 (Qdomain_error, build_string ((op)), (a1), (a2))
193#endif
192 194
193/* Extract a Lisp number as a `double', or signal an error. */ 195/* Extract a Lisp number as a `double', or signal an error. */
194 196
@@ -1037,7 +1039,7 @@ syms_of_floatfns (void)
1037 defsubr (&Scopysign); 1039 defsubr (&Scopysign);
1038 defsubr (&Sfrexp); 1040 defsubr (&Sfrexp);
1039 defsubr (&Sldexp); 1041 defsubr (&Sldexp);
1040#endif 1042#endif
1041#if 0 1043#if 0
1042 defsubr (&Sacosh); 1044 defsubr (&Sacosh);
1043 defsubr (&Sasinh); 1045 defsubr (&Sasinh);
@@ -1074,4 +1076,3 @@ syms_of_floatfns (void)
1074 defsubr (&Sround); 1076 defsubr (&Sround);
1075 defsubr (&Struncate); 1077 defsubr (&Struncate);
1076} 1078}
1077