bpt/guile.git
19 years ago(scm_resolv_error): don't cause an exception while
Rob Browning [Sat, 7 Aug 2004 03:48:17 +0000 (03:48 +0000)]
(scm_resolv_error): don't cause an exception while
trying to throw an exception -- call scm_misc_error with correct
arguments.  The previous arguments needed a format escape that
wasn't in any of the format strings.

19 years ago*** empty log message ***
Rob Browning [Sat, 7 Aug 2004 03:48:03 +0000 (03:48 +0000)]
*** empty log message ***

19 years agoAmend #if and comments for cmp_d and get_d about unreleased gmp, don't
Kevin Ryde [Fri, 6 Aug 2004 01:26:26 +0000 (01:26 +0000)]
Amend #if and comments for cmp_d and get_d about unreleased gmp, don't
know when or as what version number it will come out.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 01:08:37 +0000 (01:08 +0000)]
*** empty log message ***

19 years ago(array-fill!): Exercise byte range and type checks.
Kevin Ryde [Fri, 6 Aug 2004 01:08:12 +0000 (01:08 +0000)]
(array-fill!): Exercise byte range and type checks.

19 years ago(scm_array_fill_x): For byvect char fill, force signed char
Kevin Ryde [Fri, 6 Aug 2004 01:04:05 +0000 (01:04 +0000)]
(scm_array_fill_x): For byvect char fill, force signed char
so as not to depend on signedness of plain char.  For byvect range
check, throw out-of-range rather than wrong-type-arg.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 00:29:13 +0000 (00:29 +0000)]
*** empty log message ***

19 years ago(uniform-vector-ref): Exercise byte returns.
Kevin Ryde [Fri, 6 Aug 2004 00:27:31 +0000 (00:27 +0000)]
(uniform-vector-ref): Exercise byte returns.

19 years ago(scm_uniform_vector_ref, scm_array_set_x): For byvect, force
Kevin Ryde [Fri, 6 Aug 2004 00:21:13 +0000 (00:21 +0000)]
(scm_uniform_vector_ref, scm_array_set_x): For byvect, force
signed byte range checks by using scm_to_schar and scm_from_schar,
don't want to depend on signedness of C char.

19 years ago(array-set!): Exercise byte array range checks.
Kevin Ryde [Fri, 6 Aug 2004 00:17:12 +0000 (00:17 +0000)]
(array-set!): Exercise byte array range checks.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 00:04:14 +0000 (00:04 +0000)]
*** empty log message ***

19 years ago(parse-message): Correction to header
Kevin Ryde [Fri, 6 Aug 2004 00:03:11 +0000 (00:03 +0000)]
(parse-message): Correction to header
continuation, loop with read-line not cdr lines.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 01:19:35 +0000 (01:19 +0000)]
*** empty log message ***

19 years ago(scm_copy_file): Use fstat on the input fd rather than
Kevin Ryde [Thu, 5 Aug 2004 01:02:58 +0000 (01:02 +0000)]
(scm_copy_file): Use fstat on the input fd rather than
stat on the filename, to be certain a file rename can't mean we get
info on one filesystem object but open another.  This fstat usage is
similar to Emacs copy-file.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 00:46:34 +0000 (00:46 +0000)]
*** empty log message ***

19 years agoUpdate docstrings per doc/ref/api-scheduling.texi.
Kevin Ryde [Thu, 5 Aug 2004 00:40:26 +0000 (00:40 +0000)]
Update docstrings per doc/ref/api-scheduling.texi.

19 years ago(Arbiters): Tweak wording for clarity, note any
Kevin Ryde [Thu, 5 Aug 2004 00:38:13 +0000 (00:38 +0000)]
(Arbiters): Tweak wording for clarity, note any
thread can unlock not just the one which locked.

19 years ago(scm_system_star): Use scm_from_int on SIGINT and SIGQUIT,
Kevin Ryde [Thu, 5 Aug 2004 00:33:58 +0000 (00:33 +0000)]
(scm_system_star): Use scm_from_int on SIGINT and SIGQUIT,
since that's what those values are.

