Smob-related creanup.
[bpt/guile.git] / libguile / random.h
index 38aba09..797bae4 100644 (file)
@@ -108,9 +108,9 @@ extern SCM scm_c_random_bignum (scm_rstate *, SCM m);
 /*
  * Scheme level interface
  */
-extern long scm_tc16_rstate;
-#define SCM_RSTATE(obj) ((scm_rstate *) SCM_CELL_WORD_1 (obj))
-#define SCM_RSTATEP(obj) (SCM_NIMP(obj) && (SCM_TYP16 (obj) == scm_tc16_rstate))
+extern scm_bits_t scm_tc16_rstate;
+#define SCM_RSTATEP(obj) SCM_TYP16_PREDICATE (scm_tc16_rstate, obj)
+#define SCM_RSTATE(obj)  ((scm_rstate *) SCM_CELL_WORD_1 (obj))
 
 extern unsigned char scm_masktab[256];