diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-02-10 15:21:16 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-02-10 15:21:16 -0800 |
commit | f82291a8e67ee01cbc66af8df0d214e148775c9a (patch) | |
tree | bf96ba26274589523efbd471c750e8659c516d40 | |
parent | d459a819f16d57aab23ca5bf1f12bb2bd6f08593 (diff) | |
download | txr-f82291a8e67ee01cbc66af8df0d214e148775c9a.tar.gz txr-f82291a8e67ee01cbc66af8df0d214e148775c9a.tar.bz2 txr-f82291a8e67ee01cbc66af8df0d214e148775c9a.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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |