diff options
author | Andy Wingo <wingo@pobox.com> | 2009-12-21 21:06:27 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2009-12-21 21:06:27 +0100 |
commit | 86fd6dff2a77150148ed7b3d9152e0a431070666 (patch) | |
tree | 566f285b090bfd155894cbf0b8e5e7dd7ba709b6 /libguile/eval.h | |
parent | 700908288cdafd7d68dc2861e2348f38aeb38782 (diff) | |
download | guile-86fd6dff2a77150148ed7b3d9152e0a431070666.tar.gz |
add scm_call_n, scm_c_run_hookn
* libguile/eval.h:
* libguile/eval.c (scm_call_n): New function, applies a function to an
array of args.
* libguile/hooks.h:
* libguile/hooks.c (scm_c_run_hookn): New function, runs a hook with an
array of args.
Diffstat (limited to 'libguile/eval.h')
-rw-r--r-- | libguile/eval.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/eval.h b/libguile/eval.h index 6341f14b4..0715e04fb 100644 --- a/libguile/eval.h +++ b/libguile/eval.h @@ -69,6 +69,7 @@ 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_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_n (SCM proc, SCM *argv, size_t nargs); 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_2 (SCM proc, SCM arg1, SCM arg2, SCM args); |