bpt/guile.git
19 years ago(scm_array_handle_set): Correctly execute only one
Marius Vollmer [Sun, 9 Jan 2005 17:45:59 +0000 (17:45 +0000)]
(scm_array_handle_set): Correctly execute only one
alternative.  D'Oh!
(scm_list_to_typed_array, l2ra): Use scm_t_array_handle to fill
the array; this covers all cases with much simpler code.

19 years ago(scm_uniform_element_size): Deprecated implementation
Marius Vollmer [Sun, 9 Jan 2005 17:43:14 +0000 (17:43 +0000)]
(scm_uniform_element_size): Deprecated implementation
as well.

19 years ago*** empty log message ***
Marius Vollmer [Sun, 9 Jan 2005 15:45:33 +0000 (15:45 +0000)]
*** empty log message ***

19 years ago(uvec_type): New.
Marius Vollmer [Sun, 9 Jan 2005 15:45:21 +0000 (15:45 +0000)]
(uvec_type): New.
(uvec_to_list, uvec_ref, uvec_set_x, scm_c_uniform_vector_ref,
scm_c_uniform_vector_x): Use it to get concrete type.

19 years ago(ra2l): Handle zero rank arrays.
Marius Vollmer [Sun, 9 Jan 2005 15:41:22 +0000 (15:41 +0000)]
(ra2l): Handle zero rank arrays.
(scm_i_print_array): Print zero rank arrays specially.
(tag_to_type): Return #t for an empty tag, not the empty symbol.
(scm_i_read_array): Allow zero rank arrays.

19 years ago(scm_t_array_dim): Changed type of members to ssize_t, to
Marius Vollmer [Sun, 9 Jan 2005 15:41:14 +0000 (15:41 +0000)]
(scm_t_array_dim): Changed type of members to ssize_t, to
fit the docs.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 8 Jan 2005 00:20:56 +0000 (00:20 +0000)]
*** empty log message ***

19 years agoMove ice-9 threads to alphabetical order.
Kevin Ryde [Sat, 8 Jan 2005 00:15:57 +0000 (00:15 +0000)]
Move ice-9 threads to alphabetical order.

19 years ago(Included Guile Modules): Add expect, format, ftw,
Kevin Ryde [Sat, 8 Jan 2005 00:15:10 +0000 (00:15 +0000)]
(Included Guile Modules): Add expect, format, ftw,
getopt-long, history, popen, pretty-print, q, readline, receive, regex,
streams, syncase.

19 years ago(Included Guile Modules): Remove ice-9 jacal, no such module.
Kevin Ryde [Fri, 7 Jan 2005 23:59:30 +0000 (23:59 +0000)]
(Included Guile Modules): Remove ice-9 jacal, no such module.

19 years ago(Included Guile Modules): Add srfi-16, srfi-19 and srfi-31.
Kevin Ryde [Fri, 7 Jan 2005 23:58:41 +0000 (23:58 +0000)]
(Included Guile Modules): Add srfi-16, srfi-19 and srfi-31.

19 years ago(Creating Guile Modules): Expand define-modules
Kevin Ryde [Fri, 7 Jan 2005 23:53:29 +0000 (23:53 +0000)]
(Creating Guile Modules): Expand define-modules
#:autoload, clarify that it's a list of symbols.

19 years agoAdd a copyright year.
Kevin Ryde [Fri, 7 Jan 2005 23:48:54 +0000 (23:48 +0000)]
Add a copyright year.

19 years agoVarious further index entries.
Kevin Ryde [Fri, 7 Jan 2005 23:48:25 +0000 (23:48 +0000)]
Various further index entries.

19 years ago(File System): In mkstemp!, note 0600 creation mode.
Kevin Ryde [Fri, 7 Jan 2005 23:29:33 +0000 (23:29 +0000)]
(File System): In mkstemp!, note 0600 creation mode.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 7 Jan 2005 16:11:07 +0000 (16:11 +0000)]
*** empty log message ***

19 years ago(scm_uniform_element_size): Deprecated for real.
Marius Vollmer [Fri, 7 Jan 2005 16:10:53 +0000 (16:10 +0000)]
(scm_uniform_element_size): Deprecated for real.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 7 Jan 2005 15:58:01 +0000 (15:58 +0000)]
*** empty log message ***

19 years agoMore removed bitvector stuff.
Marius Vollmer [Fri, 7 Jan 2005 15:50:41 +0000 (15:50 +0000)]
More removed bitvector stuff.

