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

10478 commits

Author SHA1 Message Date
Kevin Ryde
fdc6aebfaf (string-any, string-every): Use a scheme
wrapper around the C code so for the final call to the predicate
procedure is a tail call, per SRFI-13 spec.
2004-12-14 00:21:25 +00:00
Kevin Ryde
680b523714 *** empty log message *** 2004-12-13 22:40:08 +00:00
Kevin Ryde
a13befdcd3 (Regexp Functions): Revise regex-substitute and
regex-substitute/global for clarity, add some examples.
2004-12-13 22:37:31 +00:00
Kevin Ryde
edcd3e83d3 (lambda* Reference): Revise for clarity, note
how #:rest works with #:key, note previous bindings available to
default expressions.
2004-12-13 22:29:45 +00:00
Kevin Ryde
4450a22762 More of:
(scm_eq_p, scm_eqv_p, scm_equal_p): Update docstrings from
recent revision to the reference manual.
2004-12-10 00:49:51 +00:00
Kevin Ryde
86347b2bf3 *** empty log message *** 2004-12-10 00:42:42 +00:00
Kevin Ryde
3810edd92c (inet-pton): New tests. 2004-12-10 00:42:20 +00:00
Kevin Ryde
2b4d15471c (scm_from_ipv6): Just use mpz_import. Don't bother trying
to fit scm_from_ulong_long, since that uses mpz_import anyway.  Don't
bother trying to fit scm_from_ulong, not really worth the trouble if
addresses are more than 4 bytes usually.
2004-12-10 00:41:33 +00:00
Kevin Ryde
66b1c775d2 (scm_modulo): Amend fixme comment about negative divisor
with "%", C99 says it's well-defined.
2004-12-10 00:00:27 +00:00
Kevin Ryde
602d32dd48 (scm_eq_p, scm_eqv_p, scm_equal_p): Update docstrings from
recent revision to the reference manual.
2004-12-09 23:49:46 +00:00
Kevin Ryde
ff758237f7 Let the string->number documented? test say "documented?". 2004-12-08 23:09:15 +00:00
Kevin Ryde
b9e1ef086b *** empty log message *** 2004-12-06 00:51:00 +00:00
Kevin Ryde
371e3f7778 *** empty log message *** 2004-12-06 00:44:44 +00:00
Kevin Ryde
f0d1bc09cf (break): New tests. 2004-12-06 00:41:41 +00:00
Kevin Ryde
ba94ef0c7f (break): Change to a tail-recursive form. 2004-12-06 00:39:27 +00:00
Kevin Ryde
379b03074e (span): Change to a tail-recursive form. 2004-12-06 00:34:53 +00:00
Kevin Ryde
ee0301df8c (span): New tests. 2004-12-06 00:33:40 +00:00
Kevin Ryde
872223a898 (alist-delete): New tests. 2004-12-06 00:12:00 +00:00
Kevin Ryde
49ae1e250f (alist-delete): Change to a tail-recursive form. 2004-12-06 00:09:14 +00:00
Kevin Ryde
41ab236c76 (alist-delete): Correction to equality proc call argument
order, spec is for given KEY param first.
2004-12-05 23:53:20 +00:00
Kevin Ryde
6d7db38196 *** empty log message *** 2004-12-05 21:57:44 +00:00
Kevin Ryde
f9a95cfe2a (alist-copy): New tests. 2004-12-05 21:49:48 +00:00
Kevin Ryde
64f7942092 *** empty log message *** 2004-12-05 21:44:53 +00:00
Kevin Ryde
aa0745cc05 (alist-copy): Change to a tail-recursive form. 2004-12-05 21:44:18 +00:00
Kevin Ryde
b802470747 *** empty log message *** 2004-12-05 00:56:26 +00:00
Kevin Ryde
eadc07b568 *** empty log message *** 2004-12-04 23:18:17 +00:00
Kevin Ryde
8b981efda4 (append-map, append-map!): Rewrite as simple "concatenate map" forms,
for tail recursiveness.
2004-12-04 23:16:52 +00:00
Kevin Ryde
bbd1b480f4 (append-map): New tests. 2004-12-04 23:10:39 +00:00
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