1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-08 05:00:17 +02:00
guile/module
Andy Wingo 043a5b62bb Rework treatment of bytevector flags
Before, they were always shifted by 7.  Now the flags are just above
0x7f and just the element type is shifted, but by 16.

* libguile/bytevectors.h (SCM_BYTEVECTOR_FLAGS): Rework to not shift.
(SCM_SET_BYTEVECTOR_FLAGS): Remove.
(SCM_MUTABLE_BYTEVECTOR_P): Don't shift the immutable flag.
(SCM_BYTEVECTOR_ELEMENT_TYPE): Shift right by 16.
* libguile/bytevectors.c (SCM_BYTEVECTOR_SET_FLAG): Remove unused
helper.
(make_bytevector_tag): New helper.
(make_bytevector): Use new helper.
(make_bytevector_from_buffer): Add flags and parent args, and use new
helper.
(scm_c_take_gc_bytevector):
(scm_c_take_typed_bytevector):
(scm_bytevector_slice): Update callers.
* module/system/vm/assembler.scm (link-data): Don't shift the flag by 7;
instead shift the element type by 16.
2025-05-30 14:19:30 +02:00
..
ice-9 primitive-load after boot uses read-syntax 2025-05-15 22:36:41 +02:00
language Remove weak sets 2025-05-14 16:12:11 +02:00
oop Move weak table implementation to Scheme 2025-05-13 14:57:31 +02:00
rnrs Implement R6RS custom textual ports 2023-06-08 10:21:02 +02:00
scheme Update set of decimal zeroes for Unicode 15.1.0 2023-11-02 11:31:32 +01:00
scripts Deprecate object-properties in the main environment 2025-05-12 13:45:21 +02:00
srfi Move weak table implementation to Scheme 2025-05-13 14:57:31 +02:00
sxml Fix typos in comments. 2025-02-28 09:58:29 +01:00
system Rework treatment of bytevector flags 2025-05-30 14:19:30 +02:00
texinfo Fix typo in transform-string docstring 2025-03-20 13:36:58 -05:00
web Move make-object-property out to a module 2025-05-12 13:45:07 +02:00
Makefile.am Rework bootstrap to be reproducible 2022-02-01 14:50:40 +01:00
rnrs.scm Remove all deprecated code from Scheme files 2025-05-05 12:33:37 +02:00
statprof.scm Fix typos throughout codebase. 2024-05-06 11:51:53 +02:00
texinfo.scm texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00