summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-09-27 05:23:49 +0200
committerjonsykkel <jonrevold@gmail.com>2021-09-27 05:23:49 +0200
commita4be952f2de6b4c261b696b9034647b149645836 (patch)
tree2d0031294bc9fb2d2023750ff61941d249ac2202
parentbc893e54863617ebd4b87e4f1fc27104c2bfc871 (diff)
downloadokeffa-a4be952f2de6b4c261b696b9034647b149645836.tar.gz
ops
-rw-r--r--calc/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calc/main.c b/calc/main.c
index a47b016..b38b09a 100644
--- a/calc/main.c
+++ b/calc/main.c
@@ -13,7 +13,7 @@
#include <ctype.h>
#include <assert.h>
-//#define STACK_TRACE_READABLE
+#define STACK_TRACE_READABLE
#define STACK(I) (stack+fl*(I))
#define STACK_INIT ((size_t)-1)
@@ -91,6 +91,7 @@ static word_t char_getnib(char c){
}
#ifdef STACK_TRACE_READABLE
+static void puts_stack(size_t p){
printf("%3zu ",p);
dump_fz(STACK(p),fl);
write_nl();