summaryrefslogtreecommitdiff
path: root/src/scheme/ao_scheme_int.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-12 15:25:51 -0800
committerKeith Packard <keithp@keithp.com>2017-12-12 15:25:51 -0800
commitd8c9024f3829dc3f241b16869f165f3ee01764f3 (patch)
treeee3038984838551412feeeee5e56c22afe83a99b /src/scheme/ao_scheme_int.c
parenta15166c435f65cb36f487ec8e5a4ff558a7e0502 (diff)
altos/scheme: Support scheme subsetting via feature settings
This provides for the creation of smaller versions of the interpreter, leaving out options like floating point numbers and vectors. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/ao_scheme_int.c')
-rw-r--r--src/scheme/ao_scheme_int.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scheme/ao_scheme_int.c b/src/scheme/ao_scheme_int.c
index 350a5d35..43d6b8e1 100644
--- a/src/scheme/ao_scheme_int.c
+++ b/src/scheme/ao_scheme_int.c
@@ -21,6 +21,8 @@ ao_scheme_int_write(ao_poly p)
printf("%d", i);
}
+#ifdef AO_SCHEME_FEATURE_BIGINT
+
int32_t
ao_scheme_poly_integer(ao_poly p)
{
@@ -77,3 +79,4 @@ ao_scheme_bigint_write(ao_poly p)
printf("%d", ao_scheme_bigint_int(bi->value));
}
+#endif /* AO_SCHEME_FEATURE_BIGINT */