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

389 commits

Author SHA1 Message Date
Marius Vollmer
1dbd057054 *** empty log message *** 2004-10-26 13:25:31 +00:00
Marius Vollmer
3df24a6e5e (uvec_equalp): Bugfix; multiply length with type size to get the
correct number of bytes to compare with memcmp.
2004-10-26 12:55:36 +00:00
Rob Browning
57d2b89964 Update copyright notice. 2004-09-20 05:50:21 +00:00
Rob Browning
7987378bd3 *** empty log message *** 2004-09-20 05:45:39 +00:00
Rob Browning
bd1759069d Update copyright notice. 2004-09-20 05:44:48 +00:00
Rob Browning
d99217eb04 *** empty log message *** 2004-08-29 23:03:46 +00:00
Rob Browning
e01ebf2451 (s_scm_u32vector_set_x): fix typo in SCM_ASSERT_RANGE call. 2004-08-29 23:01:19 +00:00
Kevin Ryde
3de9c6b6dd *** empty log message *** 2004-08-27 01:28:25 +00:00
Kevin Ryde
56d545b793 (rec): Add missing `error' to else clause.
And fix heading comment.
2004-08-27 01:25:51 +00:00
Marius Vollmer
ffa921b45b *** empty log message *** 2004-08-15 20:41:52 +00:00
cvs2svn
6b6c42cccf This commit was manufactured by cvs2svn to create branch
'branch_release-1-6'.
2004-08-15 20:26:06 +00:00
Marius Vollmer
3514320f60 New, from Jose A Ortega Ruiz. Thanks! 2004-08-15 20:26:05 +00:00
Kevin Ryde
dcb5d76ba3 *** empty log message *** 2004-08-14 00:43:18 +00:00
Kevin Ryde
038a7484b6 *** empty log message *** 2004-08-14 00:39:01 +00:00
Kevin Ryde
788dafed64 (scm_string_any, scm_string_every): Add support for char
and charset as predicates, per SRFI-13 spec.
2004-08-14 00:37:53 +00:00
Kevin Ryde
313f062011 (scm_string_any, scm_string_every): Add support for char
and charset as predicates, per SRFI-13 spec.
2004-08-14 00:36:40 +00:00
Marius Vollmer
c41acab35c *** empty log message *** 2004-08-12 17:52:49 +00:00
Marius Vollmer
57d4d32fa3 (MY_VALIDATE_SUBSTRING_SPEC_COPY, MY_VALIDATE_STRING_COPY): Modernized
clones of the deprecated validation macros.  Replaced every use.
2004-08-12 17:49:59 +00:00
Rob Browning
e31719e641 *** empty log message *** 2004-08-07 17:04:13 +00:00
Rob Browning
eaec153f17 * srfi-4.c: major overhaul -- essentially all functions affected.
Changes fix various type related issues, including 64-bit print
problems.  Uniform vector lengths are now officially a size_t
stored in a cell.
(VALIDATE_UVEC, RANGE_CHECK_AND_COPY_UVEC_INDEX): new macros.
(print_int64, print_uint64, print_uint32): new helper functions.
(uvec_print): reworked to use a union.
(uvec_equalp): new function.
(make_uvec): reworked -- now checks for possible overflow.
(uvec_length): new helper function.

(scm_u8vector_p, scm_make_u8vector, scm_u8vector): reworked.
(scm_u8vector_length): reworked.
(scm_u8vector_ref, scm_u8vector_set_x): reworked.
(scm_u8vector_to_list, scm_list_to_u8vector): reworked.

(scm_s8vector_p, scm_make_s8vector, scm_s8vector): reworked.
(scm_s8vector_length): reworked.
(scm_s8vector_ref, scm_s8vector_set_x): reworked.
(scm_s8vector_to_list, scm_list_to_s8vector): reworked.

(scm_u16vector_p, scm_make_u16vector, scm_u16vector): reworked.
(scm_u16vector_length): reworked.
(scm_u16vector_ref, scm_u16vector_set_x): reworked.
(scm_u16vector_to_list, scm_list_to_u16vector): reworked.

(scm_s16vector_p, scm_make_s16vector, scm_s16vector): reworked.
(scm_s16vector_length): reworked.
(scm_s16vector_ref, scm_s16vector_set_x): reworked.
(scm_s16vector_to_list, scm_list_to_s16vector): reworked.

(scm_u32vector_p, scm_make_u32vector, scm_u32vector): reworked.
(scm_u32vector_length): reworked.
(scm_u32vector_ref, scm_u32vector_set_x): reworked.
(scm_u32vector_to_list, scm_list_to_u32vector): reworked.

(scm_s32vector_p, scm_make_s32vector, scm_s32vector): reworked.
(scm_s32vector_length): reworked.
(scm_s32vector_ref, scm_s32vector_set_x): reworked.
(scm_s32vector_to_list, scm_list_to_s32vector): reworked.

(scm_u64vector_p, scm_make_u64vector, scm_u64vector): reworked.
(scm_u64vector_length): reworked.
(scm_u64vector_ref, scm_u64vector_set_x): reworked.
(scm_u64vector_to_list, scm_list_to_u64vector): reworked.

(scm_s64vector_p, scm_make_s64vector, scm_s64vector): reworked.
(scm_s64vector_length): reworked.
(scm_s64vector_ref, scm_s64vector_set_x): reworked.
(scm_s64vector_to_list, scm_list_to_s64vector): reworked.

(scm_init_srfi_4): added check to make sure a size_t fits in a cell.
2004-08-07 17:03:54 +00:00
Kevin Ryde
03034594e0 *** empty log message *** 2004-08-05 00:13:24 +00:00
Kevin Ryde
46c4d06529 (scm_string_any, scm_string_every): Enhance docstrings as
per doc/ref/srfi-modules.texi.
2004-08-05 00:12:59 +00:00
Marius Vollmer
d9a67fc441 (scm_make_real, scm_num2dbl, scm_float2num, scm_double2num):
Discouraged by moving to discouraged.h and discouraged.c.
Replaced all uses with scm_from_double.
(scm_num2float, scm_num2double): Discouraged by moving prototype
to discouraged.h and rewriting in terms of scm_to_double.
Replaced all uses with scm_to_double.
2004-08-03 15:06:12 +00:00
Marius Vollmer
dbf3eb1f73 *** empty log message *** 2004-08-02 16:20:03 +00:00
Marius Vollmer
506c91a13b Replaced scm_num2* and scm_*2num with scm_to_* and
scm_from_*, respectively.
(print_int64, print_uint64): Rewritten by just calling scm_iprin1
on a SCM.
2004-08-02 16:19:53 +00:00
Kevin Ryde
13aa46a9de *** empty log message *** 2004-08-02 00:32:16 +00:00
Kevin Ryde
71234d0ce9 *** empty log message *** 2004-08-02 00:30:49 +00:00
Kevin Ryde
4e34b8879a (scm_string_every): Correction to initial "res" value,
return should be #t for an empty string.  Reported by Andreas Vögele.
2004-08-02 00:27:35 +00:00
Kevin Ryde
8c0634b7ea (scm_string_every): Correction to initial "res" value,
return should be #t for an empty string.  Reported by Andreas Vögele.
2004-08-02 00:24:36 +00:00
Marius Vollmer
bc36d0502b * tags.h, deprecated.h (SCM_EQ_P): Deprecated by moving it into
deprecated.h.  Replaced all uses with scm_is_eq.
2004-07-27 15:41:49 +00:00
Marius Vollmer
66998138b8 *** empty log message *** 2004-07-10 13:50:41 +00:00
Marius Vollmer
1a161b8ece Changed all uses of SCM_VALIDATE_INUM, SCM_VALIDATE_INUM_COPY,
SCM_VALIDATE_BIGINT, SCM_VALIDATE_INUM_MIN,
SCM_VALIDATE_INUM_MIN_COPY,
SCM_VALIDATE_INUM_MIN_DEF_COPY,SCM_VALIDATE_INUM_DEF,
SCM_VALIDATE_INUM_DEF_COPY, SCM_VALIDATE_INUM_RANGE,
SCM_VALIDATE_INUM_RANGE_COPY to scm_to_size_t or similar.
2004-07-10 13:50:33 +00:00
Marius Vollmer
93ccaef0c6 * numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM to
SCM_I_MAKINUM and changed all uses.
2004-07-08 15:58:11 +00:00
Marius Vollmer
00874d5fb0 Replaced all uses of deprecated SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
SCM_NEGATE_BOOL, and SCM_BOOLP with scm_is_false, scm_is_true,
scm_from_bool, and scm_is_bool, respectively.
2004-07-06 11:02:47 +00:00
Marius Vollmer
054ebf6ca5 *** empty log message *** 2004-07-06 11:02:18 +00:00
Kevin Ryde
ad3e9ceb94 *** empty log message *** 2004-07-05 00:01:48 +00:00
Kevin Ryde
b2e723816a Correction to heading comment. 2004-07-05 00:00:48 +00:00
Kevin Ryde
981e8059b9 *** empty log message *** 2004-07-04 23:58:05 +00:00
Kevin Ryde
c0967f56b0 (uvec_sizes): Add "const". 2004-07-04 23:57:10 +00:00
Rob Browning
48de9bb331 *** empty log message *** 2004-06-20 20:18:25 +00:00
Rob Browning
9d9536fdd8 Add separate symmetric test for SCM_HAVE_T_UINT64 in one case. 2004-06-20 20:18:18 +00:00
Rob Browning
82d5c4b704 *** empty log message *** 2004-06-20 20:14:38 +00:00
Rob Browning
9150491dc3 fix #ifdef checks for 64-bit types; should be #if. 2004-06-20 20:14:23 +00:00
Rob Browning
f5d54eb740 *** empty log message *** 2004-06-20 17:24:42 +00:00
Rob Browning
6b513f4643 (uvec_print): rewrite using a union to make more
compact, and use static print_uint64 and print_int64 to print
64-bit elements.
(print_int64): new static function (temporary fix).
(print_uint64): new static function (temporary fix).
2004-06-20 17:24:04 +00:00
Rob Browning
f8ac37336f *** empty log message *** 2004-06-20 14:49:36 +00:00
Rob Browning
8ad6cdd20c (srfi_DATA): add srfi-31.scm. 2004-06-20 14:48:44 +00:00
Rob Browning
6293838ce4 *** empty log message *** 2004-06-20 14:21:31 +00:00
Rob Browning
e96f5a6efd new file. 2004-06-20 14:19:59 +00:00
Kevin Ryde
8c460409de *** empty log message *** 2004-05-13 21:12:02 +00:00