summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-04 23:33:18 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-04 23:33:18 -0700
commit3e2af73a078ff12bb847d3f8f61b99d77dc3bf09 (patch)
tree088e5d9a22d71193cfe2623381e0574cfbe83c7d /parser.c
parentc93846acd4905a20fbb1a0613954f20e34650f92 (diff)
downloadtxr-3e2af73a078ff12bb847d3f8f61b99d77dc3bf09.tar.gz
txr-3e2af73a078ff12bb847d3f8f61b99d77dc3bf09.tar.bz2
txr-3e2af73a078ff12bb847d3f8f61b99d77dc3bf09.zip
load: remove hack for loading compiler.tlo.
* parser.c (read_file_common): Remove the check whether the data vector is a list (due to have been converted to sys:vector-lit by the presence of unquotes). This doesn't happen any more, thanks to the previous parser commit.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index 9d5d2577..081b8137 100644
--- a/parser.c
+++ b/parser.c
@@ -627,8 +627,7 @@ static val read_file_common(val stream, val error_stream, val compiled)
val nlevels = pop(&form);
val nregs = pop(&form);
val bytecode = pop(&form);
- val dv_raw = pop(&form);
- val datavec = if3(consp(dv_raw), vec_list(cadr(dv_raw)), dv_raw);
+ val datavec = pop(&form);
val funvec = car(form);
val desc = vm_make_desc(nlevels, nregs, bytecode, datavec, funvec);
(void) vm_execute_toplevel(desc);