bpt/guile.git
19 years ago * error.c (scm_strerror): Use scm_i_misc_mutex around strerror since
Kevin Ryde [Sat, 31 Jul 2004 01:12:24 +0000 (01:12 +0000)]
* error.c (scm_strerror): Use scm_i_misc_mutex around strerror since
it's not thread safe.
(scm_syserror): Use scm_strerror rather than SCM_I_STRERROR, to take
advantage of this.
* fports.c (scm_open_file): Use scm_strerror likewise.

19 years ago(scm_strerror): Use scm_i_misc_mutex around strerror since
Kevin Ryde [Sat, 31 Jul 2004 01:11:15 +0000 (01:11 +0000)]
(scm_strerror): Use scm_i_misc_mutex around strerror since
it's not thread safe.
(scm_syserror): Use scm_strerror rather than SCM_I_STRERROR, to take
advantage of this.

19 years ago(scm_gensym): Use scm_i_misc_mutex around gensym_counter
Kevin Ryde [Sat, 31 Jul 2004 01:08:20 +0000 (01:08 +0000)]
(scm_gensym): Use scm_i_misc_mutex around gensym_counter
update, for thread safety.
(gensym_counter): Move into scm_gensym which is its only user.
(scm_init_symbols): No need to explicitly initialize gensym_counter.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 30 Jul 2004 12:39:36 +0000 (12:39 +0000)]
*** empty log message ***

19 years ago(Formatted Output): Changed @w to @w{} in itemize. The former doesn't
Marius Vollmer [Fri, 30 Jul 2004 12:39:29 +0000 (12:39 +0000)]
(Formatted Output): Changed @w to @w{} in itemize.  The former doesn't
work for some reason...

19 years ago*** empty log message ***
Marius Vollmer [Thu, 29 Jul 2004 15:49:04 +0000 (15:49 +0000)]
*** empty log message ***

19 years ago* gen-scmconfig.c (SCM_SIZEOF_INTMAX, SCM_SIZEOF_SIZE_T): New.
Marius Vollmer [Thu, 29 Jul 2004 15:48:54 +0000 (15:48 +0000)]
* gen-scmconfig.c (SCM_SIZEOF_INTMAX, SCM_SIZEOF_SIZE_T): New.

19 years ago* numbers.h (scm_to_schar, scm_to_uchar, scm_to_char,
Marius Vollmer [Thu, 29 Jul 2004 15:48:44 +0000 (15:48 +0000)]
* numbers.h (scm_to_schar, scm_to_uchar, scm_to_char,
scm_to_short, scm_to_ushort, scm_to_int, scm_to_uint, scm_to_long,
scm_to_ulong, scm_to_long_long, scm_to_ulong_long, scm_to_intmax,
scm_to_uintmax, 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_long_long, scm_from_ulong_long, scm_from_intmax,
scm_from_uintmax, scm_from_size_t, scm_from_ssize_t): No longer
defined in terms of scm_to_signed_integer, etc, but in terms of
scm_to_int8, etc.

19 years agoCheck for sizes of size_t and intmax_t.
Marius Vollmer [Thu, 29 Jul 2004 15:44:01 +0000 (15:44 +0000)]
Check for sizes of size_t and intmax_t.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 29 Jul 2004 14:14:18 +0000 (14:14 +0000)]
*** empty log message ***

19 years agoMany more tests for the integer conversion functions.
Marius Vollmer [Thu, 29 Jul 2004 14:13:59 +0000 (14:13 +0000)]
Many more tests for the integer conversion functions.

19 years agoBugfix: logic in detecting ptrdiff_t was inverted;
Marius Vollmer [Thu, 29 Jul 2004 14:13:20 +0000 (14:13 +0000)]
Bugfix: logic in detecting ptrdiff_t was inverted;
assume ptrdiff_t is available when its size is non-zero, not when
it is zero.  Do no longer define SCM_I_GSC_*_LIMITS macros.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 29 Jul 2004 14:04:02 +0000 (14:04 +0000)]
*** empty log message ***

