diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:12 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:12 +0000 |
commit | 10dc4a2c37597e02c12a9df3e9dba02a73bfc11b (patch) | |
tree | 862068307dff135870c4ae58be677408c4942a39 /lisp/read.c | |
parent | 8ae60bfe8a4b233100f5128859c76239e5789f70 (diff) |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16
Diffstat (limited to 'lisp/read.c')
-rw-r--r-- | lisp/read.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lisp/read.c b/lisp/read.c index b8872a2..115dec4 100644 --- a/lisp/read.c +++ b/lisp/read.c @@ -27,12 +27,12 @@ * Author: Paulo César Pereira de Andrade */ -/* $XFree86: xc/programs/xedit/lisp/read.c,v 1.34 2003/01/13 03:57:58 paulo Exp $ */ +/* $XFree86: xc/programs/xedit/lisp/read.c,v 1.37 2003/05/27 22:27:04 tsi Exp $ */ #include <errno.h> -#include "read.h" -#include "package.h" -#include "write.h" +#include "lisp/read.h" +#include "lisp/package.h" +#include "lisp/write.h" #include <fcntl.h> #include <stdarg.h> @@ -62,6 +62,10 @@ #define READ_ERROR_FIXNUM() READ_ERROR0("number is not a fixnum") #define READ_ERROR_INVARG() READ_ERROR0("invalid argument") +#ifdef __UNIXOS2__ +# define finite(x) isfinite(x) +#endif + /* * Types */ @@ -251,9 +255,8 @@ Lisp_Read(LispBuiltin *builtin) { LispObj *result; - LispObj *input_stream, *eof_error_p, *eof_value, *recursive_p; + LispObj *input_stream, *eof_error_p, *eof_value; - recursive_p = ARGUMENT(3); eof_value = ARGUMENT(2); eof_error_p = ARGUMENT(1); input_stream = ARGUMENT(0); @@ -294,11 +297,9 @@ static LispObj * LispReadChar(LispBuiltin *builtin, int nohang) { int character; - LispObj *result; - LispObj *input_stream, *eof_error_p, *eof_value, *recursive_p; + LispObj *input_stream, *eof_error_p, *eof_value; - recursive_p = ARGUMENT(3); eof_value = ARGUMENT(2); eof_error_p = ARGUMENT(1); input_stream = ARGUMENT(0); @@ -314,7 +315,6 @@ LispReadChar(LispBuiltin *builtin, int nohang) if (eof_value == UNSPEC) eof_value = NIL; - result = NIL; character = EOF; if (input_stream->data.stream.readable) { @@ -410,9 +410,8 @@ Lisp_ReadLine(LispBuiltin *builtin) int ch, length; LispObj *result, *status = NIL; - LispObj *input_stream, *eof_error_p, *eof_value, *recursive_p; + LispObj *input_stream, *eof_error_p, *eof_value; - recursive_p = ARGUMENT(3); eof_value = ARGUMENT(2); eof_error_p = ARGUMENT(1); input_stream = ARGUMENT(0); |