mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
Add `scm_t_subr' typedef (fix bug #23681).
* libguile/__scm.h (scm_t_subr): New typedef. * libguile/deprecated.h (scm_make_gsubr, scm_make_gsubr_with_generic, scm_call_catching_errors): Use it. * libguile/gsubr.h (scm_c_make_gsubr, scm_c_define_gsubr, scm_c_define_gsubr_with_generic): Likewise. * libguile/smob.h (scm_smob_descriptor)[apply]: Likewise. (scm_set_smob_apply): Likewise. * libguile/snarf.h (SCM_FUNC_CAST_ARBITRARY_ARGS): Likewise.
This commit is contained in:
parent
10b9343f04
commit
be90d0b6f9
5 changed files with 35 additions and 24 deletions
|
@ -133,12 +133,12 @@ SCM_DEPRECATED SCM scm_internal_with_fluids (SCM fluids, SCM vals,
|
|||
|
||||
SCM_DEPRECATED SCM scm_make_gsubr (const char *name,
|
||||
int req, int opt, int rst,
|
||||
SCM (*fcn)());
|
||||
scm_t_subr fcn);
|
||||
SCM_DEPRECATED SCM scm_make_gsubr_with_generic (const char *name,
|
||||
int req,
|
||||
int opt,
|
||||
int rst,
|
||||
SCM (*fcn)(),
|
||||
scm_t_subr fcn,
|
||||
SCM *gf);
|
||||
|
||||
SCM_DEPRECATED SCM scm_create_hook (const char* name, int n_args);
|
||||
|
@ -173,7 +173,8 @@ SCM_DEPRECATED SCM scm_read_and_eval_x (SCM port);
|
|||
|
||||
#define SCM_SUBR_DOC(x) SCM_BOOL_F
|
||||
|
||||
SCM_DEPRECATED SCM scm_call_catching_errors (SCM (*thunk)(), SCM (*err_filter)(),
|
||||
SCM_DEPRECATED SCM scm_call_catching_errors (scm_t_subr thunk,
|
||||
scm_t_subr err_filter,
|
||||
void * closure);
|
||||
|
||||
SCM_DEPRECATED long scm_make_smob_type_mfpe (char *name, size_t size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue