#ifndef OPS_H #define OPS_H #include enum op { OP_NOP, OP_DUP, OP_DEL, OP_CLR, OP_SWP, OP_NEG, OP_ADD, OP_MUL, OP_SUB, OP_DIV, OP_MOD, OP_INC, OP_DEC, OP_POW, OP_GCD, OP_LCM, OP_COUNT, }; typedef void (*op_fn) (void); extern op_fn op_fns[OP_COUNT]; extern const char *op_names[OP_COUNT]; enum op str2op (const char *str); #endif