comparison src/floatfns.c @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents fdefd0186b75
children c925bacdda60
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
49 #include "lisp.h" 49 #include "lisp.h"
50 #include "syssignal.h" 50 #include "syssignal.h"
51 51
52 #ifdef LISP_FLOAT_TYPE 52 #ifdef LISP_FLOAT_TYPE
53 53
54 /* Need to define a differentiating symbol -- see sysfloat.h */
55 #define THIS_FILENAME floatfns
56 #include "sysfloat.h" 54 #include "sysfloat.h"
57 55
58 /* The code uses emacs_rint, so that it works to undefine HAVE_RINT 56 /* The code uses emacs_rint, so that it works to undefine HAVE_RINT
59 if `rint' exists but does not work right. */ 57 if `rint' exists but does not work right. */
60 #ifdef HAVE_RINT 58 #ifdef HAVE_RINT
110 #define IN_FLOAT2(d, name, num, num2) (in_float = 2, (d), in_float = 0) 108 #define IN_FLOAT2(d, name, num, num2) (in_float = 2, (d), in_float = 0)
111 #endif 109 #endif
112 110
113 111
114 #define arith_error(op,arg) \ 112 #define arith_error(op,arg) \
115 Fsignal (Qarith_error, list2 (build_string (op), arg)) 113 Fsignal (Qarith_error, list2 (build_msg_string (op), arg))
116 #define range_error(op,arg) \ 114 #define range_error(op,arg) \
117 Fsignal (Qrange_error, list2 (build_string (op), arg)) 115 Fsignal (Qrange_error, list2 (build_msg_string (op), arg))
118 #define range_error2(op,a1,a2) \ 116 #define range_error2(op,a1,a2) \
119 Fsignal (Qrange_error, list3 (build_string (op), a1, a2)) 117 Fsignal (Qrange_error, list3 (build_msg_string (op), a1, a2))
120 #define domain_error(op,arg) \ 118 #define domain_error(op,arg) \
121 Fsignal (Qdomain_error, list2 (build_string (op), arg)) 119 Fsignal (Qdomain_error, list2 (build_msg_string (op), arg))
122 #define domain_error2(op,a1,a2) \ 120 #define domain_error2(op,a1,a2) \
123 Fsignal (Qdomain_error, list3 (build_string (op), a1, a2)) 121 Fsignal (Qdomain_error, list3 (build_msg_string (op), a1, a2))
124 122
125 123
126 /* Convert float to Lisp Integer if it fits, else signal a range 124 /* Convert float to Lisp Integer if it fits, else signal a range
127 error using the given arguments. */ 125 error using the given arguments. */
128 static Lisp_Object 126 static Lisp_Object