0
|
1 // *********************************************************
|
|
2 // ** Common definitions for the OSTC decompression code **
|
|
3 // *********************************************************
|
|
4
|
582
|
5 // REFACTORED VERSION V2.97
|
560
|
6
|
0
|
7 //////////////////////////////////////////////////////////////////////////////
|
|
8 // OSTC - diving computer code
|
|
9 // Copyright (C) 2008 HeinrichsWeikamp GbR
|
|
10 //
|
|
11 // This program is free software: you can redistribute it and/or modify
|
|
12 // it under the terms of the GNU General Public License as published by
|
|
13 // the Free Software Foundation, either version 3 of the License, or
|
|
14 // (at your option) any later version.
|
|
15 //
|
|
16 // This program is distributed in the hope that it will be useful,
|
|
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 // GNU General Public License for more details.
|
|
20 //
|
|
21 // You should have received a copy of the GNU General Public License
|
|
22 // along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23 //
|
|
24 //////////////////////////////////////////////////////////////////////////////
|
|
25
|
560
|
26
|
0
|
27
|
|
28 // *************************
|
|
29 // ** P R O T O T Y P E S **
|
|
30 // *************************
|
|
31
|
|
32 extern void deco_calc_hauptroutine(void);
|
|
33 extern void deco_clear_tissue(void);
|
582
|
34 extern void deco_calc_dive_interval_1min(void);
|
0
|
35 extern void deco_calc_dive_interval(void);
|
|
36 extern void deco_calc_desaturation_time(void);
|
560
|
37 extern void calc_CNS_fraction(void);
|
|
38 extern void calc_CNS_planning(void);
|
582
|
39 extern void push_tissues_to_vault(void);
|
|
40 extern void pull_tissues_from_vault(void);
|
560
|
41 extern void gas_volumes(void);
|
|
42
|
0
|
43
|
|
44 // ***********************************************
|
|
45 // ** Allow compile on VisualC **
|
|
46 // ***********************************************
|
|
47
|
285
|
48 #if defined(WIN32) || defined(UNIX)
|
0
|
49 // Some keywords just dont exists on Visual C++:
|
|
50 # define CROSS_COMPILE
|
|
51 # define __18CXX
|
|
52 # define ram
|
|
53 # define rom
|
|
54 # define overlay
|
|
55 # define PARAMETER
|
|
56
|
285
|
57 # include <assert.h>
|
0
|
58 #else
|
|
59 # define PARAMETER static
|
|
60 # ifdef __DEBUG
|
|
61 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__)
|
|
62 # else
|
|
63 # define assert(predicate)
|
|
64 # endif
|
|
65 #endif
|
|
66
|
|
67 //////////////////////////////////////////////////////////////////////////////
|