summaryrefslogtreecommitdiff
path: root/src/post/goom/goom_script_scanner.h
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-07-21 14:38:29 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-07-21 14:38:29 +0000
commit2e73a5e69f0227f15c6049ef805a9b8c20166e2b (patch)
treea76597e387b3748bb06290e7980e432711d72670 /src/post/goom/goom_script_scanner.h
parent5ef0b5f10d0ee154a8add83c7c19d8557898226f (diff)
downloadxine-lib-2e73a5e69f0227f15c6049ef805a9b8c20166e2b.tar.gz
xine-lib-2e73a5e69f0227f15c6049ef805a9b8c20166e2b.tar.bz2
new goom2k4-dev18 includes almost all of my warning fixes
(the goom team is quite fast in applying my patches :) ) some files are still slightly patched from the release version, but I will get this sorted out so we will soon use a completely unmodified version of goom it compiles almost warningless now (the remaining warnings are introduced by lex/yacc and I plan to simply ignore them) the Makefile.am distclean-hack is also obsolete now, since the offending files have been renamed CVS patchset: 6828 CVS date: 2004/07/21 14:38:29
Diffstat (limited to 'src/post/goom/goom_script_scanner.h')
-rw-r--r--src/post/goom/goom_script_scanner.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/post/goom/goom_script_scanner.h b/src/post/goom/goom_script_scanner.h
index fb969ce36..40360dc24 100644
--- a/src/post/goom/goom_script_scanner.h
+++ b/src/post/goom/goom_script_scanner.h
@@ -7,7 +7,7 @@ void goom_script_scanner_compile(GoomScriptScanner *scanner, PluginInfo *pluginI
void goom_script_scanner_execute(GoomScriptScanner *scanner);
int goom_script_scanner_is_compiled(GoomScriptScanner *gss);
-GoomScriptScanner *goom_script_scanner_new();
+GoomScriptScanner *goom_script_scanner_new(void);
void goom_script_scanner_free(GoomScriptScanner *gss);
@@ -20,7 +20,8 @@ void goom_script_scanner_free(GoomScriptScanner *gss);
#define CONST_FLOAT_NODE 2
#define VAR_NODE 3
#define PARAM_NODE 4
-#define OPR_NODE 5
+#define READ_PARAM_NODE 5
+#define OPR_NODE 6
#define OPR_SET 1
#define OPR_DECLARE_INT 2
@@ -31,6 +32,11 @@ void goom_script_scanner_free(GoomScriptScanner *gss);
#define OPR_MUL 7
#define OPR_EQU 8
#define OPR_LOW 9
+#define OPR_DIV 10
+#define OPR_SUB 11
+#define OPR_FUNC_INTRO 12
+#define OPR_FUNC_OUTRO 13
+#define OPR_CALL 14
typedef struct {
/* char *name;*/
@@ -64,10 +70,10 @@ typedef struct _NODE_TYPE{
ConstIntNodeType constInt;
ConstFloatNodeType constFloat;
OprNodeType opr;
- } val;
+ } unode;
} NodeType;
-void gsl_commit_compilation();
+void gsl_commit_compilation(void);
/* ------------- SCRIPT_EXEC_ENV ------------ */
@@ -190,8 +196,12 @@ struct _GoomScriptScanner {
#define INSTR_ADDF 10008
#define INSTR_MULI 10009
#define INSTR_MULF 10010
-#define INSTR_ISEQUALI 10011
-#define INSTR_ISEQUALF 10012
+#define INSTR_DIVF 10011
+#define INSTR_SUBF 10012
+#define INSTR_ISEQUALI 10013
+#define INSTR_ISEQUALF 10014
#define INSTR_JZERO 29
+#define INSTR_CALL 34
+#define INSTR_RET 35
#endif