From 2b8cf5e771cac4c2b087dc96a7ca05a459f630b5 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 7 Feb 2018 09:26:36 -0500 Subject: conditionals, returns, cleaner code --- ops.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ops.h (limited to 'ops.h') diff --git a/ops.h b/ops.h new file mode 100644 index 0000000..5c7832f --- /dev/null +++ b/ops.h @@ -0,0 +1,13 @@ +#ifndef OPS_H_ +#define OPS_H_ + +#include "parser.h" + +#define IOPS_COUNT 16 + +typedef void (*operation_t)(variable *, variable *, variable *); + +extern char *iops[IOPS_COUNT]; +extern operation_t iopfuncs[IOPS_COUNT]; + +#endif // OPS_H_ -- cgit v1.2.3