19 years ago(SCM_HASHTAB_BUCKET_LOC): Removed.
Marius Vollmer [Fri, 7 Jan 2005 15:50:01 +0000 (15:50 +0000)]
(SCM_HASHTAB_BUCKET_LOC): Removed.
(scan_weak_hashtables): Rewrote its use with SCM_HASHTAB_BUCKET
and SCM_SET_HASHTAB_BUCKET.

19 years ago(scm_print_state, SCM_PRINT_STATE_LAYOUT):
Marius Vollmer [Fri, 7 Jan 2005 15:47:47 +0000 (15:47 +0000)]
(scm_print_state, SCM_PRINT_STATE_LAYOUT):
Removed ref_stack field.
(PSTATE_STACK_REF, PSTATE_STACK_SET): New, for accessing the stack
of a print state.  Use them everywhere instead of ref_stack.

19 years agoInclude deprecation.h.
Marius Vollmer [Fri, 7 Jan 2005 15:44:45 +0000 (15:44 +0000)]
Include deprecation.h.

19 years ago(SCM_BITVEC_REF, SCM_BITVEC_SET, SCM_BITVEC_CLR): Removed.
Marius Vollmer [Fri, 7 Jan 2005 15:44:09 +0000 (15:44 +0000)]
(SCM_BITVEC_REF, SCM_BITVEC_SET, SCM_BITVEC_CLR): Removed.
(scm_vector_elements, scm_vector_writable_elements,
scm_generalized_vector_get_handle): Moved to vectors.[hc] from
unif.[hc].
(SCM_SIMPLE_VECTOR_LOC): Removed.
(SCM_VECTOR_MAX_LENGTH, SCM_VECTOR_LENGTH, SCM_VELTS,
SCM_WRITABLE_VELTS, SCM_VECTOR_REF, SCM_VECTOR_SET,
scm_vector_equal_p): Moved from vectors.[hc] to deprecated.[hc].
(scm_vector_equal_p, scm_i_vector_equal_p): Renamed former to
latter.  Changed use in eq.c.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 7 Jan 2005 00:32:03 +0000 (00:32 +0000)]
*** empty log message ***

19 years agoUse (test-suite lib) module.
Marius Vollmer [Fri, 7 Jan 2005 00:31:36 +0000 (00:31 +0000)]
Use (test-suite lib) module.

19 years ago(SCM_IS_UVEC): New, use it instead of
Marius Vollmer [Fri, 7 Jan 2005 00:28:33 +0000 (00:28 +0000)]
(SCM_IS_UVEC): New, use it instead of
SCM_SMOB_PREDICATE in this file.
(is_uvec): Also recognize one-dimensional uniform numeric arrays
of the right type.
(scm_is_uniform_vector): Likewise.
(uvec_fast_ref): Made BASE param const.
(uvec_writable_elements, uvec_elements): New.
(uvec_to_list, uvec_ref, uvec_set_x, uvec_length,
scm_c_uniform_vector_length, scm_c_uniform_vector_ref,
scm_c_uniform_set_x): Use them to also deal with one-dimensional
arrays.
(scm_uniform_vector_ref, scm_uniform_vector_set_x): Deprecate old
argument convention.
(scm_uniform_vector_to_list): Let uvec_to_list do all the
checking.
(scm_uniform_vector_length): Use uvec_length.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 6 Jan 2005 19:01:14 +0000 (19:01 +0000)]
*** empty log message ***

19 years ago(have-llvect?): Removed, Scheme code will always
Marius Vollmer [Thu, 6 Jan 2005 18:58:30 +0000 (18:58 +0000)]
(have-llvect?): Removed, Scheme code will always
have u64 and s64 uniform vectors.

19 years agoFinished(?) the new array API docs.
Marius Vollmer [Thu, 6 Jan 2005 18:57:11 +0000 (18:57 +0000)]
Finished(?) the new array API docs.

19 years ago(scm_array_handle_release): New, changed all uses of
Marius Vollmer [Thu, 6 Jan 2005 18:56:34 +0000 (18:56 +0000)]
(scm_array_handle_release): New, changed all uses of
scm_t_array_handle to properly call it.
(scm_vector_get_handle, scm_generalized_vector_get_handle):
Renamed former to latter, changed all uses.

