summaryrefslogtreecommitdiff
path: root/libguile/macros.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-09-03 11:14:24 +0200
committerAndy Wingo <wingo@pobox.com>2009-12-03 14:54:15 +0100
commitdf9ca8d8b2f48e7042298a9a788b749b46fc5efc (patch)
treee0bb75ab74b026aa6f31d4e15c2239f39c5a1fc2 /libguile/macros.c
parentaa3f69519f1af3fcf31cf36be33776db3fedf65a (diff)
downloadguile-df9ca8d8b2f48e7042298a9a788b749b46fc5efc.tar.gz
all subrs are gsubrs
* libguile/gsubr.c (create_gsubr, create_gsubr_with_generic): Always create gsubrs -- never the specialized tc7 types. Allow gsubrs to have generics, there doesn't seem to be any reason not to. * libguile/macros.c (scm_make_synt): * libguile/values.c (scm_init_values): * libguile/eval.c (scm_init_eval): * libguile/gc.c (scm_init_gc): Use scm_c_define_gsubr instead of scm_c_define_subr. * libguile/goops.c (scm_class_of): Allow gsubrs to be primitive generics.
Diffstat (limited to 'libguile/macros.c')
-rw-r--r--libguile/macros.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/macros.c b/libguile/macros.c
index 970a41d54..d7c054e72 100644
--- a/libguile/macros.c
+++ b/libguile/macros.c
@@ -312,7 +312,7 @@ SCM
scm_make_synt (const char *name, SCM (*macroizer) (), SCM (*fcn)() )
{
SCM var = scm_c_define (name, SCM_UNDEFINED);
- SCM transformer = scm_c_make_subr (name, scm_tc7_subr_2, fcn);
+ SCM transformer = scm_c_make_gsubr (name, 2, 0, 0, fcn);
SCM_VARIABLE_SET (var, macroizer (transformer));
return SCM_UNSPECIFIED;
}