19 years ago* __scm.h (SCM_I_UTYPE_MAX, SCM_I_TYPE_MAX, SCM_I_TYPE_MIN,
Marius Vollmer [Thu, 29 Jul 2004 14:03:40 +0000 (14:03 +0000)]
* __scm.h (SCM_I_UTYPE_MAX, SCM_I_TYPE_MAX, SCM_I_TYPE_MIN,
SCM_I_SIZE_MAX, SCM_I_SSIZE_MIN, SCM_I_SSIZE_MAX): New.

* __scm.h, gen-scmconfig.c (SCM_I_LLONG_MAX, SCM_I_LLONG_MIN,
SCM_I_ULLONG_MAX, SCM_T_INT8_MIN, SCM_T_INT8_MAX, SCM_T_UINT8_MAX,
SCM_T_INT16_MIN, SCM_T_INT16_MAX, SCM_T_UINT16_MAX,
SCM_T_INT32_MIN, SCM_T_INT32_MAX, SCM_T_UINT32_MAX,
SCM_T_INT64_MIN, SCM_T_INT64_MAX, SCM_T_UINT64_MAX,
SCM_T_INTMAX_MIN, SCM_T_INTMAX_MAX, SCM_T_UINTMAX_MAX): Moved
definition into __scm.h, using new SCM_I_TYPE_MIN, etc.

19 years agoRemoved SCM_I_GSC_*_LIMITS macros, they are no longer used.
Marius Vollmer [Thu, 29 Jul 2004 14:03:30 +0000 (14:03 +0000)]
Removed SCM_I_GSC_*_LIMITS macros, they are no longer used.

19 years agoAdded docs.
Marius Vollmer [Thu, 29 Jul 2004 13:54:15 +0000 (13:54 +0000)]
Added docs.

19 years ago(noinst_HEADERS): Added conv-integer.i.c and conv-uinteger.i.c.
Marius Vollmer [Thu, 29 Jul 2004 13:43:49 +0000 (13:43 +0000)]
(noinst_HEADERS): Added conv-integer.i.c and conv-uinteger.i.c.

19 years ago* conv-integer.i.c, conv-uinteger.i.c: New files, used to generate
Marius Vollmer [Thu, 29 Jul 2004 13:42:50 +0000 (13:42 +0000)]
* conv-integer.i.c, conv-uinteger.i.c: New files, used to generate
the functions below.

* numbers.c, numbers.h (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_from_int8, scm_from_uint8, scm_from_int16,
scm_from_uint16, scm_from_int32, scm_from_uint32, scm_from_int64,
scm_from_uint64): Turned from macros into proper functions.
(scm_to_signed_integer, scm_to_unsigned_integer,
scm_from_signed_integer, scm_from_unsigned_integer): Generate via
conv-integer.i.c and conv-uinteger.i.c, as well.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 29 Jul 2004 00:19:17 +0000 (00:19 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Kevin Ryde [Thu, 29 Jul 2004 00:13:22 +0000 (00:13 +0000)]
*** empty log message ***

19 years ago(scm_ttyname): Use scm_i_misc_mutex for thread safety.
Kevin Ryde [Thu, 29 Jul 2004 00:12:25 +0000 (00:12 +0000)]
(scm_ttyname): Use scm_i_misc_mutex for thread safety.

19 years ago(What is libguile): Correction to
Kevin Ryde [Wed, 28 Jul 2004 23:52:17 +0000 (23:52 +0000)]
(What is libguile): Correction to
reference manual "Data representation" cross reference.

19 years ago*** empty log message ***
Kevin Ryde [Wed, 28 Jul 2004 00:54:29 +0000 (00:54 +0000)]
*** empty log message ***

19 years ago(Formatted Output): Rewrite, describing escapes
Kevin Ryde [Wed, 28 Jul 2004 00:54:04 +0000 (00:54 +0000)]
(Formatted Output): Rewrite, describing escapes
and parameters in detail.

19 years ago(@le, @ge): New macros for ifnottex.
Kevin Ryde [Wed, 28 Jul 2004 00:53:09 +0000 (00:53 +0000)]
(@le, @ge): New macros for ifnottex.

19 years ago*** empty log message ***
Kevin Ryde [Tue, 27 Jul 2004 23:47:16 +0000 (23:47 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Kevin Ryde [Tue, 27 Jul 2004 23:38:20 +0000 (23:38 +0000)]
*** empty log message ***

19 years ago(scm_array_set_x): For svect, use scm_num2short for
Kevin Ryde [Tue, 27 Jul 2004 23:36:35 +0000 (23:36 +0000)]
(scm_array_set_x): For svect, use scm_num2short for
consistency with other vector types and to get arg and func name into
error message.

19 years ago(array-set!): Exercise svect value range check.
Kevin Ryde [Tue, 27 Jul 2004 23:27:51 +0000 (23:27 +0000)]
(array-set!): Exercise svect value range check.

19 years ago*** empty log message ***
Kevin Ryde [Tue, 27 Jul 2004 23:11:33 +0000 (23:11 +0000)]
*** empty log message ***

19 years ago(scm_ctermid): Use an L_ctermid buf on the stack, for thread safety.
Kevin Ryde [Tue, 27 Jul 2004 23:10:35 +0000 (23:10 +0000)]
(scm_ctermid): Use an L_ctermid buf on the stack, for thread safety.

19 years ago*** empty log message ***
Kevin Ryde [Tue, 27 Jul 2004 22:55:55 +0000 (22:55 +0000)]
*** empty log message ***

19 years ago(make-regexp): Exercise flags args validation.
Kevin Ryde [Tue, 27 Jul 2004 22:49:52 +0000 (22:49 +0000)]
(make-regexp): Exercise flags args validation.

19 years ago* tags.h, deprecated.h (SCM_EQ_P): Deprecated by moving it into
Marius Vollmer [Tue, 27 Jul 2004 15:41:49 +0000 (15:41 +0000)]
* tags.h, deprecated.h (SCM_EQ_P): Deprecated by moving it into
deprecated.h.  Replaced all uses with scm_is_eq.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 27 Jul 2004 15:40:07 +0000 (15:40 +0000)]
*** empty log message ***

19 years ago(SCM_EQ_P): Deprecated by moving it into
Marius Vollmer [Tue, 27 Jul 2004 15:39:46 +0000 (15:39 +0000)]
(SCM_EQ_P): Deprecated by moving it into
deprecated.h.  Replaced all uses with scm_is_eq.

19 years ago* deprecated.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP, SCM_BOOL):
Marius Vollmer [Tue, 27 Jul 2004 15:39:25 +0000 (15:39 +0000)]
* deprecated.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP, SCM_BOOL):
Reimplement using scm_is_false, scm_is_true, scm_is_bool, and
scm_from_bool, respectively.
(SCM_NINUMP): Added.

* tags.h, deprecated.h (SCM_EQ_P): Deprecated by moving it into
deprecated.h.  Replaced all uses with scm_is_eq.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 24 Jul 2004 00:45:53 +0000 (00:45 +0000)]
*** empty log message ***

