diff options
author | Greg J. Badros <gjb@cs.washington.edu> | 2000-03-09 18:58:58 +0000 |
---|---|---|
committer | Greg J. Badros <gjb@cs.washington.edu> | 2000-03-09 18:58:58 +0000 |
commit | c209c88e54d08a557a297836200e16e20355df02 (patch) | |
tree | dce0d672bc0a63be5f658c65269c9a4144da1c67 /libguile/weaks.h | |
parent | df8bb2dc3988d24c0f64bd2cc5fa01a31825d11a (diff) | |
download | guile-c209c88e54d08a557a297836200e16e20355df02.tar.gz |
*.[ch]: make a distinction between SCM as a generic
name for a Scheme object (now a void*), and SCM as 32 bit word for
storing tags and immediates (now a long int). Introduced
SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious
code in the process: arbiter.c (use macros), unif.c (scm_array_p),
Diffstat (limited to 'libguile/weaks.h')
-rw-r--r-- | libguile/weaks.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/weaks.h b/libguile/weaks.h index e6c4bfa81..bfc2dd8ba 100644 --- a/libguile/weaks.h +++ b/libguile/weaks.h @@ -53,9 +53,9 @@ #define SCM_WVECTP(x) (SCM_NIMP(x) && (SCM_TYP7(x)==scm_tc7_wvect)) -#define SCM_IS_WHVEC(X) (SCM_VELTS(X)[-1] == 1) -#define SCM_IS_WHVEC_V(X) (SCM_VELTS(X)[-1] == 2) -#define SCM_IS_WHVEC_B(X) (SCM_VELTS(X)[-1] == 3) +#define SCM_IS_WHVEC(X) (SCM_ASWORD (SCM_VELTS(X)[-1]) == 1) +#define SCM_IS_WHVEC_V(X) (SCM_ASWORD (SCM_VELTS(X)[-1]) == 2) +#define SCM_IS_WHVEC_B(X) (SCM_ASWORD (SCM_VELTS(X)[-1]) == 3) #define SCM_IS_WHVEC_ANY(X) (SCM_VELTS(X)[-1]) #define SCM_WVECT_GC_CHAIN(X) (SCM_VELTS(X)[-2]) |