Joe Onorato | 84614dd | 2009-08-10 15:01:51 -0700 | [diff] [blame^] | 1 | #ifndef SPEC_H |
2 | #define SPEC_H | ||||
3 | |||||
4 | #if __cplusplus | ||||
5 | extern "C" { | ||||
6 | #endif | ||||
7 | |||||
8 | extern int num_lines; | ||||
9 | |||||
10 | typedef struct { | ||||
11 | int isConst; | ||||
12 | int type; | ||||
13 | int bits; | ||||
14 | int ptrLevel; | ||||
15 | char name[256]; | ||||
16 | char typeName[256]; | ||||
17 | } VarType; | ||||
18 | |||||
19 | extern VarType *currType; | ||||
20 | |||||
21 | typedef struct { | ||||
22 | char name[256]; | ||||
23 | int sync; | ||||
24 | int paramCount; | ||||
25 | VarType ret; | ||||
26 | VarType params[16]; | ||||
27 | } ApiEntry; | ||||
28 | |||||
29 | extern ApiEntry apis[128]; | ||||
30 | extern int apiCount; | ||||
31 | |||||
32 | extern int typeNextState; | ||||
33 | |||||
34 | #if __cplusplus | ||||
35 | } // extern "C" | ||||
36 | #endif | ||||
37 | |||||
38 | #endif // SPEC_H |