From b856b51a4c627094467f540b8e4b6e5ec3e211d2 Mon Sep 17 00:00:00 2001 From: Gary Houston Date: Wed, 3 Oct 2001 20:49:45 +0000 Subject: [PATCH] * continuations.h, unif.h: in the descriptions of the bit patterns of the heap cells, make bit 0 the least significant. --- libguile/ChangeLog | 5 +++++ libguile/continuations.h | 4 ++-- libguile/unif.h | 10 +++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/libguile/ChangeLog b/libguile/ChangeLog index edbb77cb7..e3be6c560 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -1,3 +1,8 @@ +2001-10-03 Gary Houston + + * continuations.h, unif.h: in the descriptions of the bit patterns + of the heap cells, make bit 0 the least significant. + 2001-09-25 Thien-Thi Nguyen * chars.h (SCM_MAKE_CHAR): Use `scm_t_bits' instead of `intptr_t'. diff --git a/libguile/continuations.h b/libguile/continuations.h index 2c67d78a5..9edfe1a7d 100644 --- a/libguile/continuations.h +++ b/libguile/continuations.h @@ -48,8 +48,8 @@ /* a continuation SCM is a non-immediate pointing to a heap cell with: - word 0: bits 0-15: unused. - bits 16-31: smob type tag: scm_tc16_continuation. + word 0: bits 0-15: smob type tag: scm_tc16_continuation. + bits 16-31: unused. word 1: malloc block containing an scm_t_contregs structure with a tail array of SCM_STACKITEM. the size of the array is stored in the num_stack_items field of the structure. diff --git a/libguile/unif.h b/libguile/unif.h index 9b5b61d6c..905e03506 100644 --- a/libguile/unif.h +++ b/libguile/unif.h @@ -50,12 +50,12 @@ /* - an array SCM is a non-immediate pointing to a heap cell with: + an array SCM is a non-immediate pointing to a heap cell where: - CAR: bits 0-14 hold the dimension (0 -- 32767) - bit 15 is the SCM_ARRAY_FLAG_CONTIGUOUS flag - bits 16-31 hold the smob type id: scm_tc16_array - CDR: pointer to a malloced block containing an scm_array structure + CAR: bits 0-15 hold the smob type id: scm_tc16_array + bit 16 is the SCM_ARRAY_FLAG_CONTIGUOUS flag + bits 17-31 hold the dimension (0 -- 32767) + CDR: pointer to a malloced block containing an scm_t_array structure followed by an scm_t_array_dim structure for each dimension. */