19 years ago(scm_c_uniform_vector_element_size,
Marius Vollmer [Thu, 6 Jan 2005 18:44:08 +0000 (18:44 +0000)]
(scm_c_uniform_vector_element_size,
scm_c_uniform_vector_size): Removed.
(scm_array_handle_uniform_element_size): New.

19 years ago(scm_vector_get_handle, scm_generalized_vector_get_handle): Renamed
Marius Vollmer [Thu, 6 Jan 2005 18:15:33 +0000 (18:15 +0000)]
(scm_vector_get_handle, scm_generalized_vector_get_handle): Renamed
former to latter, changed all uses.

19 years ago(scm_array_handle_ref, scm_array_handle_set): Changed
Marius Vollmer [Thu, 6 Jan 2005 18:14:18 +0000 (18:14 +0000)]
(scm_array_handle_ref, scm_array_handle_set): Changed
type of POS parameter to be signed, positions can be negative.
(scm_array_handle_release): New, changed all uses of
scm_t_array_handle to properly call it.
(scm_vector_get_handle, scm_generalized_vector_get_handle):
Renamed former to latter.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 4 Jan 2005 23:42:03 +0000 (23:42 +0000)]
*** empty log message ***

19 years agoUse *unspecified* instead of #f to get an uninitialized array.
Marius Vollmer [Tue, 4 Jan 2005 23:41:48 +0000 (23:41 +0000)]
Use *unspecified* instead of #f to get an uninitialized array.

19 years agoUpdated for newfill rule of make-typed-array.
Marius Vollmer [Tue, 4 Jan 2005 23:34:40 +0000 (23:34 +0000)]
Updated for newfill rule of make-typed-array.

