diff options
author | Keisuke Nishida <kxn30@po.cwru.edu> | 2000-12-08 17:32:56 +0000 |
---|---|---|
committer | Keisuke Nishida <kxn30@po.cwru.edu> | 2000-12-08 17:32:56 +0000 |
commit | e841c3e0c006a4c80d873f93cb512f0ec71a5705 (patch) | |
tree | a464d2eb9ca225d04d034b40e8b029efce1ea323 /libguile/hooks.h | |
parent | 38ae064c6e462bafc7e188b4586fb3e6eedec876 (diff) | |
download | guile-e841c3e0c006a4c80d873f93cb512f0ec71a5705.tar.gz |
Smob-related creanup.
Diffstat (limited to 'libguile/hooks.h')
-rw-r--r-- | libguile/hooks.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libguile/hooks.h b/libguile/hooks.h index 6d898db86..95623c114 100644 --- a/libguile/hooks.h +++ b/libguile/hooks.h @@ -96,12 +96,12 @@ extern void *scm_c_hook_run (scm_c_hook_t *hook, void *data); * Scheme level hooks */ -#define SCM_HOOKP(x) (!SCM_IMP (x) && (SCM_TYP16 (x) == scm_tc16_hook)) -#define SCM_HOOK_ARITY(hook) (SCM_CELL_WORD_0 (hook) >> 16) -#define SCM_HOOK_PROCEDURES(hook) SCM_CELL_OBJECT_1 (hook) -#define SCM_SET_HOOK_PROCEDURES(hook, procs) SCM_SET_CELL_OBJECT_1 ((hook), (procs)) +extern scm_bits_t scm_tc16_hook; -extern long scm_tc16_hook; +#define SCM_HOOKP(x) SCM_TYP16_PREDICATE (scm_tc16_hook, x) +#define SCM_HOOK_ARITY(hook) (SCM_CELL_WORD_0 (hook) >> 16) +#define SCM_HOOK_PROCEDURES(hook) SCM_CELL_OBJECT_1 (hook) +#define SCM_SET_HOOK_PROCEDURES(hook, procs) SCM_SET_CELL_OBJECT_1 ((hook), (procs)) extern SCM scm_make_hook (SCM n_args); extern SCM scm_create_hook (const char* name, int n_args); |