blob: 82650a7ccaf1e7a7d17e1fe7b9c0914fcab4784f [file] [log] [blame]
Joe Onorato84614dd2009-08-10 15:01:51 -07001#ifndef SPEC_H
2#define SPEC_H
3
Joe Onoratodd758092009-08-10 17:46:06 -07004#include <string.h>
5#include <stdlib.h>
6
Joe Onorato84614dd2009-08-10 15:01:51 -07007#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;
Jason Sams9397e302009-08-27 20:23:34 -070027 int handcodeApi;
28 int handcodePlay;
Joe Onorato84614dd2009-08-10 15:01:51 -070029 int paramCount;
30 VarType ret;
31 VarType params[16];
32} ApiEntry;
33
34extern ApiEntry apis[128];
35extern int apiCount;
36
37extern int typeNextState;
38
39#if __cplusplus
40} // extern "C"
41#endif
42
43#endif // SPEC_H