1 /*
2 Copyright (c) 1990 Regents of the University of California.
3 All rights reserved.
4  */
5 #include <stdlib.h>
6 #include <stdio.h>
7 #include <errno.h>
8 #include <limits.h>
9 #include <math.h>
10 #ifndef CYGNUS_NEC
11 #include <ctype.h>
12 #endif
13 
14 #define Ise(c)		((c == 'e') || (c == 'E') || (c == 'd') || (c == 'D'))
15 #define Isdigit(c)	((c <= '9') && (c >= '0'))
16 #define Isspace(c)	((c == ' ') || (c == '\t') || (c=='\n') || (c=='\v') \
17                          || (c == '\r') || (c == '\f'))
18 #define Issign(c)	((c == '-') || (c == '+'))
19 #define Val(c)		((c - '0'))
20 
21 #define MAXE  308
22 #define MINE  (-308)
23 
24 /* flags */
25 #define SIGN	0x01
26 #define ESIGN	0x02
27 #define DECP	0x04
28