altos/scheme: Replace memory pool macros with inlines
authorKeith Packard <keithp@keithp.com>
Tue, 19 Dec 2017 20:16:24 +0000 (12:16 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 19 Dec 2017 20:16:24 +0000 (12:16 -0800)
commit71fb79492cb955af4bd52e79f1fa69d17e084dbc
tree098c8506f476dd61a18bd078fb247a90dabc5a6b
parent34f998d147d08e966daad1ab76c40906018d3d8d
altos/scheme: Replace memory pool macros with inlines

AO_SCHEME_IS_CONST -> ao_scheme_is_const_addr
AO_SCHEME_IS_POOL -> ao_scheme_is_pool_addr

Provides better typechecking and avoids confusion with
ao_scheme_is_const inline (which takes an ao_poly instead of a void *)

Signed-off-by: Keith Packard <keithp@keithp.com>
src/scheme/ao_scheme.h
src/scheme/ao_scheme_frame.c
src/scheme/ao_scheme_mem.c
src/scheme/ao_scheme_poly.c