mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
add scm_call_{5,6}
* libguile/eval.h: * libguile/eval.c (scm_call_5, scm_call_6): New scm_call functions; why not.
This commit is contained in:
parent
534491d0b7
commit
f32e67be0b
2 changed files with 20 additions and 1 deletions
|
@ -476,6 +476,21 @@ scm_call_4 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4)
|
||||||
return scm_c_vm_run (scm_the_vm (), proc, args, 4);
|
return scm_c_vm_run (scm_the_vm (), proc, args, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SCM
|
||||||
|
scm_call_5 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4, SCM arg5)
|
||||||
|
{
|
||||||
|
SCM args[] = { arg1, arg2, arg3, arg4, arg5 };
|
||||||
|
return scm_c_vm_run (scm_the_vm (), proc, args, 5);
|
||||||
|
}
|
||||||
|
|
||||||
|
SCM
|
||||||
|
scm_call_6 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4, SCM arg5,
|
||||||
|
SCM arg6)
|
||||||
|
{
|
||||||
|
SCM args[] = { arg1, arg2, arg3, arg4, arg5, arg6 };
|
||||||
|
return scm_c_vm_run (scm_the_vm (), proc, args, 6);
|
||||||
|
}
|
||||||
|
|
||||||
SCM
|
SCM
|
||||||
scm_call_n (SCM proc, SCM *argv, size_t nargs)
|
scm_call_n (SCM proc, SCM *argv, size_t nargs)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#ifndef SCM_EVAL_H
|
#ifndef SCM_EVAL_H
|
||||||
#define SCM_EVAL_H
|
#define SCM_EVAL_H
|
||||||
|
|
||||||
/* Copyright (C) 1995,1996,1998,1999,2000,2001,2002,2003,2004,2008,2009,2010
|
/* Copyright (C) 1995,1996,1998,1999,2000,2001,2002,2003,2004,2008,2009,2010,2011
|
||||||
* Free Software Foundation, Inc.
|
* Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -68,6 +68,10 @@ SCM_API SCM scm_call_1 (SCM proc, SCM arg1);
|
||||||
SCM_API SCM scm_call_2 (SCM proc, SCM arg1, SCM arg2);
|
SCM_API SCM scm_call_2 (SCM proc, SCM arg1, SCM arg2);
|
||||||
SCM_API SCM scm_call_3 (SCM proc, SCM arg1, SCM arg2, SCM arg3);
|
SCM_API SCM scm_call_3 (SCM proc, SCM arg1, SCM arg2, SCM arg3);
|
||||||
SCM_API SCM scm_call_4 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4);
|
SCM_API SCM scm_call_4 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4);
|
||||||
|
SCM_API SCM scm_call_5 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4,
|
||||||
|
SCM arg5);
|
||||||
|
SCM_API SCM scm_call_6 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4,
|
||||||
|
SCM arg5, SCM arg6);
|
||||||
SCM_API SCM scm_call_n (SCM proc, SCM *argv, size_t nargs);
|
SCM_API SCM scm_call_n (SCM proc, SCM *argv, size_t nargs);
|
||||||
SCM_API SCM scm_apply_0 (SCM proc, SCM args);
|
SCM_API SCM scm_apply_0 (SCM proc, SCM args);
|
||||||
SCM_API SCM scm_apply_1 (SCM proc, SCM arg1, SCM args);
|
SCM_API SCM scm_apply_1 (SCM proc, SCM arg1, SCM args);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue