ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/standard.h
Revision: 1.1
Committed: Thu Feb 2 10:34:23 1989 UTC (35 years, 3 months ago) by greg
Content type: text/plain
Branch: MAIN
Log Message:
Initial revision

File Contents

# Content
1 /* Copyright (c) 1988 Regents of the University of California */
2
3 /* SCCSid "$SunId$ LBL" */
4
5 /*
6 * Miscellaneous definitions required by many routines.
7 */
8
9 #include <stdio.h>
10
11 #include <math.h>
12
13 #include <errno.h>
14
15 #include "fvect.h"
16
17 #define FHUGE (1e10) /* large real number */
18 #define FTINY (1e-6) /* small real number */
19
20 #ifdef M_PI
21 #define PI M_PI
22 #else
23 #define PI 3.14159265358979323846
24 #endif
25 /* error codes */
26 #define WARNING 1 /* non-fatal error */
27 #define USER 2 /* fatal user-caused error */
28 #define SYSTEM 3 /* fatal system-related error */
29 #define INTERNAL 4 /* fatal program-related error */
30 #define CONSISTENCY 5 /* bad consistency check, abort */
31 #define COMMAND 6 /* interactive error */
32
33 extern char errmsg[]; /* global buffer for error messages */
34
35 extern int errno; /* system error number */
36
37 extern char *sskip();
38 extern char *getpath();
39 extern char *malloc(), *calloc(), *realloc();
40 extern char *bmalloc(), *savestr(), *savqstr();