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