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