604
|
1 // ****************************************************************************
|
|
2 // ** Common definitions for the OSTC decompression code **
|
|
3 // ****************************************************************************
|
0
|
4
|
623
|
5 // next generation V3.0.1
|
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
|
604
|
28 // ***********************************************
|
|
29 // ** P R O T O T Y P E S **
|
|
30 // ***********************************************
|
0
|
31
|
|
32 extern void deco_calc_hauptroutine(void);
|
|
33 extern void deco_clear_tissue(void);
|
604
|
34 extern void deco_calc_dive_interval(void);
|
582
|
35 extern void deco_calc_dive_interval_1min(void);
|
604
|
36 extern void deco_calc_dive_interval_10min(void);
|
0
|
37 extern void deco_calc_desaturation_time(void);
|
604
|
38 extern void deco_push_tissues_to_vault(void);
|
|
39 extern void deco_pull_tissues_from_vault(void);
|
623
|
40 extern void deco_init_output_vars(void);
|
560
|
41
|
0
|
42
|
|
43 // ***********************************************
|
|
44 // ** Allow compile on VisualC **
|
|
45 // ***********************************************
|
|
46
|
285
|
47 #if defined(WIN32) || defined(UNIX)
|
623
|
48 // Some keywords just do not exists on Visual C++:
|
0
|
49 # define CROSS_COMPILE
|
|
50 # define __18CXX
|
|
51 # define ram
|
|
52 # define rom
|
|
53 # define overlay
|
|
54 # define PARAMETER
|
|
55
|
285
|
56 # include <assert.h>
|
0
|
57 #else
|
|
58 # define PARAMETER static
|
623
|
59 # ifdef _DEBUG
|
0
|
60 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__)
|
|
61 # else
|
|
62 # define assert(predicate)
|
|
63 # endif
|
|
64 #endif
|
|
65
|
|
66 //////////////////////////////////////////////////////////////////////////////
|