aboutsummaryrefslogtreecommitdiffstats
path: root/ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'ops.h')
-rw-r--r--ops.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/ops.h b/ops.h
index 5c7832f..8296cbe 100644
--- a/ops.h
+++ b/ops.h
@@ -1,13 +1,14 @@
#ifndef OPS_H_
#define OPS_H_
-#include "parser.h"
+#include "variable.h"
-#define IOPS_COUNT 16
+#define OPS_COUNT 18
+#define OP_MAGIC 0xCAFE3900
-typedef void (*operation_t)(variable *, variable *, variable *);
+typedef int (*opfunc_t)(variable *, variable *, variable *);
-extern char *iops[IOPS_COUNT];
-extern operation_t iopfuncs[IOPS_COUNT];
+extern variable opvars[];
+extern const char *opnames[];
#endif // OPS_H_