From 2ce9ebc39011831f9bd73511f696f1dd567ac0b9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 29 Jan 2020 19:04:00 +0100 Subject: Allow passing variables to commands as args --- include/bytecode.h | 1 - include/program.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/bytecode.h b/include/bytecode.h index 912da89..c0930ad 100644 --- a/include/bytecode.h +++ b/include/bytecode.h @@ -24,7 +24,6 @@ typedef enum { TSL_OPCODE_SUB, TSL_OPCODE_MUL, TSL_OPCODE_DIV, - TSL_OPCODE_LOADCA, /* add command argument to stack */ TSL_OPCODE_CALLC /* run a program using N arguments from the stack, where the bottom value is the name of the program */ } TslOpcode; diff --git a/include/program.h b/include/program.h index 52b4fe4..2fcdb07 100644 --- a/include/program.h +++ b/include/program.h @@ -16,8 +16,7 @@ typedef enum { TSL_STACK_VALUE_TYPE_VARIABLE, TSL_STACK_VALUE_TYPE_LIST, TSL_STACK_VALUE_TYPE_MAP, - TSL_STACK_VALUE_TYPE_INDEX, - TSL_STACK_VALUE_TYPE_COMMAND_ARG + TSL_STACK_VALUE_TYPE_INDEX } TslStackValueType; typedef struct { -- cgit v1.2.3