summaryrefslogtreecommitdiff
path: root/libguile/evalext.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2017-03-24 11:17:26 +0100
committerAndy Wingo <wingo@pobox.com>2017-03-28 19:23:13 +0200
commit64c5cc58fced3092f17639bbbddb46c1bae974c8 (patch)
tree72f711f25e72b08b72ff81dae17e50c9810f1081 /libguile/evalext.c
parent6ba3f35f261293492206892c40b4cd7d29e372f8 (diff)
downloadguile-64c5cc58fced3092f17639bbbddb46c1bae974c8.tar.gz
Add disjoint syntax object type
* libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES): (DOT_X_FILES, DOT_DOC_FILES, noinst_HEADERS): Add syntax.c and syntax.h. * libguile/evalext.c (scm_self_evaluating_p): * libguile/goops.c (class_syntax, scm_class_of, scm_goops_early_init): * libguile/init.c (scm_init_guile): * libguile/print.c (iprin1): * libguile/tags.h (scm_tc7_syntax): * module/oop/goops.scm (<syntax>): * module/system/base/types.scm (%tc7-syntax, cell->object): * module/system/vm/disassembler.scm (code-annotation): Wire up the new data type. * libguile/syntax.c: * libguile/syntax.h: New files. * module/ice-9/boot-9.scm: Move new definitions to (system syntax internal). * module/system/syntax.scm (print-syntax): New helper. * module/system/vm/assembler.scm (statically-allocatable?) (intern-constant, link-data): Arrange to be able to write syntax objects into images. * module/language/cps/types.scm (&syntax): New type. Remove &hash-table; it was never detected, an internal binding, and we need the bit to avoid going into bignum territory.
Diffstat (limited to 'libguile/evalext.c')
-rw-r--r--libguile/evalext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/evalext.c b/libguile/evalext.c
index 48d9a1718..33205a2ca 100644
--- a/libguile/evalext.c
+++ b/libguile/evalext.c
@@ -82,6 +82,7 @@ SCM_DEFINE (scm_self_evaluating_p, "self-evaluating?", 1, 0, 0,
case scm_tc7_dynamic_state:
case scm_tc7_frame:
case scm_tc7_keyword:
+ case scm_tc7_syntax:
case scm_tc7_vm_cont:
case scm_tc7_number:
case scm_tc7_string: