diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-01-28 19:01:31 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-01-28 19:01:31 -0800 |
commit | 9fabcf6f295bcd8676dda77e74e8fc605f5df1f6 (patch) | |
tree | fb53fcaec17ffccc37e73bc6ec4fdb1a1ca47e50 | |
parent | 293eeef3fca41458568340d20fdbdf4262036332 (diff) | |
download | txr-9fabcf6f295bcd8676dda77e74e8fc605f5df1f6.tar.gz txr-9fabcf6f295bcd8676dda77e74e8fc605f5df1f6.tar.bz2 txr-9fabcf6f295bcd8676dda77e74e8fc605f5df1f6.zip |
* eval.c (bind_macro_params): Bugfix: the colon argument's special
meaning "treat the argument as missing" must apply only to optional
parameters.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2015-01-28 Kaz Kylheku <kaz@kylheku.com> + + * eval.c (bind_macro_params): Bugfix: the colon argument's special + meaning "treat the argument as missing" must apply only to optional + parameters. + 2015-01-27 Kaz Kylheku <kaz@kylheku.com> * lib.c (make_like): Fix regression introduced in 102. @@ -791,7 +791,7 @@ static val bind_macro_params(val env, val menv, val params, val form, } if (consp(form)) { - if (car(form) == colon_k) { + if (optargs && car(form) == colon_k) { form = cdr(form); goto noarg; } |