aboutsummaryrefslogtreecommitdiff
path: root/interpreter.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-26 19:44:03 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-26 20:15:43 +0200
commit3e68a09ae1617551ca1cbf3b5b72621170b4aa0c (patch)
tree8e5234c897c48c40c6e1f75e74febdc51e06e963 /interpreter.c
parent8414e07010b2265db3cbbd2854d8dc49acc63ac8 (diff)
downloadell-3e68a09ae1617551ca1cbf3b5b72621170b4aa0c.tar.gz
ell-3e68a09ae1617551ca1cbf3b5b72621170b4aa0c.tar.xz
ell-3e68a09ae1617551ca1cbf3b5b72621170b4aa0c.zip
Remove suck
struct context::arguments stank, the "arg" special form stank. The amount of lines this adds can be counted on one hand.
Diffstat (limited to 'interpreter.c')
-rw-r--r--interpreter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/interpreter.c b/interpreter.c
index 3743c4a..1ca2744 100644
--- a/interpreter.c
+++ b/interpreter.c
@@ -51,7 +51,8 @@ main (int argc, char *argv[]) {
printf ("%s\n", "runtime library initialization failed");
struct item *result = NULL;
- (void) execute (&ctx, program, &result);
+ // TODO: pass argv as the list of arguments
+ (void) execute_block (&ctx, program, NULL, &result);
item_free_list (result);
item_free_list (program);