summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-02-10 15:21:16 -0800
committerKaz Kylheku <kaz@kylheku.com>2017-02-10 15:21:16 -0800
commit39655edfb062034a76c0b880bf810d14d9047baa (patch)
treebf96ba26274589523efbd471c750e8659c516d40
parent2c4d870ce98b425d07b136e12ba782cfc8e23367 (diff)
downloadtxr-39655edfb062034a76c0b880bf810d14d9047baa.tar.gz
txr-39655edfb062034a76c0b880bf810d14d9047baa.tar.bz2
txr-39655edfb062034a76c0b880bf810d14d9047baa.zip
Properly default arguments in expand_with_free_refs.
* eval.c (expand_with_free_refs): Properly handle defaulting of the two optional arguments.
-rw-r--r--eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index afd254dd..08a3f851 100644
--- a/eval.c
+++ b/eval.c
@@ -4352,9 +4352,11 @@ static val gather_free_refs_nw(val info_cons, val exc,
uw_throw(continue_s, nil);
}
-static val expand_with_free_refs(val form, val menv, val upto_menv)
+static val expand_with_free_refs(val form, val menv_in, val upto_menv_in)
{
val ret;
+ val menv = default_bool_arg(menv_in);
+ val upto_menv = default_bool_arg(upto_menv_in);
uw_frame_t uw_handler;
val info_cons_free = cons(nil, nil);
val info_cons_bound = cons(nil, nil);