From ad9d6a199db7c28f8b20f131dfb55a26e0e251de Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 23 Mar 2025 21:11:13 +0300 Subject: Again... --- src/instruction/subtract.c | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/instruction/subtract.c (limited to 'src/instruction/subtract.c') diff --git a/src/instruction/subtract.c b/src/instruction/subtract.c deleted file mode 100644 index f140cfb..0000000 --- a/src/instruction/subtract.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "3cl.h" - -#include "stack.h" -#include "utils.h" - -struct CCLFrame *ccl_instruction_subtract(struct CCL *ccl, struct CCLFrame *frame) -{ - if (ccl->stack.cur < 2) - die(1, "stack size is %d (%d required)", ccl->stack.cur, 2); - ccl_stack_push(&ccl->stack, -ccl_stack_pop(&ccl->stack) + ccl_stack_pop(&ccl->stack)); - return frame; -} -- cgit 1.4.1