19 years ago(scm_bitvector_elements,
Marius Vollmer [Tue, 4 Jan 2005 23:31:19 +0000 (23:31 +0000)]
(scm_bitvector_elements,
scm_bitvector_writable_elements): Use a scm_t_array_handle and
deliver offset, length and increment to caller.  Changed all uses.
(scm_bitvector_release_elements,
scm_frame_bitvector_release_elements,
scm_bitvector_release_writable_elements,
scm_frame_bitvector_release_writable_elements): Removed.
(scm_array_handle_bit_elements,
scm_array_handle_bit_writable_elements,
scm_array_handle_bit_elements_offset): New.
(scm_make_typed_array): The special value for non-initialized
arrays is now SCM_UNSPECIFIED.  The old special value SCM_BOOL_F
was a valid value to fill bitvectors with, so it can't really be
specialed out.

19 years ago*** empty log message ***
Kevin Ryde [Tue, 4 Jan 2005 00:45:36 +0000 (00:45 +0000)]
*** empty log message ***

19 years ago * tests/ramap.test: New file, test array-map!.
Kevin Ryde [Tue, 4 Jan 2005 00:45:13 +0000 (00:45 +0000)]
* tests/ramap.test: New file, test array-map!.
* Makefile.am (SCM_TESTS): Add it.

19 years agoNew file, test array-map!.
Kevin Ryde [Tue, 4 Jan 2005 00:44:37 +0000 (00:44 +0000)]
New file, test array-map!.

19 years ago*** empty log message ***
Kevin Ryde [Tue, 4 Jan 2005 00:37:34 +0000 (00:37 +0000)]
*** empty log message ***

19 years ago(scm_strftime): Free t.tm_zone produced by bdtime2c.
Kevin Ryde [Tue, 4 Jan 2005 00:35:48 +0000 (00:35 +0000)]
(scm_strftime): Free t.tm_zone produced by bdtime2c.
Reported by Bill Schottstaedt.

19 years agoOne more incremental step towards the new array API.
Marius Vollmer [Mon, 3 Jan 2005 20:10:15 +0000 (20:10 +0000)]
One more incremental step towards the new array API.

19 years agoHard code SCM_HAVE_ARRAYS to "1", for real now.
Marius Vollmer [Sun, 2 Jan 2005 21:04:50 +0000 (21:04 +0000)]
Hard code SCM_HAVE_ARRAYS to "1", for real now.

19 years ago*** empty log message ***
Marius Vollmer [Sun, 2 Jan 2005 21:04:11 +0000 (21:04 +0000)]
*** empty log message ***

19 years agoRewritten for new 'typed' approach to uniform arrays.
Marius Vollmer [Sun, 2 Jan 2005 21:03:52 +0000 (21:03 +0000)]
Rewritten for new 'typed' approach to uniform arrays.

19 years agoNew tests, especially for sorting non-contigous and
Marius Vollmer [Sun, 2 Jan 2005 21:03:12 +0000 (21:03 +0000)]
New tests, especially for sorting non-contigous and
negative-incrementing vectors.

19 years agoUse new vector elements API or simple vector API, as
Marius Vollmer [Sun, 2 Jan 2005 21:01:55 +0000 (21:01 +0000)]
Use new vector elements API or simple vector API, as
appropriate.

19 years ago(uniform-vector-fill!, make-uniform-vector,
Marius Vollmer [Sun, 2 Jan 2005 21:00:43 +0000 (21:00 +0000)]
(uniform-vector-fill!, make-uniform-vector,
make-uniform-array,list->uniform-array): Deprecated for real.

19 years agoVector API has been mostly deprecated.
Marius Vollmer [Sun, 2 Jan 2005 20:58:53 +0000 (20:58 +0000)]
Vector API has been mostly deprecated.

19 years ago*** empty log message ***
Marius Vollmer [Sun, 2 Jan 2005 20:50:28 +0000 (20:50 +0000)]
*** empty log message ***

19 years agoUse new vector elements API or simple vector API, as appropriate.
Marius Vollmer [Sun, 2 Jan 2005 20:49:04 +0000 (20:49 +0000)]
Use new vector elements API or simple vector API, as appropriate.
Removed SCM_HAVE_ARRAYS ifdefery.  Replaced all uses of
SCM_HASHTABLE_BUCKETS with SCM_HASHTABLE_BUCKET.

19 years ago(SCM_VALIDATE_VECTOR, SCM_VALIDATE_VECTOR_OR_DVECTOR): use
Marius Vollmer [Sun, 2 Jan 2005 20:46:03 +0000 (20:46 +0000)]
(SCM_VALIDATE_VECTOR, SCM_VALIDATE_VECTOR_OR_DVECTOR): use
scm_is_simple_vector instead of SCM_VECTORP.

19 years ago* sort.c (quicksort): Added INC parameter for non-contigous
Marius Vollmer [Sun, 2 Jan 2005 20:45:07 +0000 (20:45 +0000)]
* sort.c (quicksort): Added INC parameter for non-contigous
vectors.
(quicksort1): New, for contigous vectors.  Both functions are
generated from the same code by including "quicksort.i.c".
(scm_restricted_vector_sort_x): Call one of quicksort and
quicksort1, depending on increment of vector.
(scm_sort): Simply call scm_sort_x on a copy of the list or
vector.
(scm_merge_vector_x, scm_merge_vector_step): Changed indices to
size_t, added inc parameter.
(scm_stable_sort_x): Allocate temporary storage as Scheme vector
so that it doesn't leak.
(scm_stable_sort): Simply call scm_stable_sort_x on a copy of the
list or vector.

* tags.h, weaks.c, vports.c, hashtab.c, convert.c, sort.c: Use new
vector elements API or simple vector API, as appropriate.  Removed
SCM_HAVE_ARRAYS ifdefery.  Replaced all uses of
SCM_HASHTABLE_BUCKETS with SCM_HASHTABLE_BUCKET.

19 years ago* ramap.c (scm_array_map_x): Do not try to convert fill value
Marius Vollmer [Sun, 2 Jan 2005 20:25:26 +0000 (20:25 +0000)]
* ramap.c (scm_array_map_x): Do not try to convert fill value
before filling, any necessary conversion is done while storing.

19 years ago(scm_i_sweep_card): Call scm_i_vector_free instead of doing it inline.
Marius Vollmer [Sun, 2 Jan 2005 20:17:26 +0000 (20:17 +0000)]
(scm_i_sweep_card): Call scm_i_vector_free instead of doing it inline.

19 years ago(SCM_HASHTABLE_BUCKETS): Removed.
Marius Vollmer [Sun, 2 Jan 2005 20:11:15 +0000 (20:11 +0000)]
(SCM_HASHTABLE_BUCKETS): Removed.
(SCM_HASHTABLE_BUCKET, SCM_HASHTABLE_BUCKET_LOC): New.  Replaced
all uses of SCM_HASHTABLE_BUCKETS with SCM_HASHTABLE_BUCKET.

19 years ago* weaks.c: Use new vector elements API or simple vector
Marius Vollmer [Sun, 2 Jan 2005 20:06:08 +0000 (20:06 +0000)]
* weaks.c: Use new vector elements API or simple vector
API, as appropriate.

* srfi-4.h, srfi-4.c, srfi-4.i.c (scm_array_handle_uniform_elements,
scm_array_handle_uniform_writable_elements,
scm_uniform_vector_elements, scm_uniform_vector_writable_elements):
(scm_<foo>vector_elements, scm_<foo>vector_writable_elements): Use
scm_t_array_handle, deliver length and increment.
(scm_array_handle_<foo>_elements,
scm_array_handle_<foo>_writable_elements): New.

* unif.h, unif.c (scm_t_array_handle, scm_array_get_handle,
scm_array_handle_rank, scm_array_handle_dims, scm_array_handle_ref
scm_array_handle_set, scm_array_handle_elements
scm_array_handle_writable_elements, scm_vector_get_handle): New.
(scm_make_uve, scm_array_prototype, scm_list_to_uniform_array,
scm_dimensions_to_uniform_array): Deprecated for real.  (scm_array_p,
scm_i_array_p): Use latter for SCM_DEFINE since snarfing wont allow a
mismatch between C and Scheme arglists.  (scm_make_shared_array,
scm_enclose_array): Correctly use scm_c_generalized_vector_length
instead of scm_uniform_vector_length.

* weaks.h, weaks.c: Use new internal weak vector API from
vectors.h.

* Makefile.am (libguile_la_SOURCES, DOT_X_FILES, DOT_DOC_FILES,
EXTRA_libguile_la_SOURCES): Changed ramap.c and unif.c from being
'extra' to being regular sources.
(noinst_HEADERS): Added quicksort.i.c.
* quicksort.i.c: New file.

* vectors.h, vector.c (SCM_VECTORP, SCM_VECTOR_LENGTH, SCM_VELTS,
SCM_WRITABLE_VELTS, SCM_VECTOR_REF, SCM_VECTOR_SET): Deprecated and
reimplemented.  Replaced all uses with scm_vector_elements,
scm_vector_writable_elements, or SCM_SIMPLE_VECTOR_*, as appropriate.
(scm_is_simple_vector, SCM_SIMPLE_VECTOR_LENGTH,
SCM_SIMPLE_VECTOR_REF, SCM_SIMPLE_VECTOR_SET, SCM_SIMPLE_VECTOR_LOC):
New.  (SCM_VECTOR_BASE, SCM_SET_VECTOR_BASE, SCM_VECTOR_MAX_LENGTH,
SCM_MAKE_VECTOR_TAG, SCM_SET_VECTOR_LENGTH, SCM_VELTS_AS_STACKITEMS,
SCM_SETVELTS, SCM_GC_WRITABLE_VELTS): Removed.  (scm_vector_copy):
New.  (scm_vector_elements, scm_vector_writable_elements): Use
scm_t_array_handle, deliver length and increment.  Moved to
unif.h. Changed all uses.  (scm_vector_release_elements,
scm_vector_release_writable_elements,
(scm_frame_vector_release_elements,
scm_frame_vector_release_writable_elements): Removed.
(SCM_I_IS_VECTOR, SCM_I_VECTOR_ELTS, SCM_I_VECTOR_WELTS,
SCM_I_VECTOR_LENGTH, scm_i_vector_free): New internal API.
(SCM_I_WVECTP SCM_I_WVECT_LENGTH SCM_I_WVECT_VELTS
SCM_I_WVECT_GC_WVELTS SCM_I_WVECT_TYPE SCM_I_WVECT_GC_CHAIN
SCM_I_SET_WVECT_GC_CHAIN, scm_i_allocate_weak_vector): New, for weak
vectors.

19 years ago* gen-scmconfig.h.in (SCM_I_GSC_HAVE_ARRAYS): Removed.
Marius Vollmer [Sun, 2 Jan 2005 19:43:36 +0000 (19:43 +0000)]
* gen-scmconfig.h.in (SCM_I_GSC_HAVE_ARRAYS): Removed.
* gen-scmconfig.c: Hard code SCM_HAVE_ARRAYS to "1".

19 years ago* Makefile.am (libguile_la_SOURCES, DOT_X_FILES, DOT_DOC_FILES,
Marius Vollmer [Sun, 2 Jan 2005 19:16:39 +0000 (19:16 +0000)]
* Makefile.am (libguile_la_SOURCES, DOT_X_FILES, DOT_DOC_FILES,
EXTRA_libguile_la_SOURCES): Changed ramap.c and unif.c from being
'extra' to being regular sources.
(noinst_HEADERS): Added quicksort.i.c.
* quicksort.i.c: New file.

19 years ago* Makefile.am (libguile_la_SOURCES, DOT_X_FILES, DOT_DOC_FILES,
Marius Vollmer [Sun, 2 Jan 2005 18:55:03 +0000 (18:55 +0000)]
* Makefile.am (libguile_la_SOURCES, DOT_X_FILES, DOT_DOC_FILES,
EXTRA_libguile_la_SOURCES): Changed ramap.c and unif.c from being
'extra' to being regular sources.
(noinst_HEADERS): Added quicksort.i.c.
* quicksort.i.c: New file.

19 years ago(SCM_I_GSC_HAVE_ARRAYS): Removed '--disable-arrays' option.
Marius Vollmer [Sun, 2 Jan 2005 18:51:42 +0000 (18:51 +0000)]
(SCM_I_GSC_HAVE_ARRAYS): Removed '--disable-arrays' option.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 1 Jan 2005 23:59:56 +0000 (23:59 +0000)]
*** empty log message ***

19 years ago* posix.texi (Pipes): Expand and clarify a bit. Describe port
Kevin Ryde [Sat, 1 Jan 2005 23:54:46 +0000 (23:54 +0000)]
* posix.texi (Pipes): Expand and clarify a bit.  Describe port
inheritance.  Caution against waitpid WAIT_ANY.

19 years agoAdd some index entries.
Kevin Ryde [Sat, 1 Jan 2005 23:11:08 +0000 (23:11 +0000)]
Add some index entries.

19 years agoAdd "invocation" index entry.
Kevin Ryde [Sat, 1 Jan 2005 23:05:00 +0000 (23:05 +0000)]
Add "invocation" index entry.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 1 Jan 2005 22:57:38 +0000 (22:57 +0000)]
*** empty log message ***

19 years ago(srfi_DATA): Add srfi-39.scm.
Kevin Ryde [Sat, 1 Jan 2005 22:49:03 +0000 (22:49 +0000)]
(srfi_DATA): Add srfi-39.scm.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 1 Jan 2005 22:48:18 +0000 (22:48 +0000)]
*** empty log message ***

19 years agoUse define-module to keep bindings from
Kevin Ryde [Sat, 1 Jan 2005 22:46:43 +0000 (22:46 +0000)]
Use define-module to keep bindings from
subsequent tests, use test-suite lib for stand-alone checking.

19 years ago(SCM_TESTS): Add srfi-39.test.
Kevin Ryde [Sat, 1 Jan 2005 22:45:32 +0000 (22:45 +0000)]
(SCM_TESTS): Add srfi-39.test.

19 years agoProperly close @deftypefn.
Marius Vollmer [Thu, 30 Dec 2004 02:46:58 +0000 (02:46 +0000)]
Properly close @deftypefn.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 29 Dec 2004 18:33:54 +0000 (18:33 +0000)]
*** empty log message ***

19 years ago(make-array, list->array): Removed.
Marius Vollmer [Wed, 29 Dec 2004 18:33:33 +0000 (18:33 +0000)]
(make-array, list->array): Removed.
(uniform-vector-fill!): Prepared to be deprecated.

19 years ago(Arrays): Updated for the new 'typed' approach at creating arrays.
Marius Vollmer [Wed, 29 Dec 2004 18:30:48 +0000 (18:30 +0000)]
(Arrays): Updated for the new 'typed' approach at creating arrays.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 29 Dec 2004 18:25:00 +0000 (18:25 +0000)]
*** empty log message ***

19 years ago* srfi-4.h (scm_i_proc_make_u8vector, scm_i_proc_make_s8vector,
Marius Vollmer [Wed, 29 Dec 2004 18:21:55 +0000 (18:21 +0000)]
* srfi-4.h (scm_i_proc_make_u8vector, scm_i_proc_make_s8vector,
scm_i_proc_make_u16vector, scm_i_proc_make_s16vector,
scm_i_proc_make_u32vector, scm_i_proc_make_s32vector,
scm_i_proc_make_u64vector, scm_i_proc_make_s64vector,
scm_i_proc_make_f32vector, scm_i_proc_make_f64vector,
scm_i_proc_make_c32vector, scm_i_proc_make_c64vector,
uvec_proc_vars): Removed.
(scm_i_generalized_vector_creator): Removed.
(scm_i_generalized_vector_type): New.

* unif.h, unif.c (scm_typed_array_p, scm_make_array,
scm_make_typed_array, scm_array_type, scm_list_to_array,
scm_list_to_typed_array, scm_is_array, scm_is_typed_array): New.
(scm_array_creator): Removed.
(scm_array_p): Deprecated second PROT argument.
(scm_dimensions_to_uniform_array, scm_list_to_uniform_array):
Deprecated, reimplemented in terms of scm_make_typed_array and
scm_list_to_typed_array.
(scm_i_proc_make_vector, scm_i_proc_make_string,
scm_i_proc_make_bitvector): Removed.
(type_creator_table, init_type_creator_table, type_to_creator,
make_typed_vector): New.
(scm_i_convert_old_prototype): Removed.
(prototype_to_type): New.
(scm_make_uve): Deprecated, reimplemented using make_typed_vector.
(scm_array_dimensions): Use scm_list_1 instead of scm_cons for
minor added clarity.
(scm_make_shared_array, scm_ra2contig): Use make_typed_vector
instead of scm_make_uve.
(tag_creator_table, scm_i_tag_to_creator): Removed.
(tag_to_type): New.
(scm_i_read_array): Use scm_list_to_typed_array instead of
scm_list_to_uniform_array.

19 years ago*** empty log message ***
Kevin Ryde [Tue, 28 Dec 2004 00:37:22 +0000 (00:37 +0000)]
*** empty log message ***

19 years ago(SRFI-1 Searching): In any and every, revise for
Kevin Ryde [Tue, 28 Dec 2004 00:36:59 +0000 (00:36 +0000)]
(SRFI-1 Searching): In any and every, revise for
clarity, note last call in each is a tail call.

19 years ago*** empty log message ***
Kevin Ryde [Tue, 28 Dec 2004 00:25:51 +0000 (00:25 +0000)]
*** empty log message ***

19 years agoTypo in integer?
Kevin Ryde [Tue, 28 Dec 2004 00:24:03 +0000 (00:24 +0000)]
Typo in integer?

19 years ago(String Predicates): For string-any and string-every,
Kevin Ryde [Tue, 28 Dec 2004 00:16:58 +0000 (00:16 +0000)]
(String Predicates): For string-any and string-every,
last chars are now tail calls per srfi, and reinstate char_pred can be
character or character set (somehow lost in cut and paste).

19 years agoAdd some index entries.
Kevin Ryde [Tue, 28 Dec 2004 00:13:16 +0000 (00:13 +0000)]
Add some index entries.

19 years agoMove continuation / stack tests to continuations.test, and add save and
Neil Jerram [Mon, 27 Dec 2004 20:17:03 +0000 (20:17 +0000)]
Move continuation / stack tests to continuations.test, and add save and
restore of debug options.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 27 Dec 2004 02:32:37 +0000 (02:32 +0000)]
*** empty log message ***

19 years ago(Vectors, Bit Vectors, Uniform Numeric
Marius Vollmer [Mon, 27 Dec 2004 02:32:25 +0000 (02:32 +0000)]
(Vectors, Bit Vectors, Uniform Numeric
Vectors): Updated for the distinction between read-only and write
access to storage locations.

19 years ago(scm_bitvector_elements): Made return value "const".
Marius Vollmer [Mon, 27 Dec 2004 02:28:38 +0000 (02:28 +0000)]
(scm_bitvector_elements): Made return value "const".
(scm_bitvector_writable_elements): New.
(scm_bitvector_release, scm_bitvector_release_elements):
Renamed former to latter.  Added explicit call to
scm_remember_upto_here_1.
(scm_frame_bitvector_release,
scm_frame_bitvector_release_elements): Renamed former to latter.
(scm_bitvector_release_writable_elements,
scm_bitvector_release_writable_elements): New.
Changed all uses as required by the changes above.

19 years ago* unif.c (scm_bitvector_release): Added explicit call to
Marius Vollmer [Mon, 27 Dec 2004 02:11:16 +0000 (02:11 +0000)]
* unif.c (scm_bitvector_release): Added explicit call to
scm_remember_upto_here_1.

(scm_uniform_vector_elements,
scm_u8vector_elements, etc): Made return value "const".
(scm_uniform_vector_writable_elements,
scm_u8vector_writable_elements, etc): New.
(scm_uniform_vector_release, scm_uniform_vector_release_elements):
Renamed former to latter.  Added explicit call to
scm_remember_upto_here_1.
(scm_frame_uniform_vector_release,
scm_frame_uniform_vector_release_elements): Renamed former to latter.
(scm_uniform_vector_release_writable_elements,
scm_frame_uniform_vector_release_writable_elements): New. Takes
crown of longest identifier yet.
Changed all uses as required by the changes above.

19 years ago(scm_uniform_vector_elements,
Marius Vollmer [Mon, 27 Dec 2004 02:10:14 +0000 (02:10 +0000)]
(scm_uniform_vector_elements,
scm_u8vector_elements, etc): Made return value "const".
(scm_uniform_vector_writable_elements,
scm_u8vector_writable_elements, etc): New.
(scm_uniform_vector_release, scm_uniform_vector_release_elements):
Renamed former to latter.  Added explicit call to
scm_remember_upto_here_1.
(scm_frame_uniform_vector_release,
scm_frame_uniform_vector_release_elements): Renamed former to latter.
(scm_uniform_vector_release_writable_elements,
scm_frame_uniform_vector_release_writable_elements): New. Takes
crown of longest identifier yet.
Changed all uses as required by the changes above.

19 years ago(scm_c_vector_set_x): Make return type
Marius Vollmer [Mon, 27 Dec 2004 02:01:21 +0000 (02:01 +0000)]
(scm_c_vector_set_x): Make return type
void.
(scm_is_vector, scm_vector_p, scm_vector_length,
scm_c_vector_length, scm_vector_ref, scm_c_vector_ref,
scm_vector_set_x, scm_c_vector_set_x, scm_vector_to_list,
scm_vector_move_left_x, scm_vector_move_right_x,
scm_vector_fill_x): handle one-dimensional arrays.
(scm_vector_elements, scm_vector_release_elements,
scm_vector_frame_release_elements, scm_vector_writable_elements,
scm_vector_release_writable_elements,
scm_vector_frame_release_writable_elements): New.
(scm_list_to_vector, scm_vector_to_list, scm_vector_fill,
scm_vector_move_left_x, scm_vector_move_right_x): Use them.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 27 Dec 2004 00:11:43 +0000 (00:11 +0000)]
*** empty log message ***

19 years ago(scm_ramapc, scm_raeql): Use
Marius Vollmer [Mon, 27 Dec 2004 00:09:57 +0000 (00:09 +0000)]
(scm_ramapc, scm_raeql): Use
scm_c_generalized_vector_length instead of
scm_uniform_vector_length.
(scm_ramap, rafe): Use scm_c_vector_ref instead of SCM_VELTS.  use
scm_c_generalized_vector_ref instead of scm_uniform_vector_ref.

19 years ago(scm_c_vector_set_x): Make return type
Marius Vollmer [Mon, 27 Dec 2004 00:00:07 +0000 (00:00 +0000)]
(scm_c_vector_set_x): Make return type
void.
(scm_is_vector, scm_vector_p, scm_vector_length,
scm_c_vector_length, scm_vector_ref, scm_c_vector_ref,
scm_vector_set_x, scm_c_vector_set_x, scm_vector_to_list,
scm_vector_move_left_x, scm_vector_move_right_x,
scm_vector_fill_x): handle one-dimensional arrays.

19 years agoLos typo fixos.
Marius Vollmer [Sun, 26 Dec 2004 23:56:43 +0000 (23:56 +0000)]
Los typo fixos.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 23 Dec 2004 15:32:17 +0000 (15:32 +0000)]
*** empty log message ***

