diff options
author | Andy Wingo <wingo@pobox.com> | 2017-09-25 21:33:22 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2017-09-25 21:54:36 +0200 |
commit | a74d4ee4f6e062ff640f2532c9cfc9977bb68a49 (patch) | |
tree | f76bf42f2d76b4304cde6dc909a74c152336e4b0 /libguile/array-map.c | |
parent | f23415589a0e263e34a687b5dad1b1624e949639 (diff) | |
download | guile-a74d4ee4f6e062ff640f2532c9cfc9977bb68a49.tar.gz |
Add struct-ref/unboxed, struct-set!/unboxed
* NEWS: Add news entry.
* doc/ref/api-data.texi (Vtables, Structure Basics): Update
documentation.
* libguile/struct.c (scm_i_struct_equalp): Avoid using struct-ref on
unboxed fields.
(scm_struct_ref, scm_struct_set_x_unboxed): Issue deprecation warning
when accessing unboxed fields.
(scm_struct_ref_unboxed, scm_struct_set_x_unboxed): New functions.
* libguile/struct.h (scm_struct_ref_unboxed, scm_struct_set_x_unboxed):
New functions.
* module/oop/goops.scm (class-add-flags!, class-clear-flags!):
(class-has-flags?, <class>, %allocate-instance, <slot>):
(compute-get-n-set, unboxed-get, unboxed-set, unboxed-slot?):
(allocate-slots, %prep-layout!, make-standard-class, initialize):
Adapt to access unboxed nfields and flags fields via the new
accessors.
Diffstat (limited to 'libguile/array-map.c')
0 files changed, 0 insertions, 0 deletions