mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
Use `SCM_SNAME ()' when requesting the name of a subr.
* libguile/gsubr.c (create_gsubr, create_gsubr_with_generic): Use `SCM_SNAME ()' instead of `SCM_SUBR_ENTRY (subr).name'. * libguile/procs.c (scm_c_define_subr_with_generic, scm_makcclo): Likewise. (scm_c_make_subr_with_generic): Same with `SCM_SUBR_GENERIC ()'.
This commit is contained in:
parent
4c9e29ec38
commit
cce8b2ce93
2 changed files with 7 additions and 7 deletions
|
@ -78,7 +78,7 @@ SCM
|
|||
scm_c_define_subr (const char *name, long type, SCM (*fcn) ())
|
||||
{
|
||||
SCM subr = scm_c_make_subr (name, type, fcn);
|
||||
scm_define (SCM_SUBR_ENTRY(subr).name, subr);
|
||||
scm_define (SCM_SNAME (subr), subr);
|
||||
return subr;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ scm_c_make_subr_with_generic (const char *name,
|
|||
long type, SCM (*fcn) (), SCM *gf)
|
||||
{
|
||||
SCM subr = scm_c_make_subr (name, type, fcn);
|
||||
SCM_SUBR_ENTRY(subr).generic = gf;
|
||||
SCM_SUBR_GENERIC (subr) = gf;
|
||||
return subr;
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ scm_c_define_subr_with_generic (const char *name,
|
|||
long type, SCM (*fcn) (), SCM *gf)
|
||||
{
|
||||
SCM subr = scm_c_make_subr_with_generic (name, type, fcn, gf);
|
||||
scm_define (SCM_SUBR_ENTRY(subr).name, subr);
|
||||
scm_define (SCM_SNAME (subr), subr);
|
||||
return subr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue