1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 21:10:27 +02:00
Commit graph

9450 commits

Author SHA1 Message Date
Kevin Ryde
558d5c0346 (append-map, append-map!): Rewrite as simple "apply append" forms, for
tail recursiveness.
2004-12-04 23:05:04 +00:00
Kevin Ryde
a52ef9e4a0 (filter-map): New tests. 2004-12-04 22:47:12 +00:00
Kevin Ryde
a3e856f275 (SRFI-1 Length Append etc): In concatenate, note equivalence to "apply append". 2004-12-04 22:43:51 +00:00
Kevin Ryde
da9c77cf05 *** empty log message *** 2004-12-04 22:37:03 +00:00
Kevin Ryde
0d09b3ff64 (filter-map): Change to a tail-recursive form. 2004-12-04 22:35:30 +00:00
Marius Vollmer
f41c11421c *** empty log message *** 2004-12-01 00:02:47 +00:00
Marius Vollmer
ac5d303b6c * boot-9.scm (app, %app): Renamed former to the latter.
Previously, 'app' was reserved in every module.  Now '%app' is
reserved, which is slightly better.  The real fix is to not use
'local-ref' etc to find modules.  Changed all uses.
* syncase.scm: Changed 'app' to '%app'.
2004-12-01 00:02:24 +00:00
Kevin Ryde
446d320c8e *** empty log message *** 2004-11-29 21:16:54 +00:00
Kevin Ryde
083ff9955e (NetBSD): Test __m68k__ and __arm__ as well as m68k and
arm32.  Reported by Greg Troxel.
2004-11-29 21:13:57 +00:00
Kevin Ryde
7674622e45 *** empty log message *** 2004-11-27 20:06:23 +00:00
Kevin Ryde
8c962eb306 (AC_SUBST): Correction, LTDLINC should be LTDLINCL, the
latter is what libtool defines.
2004-11-27 20:05:52 +00:00
Marius Vollmer
f26547600b *** empty log message *** 2004-11-14 00:25:10 +00:00
Marius Vollmer
2d4d7f27ae (scm_i_cvref): Made non-static for ramap.c. 2004-11-14 00:23:08 +00:00
Marius Vollmer
dd893484ec (INCLUDES): It is "@LTDLINCL@", not "@LTDLINC@". 2004-11-14 00:18:26 +00:00
Marius Vollmer
d550e35f37 *** empty log message *** 2004-11-12 19:00:36 +00:00
Marius Vollmer
bd6713d5ea Replaced uniform-array-set1! with just array-set!. Do not check
improper index lists, which can't arise with uarray-set!.  Use
"#s16()" instead of "#h()".
2004-11-12 19:00:22 +00:00
Marius Vollmer
5c4b4321a2 Do not use prototypes, use creator functions. 2004-11-12 18:57:12 +00:00
Marius Vollmer
02339e5b9b (scm_tc16_enclosed_array, SCM_ENCLOSED_ARRAYP):
New.
(exactly_one_third, singp): Removed.
(scm_array_p, scm_array_dimensions, scm_shared_array_root,
scm_shared_array_offset, scm_shared_array_increments): Handle
enclosed arrays explicitely.
(scm_array_rank): Likewise. Also, do not return zero for
non-arrays, signal an error instead since arrays with rank zero do
exist.
(scm_i_make_ra): New, for specifying the tag of the new array.
(scm_make_enclosed_array): Use it.
(scm_make_ra): Reimplemented in terms of scm_i_make_ra.
(scm_make_shared_array): Use scm_c_generalized_vector_length
instead of scm_uniform_vector_length.
(scm_array_in_bounds_p): Rewritten to be much cleaner.
(scm_i_cvref): New, doing the job of scm_cvref.
(scm_cvref): Use scm_i_cvref.
(scm_array_ref): Do not accept non-arrays when no indices are
given. Use scm_i_cvref to do the actual access.
("uniform-array-set1"): Do not register.
(scm_array_set_x, scm_uniform_array_read_x,
scm_uniform_array_write): Handle enclosed arrays explicitly.
(ra2l): Use scm_i_cvref instead of scm_uniform_vector_ref to also
handle enclosed arrays.
(scm_array_to_list): Handle enclosed arrays explicitly.
(rapr1): Removed.
(scm_i_print_array_dimension): Use scm_i_cvref to also handle
enclosed arrays.
(scm_i_print_enclosed_array): New.
(tag_proto_table, tag_creator_table): Renamed former to latter.
Added "a" and "b" for strings and bitvectors, resp.
(scm_i_tag_to_prototype, scm_i_tag_to_creator): Renamed former to
latter.  Tag "a" is in the table now, no need to handle it as a
legacy tag.
(scm_raprin1): Just call scm_iprin1.
(scm_array_creator, scm_array_prototype): Handle enclosed arrays
explicitly.
(scm_init_unif): Initialize scm_tc16_enclosed_array smob.
Use scm_i_print_array as printer for scm_tc16_array.
2004-11-12 18:55:25 +00:00
Marius Vollmer
4049959855 Updated cross reference to Arrays. 2004-11-10 16:00:17 +00:00
Marius Vollmer
f27a256499 More harsh words about non-compatibilities... 2004-11-10 01:57:37 +00:00
Marius Vollmer
823086c18b *** empty log message *** 2004-11-10 01:57:04 +00:00
Marius Vollmer
03a5397a53 Changed all uses of scm_array_prototype to
scm_array_creator. (scm_i_get_old_prototype): Signal error when no
prototype is known.
(scm_uniform_array_read_x, scm_uniform_array_write): Reimplemented
in terms of scm_uniform_vector_read_x and
scm_uniform_vector_write, respectively.  Strings and
bitvector support has been dropped.
2004-11-10 01:55:26 +00:00
Marius Vollmer
b4b3363620 (cind): Changed second arg to be pointer to long instead
of uniform vector.
(scm_ramapc): Allocate index vector with scm_malloc and not as
uniform vector.  Wrap it in a frameso that it gets properly freed.
(scm_array_index_map_x): Likewise.
2004-11-10 01:47:44 +00:00
Marius Vollmer
2ed348854d *** empty log message *** 2004-11-10 01:03:43 +00:00
Marius Vollmer
b7698d68e9 (uniform-vector-read!, uniform-vector-write):
Removed.
2004-11-10 01:03:23 +00:00
Marius Vollmer
69730f92ca Do not include <libguile.h>, include the
needed files directly.  Include config.h, <unistd.h> and <io.h>
when available.
(scm_uniform_vector_read_x, scm_uniform_vector_write): New.
2004-11-10 01:02:32 +00:00
Marius Vollmer
2c72f25301 *** empty log message *** 2004-11-09 22:12:33 +00:00
Marius Vollmer
65b39e8ab7 (gh_uniform_vector_length): Properly use scm_c_uniform_vector_length
instead of scm_uniform_vector_length.
2004-11-09 22:10:59 +00:00
Marius Vollmer
3cc0a2961f *** empty log message *** 2004-11-09 16:17:20 +00:00
Marius Vollmer
20930f28b3 (scm_bitvector_p, scm_bitvector,
scm_make_bitvector, scm_bitvector_length, scm_bitvector_ref,
scm_bitvector_set_x, scm_list_to_bitvector, scm_bitvector_to_list,
scm_bitvector_fill_x, scm_is_bitvector, scm_c_make_bitvector,
scm_c_bitvector_length, scm_c_bitvector_ref,
scm_c_bitvector_set_x, scm_bitvector_elements,
scm_bitvector_release, scm_frame_bitvector_release,
scm_tc16_bitvector, bitvector_free, bitvector_print,
bitvector_equalp, count_ones, find_first_one): New.
(scm_bit_count, scm_bit_position, scm_bit_set_star_x,
scm_bit_count_star, scm_bit_invert_x, scm_istr2bve): Rewritten
using the new C API for bitvectors and maybe count_ones or
find_first_one, as appropriate.
(SCM_I_MAX_LENGTH, SCM_BITVECTOR_P, SCM_BITVECTOR_BASE,
SCM_SET_BITVECTOR_BASE, SCM_BITVECTOR_MAX_LENGTH,
SCM_BITVECTOR_LENGTH, SCM_MAKE_BITVECTOR_TAG,
SCM_SET_BITVECTOR_LENGTH): Removed.  Replaced all uses with the
new functions from above.
(scm_i_proc_make_vector, scm_i_proc_make_string,
scm_i_proc_make_bitvector): Made non-static for use in
scm_i_generalized_vector_creator.
(scm_make_u1vector): Removed, replaced by scm_make_bitvector.
(scm_make_uve): Validate that the created object is a generalized
vector.
(scm_i_legacy_tag): Removed.
(scm_i_print_array): Do it here.
(scm_raprin1): Only print enclosed arrays.
2004-11-09 16:16:19 +00:00
Marius Vollmer
887975809f (scm_is_vector, scm_c_vector_length, scm_c_vector_ref,
scm_c_vector_set_x, scm_generalized_vector_p,
scm_generalized_vector_length, scm_generalized_vector_ref,
scm_generalized_vector_set_x, scm_generalized_vector_to_list,
scm_is_generalized_vector, scm_c_generalized_vector_length,
scm_c_generalized_vector_ref, scm_c_generalized_vector_set_x): New.
2004-11-09 16:14:46 +00:00
Marius Vollmer
399aba0a2b Use the new generalized vector functions to handle all
vector like things.
2004-11-09 16:14:33 +00:00
Marius Vollmer
241b64d63f Do no longer handle scm_tc7_bvect bitvectors. 2004-11-09 16:14:22 +00:00
Marius Vollmer
6cf0f51de8 (scm_tc7_bvect): Renamed to scm_tc7_unused7, renaming the
remaining scm_tc7_unused tags to get a neatly ordered list.
2004-11-09 16:14:09 +00:00
Marius Vollmer
811eb6d0ee (scm_c_uniform_vector_ref, scm_c_uniform_vector_set_x): New.
(scm_i_uniform_vector_creator): Removed.
(scm_i_generalized_vector_creator): New.
(scm_uniform_vector_length, scm_uniform_element_size): Do not
handle generalized vectors, only uniform numeric vectors.
(alloc_uvec): Do length check here...
(make_uvec): ...but not here.
(coerce_to_uvec): Use new generalized vector functions to handle
all kinds of vectors in one go.
2004-11-09 16:13:58 +00:00
Marius Vollmer
1d227e527a (DOT_DOC_FILES): Added srfi-4.doc. 2004-11-09 13:55:20 +00:00
Marius Vollmer
51c45eb666 *** empty log message *** 2004-11-09 13:54:32 +00:00
Marius Vollmer
a04906d98d (process-multiline-directive): Allow the fname attribute to a sequence
of strings and append them all to form the fname.  This is needed for
string literals like "u8""vector?".
2004-11-09 13:54:22 +00:00
Marius Vollmer
d233b123d0 More stuff about arrays and vectors. 2004-11-09 13:48:14 +00:00
Marius Vollmer
714682a353 Synchronized from libguile/guile.texi 2004-11-09 13:44:54 +00:00
Marius Vollmer
50d520d99d *** empty log message *** 2004-11-09 13:44:14 +00:00
Marius Vollmer
3dd6e0cf19 Minor updates. 2004-11-09 13:43:47 +00:00
Marius Vollmer
61eed96070 (Generalized Vectors): New.
(Bit Vectors): More docs.
(Uniform Vectors): Call them Uniform numeric vectors.
2004-11-09 13:43:14 +00:00
Marius Vollmer
38d572f57b *** empty log message *** 2004-11-05 15:31:31 +00:00
Marius Vollmer
6e4de0cc04 Use @ifnottex instead of @ifinfo around the "Top" node declaration so
that html can be generated.  Use only lower case inside @sc.  Move
editors outside of author table, which looks better in html.
2004-11-05 15:31:23 +00:00
Marius Vollmer
a2b6a0e7f2 *** empty log message *** 2004-11-05 14:50:16 +00:00
Marius Vollmer
0ec78e1546 Do not add "." to %load-path. 'load' will still be able to load files
in the current directory, but 'use-modules' etc will not.
2004-11-05 14:49:56 +00:00
Marius Vollmer
1f2328fec2 *** empty log message *** 2004-11-04 17:08:37 +00:00
Marius Vollmer
66842ba3d5 (scm_charnames, scm_charnums): Added "sp" as an alias for "space".
Thanks to Bruce Korb!
2004-11-04 17:08:26 +00:00
Marius Vollmer
b0780bc595 (make_uvec): Use SCM_I_SIZE_MAX instead of SIZE_MAX for added
portability.
2004-11-04 17:07:42 +00:00