aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorJim Blandy1992-04-24 08:11:54 +0000
committerJim Blandy1992-04-24 08:11:54 +0000
commit4746118aca2d5cbdd054b4af4814d56550dfbc79 (patch)
tree370e07c6950794f936bc8d434cb0560d883e4a0b /src/floatfns.c
parentd4327fecc103493bc8275c3580b05c06c9fcc019 (diff)
downloademacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.tar.gz
emacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.zip
*** empty log message ***
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index 12f14ffef72..ed94c9ebafe 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -1,11 +1,11 @@
1/* Primitive operations on floating point for GNU Emacs Lisp interpreter. 1/* Primitive operations on floating point for GNU Emacs Lisp interpreter.
2 Copyright (C) 1988 Free Software Foundation, Inc. 2 Copyright (C) 1988, 1992 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
6GNU Emacs is free software; you can redistribute it and/or modify 6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by 7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 1, or (at your option) 8the Free Software Foundation; either version 2, or (at your option)
9any later version. 9any later version.
10 10
11GNU Emacs is distributed in the hope that it will be useful, 11GNU Emacs is distributed in the hope that it will be useful,
@@ -42,7 +42,7 @@ extern int errno;
42#define sinh(x) ((exp(x)-exp(-x))*0.5) 42#define sinh(x) ((exp(x)-exp(-x))*0.5)
43#endif /* VMS */ 43#endif /* VMS */
44 44
45static float_error (); 45static SIGTYPE float_error ();
46 46
47/* Nonzero while executing in floating point. 47/* Nonzero while executing in floating point.
48 This tells float_error what to do. */ 48 This tells float_error what to do. */
@@ -60,8 +60,8 @@ static Lisp_Object float_error_arg;
60 Handle errors which may result in signals or may set errno. */ 60 Handle errors which may result in signals or may set errno. */
61 61
62#define IN_FLOAT(D, NUM) \ 62#define IN_FLOAT(D, NUM) \
63(in_float = 1, errno = 0, float_error_arg = NUM, (D), \ 63(in_float = 1, errno = 0, float_error_arg = NUM, (D), \
64 (errno == ERANGE || errno == EDOM ? float_error () : 0), \ 64 (errno == ERANGE || errno == EDOM ? float_error () : (SIGTYPE) 0), \
65 in_float = 0) 65 in_float = 0)
66 66
67/* Extract a Lisp number as a `double', or signal an error. */ 67/* Extract a Lisp number as a `double', or signal an error. */
@@ -498,7 +498,7 @@ Rounds the value toward zero.")
498 return num; 498 return num;
499} 499}
500 500
501static 501static SIGTYPE
502float_error (signo) 502float_error (signo)
503 int signo; 503 int signo;
504{ 504{