19 years ago(scm_try_arbiter): Use scm_i_misc_mutex instead of
Kevin Ryde [Thu, 5 Aug 2004 00:20:13 +0000 (00:20 +0000)]
(scm_try_arbiter): Use scm_i_misc_mutex instead of
SCM_DEFER_INTS.
(scm_release_arbiter): Use scm_i_misc_mutex so return value can be
guaranteed if multiple threads compete to unlock.

19 years ago(scm_setgroups): Enhance docstring, per doc/ref/posix.texi.
Kevin Ryde [Thu, 5 Aug 2004 00:19:14 +0000 (00:19 +0000)]
(scm_setgroups): Enhance docstring, per doc/ref/posix.texi.

19 years ago(Processes): Add setgroups.
Kevin Ryde [Thu, 5 Aug 2004 00:17:39 +0000 (00:17 +0000)]
(Processes): Add setgroups.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 00:13:24 +0000 (00:13 +0000)]
*** empty log message ***

19 years ago(scm_string_any, scm_string_every): Enhance docstrings as
Kevin Ryde [Thu, 5 Aug 2004 00:12:59 +0000 (00:12 +0000)]
(scm_string_any, scm_string_every): Enhance docstrings as
per doc/ref/srfi-modules.texi.

19 years ago(SRFI-13 Predicates): Tweak wording for clarity.
Kevin Ryde [Thu, 5 Aug 2004 00:10:22 +0000 (00:10 +0000)]
(SRFI-13 Predicates): Tweak wording for clarity.
For string-every, note return is #t when no characters.  For
string-any and string-every, note last pred call is not currently a
tail call, contrary to SRFI-13 spec.

19 years ago(Conventions): Describe system-error args, use @defun for
Kevin Ryde [Thu, 5 Aug 2004 00:02:23 +0000 (00:02 +0000)]
(Conventions): Describe system-error args, use @defun for
system-error-errno instead of just words.

19 years ago*** empty log message ***
Kevin Ryde [Wed, 4 Aug 2004 23:49:30 +0000 (23:49 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 17:24:44 +0000 (17:24 +0000)]
*** empty log message ***

19 years ago* num2integral.i.c, num2float.i.c: Removed.
Marius Vollmer [Tue, 3 Aug 2004 17:24:28 +0000 (17:24 +0000)]
* num2integral.i.c, num2float.i.c: Removed.
* Makefile.am (noinst_HEADERS): Updated.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 17:16:29 +0000 (17:16 +0000)]
*** empty log message ***

19 years agoAdded scm_is_complex, scm_is_number, scm_c_make_rectangular,
Marius Vollmer [Tue, 3 Aug 2004 17:15:51 +0000 (17:15 +0000)]
Added scm_is_complex, scm_is_number, scm_c_make_rectangular,
scm_c_make_polar, scm_c_rela_part, scm_c_imag_part, scm_c_magnitude,
and scm_c_angle.

19 years ago(scm_make_complex): Discouraged by moving to discouraged.h and
Marius Vollmer [Tue, 3 Aug 2004 17:13:16 +0000 (17:13 +0000)]
(scm_make_complex): Discouraged by moving to discouraged.h and
discouraged.c.  Replaced all uses with scm_c_make_rectangular.

19 years ago(scm_complex_p): New, export as "complex?" to Scheme.
Marius Vollmer [Tue, 3 Aug 2004 17:12:14 +0000 (17:12 +0000)]
(scm_complex_p): New, export as "complex?" to Scheme.
(scm_number_p): Export as "number?" to Scheme.
(scm_is_complex, scm_is_number): New.
(scm_c_make_rectangular, scm_c_make_polar): New.
(scm_make_rectangular, scm_make_polar): Use above.
(scm_c_real_part, scm_c_imag_part, scm_c_magnitude, scm_c_angle):
New.
(scm_make_complex): Discouraged by moving to discouraged.h and
discouraged.c.  Replaced all uses with scm_c_make_rectangular.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 15:56:49 +0000 (15:56 +0000)]
*** empty log message ***

