diff options
author | Keith Packard <keithp@keithp.com> | 2017-12-19 11:51:33 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-12-19 11:51:33 -0800 |
commit | 34f998d147d08e966daad1ab76c40906018d3d8d (patch) | |
tree | c9822bed36859175e210c7c5867a1119c5af32bf /src/scheme/ao_scheme_make_const.c | |
parent | fa6f4b331db9d37da6767005fd375b696485b46b (diff) |
altos/scheme: AO_SCHEME_IS_CONS -> ao_scheme_is_cons
This inline was already defined; just use it. Also, switch some places
to use ao_scheme_is_pair instead as appropriate.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/ao_scheme_make_const.c')
-rw-r--r-- | src/scheme/ao_scheme_make_const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scheme/ao_scheme_make_const.c b/src/scheme/ao_scheme_make_const.c index 79ba1bf1..e34792c4 100644 --- a/src/scheme/ao_scheme_make_const.c +++ b/src/scheme/ao_scheme_make_const.c @@ -220,7 +220,7 @@ ao_has_macro(ao_poly p) list = cons->cdr; p = AO_SCHEME_NIL; - while (list != AO_SCHEME_NIL && AO_SCHEME_IS_CONS(list)) { + while (ao_scheme_is_pair(list)) { cons = ao_scheme_poly_cons(list); m = ao_has_macro(cons->car); if (m) { |