mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
* eval.c (call_subr2o_1, call_lsubr2_2): New functions.
(scm_trampoline_1, scm_trampoline_2): Use them.
This commit is contained in:
parent
b21dcf17d7
commit
9ed246339f
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-12-19 Mikael Djurfeldt <mdj@kvast.blakulla.net>
|
||||||
|
|
||||||
|
* eval.c (call_subr2o_1, call_lsubr2_2): New functions.
|
||||||
|
(scm_trampoline_1, scm_trampoline_2): Use them.
|
||||||
|
|
||||||
2002-12-18 Mikael Djurfeldt <mdj@kvast.blakulla.net>
|
2002-12-18 Mikael Djurfeldt <mdj@kvast.blakulla.net>
|
||||||
|
|
||||||
Partial introduction of real plugin interface.
|
Partial introduction of real plugin interface.
|
||||||
|
|
|
@ -3808,6 +3808,12 @@ call_subr1_1 (SCM proc, SCM arg1)
|
||||||
return SCM_SUBRF (proc) (arg1);
|
return SCM_SUBRF (proc) (arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static SCM
|
||||||
|
call_subr2o_1 (SCM proc, SCM arg1)
|
||||||
|
{
|
||||||
|
return SCM_SUBRF (proc) (arg1, SCM_UNDEFINED);
|
||||||
|
}
|
||||||
|
|
||||||
static SCM
|
static SCM
|
||||||
call_lsubr_1 (SCM proc, SCM arg1)
|
call_lsubr_1 (SCM proc, SCM arg1)
|
||||||
{
|
{
|
||||||
|
@ -3870,6 +3876,8 @@ scm_trampoline_1 (SCM proc)
|
||||||
case scm_tc7_subr_1:
|
case scm_tc7_subr_1:
|
||||||
case scm_tc7_subr_1o:
|
case scm_tc7_subr_1o:
|
||||||
return call_subr1_1;
|
return call_subr1_1;
|
||||||
|
case scm_tc7_subr_2o:
|
||||||
|
return call_subr2o_1;
|
||||||
case scm_tc7_lsubr:
|
case scm_tc7_lsubr:
|
||||||
return call_lsubr_1;
|
return call_lsubr_1;
|
||||||
case scm_tc7_cxr:
|
case scm_tc7_cxr:
|
||||||
|
@ -3913,6 +3921,12 @@ call_subr2_2 (SCM proc, SCM arg1, SCM arg2)
|
||||||
return SCM_SUBRF (proc) (arg1, arg2);
|
return SCM_SUBRF (proc) (arg1, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static SCM
|
||||||
|
call_lsubr2_2 (SCM proc, SCM arg1, SCM arg2)
|
||||||
|
{
|
||||||
|
return SCM_SUBRF (proc) (arg1, arg2, SCM_EOL);
|
||||||
|
}
|
||||||
|
|
||||||
static SCM
|
static SCM
|
||||||
call_lsubr_2 (SCM proc, SCM arg1, SCM arg2)
|
call_lsubr_2 (SCM proc, SCM arg1, SCM arg2)
|
||||||
{
|
{
|
||||||
|
@ -3942,6 +3956,8 @@ scm_trampoline_2 (SCM proc)
|
||||||
case scm_tc7_rpsubr:
|
case scm_tc7_rpsubr:
|
||||||
case scm_tc7_asubr:
|
case scm_tc7_asubr:
|
||||||
return call_subr2_2;
|
return call_subr2_2;
|
||||||
|
case scm_tc7_lsubr_2:
|
||||||
|
return call_lsubr2_2;
|
||||||
case scm_tc7_lsubr:
|
case scm_tc7_lsubr:
|
||||||
return call_lsubr_2;
|
return call_lsubr_2;
|
||||||
case scm_tcs_closures:
|
case scm_tcs_closures:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue