1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 04:40:29 +02:00
guile/module/srfi
Andy Wingo a268973767 reimplement srfi-4 vectors on top of bytevectors
* libguile/srfi-4.h:
* libguile/srfi-4.c (scm_make_srfi_4_vector): New function, exported by
  (srfi srfi-4 gnu).
* libguile/srfi-4.i.c: Removed.
* module/srfi/srfi-4.scm:
* module/srfi/srfi-4/gnu.scm: Reimplement srfi-4 vectors on top of
  bytevectors. The implementation is mostly in Scheme now.

* test-suite/tests/unif.test: Update to use (srfi srfi-4 gnu).

* libguile/bytevectors.c (bytevector_ref_c32, bytevector_ref_c64)
  (bytevector_set_c32, bytevector_set_c64): Fix some embarrassing bugs.
  Still need to do an upper bounds check.

* libguile/deprecated.h: Remove deprecated array functions:
  scm_i_arrayp, scm_i_array_ndim, scm_i_array_mem, scm_i_array_v,
  scm_i_array_base, scm_i_array_dims, and the deprecated macros:
  SCM_ARRAYP, SCM_ARRAY_NDIM, SCM_ARRAY_CONTP, SCM_ARRAY_MEM,
  SCM_ARRAY_V, SCM_ARRAY_BASE, SCM_ARRAY_DIMS.
* libguile/deprecated.c (scm_uniform_vector_read_x)
  (scm_uniform_vector_write, scm_uniform_array_read_x)
  (scm_uniform_array_write): Newly deprecated functions.

* libguile/generalized-arrays.c (scm_array_type): Remove the bytevector
  hack.

* libguile/objcodes.c (scm_bytecode_to_objcode, scm_objcode_to_bytecode):
  Rework to operate on bytevectors, as scm_make_u8vector now causes a
  module lookup, which can't be done e.g. when loading the VM boot
  program for psyntax-pp.go on a fresh bootstrap.

* libguile/objcodes.h (SCM_F_OBJCODE_IS_BYTEVECTOR):
  (SCM_OBJCODE_IS_BYTEVECTOR): s/U8VECTOR/BYTEVECTOR/.

* module/ice-9/boot-9.scm (the-scm-module): A terrible hack to pull in
  (srfi srfi-4), as the bindings are primarily there now. We'll worry
  about this later.
2010-01-07 22:06:56 +01:00
..
srfi-4 reimplement srfi-4 vectors on top of bytevectors 2010-01-07 22:06:56 +01:00
Makefile.am Change Guile license to LGPLv3+ 2009-06-17 00:22:09 +01:00
srfi-1.scm SRFI-1: Use the built-in optional argument support. 2009-12-11 15:20:12 +01:00
srfi-2.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-4.scm reimplement srfi-4 vectors on top of bytevectors 2010-01-07 22:06:56 +01:00
srfi-6.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-8.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-9.scm SRFI-9: Make accessors inlinable. 2009-12-11 13:03:46 +01:00
srfi-10.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-11.scm actually inline call-with-values to tree-il's <let-values> 2009-08-06 11:48:16 +02:00
srfi-13.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-14.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-16.scm srfi-16 just re-exports psyntax's case-lambda 2009-10-25 13:19:11 +01:00
srfi-17.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-18.scm Fix typos leading to unbound variable references. 2009-10-22 22:57:25 +02:00
srfi-19.scm Fix typos leading to wrong argument counts. 2009-11-07 19:24:49 +01:00
srfi-26.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-31.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-34.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-35.scm srfi-35 properly uses vtable-offset-user 2009-11-15 20:28:12 +01:00
srfi-37.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-39.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-60.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-69.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
srfi-88.scm SRFI-88: Call `read-set!' at compile time and run time. 2009-10-22 19:05:59 +02:00
srfi-98.scm Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00