1 | /* file BASECNST.H |
---|
2 | * ========== |
---|
3 | * |
---|
4 | * version 47, 1-May-2007 |
---|
5 | * |
---|
6 | * v 36: 28-Nov-94, K. Stammler, new naming conventions |
---|
7 | * |
---|
8 | * basic constants for all modules |
---|
9 | * K. Stammler, 22-MAY-91 |
---|
10 | */ |
---|
11 | |
---|
12 | |
---|
13 | /* |
---|
14 | * |
---|
15 | * SeismicHandler, seismic analysis software |
---|
16 | * Copyright (C) 1996, Klaus Stammler, Federal Institute for Geosciences |
---|
17 | * and Natural Resources (BGR), Germany |
---|
18 | * |
---|
19 | * This program is free software; you can redistribute it and/or modify |
---|
20 | * it under the terms of the GNU General Public License as published by |
---|
21 | * the Free Software Foundation; either version 2 of the License, or |
---|
22 | * (at your option) any later version. |
---|
23 | * |
---|
24 | * This program is distributed in the hope that it will be useful, |
---|
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
27 | * GNU General Public License for more details. |
---|
28 | * |
---|
29 | * You should have received a copy of the GNU General Public License |
---|
30 | * along with this program; if not, write to the Free Software |
---|
31 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
---|
32 | * |
---|
33 | */ |
---|
34 | |
---|
35 | |
---|
36 | #ifndef __BASECNST |
---|
37 | #define __BASECNST |
---|
38 | |
---|
39 | |
---|
40 | /* some constants */ |
---|
41 | |
---|
42 | /* old style names */ |
---|
43 | #define BC_LINELTH 199 |
---|
44 | #define BC_SHORTSTRLTH 30 |
---|
45 | #define BC_LONGSTRLTH 2047 |
---|
46 | #define BC_VERYLONGSTRLTH 8191 |
---|
47 | #define BC_TIMELTH 30 |
---|
48 | #define BC_FILELTH 179 |
---|
49 | #define BC_NOERROR 0 |
---|
50 | #define BC_PI 3.14159265358979323846 |
---|
51 | /* new style names */ |
---|
52 | #define cBcLineLth BC_LINELTH |
---|
53 | #define cBcShortStrLth BC_SHORTSTRLTH |
---|
54 | #define cBcLongStrLth BC_LONGSTRLTH |
---|
55 | #define cBcVeryLongStrLth BC_VERYLONGSTRLTH |
---|
56 | #define cBcTimeLth BC_TIMELTH |
---|
57 | #define cBcFileLth BC_FILELTH |
---|
58 | #define cBcNoError BC_NOERROR |
---|
59 | #define cBcPi BC_PI |
---|
60 | |
---|
61 | |
---|
62 | /****************************************************************** |
---|
63 | *** computer type and graphics *** |
---|
64 | ******************************************************************/ |
---|
65 | |
---|
66 | /* possible flags for operating system are |
---|
67 | * SH_SETUP_SUNOS |
---|
68 | * SH_SETUP_LINUX |
---|
69 | * SH_SETUP_AIX |
---|
70 | * SH_SETUP_HPUX |
---|
71 | * default is SH_SETUP_SUNOS |
---|
72 | */ |
---|
73 | |
---|
74 | #if defined(SH_SETUP_SUNOS) |
---|
75 | #define cBc_OS_UNIX |
---|
76 | #define cBc_OS_SUNOS |
---|
77 | #elif defined(SH_SETUP_LINUX) |
---|
78 | #define cBc_OS_UNIX |
---|
79 | #define cBc_OS_LINUX |
---|
80 | #elif defined(SH_SETUP_AIX) |
---|
81 | #define cBc_OS_UNIX |
---|
82 | #define cBc_OS_AIX |
---|
83 | #elif defined(SH_SETUP_HPUX) |
---|
84 | #define cBc_OS_UNIX |
---|
85 | #define cBc_OS_HPUX |
---|
86 | #else |
---|
87 | #define cBc_OS_UNIX |
---|
88 | #define cBc_OS_SUNOS |
---|
89 | #endif |
---|
90 | |
---|
91 | /* for compatibility (should be removed some time) */ |
---|
92 | #ifdef cBc_OS_UNIX |
---|
93 | #define BC_SUN |
---|
94 | #define cBc_SUN |
---|
95 | #endif |
---|
96 | |
---|
97 | |
---|
98 | |
---|
99 | /* select graphics */ |
---|
100 | #define BC_G_MEM |
---|
101 | #define cBc_G_MEM |
---|
102 | #define BC_G_POSTSCRIPT |
---|
103 | #define cBc_G_POSTSCRIPT |
---|
104 | #define BC_G_XWINDOW |
---|
105 | #define cBc_G_XWINDOW |
---|
106 | |
---|
107 | /* general flags */ |
---|
108 | /* #define BC_MAINARGS */ |
---|
109 | /* #define cBc_MAINARGS */ |
---|
110 | #define BC_STDLIB_EX /* should not be used any more */ |
---|
111 | |
---|
112 | /* for some historical reasons ... */ |
---|
113 | #define BC_INC_STDLIB <stdlib.h> |
---|
114 | #define cBc_INC_STDLIB BC_INC_STDLIB |
---|
115 | #define BC_INC_UNISTD <unistd.h> |
---|
116 | #define cBc_INC_UNISTD BC_INC_UNISTD |
---|
117 | |
---|
118 | /* compile AH interface ? */ |
---|
119 | #if defined(SH_SETUP_AH) |
---|
120 | #define BC_FRGN_AH |
---|
121 | #define cBc_FRGN_AH |
---|
122 | #endif |
---|
123 | |
---|
124 | /* special settings */ |
---|
125 | #define BC_REVERSECROSS |
---|
126 | #define cBc_REVERSECROSS |
---|
127 | /* crosshair cursor colours reversed (background and foreground) */ |
---|
128 | #define BC_DEFINE_TRUE_FALSE |
---|
129 | #define cBc_DEFINE_TRUE_FALSE |
---|
130 | /* define TRUE and FALSE */ |
---|
131 | /* #define BC_CLOCK_T_AVAILABLE */ |
---|
132 | /* type clock_t is available */ |
---|
133 | |
---|
134 | |
---|
135 | |
---|
136 | |
---|
137 | /****************************************************************** |
---|
138 | *** IBM PC version *** |
---|
139 | ******************************************************************/ |
---|
140 | |
---|
141 | |
---|
142 | |
---|
143 | #ifdef BC_IBM |
---|
144 | |
---|
145 | /* include files */ |
---|
146 | #define BC_SYSBASE "d:\gast\SH\SYSBASE.H" |
---|
147 | #define BC_SYERRORS "d:\gast\SH\SYERRORS.H" |
---|
148 | #define BC_GCUSRDEF "d:\gast\SH\LOCAL\GCUSRDEF.H" |
---|
149 | /* #define BC_GCERRORS "LOCAL\GCERRORS.H" */ |
---|
150 | #define BC_FOREIGN "d:\gast\SH\SHFRGN.H" |
---|
151 | #define BC_SHDIRS "d:\gast\SH\SHDIRS.H" |
---|
152 | #define BC_ASCII "d:\gast\SH\ASCII.H" |
---|
153 | #define BC_GRAPHBAS "d:\gast\SH\LOCAL\GRAPHBAS.H" |
---|
154 | #define BC_SHCONST "d:\gast\SH\SHCONST.H" |
---|
155 | #define BC_QFUSRDEF "d:\gast\sh\qfusrdef.h" |
---|
156 | #define BC_QFERRORS "d:\gast\sh\qferrors.h" |
---|
157 | #define BC_CPAR "d:\gast\util\cpar.h" |
---|
158 | #define BC_EARTHLOC "d:\gast\sh\earthloc.h" |
---|
159 | #define BC_UTUSRDEF "d:\gast\sh\utusrdef.h" |
---|
160 | #define BC_GLUSRDEF "d:\gast\sh\glusrdef.h" |
---|
161 | #define BC_INPFILES "d:\gast\util\inpfiles.h" |
---|
162 | #define BC_DFQENTRY "d:\gast\sh\dfqentry.h" |
---|
163 | #define BC_ERUSRDEF "d:\gast\sh\erusrdef.h" |
---|
164 | #define BC_FLERRORS "d:\gast\sh\flerrors.h" |
---|
165 | #define BC_READGRN "d:\gast\sh\readgrn.h" |
---|
166 | #define BC_PTUSRDEF "d:\gast\sh\ptusrdef.h" |
---|
167 | |
---|
168 | |
---|
169 | #endif /* BC_IBM */ |
---|
170 | |
---|
171 | |
---|
172 | |
---|
173 | /****************************************************************** |
---|
174 | *** SUN version *** |
---|
175 | ******************************************************************/ |
---|
176 | |
---|
177 | |
---|
178 | #ifdef BC_SUN |
---|
179 | |
---|
180 | |
---|
181 | /* only old style names */ |
---|
182 | #define BC_SYSBASE "sysbase.h" |
---|
183 | #define BC_SYERRORS "syerrors.h" |
---|
184 | #define BC_GCUSRDEF "gcusrdef.h" |
---|
185 | #define BC_GCERRORS "gcerrors.h" |
---|
186 | #define BC_SHDIRS "shdirs.h" |
---|
187 | #define BC_ASCII "ascii.h" |
---|
188 | #define BC_GRAPHBAS "graphbas.h" |
---|
189 | #define BC_SHCONST "shconst.h" |
---|
190 | #define BC_QFUSRDEF "qfusrdef.h" |
---|
191 | #define BC_QFERRORS "qferrors.h" |
---|
192 | #define BC_CPAR "cpar.h" |
---|
193 | #define BC_EARTHLOC "earthloc.h" |
---|
194 | #define BC_UTUSRDEF "utusrdef.h" |
---|
195 | #define BC_GLUSRDEF "glusrdef.h" |
---|
196 | #define BC_INPFILES "inpfiles.h" |
---|
197 | #define BC_TCUSRDEF "tcusrdef.h" |
---|
198 | #define BC_DFQENTRY "dfqentry.h" |
---|
199 | #define BC_FOUSRDEF "fousrdef.h" |
---|
200 | #define BC_ERUSRDEF "erusrdef.h" |
---|
201 | #define BC_FLERRORS "flerrors.h" |
---|
202 | #define BC_READGRN "readgrn.h" |
---|
203 | #define BC_PTUSRDEF "ptusrdef.h" |
---|
204 | |
---|
205 | /* if no foreign formats are used: */ |
---|
206 | /* #define BC_FOREIGN "shfrgn.h" */ |
---|
207 | /* otherwise: */ |
---|
208 | #define BC_FOREIGN "shfrgn.h" |
---|
209 | #define cBc_FOREIGN BC_FOREIGN |
---|
210 | |
---|
211 | |
---|
212 | |
---|
213 | #endif /* BC_SUN */ |
---|
214 | |
---|
215 | |
---|
216 | /****************************************************************** |
---|
217 | *** END *** |
---|
218 | ******************************************************************/ |
---|
219 | |
---|
220 | |
---|
221 | #endif /* __BASECNST */ |
---|
222 | |
---|
223 | |
---|