mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
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.
This commit is contained in:
parent
aa3f69519f
commit
df9ca8d8b2
6 changed files with 27 additions and 82 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue