1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-04 22:40:25 +02:00
Commit graph

9450 commits

Author SHA1 Message Date
Kevin Ryde
677104a65c *** empty log message *** 2004-07-09 22:27:47 +00:00
Kevin Ryde
08ee6abd86 * tests/hash.test: New file.
* Makefile.am (SCM_TESTS): Add it.
2004-07-09 22:16:04 +00:00
Kevin Ryde
40339d6b6f New file. 2004-07-09 22:14:19 +00:00
Kevin Ryde
803d27f9d0 (scm_hashq, scm_hashv, scm_hash): Restrict to size>=1 rather
than size>=0, since 0<=hash<size cannot be satisfied for size==0, and
such a size causes divide-by-zeros in scm_hasher.
2004-07-09 22:08:43 +00:00
Marius Vollmer
b7341ea454 *** empty log message *** 2004-07-08 22:53:33 +00:00
Marius Vollmer
af3d28494d Bugfix: set SCM_I_GSC_T_UINTMAX, not SCM_I_GSC_T_INTMAX in two places. 2004-07-08 22:50:45 +00:00
Marius Vollmer
aacc831855 *** empty log message *** 2004-07-08 16:03:45 +00:00
Marius Vollmer
79e9bca7e9 Use scm_from_int instead of SCM_MAKINUM and scm_is_eq instead
SCM_EQ_P.
2004-07-08 16:03:01 +00:00
Marius Vollmer
67b74a4c3e (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Removed and used SCM_I_LLONG_MIN
etc. instead.

* numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM to
SCM_I_MAKINUM and changed all uses.
2004-07-08 16:01:02 +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
43240c9caf *** empty log message *** 2004-07-08 15:54:40 +00:00
Marius Vollmer
d956fa6f91 (scm_is_signed_integer, scm_is_unsigned_integer):
Rewritten using the same logic as scm_to_signed_integer and
scm_to_unsigned_integer, respectively, which is better(tm).  Also,
use CHAR_BIT instead of hardcoding 8.
(LLONG_MIN, LLONG_MAX, ULLONG_MAX): Removed and used
SCM_I_LLONG_MIN etc. instead.

* numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM to
SCM_I_MAKINUM and changed all uses.
2004-07-08 15:54:05 +00:00
Marius Vollmer
5a572ca13c * numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM to
SCM_I_MAKINUM and changed all uses.
* deprecated.h, deprecated.c (SCM_MAKINUM): Newly deprecated.
2004-07-08 15:41:48 +00:00
Marius Vollmer
d199059254 Instead of hard-coding the numbers, compute them by assuming
twos-complement.
2004-07-08 15:31:39 +00:00
Marius Vollmer
11c8f7296b *** empty log message *** 2004-07-07 15:40:25 +00:00
Marius Vollmer
4e2b1f342d * scheme-data.texi (Integers): Added docs for the new scm_is_,
scm_to_ and scm_from_ functions for integers.
2004-07-07 15:39:21 +00:00
Marius Vollmer
e63a059cce Remove superflous @end example. 2004-07-07 15:32:02 +00:00
Marius Vollmer
c9eb03bb73 *** empty log message *** 2004-07-07 15:27:21 +00:00
Marius Vollmer
afdb04ef18 Don't define SCM_T_INTMAX_MIN,
etc, they are now provided by libuile.h.
(test_int_sizes): New.
2004-07-07 15:25:23 +00:00
Marius Vollmer
22008a7804 (scm_to_short, scm_to_ushort): It's SHRT_MIN, etc, not SHORT_MIN.
(scm_to_size_t): Use SIZE_MAX instead of cooking our own.
(scm_to_long_long, scm_to_ulong_long, scm_to_int8, scm_to_uint8,
scm_to_int16, scm_to_uint16, scm_to_int32, scm_to_uint32,
scm_to_int64, scm_to_uint64, scm_to_intmax, scm_to_uintmax,
scm_from_long_long, scm_from_ulong_long, scm_from_int8,
scm_from_uint8, scm_from_int16, scm_from_uint16, scm_from_int32,
scm_from_uint32, scm_from_int64, scm_from_uint64, scm_from_intmax,
scm_from_uintmax): New.
2004-07-07 15:22:56 +00:00
Marius Vollmer
76bd98fa16 * gen-scmconfig.h.in: Added all the new SCM_I_GSC_*_LIMITS that
configure now produces.
* gen-scmconfig.c: Use them to output SCM_T_INT8_MIN, etc
definitions, giving the limits of the integer types defined by
Guile. Also, output a hard coded SCM_I_LLONG_MIN, etc since
LLONG_MIN or LONG_LONG_MIN is hard to get at.
2004-07-07 15:18:31 +00:00
Marius Vollmer
e5b8d4ddba Added all the new SCM_I_GSC_*_LIMITS that configure now produces. 2004-07-07 15:16:20 +00:00
Marius Vollmer
6aa84fddd0 When checking for suitable types for scm_t_int8, etc, try int8_t
first, so that we pick them up when they are defined.  Also,
substitute limit macros like INT8_MIN into the configure header for
all these types.
2004-07-07 15:08:21 +00:00
Marius Vollmer
39852ceae5 *** empty log message *** 2004-07-07 12:18:18 +00:00
Marius Vollmer
3f7e8708b4 (How Guile does it): Mark as being in limbo. All
the real documentation will be in the nodes "Programming in C" and
"API Reference".
(Boolean Data): Just refer to node "Booleans".
2004-07-07 12:17:41 +00:00
Marius Vollmer
f50e11ca3e Replace references to SCM_NFALSEP, etc with scm_is_true, etc. 2004-07-07 12:09:57 +00:00
Marius Vollmer
33e57bbd8b *** empty log message *** 2004-07-07 07:43:07 +00:00
Marius Vollmer
c67fd6ec36 (Booleans): Flag all function-like definitions as "C Functions". 2004-07-07 07:39:10 +00:00
Marius Vollmer
c309617ce7 *** empty log message *** 2004-07-06 14:23:15 +00:00
Marius Vollmer
48c8d9c74e Added scm_is_eq, scm_eq_p, scm_eqv_p, and scm_equal_p. 2004-07-06 14:22:11 +00:00
Marius Vollmer
ef53cad458 Remove non-R5RS stuff from the 'rn' index. 2004-07-06 14:21:46 +00:00
Marius Vollmer
9b5eee309e *** empty log message *** 2004-07-06 13:20:07 +00:00
Marius Vollmer
66dd7f149c 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 13:19:42 +00:00
Marius Vollmer
170bb182fa New file. 2004-07-06 13:13:37 +00:00
Marius Vollmer
2aac7a4825 Added test-conversion to the TESTS. 2004-07-06 13:13:14 +00:00
Marius Vollmer
9cb7d02b42 *** empty log message *** 2004-07-06 12:02:59 +00:00
Marius Vollmer
590f893b3b *** empty log message *** 2004-07-06 11:52:50 +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
Marius Vollmer
7888309be8 * deprecated.h, boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
SCM_NEGATE_BOOL, SCM_BOOLP): Deprecated by moving into "deprecated.h".
Replaced all uses with scm_is_false, scm_is_true, scm_from_bool, and
scm_is_bool, respectively.
2004-07-06 10:59:25 +00:00
Marius Vollmer
9c293a3d2f (scm_is_eq): New. 2004-07-06 10:42:33 +00:00
Marius Vollmer
1fe56d60fd (scm_is_bool): Fix typo.
* deprecated.h, boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
SCM_NEGATE_BOOL, SCM_BOOLP): Deprecated by moving into "deprecated.h".
Replaced all uses with scm_is_false, scm_is_true, scm_from_bool, and
scm_is_bool, respectively.
2004-07-06 10:25:37 +00:00
Marius Vollmer
73e4de09b9 (scm_is_integer, scm_is_signed_integer, scm_is_unsigned_integer,
scm_to_signed_integer, scm_to_unsigned_integer, scm_to_schar,
scm_to_uchar, scm_to_char, scm_to_short, scm_to_ushort, scm_to_long,
scm_to_ulong, scm_to_size_t, scm_to_ssize_t, scm_from_schar,
scm_from_uchar, scm_from_char, scm_from_short, scm_from_ushort,
scm_from_int, scm_from_uint, scm_from_long, scm_from_ulong,
scm_from_size_t, scm_from_ssize_t, scm_is_real, scm_to_double,
scm_from_double): New.

