28 |
|
|
29 |
|
#ifndef PI |
30 |
|
#ifdef M_PI |
31 |
< |
#define PI M_PI |
31 |
> |
#define PI ((double)M_PI) |
32 |
|
#else |
33 |
|
#define PI 3.14159265358979323846 |
34 |
|
#endif |
44 |
|
extern int eputs(), wputs(); /* standard error output functions */ |
45 |
|
|
46 |
|
/* error codes */ |
47 |
< |
#define WARNING 1 /* non-fatal error */ |
48 |
< |
#define USER 2 /* fatal user-caused error */ |
49 |
< |
#define SYSTEM 3 /* fatal system-related error */ |
50 |
< |
#define INTERNAL 4 /* fatal program-related error */ |
51 |
< |
#define CONSISTENCY 5 /* bad consistency check, abort */ |
52 |
< |
#define COMMAND 6 /* interactive error */ |
53 |
< |
#define NERRS 7 |
47 |
> |
#define WARNING 0 /* non-fatal error */ |
48 |
> |
#define USER 1 /* fatal user-caused error */ |
49 |
> |
#define SYSTEM 2 /* fatal system-related error */ |
50 |
> |
#define INTERNAL 3 /* fatal program-related error */ |
51 |
> |
#define CONSISTENCY 4 /* bad consistency check, abort */ |
52 |
> |
#define COMMAND 5 /* interactive error */ |
53 |
> |
#define NERRS 6 |
54 |
|
/* error struct */ |
55 |
|
extern struct erract { |
56 |
|
char pre[16]; /* prefix message */ |