1#ifndef SPEC_H 2#define SPEC_H 3 4#include <string.h> 5#include <stdlib.h> 6 7#if __cplusplus 8extern "C" { 9#endif 10 11extern int num_lines; 12 13typedef struct { 14 int isConst; 15 int type; 16 int bits; 17 int ptrLevel; 18 char name[256]; 19 char typeName[256]; 20} VarType; 21 22extern VarType *currType; 23 24typedef struct { 25 char name[256]; 26 int sync; 27 int handcodeApi; 28 int direct; 29 int nocontext; 30 int paramCount; 31 VarType ret; 32 VarType params[16]; 33} ApiEntry; 34 35extern ApiEntry apis[128]; 36extern int apiCount; 37 38extern int typeNextState; 39 40#if __cplusplus 41} // extern "C" 42#endif 43 44#endif // SPEC_H 45