summaryrefslogtreecommitdiff
path: root/libs/rs/spec.h
diff options
context:
space:
mode:
author Jean-Baptiste Queru <jbq@google.com> 2009-11-15 12:06:20 -0800
committer Jean-Baptiste Queru <jbq@google.com> 2009-11-15 12:06:23 -0800
commit478de466ce0504b9af639c3338b883893670a8e8 (patch)
tree61aba455baf06a4821a65b82d1115929619b49bd /libs/rs/spec.h
parent2b63ff51d5202eb2b458e937d4b65b326238733e (diff)
parent9db3d07b9620b4269ab33f78604a36327e536ce1 (diff)
merge from eclair
Diffstat (limited to 'libs/rs/spec.h')
-rw-r--r--libs/rs/spec.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/libs/rs/spec.h b/libs/rs/spec.h
new file mode 100644
index 000000000000..82650a7ccaf1
--- /dev/null
+++ b/libs/rs/spec.h
@@ -0,0 +1,43 @@
+#ifndef SPEC_H
+#define SPEC_H
+
+#include <string.h>
+#include <stdlib.h>
+
+#if __cplusplus
+extern "C" {
+#endif
+
+extern int num_lines;
+
+typedef struct {
+ int isConst;
+ int type;
+ int bits;
+ int ptrLevel;
+ char name[256];
+ char typeName[256];
+} VarType;
+
+extern VarType *currType;
+
+typedef struct {
+ char name[256];
+ int sync;
+ int handcodeApi;
+ int handcodePlay;
+ int paramCount;
+ VarType ret;
+ VarType params[16];
+} ApiEntry;
+
+extern ApiEntry apis[128];
+extern int apiCount;
+
+extern int typeNextState;
+
+#if __cplusplus
+} // extern "C"
+#endif
+
+#endif // SPEC_H