* deprecated.h, boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
SCM_NEGATE_BOOL, SCM_BOOLP): Deprecated by moving into "deprecated.h".
Replaced all uses with scm_is_false, scm_is_true, scm_from_bool, and
scm_is_bool, respectively.
2004-07-06 10:23:30 +00:00
Marius Vollmer
ede310d888 * deprecated.h, boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
SCM_NEGATE_BOOL, SCM_BOOLP): Deprecated by moving into
"deprecated.h".  Replaced all uses with scm_is_false, scm_is_true,
scm_from_bool, and scm_is_bool, respectively.

* boolean.h (scm_is_bool): Fix bug in prototype.
(scm_from_bool): The argument is "x" not "f", stupid.
2004-07-06 10:05:45 +00:00
Marius Vollmer
0954f871cd *** empty log message *** 2004-07-06 09:54:35 +00:00
Marius Vollmer
71ab4b5057 *** empty log message *** 2004-07-05 17:38:19 +00:00
Marius Vollmer
103f4adfbf (Booleans): Added reference entries for scm_is_true, scm_is_false,
scm_is_bool, scm_from_bool, and scm_to_bool.
2004-07-05 17:37:41 +00:00
Marius Vollmer
800570a6c7 *** empty log message *** 2004-07-05 17:14:23 +00:00
Marius Vollmer
3a684cc6c9 (scm_is_true, scm_is_false, scm_from_bool, scm_to_bool): New. 2004-07-05 17:13:39 +00:00
Kevin Ryde
e4e249c1b8 *** empty log message *** 2004-07-05 00:21:24 +00:00