fix struct-ref and struct-set! on "light" structs
authorAndy Wingo <wingo@unquote.local>
Wed, 9 Apr 2008 23:32:14 +0000 (01:32 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 10 Apr 2008 21:21:30 +0000 (23:21 +0200)
commit4650d115020924e8da5547d4c346cbe5cd01029e
tree656c5c7e30d6552636722c52cbf455ff2a2ae40c
parent4125c767611836b984749045d4566d3d1c9ed393
fix struct-ref and struct-set! on "light" structs

* libguile/struct.c (scm_struct_ref, scm_struct_set_x): "Light" structs
have no hidden words (members of the SCM_STRUCT_DATA(x) array accessed
with negative indices). In that case, determine the number of fields
from the length of the struct layout descriptor. (Most GOOPS instances
are light structs.)
libguile/ChangeLog
libguile/struct.c