19 years ago* numbers.h. numbers.c (scm_make_ratio): Renamed to
Marius Vollmer [Tue, 3 Aug 2004 15:55:42 +0000 (15:55 +0000)]
* numbers.h. numbers.c (scm_make_ratio): Renamed to
scm_i_make_ratio and made static, replaced uses with scm_divide.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 15:07:37 +0000 (15:07 +0000)]
*** empty log message ***

19 years agoOnly perform the tests when the disabled features are enabled.
Marius Vollmer [Tue, 3 Aug 2004 15:07:23 +0000 (15:07 +0000)]
Only perform the tests when the disabled features are enabled.

19 years ago(test_to_double, test_from_double): New tests.
Marius Vollmer [Tue, 3 Aug 2004 15:06:51 +0000 (15:06 +0000)]
(test_to_double, test_from_double): New tests.

19 years ago(scm_make_real, scm_num2dbl, scm_float2num, scm_double2num):
Marius Vollmer [Tue, 3 Aug 2004 15:06:12 +0000 (15:06 +0000)]
(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.

19 years ago(scm_init_guile_1): Call scm_i_init_discouraged.
Marius Vollmer [Tue, 3 Aug 2004 15:04:48 +0000 (15:04 +0000)]
(scm_init_guile_1): Call scm_i_init_discouraged.

19 years ago(scm_is_rational): New.
Marius Vollmer [Tue, 3 Aug 2004 15:03:35 +0000 (15:03 +0000)]
(scm_is_rational): New.
(scm_i_short2big, scm_i_int2big, scm_i_uint2big, scm_i_size2big,
scm_i_ptrdiff2big, scm_i_long_long2big, scm_i_ulong_long2big):
Removed prototypes.
(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.
(scm_to_double): Do not implement in terms of scm_num2dbl, use
explicit code.
(scm_from_double): Do not implement in terms of scm_make_real, use
explicit code.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 14:55:42 +0000 (14:55 +0000)]
*** empty log message ***

19 years agoAdded scm_is_real, scm_is_rational, scm_to_double, scm_from_double,
Marius Vollmer [Tue, 3 Aug 2004 14:55:20 +0000 (14:55 +0000)]
Added scm_is_real, scm_is_rational, scm_to_double, scm_from_double,
numerator, and denominator.

19 years agoTypos and a small addition.
Marius Vollmer [Tue, 3 Aug 2004 14:54:17 +0000 (14:54 +0000)]
Typos and a small addition.

19 years ago* api-deprecated.texi: Removed.
Marius Vollmer [Mon, 2 Aug 2004 16:29:37 +0000 (16:29 +0000)]
* api-deprecated.texi: Removed.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 16:26:50 +0000 (16:26 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 16:20:03 +0000 (16:20 +0000)]
*** empty log message ***

19 years agoReplaced scm_num2* and scm_*2num with scm_to_* and
Marius Vollmer [Mon, 2 Aug 2004 16:19:53 +0000 (16:19 +0000)]
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.

19 years ago* numbers.h, numbers.c, discouraged.h, discouraged.c (scm_short2num,
Marius Vollmer [Mon, 2 Aug 2004 16:14:04 +0000 (16:14 +0000)]
* numbers.h, numbers.c, discouraged.h, discouraged.c (scm_short2num,
scm_ushort2num, scm_int2num, scm_uint2num, scm_long2num,
scm_ulong2num, scm_size2num, scm_ptrdiff2num, scm_num2short,
scm_num2ushort, scm_num2int, scm_num2uint, scm_num2long,
scm_num2ulong, scm_num2size, scm_num2ptrdiff, scm_long_long2num,
scm_ulong_long2num, scm_num2long_long, scm_num2ulong_long):
Discouraged by moving to discouraged.h and discouraged.c and
reimplementing in terms of scm_from_* and scm_to_*.  Changed all uses
to the new scm_from_* and scm_to_* functions.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 16:13:29 +0000 (16:13 +0000)]
*** empty log message ***

19 years ago* gen-scmconfig.h.in (SCM_I_GSC_ENABLE_DISCOURAGED): New.
Marius Vollmer [Mon, 2 Aug 2004 16:10:17 +0000 (16:10 +0000)]
* gen-scmconfig.h.in (SCM_I_GSC_ENABLE_DISCOURAGED): New.
* gen-scmconfig.c (SCM_ENABLE_DISCOURAGED): Emit based on above.

19 years agoInclude libguile/discouraged.h.
Marius Vollmer [Mon, 2 Aug 2004 16:09:06 +0000 (16:09 +0000)]
Include libguile/discouraged.h.

19 years agoDocument the new --disable-discouraged option.
Marius Vollmer [Mon, 2 Aug 2004 16:08:19 +0000 (16:08 +0000)]
Document the new --disable-discouraged option.

19 years ago(SCM_I_GSC_ENABLE_DISCOURAGED): New, for the new --enable-discouraged
Marius Vollmer [Mon, 2 Aug 2004 16:07:34 +0000 (16:07 +0000)]
(SCM_I_GSC_ENABLE_DISCOURAGED): New, for the new --enable-discouraged
option.

19 years ago* discouraged.h, discouraged.c: New files.
Marius Vollmer [Mon, 2 Aug 2004 15:57:31 +0000 (15:57 +0000)]
* discouraged.h, discouraged.c: New files.

19 years ago* discouraged.h, discouraged.c: New files.
Marius Vollmer [Mon, 2 Aug 2004 15:57:04 +0000 (15:57 +0000)]
* discouraged.h, discouraged.c: New files.

* deprecated.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP, SCM_EQ_P,
SCM_NEGATE_BOOL, SCM_BOOL, SCM_BOOT_NOT): Promoted from being
deprecated to being discouraged by moving to discouraged.h.

