From 140a0bbecc144e554c1954f594a9f0d0b2276e9c Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 21 Mar 2018 12:29:09 -0400 Subject: interpreter overhaul, should be better --- ops.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ops.h') 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_ -- cgit v1.2.3