1 /* Copyright (C) 1992-1998 The Geometry Center
2  * Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips
3  *
4  * This file is part of Geomview.
5  *
6  * Geomview is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published
8  * by the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * Geomview is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with Geomview; see the file COPYING.  If not, write
18  * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
19  * USA, or visit http://www.gnu.org.
20  */
21 #ifndef _options_
22 #define _options_
23 
24 #define MAC		0
25 #define SUN		1
26 #define VAX		2
27 #define CRAY	3
28 #define GENERIC	4
29 
30 #define HOST	GENERIC
31 
32 /*  LightspeedC has a few idiosyncracies which vary from one version
33 to the next.  If you are using LightspeedC (a.k.a. THINK C) define the
34 appropriate version number here (e.g. #define LSC 4 for version 4.0).
35 If you aren't using LightspeedC (and perhaps not even using a Mac at
36 all) you should #define LSC 0.  */
37 
38 #if (HOST == MAC)
39 #define LSC 4
40 #else
41 #define LSC 0
42 #endif
43 
44 #define PROTOTYPES	1
45 
46 #if (LSC == 3)
47 #define _MC68881_
48 #endif
49 
50 #if (HOST == MAC)
51 typedef long int	MyInt32;
52 #else
53 #include <stdlib.h>	/* to get size_t definition */
54 typedef size_t		MyInt32;
55 #endif
56 
57 /* The constant HARDWARE_PRECISION gives the accuracy of a double	*/
58 /* precision floating point number on the host hardware.  I.e. if	*/
59 /* the mantissa of a double has b bits, HARDWARE_PRECISION is 2^-b.	*/
60 /* Note:  in the unlikely event that HARDWARE_PRECISION < 1e-21		*/
61 /* you'll have to provide more coefficients in the series for the	*/
62 /* Lobachevsky function in volume.c.								*/
63 #if (HOST == MAC)
64 #define HARDWARE_PRECISION	6e-20
65 #else
66 #define HARDWARE_PRECISION	4e-15
67 #endif
68 
69 #endif
70