* numbers.h, numbers.c, discouraged.h, discouraged.c
(scm_short2num, scm_ushort2num, scm_int2num, scm_uint2num,
scm_long2num, scm_ulong2num, scm_size2num, scm_ptrdiff2num,
scm_num2short, scm_num2ushort, scm_num2int, scm_num2uint,
scm_num2long, scm_num2ulong, scm_num2size, scm_num2ptrdiff,
scm_long_long2num, scm_ulong_long2num, scm_num2long_long,
scm_num2ulong_long): Discouraged by moving to discouraged.h and
discouraged.c and reimplementing in terms of scm_from_* and
scm_to_*.

* numbers.h, numbers.c: Removed GUILE_DEBUG code.
(scm_i_short2big, scm_i_ushort2big, scm_i_int2big, scm_i_uint2big,
scm_i_size2big, scm_i_ptrdiff2big): Removed.
(scm_i_long2big, scm_i_ulong2big): New, explicit definitions.
* conv-integer.i.c, conv-uinteger.i.c: Use them instead of
explicit code.

19 years ago(SCM_EVALIM, SCM_EVALIM2, SCM_XEVAL, SCM_XEVALCAR): Renamed to SCM_I_*
Marius Vollmer [Mon, 2 Aug 2004 15:48:58 +0000 (15:48 +0000)]
(SCM_EVALIM, SCM_EVALIM2, SCM_XEVAL, SCM_XEVALCAR): Renamed to SCM_I_*
in order to avoid collisions with the versions defined in
deprecated.h.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 15:15:45 +0000 (15:15 +0000)]
*** empty log message ***

19 years ago* api-deprecated.texi: Removed.
Marius Vollmer [Mon, 2 Aug 2004 15:15:31 +0000 (15:15 +0000)]
* api-deprecated.texi: Removed.
* intro.texi (Discouraged and Deprecated): General information
about deprecation, etc.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 12:33:07 +0000 (12:33 +0000)]
*** empty log message ***

19 years agoReplaced references to scm_num2* with scm_to_* and references to
Marius Vollmer [Mon, 2 Aug 2004 12:32:41 +0000 (12:32 +0000)]
Replaced references to scm_num2* with scm_to_* and references to
scm_*2num with scm_from_*.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 12:29:49 +0000 (12:29 +0000)]
*** empty log message ***