19 years agoNews tests for making stacks from continuations. From Neil Jerram.
Marius Vollmer [Thu, 23 Dec 2004 15:32:02 +0000 (15:32 +0000)]
News tests for making stacks from continuations.  From Neil Jerram.

19 years ago(read_frame, read_frames, scm_make_stack, scm_last_stack_frame,
Marius Vollmer [Thu, 23 Dec 2004 15:30:29 +0000 (15:30 +0000)]
(read_frame, read_frames, scm_make_stack, scm_last_stack_frame,
scm_stack_id): Use the new 'offset' member of continuations instead of
calculating the offset ourselves.  Relocate 'vect' member of
scm_t_debug_frame.

19 years ago(scm_t_contregs): New 'offset' member for relocating debug frames.
Marius Vollmer [Thu, 23 Dec 2004 15:30:16 +0000 (15:30 +0000)]
(scm_t_contregs): New 'offset' member for relocating debug frames.
(scm_make_continuation): Set it.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 22 Dec 2004 15:33:28 +0000 (15:33 +0000)]
*** empty log message ***

19 years ago(Arrays): Reorganized and 'modernized'.
Marius Vollmer [Wed, 22 Dec 2004 15:33:18 +0000 (15:33 +0000)]
(Arrays): Reorganized and 'modernized'.