+2005-04-30 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * fluids.c (DYNAMIC_STATE_NEXT_LOC): new macro for use with
+ SCM_DEBUG_CELL_ACCESSES
+ (FLUID_NEXT_LOC): idem.
+
2005-04-30 Kevin Ryde <user42@zip.com.au>
* numbers.c (scm_divide): Correction to 1/complex and <any>/complex,
#define IS_FLUID(x) SCM_SMOB_PREDICATE(tc16_fluid, (x))
#define FLUID_NUM(x) ((size_t)SCM_SMOB_DATA(x))
#define FLUID_NEXT(x) SCM_SMOB_OBJECT_2(x)
+#define FLUID_NEXT_LOC(x) SCM_SMOB_OBJECT_2_LOC(x)
#define SET_FLUID_NEXT(x,y) SCM_SET_SMOB_OBJECT_2((x), (y))
static scm_t_bits tc16_dynamic_state;
#define DYNAMIC_STATE_FLUIDS(x) SCM_SMOB_OBJECT(x)
#define SET_DYNAMIC_STATE_FLUIDS(x, y) SCM_SET_SMOB_OBJECT((x), (y))
#define DYNAMIC_STATE_NEXT(x) SCM_SMOB_OBJECT_2(x)
+#define DYNAMIC_STATE_NEXT_LOC(x) SCM_SMOB_OBJECT_2_LOC(x)
#define SET_DYNAMIC_STATE_NEXT(x, y) SCM_SET_SMOB_OBJECT_2((x), (y))
/* Weak lists of all dynamic states and all fluids.
*fluidp = FLUID_NEXT (*fluidp);
}
else
- fluidp = &FLUID_NEXT (*fluidp);
+ fluidp = FLUID_NEXT_LOC (*fluidp);
}
/* Scan all dynamic states and remove the unmarked ones. The live
if (allocated_fluids[i] == 0)
SCM_SIMPLE_VECTOR_SET (fluids, i, SCM_BOOL_F);
- statep = &DYNAMIC_STATE_NEXT (*statep);
+ statep = DYNAMIC_STATE_NEXT_LOC (*statep);
}
}