19 years ago* scheme-binding.texi: Renamed to api-binding.texi.
Marius Vollmer [Mon, 2 Aug 2004 12:29:00 +0000 (12:29 +0000)]
* scheme-binding.texi: Renamed to api-binding.texi.
* scheme-compound.texi: Renamed to api-compound.texi.
* scheme-control.texi: Renamed to api-control.texi.
* scheme-data.texi: Renamed to api-data.texi.
* scheme-debug.texi: Renamed to api-debug.texi.
* deprecated.texi: Renamed to api-deprecated.texi.
* scheme-evaluation.texi: Renamed to api-evaluation.texi.
* ref-init.texi: Renamed to api-init.texi.
* scheme-io.texi: Renamed to api-io.texi.
* scheme-memory.texi: Renamed to api-memory.texi.
* scheme-modules.texi: Renamed to api-modules.texi.
* scheme-options.texi: Renamed to api-options.texi.
* scm.texi: Renamed to api-overview.texi.
* scheme-procedures.texi: Renamed to api-procedures.texi.
* scheme-scheduling.texi: Renamed to api-scheduling.texi.
* scheme-scm.texi: Renamed to api-scm.texi.
* scheme-smobs.texi: Renamed to api-smobs.texi.
* scheme-snarf.texi: Renamed to api-snarf.texi.
* scheme-translation.texi: Renamed to api-translation.texi.
* scheme-utility.texi: Renamed to api-utility.texi.
* debugging.texi: Renamed to scheme-debugging.texi.
* scripts.texi: Renamed to scheme-scripts.texi.
* program.texi: Renamed to libguile-program.texi.

19 years ago* program.texi: Renamed to libguile-program.texi. Changed all
Marius Vollmer [Mon, 2 Aug 2004 11:46:57 +0000 (11:46 +0000)]
* program.texi: Renamed to libguile-program.texi.  Changed all
references.

19 years agoRenamed to libguile-program.texi.
Marius Vollmer [Mon, 2 Aug 2004 11:41:23 +0000 (11:41 +0000)]
Renamed to libguile-program.texi.

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

19 years ago(SCM_DEFER_INTS, SCM_ALLOW_INTS): Add comments about past
Kevin Ryde [Mon, 2 Aug 2004 00:36:49 +0000 (00:36 +0000)]
(SCM_DEFER_INTS, SCM_ALLOW_INTS): Add comments about past
and current usage and migration.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 2 Aug 2004 00:30:49 +0000 (00:30 +0000)]
*** empty log message ***

19 years ago(string-every): Check empty string case.
Kevin Ryde [Mon, 2 Aug 2004 00:30:21 +0000 (00:30 +0000)]
(string-every): Check empty string case.

19 years ago(scm_string_every): Correction to initial "res" value,
Kevin Ryde [Mon, 2 Aug 2004 00:24:36 +0000 (00:24 +0000)]
(scm_string_every): Correction to initial "res" value,
return should be #t for an empty string.  Reported by Andreas Vögele.

19 years agoBit more comments for this:
Kevin Ryde [Mon, 2 Aug 2004 00:22:02 +0000 (00:22 +0000)]
Bit more comments for this:
* configure.in (isinf, isnan): Detect macro versions as well as
functions, since C99 specifies them as macros and that's all HP-UX
has.  Reported by Andreas Voegele.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 31 Jul 2004 01:28:49 +0000 (01:28 +0000)]
*** empty log message ***

19 years ago * tests/filesys.test: New file, exercising copy-file.
Kevin Ryde [Sat, 31 Jul 2004 01:25:26 +0000 (01:25 +0000)]
* tests/filesys.test: New file, exercising copy-file.
* Makefile.am (SCM_TESTS): Add it.

19 years agoNew file, exercising copy-file.
Kevin Ryde [Sat, 31 Jul 2004 01:24:34 +0000 (01:24 +0000)]
New file, exercising copy-file.

19 years ago(scm_copy_file): Avoid fd leak when destination file
Kevin Ryde [Sat, 31 Jul 2004 01:19:26 +0000 (01:19 +0000)]
(scm_copy_file): Avoid fd leak when destination file
cannot be opened.

19 years ago * error.c (scm_strerror): Use scm_i_misc_mutex around strerror since
Kevin Ryde [Sat, 31 Jul 2004 01:13:29 +0000 (01:13 +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.
* filesys.c (scm_stat, scm_lstat): Ditto.

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.