aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Lockwood2021-06-27 14:26:06 -0400
committerAlexis Lockwood2021-06-27 14:26:06 -0400
commit4e5011b25576a88d4d11c5e62f1398b3a1aff787 (patch)
tree36e9eb5d106bc40d2ee6a509f5ed96c803c30bb8
parentcc99c38a874652c4efe7101c792be6106999c736 (diff)
Remove userstack
-rw-r--r--src/ls.h3
-rw-r--r--src/ls_internal.c1
-rw-r--r--test/tsupport.c1
3 files changed, 0 insertions, 5 deletions
diff --git a/src/ls.h b/src/ls.h
index 75ff0f2..4db66e6 100644
--- a/src/ls.h
+++ b/src/ls.h
@@ -60,9 +60,6 @@ typedef struct ls_context_s {
/// Execution stack.
ls_value_t * callstack;
- /// User/expr stack
- ls_value_t * userstack;
-
/// User functions defined by DEF FN.
ls_value_t * funcs;
diff --git a/src/ls_internal.c b/src/ls_internal.c
index 0f2dfa9..670b1dc 100644
--- a/src/ls_internal.c
+++ b/src/ls_internal.c
@@ -69,7 +69,6 @@ void ls_init_ctx(ls_context_t * ctx, ls_value_t * pool, size_t szpool)
};
}
- ctx->userstack = NULL;
ctx->funcs = NULL;
ctx->labels = NULL;
ctx->pc = 0;
diff --git a/test/tsupport.c b/test/tsupport.c
index fc83a25..9b3582c 100644
--- a/test/tsupport.c
+++ b/test/tsupport.c
@@ -33,7 +33,6 @@ void ls_test_setup(ls_context_t * ctx, char const * text)
{
_setup_pool(_pool, LS_TEST_NPOOL);
ctx->callstack = NULL;
- ctx->userstack = NULL;
ctx->funcs = NULL;
ctx->pool = _pool;
ctx->pc = 0;