diff options
| author | Richard M. Stallman | 1994-01-08 09:16:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-08 09:16:45 +0000 |
| commit | a3fc523600c39361b2f4910cdfa111fe9b57a01c (patch) | |
| tree | e6856edadfe9d9f05741a6fc1616809188b32f38 /src/floatfns.c | |
| parent | 4c3c22f36ae8734646ea485767ba9a01f33f94ee (diff) | |
| download | emacs-a3fc523600c39361b2f4910cdfa111fe9b57a01c.tar.gz emacs-a3fc523600c39361b2f4910cdfa111fe9b57a01c.zip | |
[MSDOS]: Don't define HAVE_MATHERR.
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index b31f0baee27..733746a4578 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -53,6 +53,16 @@ Lisp_Object Qarith_error; | |||
| 53 | 53 | ||
| 54 | #ifdef LISP_FLOAT_TYPE | 54 | #ifdef LISP_FLOAT_TYPE |
| 55 | 55 | ||
| 56 | #if 0 /* That is untrue--XINT is used below, and it uses INTBITS. | ||
| 57 | What in the world is values.h, anyway? */ | ||
| 58 | #ifdef MSDOS | ||
| 59 | /* These are redefined in <values.h> and not used here */ | ||
| 60 | #undef INTBITS | ||
| 61 | #undef LONGBITS | ||
| 62 | #undef SHORTBITS | ||
| 63 | #endif | ||
| 64 | #endif | ||
| 65 | |||
| 56 | /* Work around a problem that happens because math.h on hpux 7 | 66 | /* Work around a problem that happens because math.h on hpux 7 |
| 57 | defines two static variables--which, in Emacs, are not really static, | 67 | defines two static variables--which, in Emacs, are not really static, |
| 58 | because `static' is defined as nothing. The problem is that they are | 68 | because `static' is defined as nothing. The problem is that they are |
| @@ -70,12 +80,14 @@ Lisp_Object Qarith_error; | |||
| 70 | extern double logb (); | 80 | extern double logb (); |
| 71 | #endif /* !hpux && HAVE_LOGB */ | 81 | #endif /* !hpux && HAVE_LOGB */ |
| 72 | 82 | ||
| 83 | #ifndef MSDOS | ||
| 73 | #if defined(DOMAIN) && defined(SING) && defined(OVERFLOW) | 84 | #if defined(DOMAIN) && defined(SING) && defined(OVERFLOW) |
| 74 | /* If those are defined, then this is probably a `matherr' machine. */ | 85 | /* If those are defined, then this is probably a `matherr' machine. */ |
| 75 | # ifndef HAVE_MATHERR | 86 | # ifndef HAVE_MATHERR |
| 76 | # define HAVE_MATHERR | 87 | # define HAVE_MATHERR |
| 77 | # endif | 88 | # endif |
| 78 | #endif | 89 | #endif |
| 90 | #endif | ||
| 79 | 91 | ||
| 80 | #ifdef NO_MATHERR | 92 | #ifdef NO_MATHERR |
| 81 | #undef HAVE_MATHERR | 93 | #undef HAVE_MATHERR |
| @@ -813,7 +825,7 @@ Rounds the value toward zero.") | |||
| 813 | if (d >= 0.0) | 825 | if (d >= 0.0) |
| 814 | IN_FLOAT (d = floor (d), "ftruncate", arg); | 826 | IN_FLOAT (d = floor (d), "ftruncate", arg); |
| 815 | else | 827 | else |
| 816 | IN_FLOAT (d = ceil (d), arg); | 828 | IN_FLOAT (d = ceil (d), "ftruncate", arg); |
| 817 | return make_float (d); | 829 | return make_float (d); |
| 818 | } | 830 | } |
| 819 | #endif | 831 | #endif |