aboutsummaryrefslogtreecommitdiffstats
path: root/ops.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-03-21 12:29:09 -0400
committerClyne Sullivan <tullivan99@gmail.com>2018-03-21 12:29:09 -0400
commit140a0bbecc144e554c1954f594a9f0d0b2276e9c (patch)
treef2c4d0223b8659e259d5efa0a98f99a4a54264aa /ops.h
parent28447df15ac80d7dad1f4889d3d61fe7bfe42a12 (diff)
interpreter overhaul, should be better
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_