Commit 8acb88c5 authored by Paul Eggert's avatar Paul Eggert
Browse files

Minor INFINITY/NAN cleanup

* src/lread.c (INFINITY): Use a more-portable way to specify
this macro on non-C99 platforms that lack it.
(NAN): Remove; unused.
parent 202bd7bf
Pipeline #471 failed with stage
in 22 minutes and 35 seconds
...@@ -46,10 +46,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ ...@@ -46,10 +46,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#ifdef MSDOS #ifdef MSDOS
#include "msdos.h" #include "msdos.h"
#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 5
# define INFINITY __builtin_inf()
# define NAN __builtin_nan("")
#endif
#endif #endif
#ifdef HAVE_NS #ifdef HAVE_NS
...@@ -74,6 +70,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ ...@@ -74,6 +70,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#if IEEE_FLOATING_POINT #if IEEE_FLOATING_POINT
# include <ieee754.h> # include <ieee754.h>
# ifndef INFINITY
# define INFINITY ((union ieee754_double) {.ieee = {.exponent = -1}}.d)
# endif
#endif #endif
/* The objects or placeholders read with the #n=object form. /* The objects or placeholders read with the #n=object form.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment