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

9450 commits

Author SHA1 Message Date
Kevin Ryde
7f9ca7c3d7 (array-set!): Exercise byte array range checks. 2004-08-06 00:17:12 +00:00
Kevin Ryde
6002ebaf0e *** empty log message *** 2004-08-06 00:04:14 +00:00
Kevin Ryde
6c60ac51ed (parse-message): Correction to header
continuation, loop with read-line not cdr lines.
2004-08-06 00:03:11 +00:00
Kevin Ryde
99de794f0d *** empty log message *** 2004-08-05 01:19:35 +00:00
Kevin Ryde
37eb673bc6 (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.
2004-08-05 01:02:58 +00:00
Kevin Ryde
29e6112441 *** empty log message *** 2004-08-05 00:46:34 +00:00
Kevin Ryde
7305dd202d Update docstrings per doc/ref/api-scheduling.texi. 2004-08-05 00:40:26 +00:00
Kevin Ryde
e136aab0cc (Arbiters): Tweak wording for clarity, note any
thread can unlock not just the one which locked.
2004-08-05 00:38:13 +00:00
Kevin Ryde
f070ba1332 (scm_system_star): Use scm_from_int on SIGINT and SIGQUIT,
since that's what those values are.
2004-08-05 00:33:58 +00:00
Kevin Ryde
9bebea882a (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.
2004-08-05 00:20:13 +00:00
Kevin Ryde
fcc3adc2f9 (scm_setgroups): Enhance docstring, per doc/ref/posix.texi. 2004-08-05 00:19:14 +00:00
Kevin Ryde
ef04832454 (Processes): Add setgroups. 2004-08-05 00:17:39 +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
Kevin Ryde
c1ab739754 (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.
2004-08-05 00:10:22 +00:00
Kevin Ryde
5982a8e012 (Conventions): Describe system-error args, use @defun for
system-error-errno instead of just words.
2004-08-05 00:02:23 +00:00
Kevin Ryde
c5e45cba93 *** empty log message *** 2004-08-04 23:49:30 +00:00
Marius Vollmer
7241f21353 *** empty log message *** 2004-08-03 17:24:44 +00:00
Marius Vollmer
5ad8c0c95b * num2integral.i.c, num2float.i.c: Removed.
* Makefile.am (noinst_HEADERS): Updated.
2004-08-03 17:24:28 +00:00
Marius Vollmer
96d8c21757 *** empty log message *** 2004-08-03 17:16:29 +00:00
Marius Vollmer
5615f696b6 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.
2004-08-03 17:15:51 +00:00
Marius Vollmer
7a72bb4181 (scm_make_complex): Discouraged by moving to discouraged.h and
discouraged.c.  Replaced all uses with scm_c_make_rectangular.
2004-08-03 17:13:16 +00:00
Marius Vollmer
8507ec804f (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.
2004-08-03 17:12:14 +00:00
Marius Vollmer
f9656a9f82 *** empty log message *** 2004-08-03 15:56:49 +00:00
Marius Vollmer
cba42c9344 * numbers.h. numbers.c (scm_make_ratio): Renamed to
scm_i_make_ratio and made static, replaced uses with scm_divide.
2004-08-03 15:55:42 +00:00
Marius Vollmer
759aa8f9e0 *** empty log message *** 2004-08-03 15:07:37 +00:00
Marius Vollmer
b8f63daff4 Only perform the tests when the disabled features are enabled. 2004-08-03 15:07:23 +00:00
Marius Vollmer
eae5018eff (test_to_double, test_from_double): New tests. 2004-08-03 15:06:51 +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
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