summaryrefslogtreecommitdiff
path: root/libguile/debug.h
diff options
context:
space:
mode:
authorKeisuke Nishida <kxn30@po.cwru.edu>2000-12-08 17:32:56 +0000
committerKeisuke Nishida <kxn30@po.cwru.edu>2000-12-08 17:32:56 +0000
commite841c3e0c006a4c80d873f93cb512f0ec71a5705 (patch)
treea464d2eb9ca225d04d034b40e8b029efce1ea323 /libguile/debug.h
parent38ae064c6e462bafc7e188b4586fb3e6eedec876 (diff)
downloadguile-e841c3e0c006a4c80d873f93cb512f0ec71a5705.tar.gz
Smob-related creanup.
Diffstat (limited to 'libguile/debug.h')
-rw-r--r--libguile/debug.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/libguile/debug.h b/libguile/debug.h
index 85a0c0d09..ba143ace6 100644
--- a/libguile/debug.h
+++ b/libguile/debug.h
@@ -164,21 +164,20 @@ extern scm_debug_frame *scm_last_debug_frame;
/* {Debug Objects}
*/
-extern long scm_tc16_debugobj;
+extern scm_bits_t scm_tc16_debugobj;
-#define SCM_DEBUGOBJP(x) (SCM_NIMP (x) \
- && (SCM_TYP16 (x) == scm_tc16_debugobj))
-#define SCM_DEBUGOBJ_FRAME(x) (SCM_CELL_WORD_1 (x))
-#define SCM_SET_DEBUGOBJ_FRAME(x, f) (SCM_SET_CELL_WORD_1 (x, f))
+#define SCM_DEBUGOBJP(x) SCM_TYP16_PREDICATE (scm_tc16_debugobj, x)
+#define SCM_DEBUGOBJ_FRAME(x) SCM_CELL_WORD_1 (x)
+#define SCM_SET_DEBUGOBJ_FRAME(x, f) SCM_SET_CELL_WORD_1 (x, f)
/* {Memoized Source}
*/
-extern long scm_tc16_memoized;
+extern scm_bits_t scm_tc16_memoized;
-#define SCM_MEMOIZEDP(x) (SCM_NIMP(x) && (scm_tc16_memoized == SCM_TYP16 (x)))
-#define SCM_MEMOIZED_EXP(x) SCM_CAR (SCM_CDR (x))
-#define SCM_MEMOIZED_ENV(x) SCM_CDR (SCM_CDR (x))
+#define SCM_MEMOIZEDP(x) SCM_TYP16_PREDICATE (scm_tc16_memoized, x)
+#define SCM_MEMOIZED_EXP(x) SCM_CAR (SCM_CELL_OBJECT_1 (x))
+#define SCM_MEMOIZED_ENV(x) SCM_CDR (SCM_CELL_OBJECT_1 (x))