From b72c271d8731e1f67fdef29cd64726dfce893fe7 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 29 May 2023 13:53:46 -0400 Subject: feat: add .s,roll,pick,and depth commands to c forth --- forth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'forth.c') diff --git a/forth.c b/forth.c index 4c5d910..0ebb7d5 100644 --- a/forth.c +++ b/forth.c @@ -42,7 +42,7 @@ void exec(stack *s, char *word, int len, char* line, int* i) { break; } } else if (isnumber(word)) { - push(s, atoi(word)); + stack_push(s, atoi(word)); } } @@ -68,7 +68,7 @@ void eval(stack* s, int len, char* line) { } int main(int argc, char** argv) { - stack* s = newstack(); + stack* s = stack_new(); char *line = NULL; size_t len = 0; ssize_t read; -- cgit v1.2.3