19 years ago(@nicode): Use @alias instead of @macro, for correct
Kevin Ryde [Sat, 24 Jul 2004 00:45:02 +0000 (00:45 +0000)]
(@nicode): Use @alias instead of @macro, for correct
handling of backslashes.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 24 Jul 2004 00:26:09 +0000 (00:26 +0000)]
*** empty log message ***

19 years ago(Smobs): In SCM_SMOB_OBJECT_LOC,
Kevin Ryde [Sat, 24 Jul 2004 00:21:43 +0000 (00:21 +0000)]
(Smobs): In SCM_SMOB_OBJECT_LOC,
SCM_SMOB_OBJECT_2_LOC, SCM_SMOB_OBJECT_3_LOC, use {} to avoid "*"
getting into the index as part of the macro name.

19 years agoMake it vindex instead:
Kevin Ryde [Sat, 24 Jul 2004 00:19:27 +0000 (00:19 +0000)]
Make it vindex instead:
(Frames): Add @vindex for SCM_F_WIND_EXPLICITLY.

19 years ago(Frames): Add @findex for SCM_F_WIND_EXPLICITLY.
Kevin Ryde [Sat, 24 Jul 2004 00:17:50 +0000 (00:17 +0000)]
(Frames): Add @findex for SCM_F_WIND_EXPLICITLY.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 24 Jul 2004 00:15:15 +0000 (00:15 +0000)]
*** empty log message ***

19 years ago(String Syntax): Add all backslash forms accepted.
Kevin Ryde [Sat, 24 Jul 2004 00:14:48 +0000 (00:14 +0000)]
(String Syntax): Add all backslash forms accepted.
(Regexp Functions): Use @defvar for regexp/icase etc, to emphasise
that they're variables not symbols etc.

19 years ago(SRFI-0): Revise for clarity, drop BNF in favour
Kevin Ryde [Sat, 24 Jul 2004 00:08:47 +0000 (00:08 +0000)]
(SRFI-0): Revise for clarity, drop BNF in favour
of plain description, emphasise this is just for portable programs.

