guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Should scm_c_run_hook be internal?


From: Neil Jerram
Subject: Should scm_c_run_hook be internal?
Date: 15 Mar 2002 23:47:21 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Documenting hooks, I just wrote the following about scm_c_run_hook:

-----------------
If, in C code, you are certain that you have a hook object and well
formed argument list for that hook, you can also use
@code{scm_c_run_hook}, which is identical to @code{scm_run_hook} but
does no type checking.

@deftypefn {C Function} void scm_c_run_hook (SCM hook, SCM args)
The same as @code{scm_run_hook} but without any type checking to confirm
that @var{hook} is actually a hook object and that @var{args} is a
well-formed list matching the arity of the hook.
@end deftypefn
-----------------

Is this right, or should scm_c_run_hook really be for internal use
only?  (And hence scm_i_run_hook?)  It's currently used from gc.c to
run the after-gc-hook.

        Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]