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

8572 commits

Author SHA1 Message Date
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
8672c728f0 (scm_init_guile_1): Call scm_i_init_discouraged. 2004-08-03 15:04:48 +00:00
Marius Vollmer
55f26379b3 (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.
2004-08-03 15:03:35 +00:00
Marius Vollmer
c165cd437c *** empty log message *** 2004-08-03 14:55:42 +00:00
Marius Vollmer
d3df975916 Added scm_is_real, scm_is_rational, scm_to_double, scm_from_double,
numerator, and denominator.
2004-08-03 14:55:20 +00:00
Marius Vollmer
5aa76027f5 Typos and a small addition. 2004-08-03 14:54:17 +00:00
Marius Vollmer
145c4821fd * api-deprecated.texi: Removed. 2004-08-02 16:29:37 +00:00
Marius Vollmer
f7f3964e89 *** empty log message *** 2004-08-02 16:26:50 +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
Marius Vollmer
b9bd8526f0 * 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.
2004-08-02 16:14:04 +00:00
Marius Vollmer
531bf3e6a8 *** empty log message *** 2004-08-02 16:13:29 +00:00
Marius Vollmer
dee91fb9d4 * gen-scmconfig.h.in (SCM_I_GSC_ENABLE_DISCOURAGED): New.
* gen-scmconfig.c (SCM_ENABLE_DISCOURAGED): Emit based on above.
2004-08-02 16:10:17 +00:00
Marius Vollmer
ba05058392 Include libguile/discouraged.h. 2004-08-02 16:09:06 +00:00
Marius Vollmer
3623a1705c Document the new --disable-discouraged option. 2004-08-02 16:08:19 +00:00
Marius Vollmer
f5922e2785 (SCM_I_GSC_ENABLE_DISCOURAGED): New, for the new --enable-discouraged
option.
2004-08-02 16:07:34 +00:00
Marius Vollmer
4f1d009fc1 * discouraged.h, discouraged.c: New files. 2004-08-02 15:57:31 +00:00
Marius Vollmer
c71b07063e * 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.
2004-08-02 15:57:04 +00:00
Marius Vollmer
385609b992 (SCM_EVALIM, SCM_EVALIM2, SCM_XEVAL, SCM_XEVALCAR): Renamed to SCM_I_*
in order to avoid collisions with the versions defined in
deprecated.h.
2004-08-02 15:48:58 +00:00
Marius Vollmer
f625d00fe3 *** empty log message *** 2004-08-02 15:15:45 +00:00
Marius Vollmer
235da338fa * api-deprecated.texi: Removed.
* intro.texi (Discouraged and Deprecated): General information
about deprecation, etc.
2004-08-02 15:15:31 +00:00
Marius Vollmer
c079ba3be1 *** empty log message *** 2004-08-02 12:33:07 +00:00
Marius Vollmer
4002a7088e Replaced references to scm_num2* with scm_to_* and references to
scm_*2num with scm_from_*.
2004-08-02 12:32:41 +00:00
Marius Vollmer
8a3befe34a *** empty log message *** 2004-08-02 12:29:49 +00:00
Marius Vollmer
07d83abe7b * 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.
2004-08-02 12:29:00 +00:00
Marius Vollmer
237be23842 * program.texi: Renamed to libguile-program.texi. Changed all
references.
2004-08-02 11:46:57 +00:00
Marius Vollmer
c393de666c Renamed to libguile-program.texi. 2004-08-02 11:41:23 +00:00
Kevin Ryde
5ec82e960f *** empty log message *** 2004-08-02 00:37:57 +00:00
Kevin Ryde
ed7ba6d12f (SCM_DEFER_INTS, SCM_ALLOW_INTS): Add comments about past
and current usage and migration.
2004-08-02 00:36:49 +00:00
Kevin Ryde
71234d0ce9 *** empty log message *** 2004-08-02 00:30:49 +00:00
Kevin Ryde
4c6563e1ed (string-every): Check empty string case. 2004-08-02 00:30:21 +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
Kevin Ryde
c80bab35fb 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.
2004-08-02 00:22:02 +00:00
Kevin Ryde
58f2898942 *** empty log message *** 2004-07-31 01:28:49 +00:00
Kevin Ryde
5e9456e306 * tests/filesys.test: New file, exercising copy-file.
* Makefile.am (SCM_TESTS): Add it.
2004-07-31 01:25:26 +00:00
Kevin Ryde
5e996bd608 New file, exercising copy-file. 2004-07-31 01:24:34 +00:00
Kevin Ryde
01046395ac (scm_copy_file): Avoid fd leak when destination file
cannot be opened.
2004-07-31 01:19:26 +00:00
Kevin Ryde
3572cd6b8f * 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.
2004-07-31 01:13:29 +00:00
Kevin Ryde
fd08c23657 * 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.
2004-07-31 01:12:24 +00:00
Kevin Ryde
4af3c6f17c (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.
2004-07-31 01:11:15 +00:00
Kevin Ryde
7426a638b7 (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.
2004-07-31 01:08:20 +00:00
Marius Vollmer
da1e6e6710 *** empty log message *** 2004-07-30 12:39:36 +00:00
Marius Vollmer
f47029a180 (Formatted Output): Changed @w to @w{} in itemize. The former doesn't
work for some reason...
2004-07-30 12:39:29 +00:00
Marius Vollmer
51fdb325b0 *** empty log message *** 2004-07-29 15:49:04 +00:00
Marius Vollmer
4627df5a6b * gen-scmconfig.c (SCM_SIZEOF_INTMAX, SCM_SIZEOF_SIZE_T): New. 2004-07-29 15:48:54 +00:00
Marius Vollmer
d1b5b4001e * 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.
2004-07-29 15:48:44 +00:00
Marius Vollmer
d20008c0ab Check for sizes of size_t and intmax_t. 2004-07-29 15:44:01 +00:00
Marius Vollmer
315158a8ac *** empty log message *** 2004-07-29 14:14:18 +00:00
Marius Vollmer
3838c384d1 Many more tests for the integer conversion functions. 2004-07-29 14:13:59 +00:00
Marius Vollmer
c134fe9dab 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.
2004-07-29 14:13:20 +00:00