Removed an empty header file, documented all header files that required it, added...
[freeems-vanilla.git] / src / inc / tableLookup.h
blob86186364d6c54d2a7f4fd79ec372cfa67829aa67
1 /* Copyright 2008 Fred Cooke
3 This file is part of the FreeEMS project.
5 FreeEMS software is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 FreeEMS software is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
18 We ask that if you make any changes to this file you email them upstream to
19 us at admin(at)diyefi(dot)org or, even better, fork the code on github.com!
21 Thank you for choosing FreeEMS to run your engine! */
24 /* tableLookup.h
25 * @ingroup allHeaders
29 /* Header file multiple inclusion protection courtesy eclipse Header Template */
30 /* and http://gcc.gnu.org/onlinedocs/gcc-3.1.1/cpp/ C pre processor manual */
31 #ifndef FILE_TABLELOOKUP_H_SEEN
32 #define FILE_TABLELOOKUP_H_SEEN
35 #ifdef EXTERN
36 #warning "EXTERN already defined by another header, please sort it out!"
37 #undef EXTERN /* If fail on warning is off, remove the definition such that we can redefine correctly. */
38 #endif
41 #ifdef TABLELOOKUP_C
42 #define EXTERN
43 #else
44 #define EXTERN extern
45 #endif
48 EXTERN unsigned short lookupTwoDTableUS(twoDTableUS *, unsigned short) TEXT;
49 EXTERN unsigned short lookupPagedMainTableCellValue(mainTable *, unsigned short, unsigned short, unsigned char) TEXT;
51 EXTERN unsigned short setPagedMainTableCellValue(unsigned char, mainTable*, unsigned short, unsigned short, unsigned short) TEXT;
52 EXTERN unsigned short setPagedMainTableRPMValue(unsigned char, mainTable*, unsigned short, unsigned short) TEXT;
53 EXTERN unsigned short setPagedMainTableLoadValue(unsigned char, mainTable*, unsigned short, unsigned short) TEXT;
55 EXTERN unsigned short setPagedTwoDTableCellValue(unsigned char, twoDTableUS*, unsigned short, unsigned short) TEXT;
56 EXTERN unsigned short setPagedTwoDTableAxisValue(unsigned char, twoDTableUS*, unsigned short, unsigned short) TEXT;
59 EXTERN unsigned short validateMainTable(mainTable*) TEXT;
60 EXTERN unsigned short validateTwoDTable(twoDTableUS*) TEXT;
63 /* These might change or might stay the same, so keeping for now */
64 //EXTERN unsigned short lookup16Bit3dUS(unsigned short*, unsigned short, unsigned short, unsigned short*, unsigned short*, unsigned char, unsigned char); bad wrong.
65 //EXTERN unsigned char lookup8Bit2dUC(void);
66 //EXTERN unsigned char lookup8Bit3dUC(void);
67 //EXTERN signed short lookup16Bit3D(void);
68 //EXTERN signed char lookup8Bit3D(void);
69 //EXTERN signed short lookup16Bit2D(void);
70 //EXTERN signed char lookup8Bit2D(void);
73 #undef EXTERN
76 #else
77 /* let us know if we are being untidy with headers */
78 #warning "Header file TABLELOOKUP_H seen before, sort it out!"
79 /* end of the wrapper ifdef from the very top */
80 #endif