19 years ago * threads.c, threads.h (scm_i_misc_mutex): New SCM_GLOBAL_MUTEX.
Kevin Ryde [Fri, 23 Jul 2004 23:52:55 +0000 (23:52 +0000)]
* threads.c, threads.h (scm_i_misc_mutex): New SCM_GLOBAL_MUTEX.
* posix.c (scm_crypt): Use it to protect static data in crypt().

19 years ago(scm_i_misc_mutex): New SCM_GLOBAL_MUTEX.
Kevin Ryde [Fri, 23 Jul 2004 23:51:58 +0000 (23:51 +0000)]
(scm_i_misc_mutex): New SCM_GLOBAL_MUTEX.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 23 Jul 2004 23:43:57 +0000 (23:43 +0000)]
*** empty log message ***

19 years agoAdd a copyright year.
Kevin Ryde [Fri, 23 Jul 2004 23:41:56 +0000 (23:41 +0000)]
Add a copyright year.

19 years agoUse #:duplicates (last) to
Kevin Ryde [Fri, 23 Jul 2004 23:41:35 +0000 (23:41 +0000)]
Use #:duplicates (last) to
suppress warnings about current-time and raise replacing core bindings.

19 years agoUse define-module, to as not to import
Kevin Ryde [Fri, 23 Jul 2004 23:38:50 +0000 (23:38 +0000)]
Use define-module, to as not to import
common-list into subsequent tests (eg. srfi-1 where `every' provokes a
warning).

19 years ago*** empty log message ***
Marius Vollmer [Fri, 23 Jul 2004 15:51:33 +0000 (15:51 +0000)]
*** empty log message ***

19 years ago* deprecated.h, deprecated.c, numbers.h (SCM_INUMP, SCM_NINUMP,
Marius Vollmer [Fri, 23 Jul 2004 15:43:02 +0000 (15:43 +0000)]
* deprecated.h, deprecated.c, numbers.h (SCM_INUMP, SCM_NINUMP,
SCM_INUM): Deprecated by reenaming them to SCM_I_INUMP, SCM_I_NINUMP
and SCM_I_INUM, respectively and adding deprecated versions to
deprecated.h and deprecated.c.  Changed all uses to either use the
SCM_I_ variants or scm_is_*, scm_to_*, or scm_from_*, as appropriate.

19 years ago(scm_i_dowinds): Removed unused code that would call the unexisting
Marius Vollmer [Fri, 23 Jul 2004 15:34:07 +0000 (15:34 +0000)]
(scm_i_dowinds): Removed unused code that would call the unexisting
scm_cross_dynwind_binding_scope for inums on the windlist.

19 years ago(SCM_INUMP, SCM_NINUMP, SCM_INUM): Deprecated by reenaming them to
Marius Vollmer [Fri, 23 Jul 2004 15:29:27 +0000 (15:29 +0000)]
(SCM_INUMP, SCM_NINUMP, SCM_INUM): Deprecated by reenaming them to
SCM_I_INUMP, SCM_I_NINUMP and SCM_I_INUM, respectively and adding
deprecated versions to deprecated.h and deprecated.c.  Changed all
uses to either use the SCM_I_ variants or scm_is_*, scm_to_*, or
scm_from_*, as appropriate.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 19 Jul 2004 00:59:27 +0000 (00:59 +0000)]
*** empty log message ***

19 years ago2004-05-25 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
Kevin Ryde [Mon, 19 Jul 2004 00:58:04 +0000 (00:58 +0000)]
2004-05-25  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>
* tests/format.test (~{): Test no arbitrary iteration limit.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 19 Jul 2004 00:48:37 +0000 (00:48 +0000)]
*** empty log message ***

19 years ago2004-05-25 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
Kevin Ryde [Mon, 19 Jul 2004 00:43:37 +0000 (00:43 +0000)]
2004-05-25  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>
* format.scm: Remove the arbitrary limit of 100 iterations for the
~{...~} control structure.

19 years agoReplaced all uses of deprecated SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
Marius Vollmer [Sat, 10 Jul 2004 15:25:01 +0000 (15:25 +0000)]
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.  Thanks to Andreas
Vögele!

19 years ago*** empty log message ***
Marius Vollmer [Sat, 10 Jul 2004 14:43:55 +0000 (14:43 +0000)]
*** empty log message ***

19 years agoUpdated for new scm_is_bool, scm_is_true, etc.
Marius Vollmer [Sat, 10 Jul 2004 14:43:33 +0000 (14:43 +0000)]
Updated for new scm_is_bool, scm_is_true, etc.

19 years ago(Integers): Talk more about inexact and exact integers.
Marius Vollmer [Sat, 10 Jul 2004 14:42:51 +0000 (14:42 +0000)]
(Integers): Talk more about inexact and exact integers.

19 years agouse scm_is_true instead of SCM_NFALSEP in the examples.
Marius Vollmer [Sat, 10 Jul 2004 14:39:56 +0000 (14:39 +0000)]
use scm_is_true instead of SCM_NFALSEP in the examples.

19 years ago(test_is_signed_integer, test_is_unsigned_integer): Expect inexact
Marius Vollmer [Sat, 10 Jul 2004 14:39:12 +0000 (14:39 +0000)]
(test_is_signed_integer, test_is_unsigned_integer): Expect inexact
integers to fail.

19 years ago* validate.h, deprecated.h (SCM_VALIDATE_INUM, SCM_VALIDATE_INUM_COPY,
Marius Vollmer [Sat, 10 Jul 2004 14:35:36 +0000 (14:35 +0000)]
* validate.h, deprecated.h (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): Deprecated because they make the
fixnum/bignum distinction visible.  Changed all uses to scm_to_size_t
or similar.

19 years ago(ipv6_net_to_num, scm_from_ipv6): Renamed
Marius Vollmer [Sat, 10 Jul 2004 14:34:59 +0000 (14:34 +0000)]
(ipv6_net_to_num, scm_from_ipv6): Renamed
ipv6_net_to_num to scm_from_ipv6, for converting from an IPv&
byte-wise address to a SCM integer.  Changed all uses.
(ipv6_num_to_net, scm_to_ipv6): Renamed ipv6_num_to_net to
scm_to_ipv6 and added type and range checking, for converting from
an IPv& byte-wise address to a SCM integer.  Changed all uses.
(bignum_in_ipv6_range_p, VALIDATE_INET6): Removed, their function
is now done by scm_to_ipv6.

* validate.h, deprecated.h (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): Deprecated because they make the
fixnum/bignum distinction visible.  Changed all uses to scm_to_size_t
or similar.

19 years ago(scm_to_signed_integer, scm_to_unsigned_integer): dot
Marius Vollmer [Sat, 10 Jul 2004 13:55:04 +0000 (13:55 +0000)]
(scm_to_signed_integer, scm_to_unsigned_integer): dot
not accept inexact integers.

* validate.h, deprecated.h (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): Deprecated because they make the
fixnum/bignum distinction visible.  Changed all uses to scm_to_size_t
or similar.

19 years ago*** empty log message ***
Marius Vollmer [Sat, 10 Jul 2004 13:50:41 +0000 (13:50 +0000)]
*** empty log message ***

19 years agoChanged all uses of SCM_VALIDATE_INUM, SCM_VALIDATE_INUM_COPY,
Marius Vollmer [Sat, 10 Jul 2004 13:50:33 +0000 (13:50 +0000)]
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.

19 years ago(SCM_VALIDATE_INUM, SCM_VALIDATE_INUM_COPY, SCM_VALIDATE_BIGINT,
Marius Vollmer [Sat, 10 Jul 2004 13:47:02 +0000 (13:47 +0000)]
(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): Deprecated because they make the
fixnum/bignum distinction visible.  Changed all uses to scm_to_size_t
or similar.

19 years agoUse scm_from_int instead of SCM_MAKINUM.
Marius Vollmer [Sat, 10 Jul 2004 13:42:18 +0000 (13:42 +0000)]
Use scm_from_int instead of SCM_MAKINUM.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 10 Jul 2004 00:29:26 +0000 (00:29 +0000)]
*** empty log message ***

19 years ago(SRFI-0): Add srfi-6 to the identifiers provided by default.
Kevin Ryde [Sat, 10 Jul 2004 00:22:12 +0000 (00:22 +0000)]
(SRFI-0): Add srfi-6 to the identifiers provided by default.

19 years agoForgot to list just what numbers are no longer hard-coded in gen-scmconfig.c
Marius Vollmer [Sat, 10 Jul 2004 00:16:34 +0000 (00:16 +0000)]
Forgot to list just what numbers are no longer hard-coded in gen-scmconfig.c

19 years ago*** empty log message ***
Kevin Ryde [Fri, 9 Jul 2004 23:45:41 +0000 (23:45 +0000)]
*** empty log message ***

19 years ago(%cond-expand-features): Add srfi-6 which is in the core.
Kevin Ryde [Fri, 9 Jul 2004 23:44:48 +0000 (23:44 +0000)]
(%cond-expand-features): Add srfi-6 which is in the core.

19 years ago(re-export): Uncomment numerator, denominator,
Kevin Ryde [Fri, 9 Jul 2004 23:42:53 +0000 (23:42 +0000)]
(re-export): Uncomment numerator, denominator,
rationalize, since they now exist.

19 years ago(read-macro-prefix): Remove unused variable "tail".
Kevin Ryde [Fri, 9 Jul 2004 23:41:20 +0000 (23:41 +0000)]
(read-macro-prefix): Remove unused variable "tail".

19 years ago(and-let*): Remove unused variable "val".
Kevin Ryde [Fri, 9 Jul 2004 23:40:07 +0000 (23:40 +0000)]
(and-let*): Remove unused variable "val".

19 years ago*** empty log message ***
Kevin Ryde [Fri, 9 Jul 2004 23:16:48 +0000 (23:16 +0000)]
*** empty log message ***

19 years ago(scm_make_regexp): Free rx on error, to avoid memory leak.
Kevin Ryde [Fri, 9 Jul 2004 23:15:28 +0000 (23:15 +0000)]
(scm_make_regexp): Free rx on error, to avoid memory leak.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 9 Jul 2004 23:08:53 +0000 (23:08 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Kevin Ryde [Fri, 9 Jul 2004 22:27:47 +0000 (22:27 +0000)]
*** empty log message ***

19 years ago * tests/hash.test: New file.
Kevin Ryde [Fri, 9 Jul 2004 22:16:04 +0000 (22:16 +0000)]
* tests/hash.test: New file.
* Makefile.am (SCM_TESTS): Add it.

19 years agoNew file.
Kevin Ryde [Fri, 9 Jul 2004 22:14:19 +0000 (22:14 +0000)]
New file.

19 years ago(scm_hashq, scm_hashv, scm_hash): Restrict to size>=1 rather
Kevin Ryde [Fri, 9 Jul 2004 22:08:43 +0000 (22:08 +0000)]
(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.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 8 Jul 2004 22:53:33 +0000 (22:53 +0000)]
*** empty log message ***

19 years agoBugfix: set SCM_I_GSC_T_UINTMAX, not SCM_I_GSC_T_INTMAX in two places.
Marius Vollmer [Thu, 8 Jul 2004 22:50:45 +0000 (22:50 +0000)]
Bugfix: set SCM_I_GSC_T_UINTMAX, not SCM_I_GSC_T_INTMAX in two places.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 8 Jul 2004 16:03:45 +0000 (16:03 +0000)]
*** empty log message ***

19 years agoUse scm_from_int instead of SCM_MAKINUM and scm_is_eq instead
Marius Vollmer [Thu, 8 Jul 2004 16:03:01 +0000 (16:03 +0000)]
Use scm_from_int instead of SCM_MAKINUM and scm_is_eq instead
SCM_EQ_P.

19 years ago(LLONG_MIN, LLONG_MAX, ULLONG_MAX): Removed and used SCM_I_LLONG_MIN
Marius Vollmer [Thu, 8 Jul 2004 16:01:02 +0000 (16:01 +0000)]
(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.

19 years ago* numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM to
Marius Vollmer [Thu, 8 Jul 2004 15:58:11 +0000 (15:58 +0000)]
* numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM to
SCM_I_MAKINUM and changed all uses.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 8 Jul 2004 15:54:40 +0000 (15:54 +0000)]
*** empty log message ***

19 years ago(scm_is_signed_integer, scm_is_unsigned_integer):
Marius Vollmer [Thu, 8 Jul 2004 15:54:05 +0000 (15:54 +0000)]
(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.

19 years ago* numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM to
Marius Vollmer [Thu, 8 Jul 2004 15:41:48 +0000 (15:41 +0000)]
* 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.

19 years agoInstead of hard-coding the numbers, compute them by assuming
Marius Vollmer [Thu, 8 Jul 2004 15:31:39 +0000 (15:31 +0000)]
Instead of hard-coding the numbers, compute them by assuming
twos-complement.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 7 Jul 2004 15:40:25 +0000 (15:40 +0000)]
*** empty log message ***

19 years ago* scheme-data.texi (Integers): Added docs for the new scm_is_,
Marius Vollmer [Wed, 7 Jul 2004 15:39:21 +0000 (15:39 +0000)]
* scheme-data.texi (Integers): Added docs for the new scm_is_,
scm_to_ and scm_from_ functions for integers.