|
|
@ -11,6 +11,10 @@ static Pointer run_fn(Func fn, Pointer params) { |
|
|
|
|
|
|
|
|
|
|
|
env = cons(tbl, env); |
|
|
|
env = cons(tbl, env); |
|
|
|
while(args != NIL && params != NIL) { |
|
|
|
while(args != NIL && params != NIL) { |
|
|
|
|
|
|
|
if (CAR(args) == BODY && CAR(CDR(args)) != NIL) { |
|
|
|
|
|
|
|
table_set(tbl, CAR(CDR(args)), params); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
table_set(tbl, CAR(args), CAR(params)); |
|
|
|
table_set(tbl, CAR(args), CAR(params)); |
|
|
|
args = CDR(args); |
|
|
|
args = CDR(args); |
|
|
|
params = CDR(params); |
|
|
|
params = CDR(params); |
|
|
|