diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-21 12:29:09 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-21 12:29:09 -0400 |
commit | 140a0bbecc144e554c1954f594a9f0d0b2276e9c (patch) | |
tree | f2c4d0223b8659e259d5efa0a98f99a4a54264aa /ops.h | |
parent | 28447df15ac80d7dad1f4889d3d61fe7bfe42a12 (diff) |
interpreter overhaul, should be better
Diffstat (limited to 'ops.h')
-rw-r--r-- | ops.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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_ |