From df9ca8d8b2f48e7042298a9a788b749b46fc5efc Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 3 Sep 2009 11:14:24 +0200 Subject: 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. --- libguile/gc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libguile/gc.c') diff --git a/libguile/gc.c b/libguile/gc.c index 96e3c306f..a0715f084 100644 --- a/libguile/gc.c +++ b/libguile/gc.c @@ -820,8 +820,7 @@ scm_init_gc () scm_after_gc_hook = scm_permanent_object (scm_make_hook (SCM_INUM0)); scm_c_define ("after-gc-hook", scm_after_gc_hook); - gc_async = scm_c_make_subr ("%gc-thunk", scm_tc7_subr_0, - gc_async_thunk); + gc_async = scm_c_make_gsubr ("%gc-thunk", 0, 0, 0, gc_async_thunk); scm_c_hook_add (&scm_after_gc_c_hook, mark_gc_async, NULL, 0); -- cgit v1.2.3