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

6547 commits

Author SHA1 Message Date
Marius Vollmer
35a3c69ca9 (Numbers): Added description of the new values +inf.0, -inf.0 and
+nan.0.
2002-05-09 19:35:42 +00:00
Marius Vollmer
7b232758cd Added inf? and nan?. 2002-05-09 19:35:32 +00:00
Thien-Thi Nguyen
06dba652b0 *** empty log message *** 2002-05-09 16:28:22 +00:00
Thien-Thi Nguyen
94173d5f20 (scan-C!): Use more robust regexp. 2002-05-09 16:27:40 +00:00
Thien-Thi Nguyen
3161de0f0c Update. 2002-05-08 22:08:23 +00:00
Thien-Thi Nguyen
4c2657ed73 *** empty log message *** 2002-05-08 20:20:45 +00:00
Thien-Thi Nguyen
73b8d652ef Remove top-level `debug-enable' form. 2002-05-08 20:19:22 +00:00
Thien-Thi Nguyen
d1d0c7afa2 Add TODO comment; nfc. 2002-05-08 20:18:12 +00:00
Marius Vollmer
8766d4b5f9 *** empty log message *** 2002-05-08 20:11:37 +00:00
Marius Vollmer
96d00047de (real_eqv): New.
(scm_eqv_p): Use it when comparing reals and complexes.
2002-05-08 20:11:27 +00:00
Marius Vollmer
fc19457701 Include <string.h>, for strncmp.
(mem2complex): Do not create negative NaNs.
(scm_leq_p, scm_geq_p): Explicitely return #f when comparing a
NaN.
(scm_inexact_to_exact): Signal error when converting a NaN.
2002-05-08 20:08:16 +00:00
Marius Vollmer
9ea4ac37ed *** empty log message *** 2002-05-08 20:01:08 +00:00
Marius Vollmer
e23028a580 (format:fn-max): Increase to 400 so ~f and ~g can print long real
numbers with large positive and negative exponents.
2002-05-08 20:00:59 +00:00
Thien-Thi Nguyen
01f6637ceb Initial revision. 2002-05-08 13:16:45 +00:00
Thien-Thi Nguyen
b6c7676343 *** empty log message *** 2002-05-08 13:01:29 +00:00
Thien-Thi Nguyen
d29388060b (scan-api): Handle case where `grouping-hook' is #f. 2002-05-08 13:00:57 +00:00
Thien-Thi Nguyen
2b080aed49 *** empty log message *** 2002-05-08 12:50:22 +00:00
Thien-Thi Nguyen
ac898f8dc4 (scripts_sources): Add "scan-api". 2002-05-08 12:50:01 +00:00
Thien-Thi Nguyen
091cf411a6 Initial revision. 2002-05-08 12:49:37 +00:00
Thien-Thi Nguyen
8eb587aa52 bye bye 2002-05-08 12:45:29 +00:00
Marius Vollmer
1ee34062aa *** empty log message *** 2002-05-07 18:11:05 +00:00
Marius Vollmer
cdf52e3dce (/): Expect divison by an inexact zero to yield +inf.0. 2002-05-07 18:10:59 +00:00
Marius Vollmer
002409fe6f (scm_putenv): Handle removing variables explicitely by calling
unsetenv.
2002-05-06 22:33:52 +00:00
Marius Vollmer
1d8c3cad87 *** empty log message *** 2002-05-06 22:33:35 +00:00
Marius Vollmer
7351e20717 From John W. Eaton.
* numbers.h: Conditionally include floatingpoint.h, ieeefp.h, and
nan.h.	Provide declarations for scm_inf_p, scm_nan_p, scn_inf,
and scm_nan.
* numbers.c: [SCO && ! HAVE_ISNAN] (isnan): New function.
[SCO && ! HAVE_ISINF] (isinf): New function.
(xisinf, xisnan): New functions.
(IS_INF): Delete.
(isfinite): Define in terms of xisinf.
(scm_inf_p, scm_nan_p): New functions.
(guile_Inf, guile_NaN): New file-scope vars.
(guile_ieee_init): New function.
(scm_inf, scm_nan): New functions.
(idbl2str): Handle Inf and NaN.	Remove funny label and
corresponding gotos.
(ALLOW_DIVIDE_BY_ZERO): New macro.
(scm_divide): Allow division by zero to occur if
ALLOW_DIVIDE_BY_ZERO is defined.
Handle bignums and ints as special cases.

Additional stuff by me:

numbers.c (mem2ureal): Recognize "inf.0" and "nan.xxx".
(scm_even_p, scm_odd_p): Treat infinity as even and odd.
(iflo2str): Don't output a '+' for negative numbers or for Inf and
NaN.  They will provide their own sign.
(scm_divide): Only allow divides by inexact zeros.  Dividing by
exact zeros still signals an errors.
2002-05-06 22:33:10 +00:00
Marius Vollmer
232898d93d Conditionally include floatingpoint.h, ieeefp.h, and nan.h. Provide
declarations for scm_inf_p, scm_nan_p, scn_inf, and scm_nan.
2002-05-06 22:27:42 +00:00
Marius Vollmer
d4dba28076 *** empty log message *** 2002-05-06 22:27:06 +00:00
Marius Vollmer
594e69b74b (AC_CHECK_HEADERS): Check for floatingpoint.h ieeefp.h, and nan.h.
(AC_CHECK_FUNCS): Check for finite, isinf, and isnan.
2002-05-06 22:26:57 +00:00
Thien-Thi Nguyen
f7481d58bb (process-groupings): Fix bug: Pass non-#f third arg to `add-hook!'. 2002-05-06 20:59:31 +00:00
Thien-Thi Nguyen
a7954a3eda Initial revision. 2002-05-06 20:37:54 +00:00
Marius Vollmer
2a7461f5ed *** empty log message *** 2002-05-06 19:32:30 +00:00
Marius Vollmer
0a77048bfd (regexp-substitute/global): Do not test with empty regexp. Empty
regexps do not work on NetBSD.
2002-05-06 19:32:20 +00:00
Marius Vollmer
8f16fe5a70 Include <sys/types.h> before <netinet/in.h> when checking vor IPv6.
This is for NetBSD 1.5.  Thanks to Greg Troxel!
2002-05-06 19:04:40 +00:00
Marius Vollmer
43a1d6f1e5 *** empty log message *** 2002-05-06 19:04:31 +00:00
Marius Vollmer
45845efeb3 *** empty log message *** 2002-05-06 18:52:50 +00:00
Marius Vollmer
0b1b772f29 (basic syncase macro): Added. 2002-05-06 18:52:01 +00:00
Marius Vollmer
5f1bde674f Use (ice-9 threads) so that with-mutex is defined. 2002-05-06 18:45:24 +00:00
Marius Vollmer
beac3691b7 *** empty log message *** 2002-05-06 18:44:09 +00:00
Marius Vollmer
c8519a82f2 (scm_string_tokenize): Instead of using "isgraphic" as the subtitute
for char-set:graphic when then token-set hsa been defaulted, grab the
real char-set:graphic from (srfi srfi-14).
2002-05-06 18:44:02 +00:00
Marius Vollmer
139e5cb2fb (SCM_CHARSET_GET): Cast IDX to unsigned char so that it works for
8-bit characters.  Thanks to Matthias Koeppe!  No, make that "Köppe".
2002-05-06 18:43:54 +00:00
Thien-Thi Nguyen
d47fd163a9 *** empty log message *** 2002-05-01 21:04:21 +00:00
Thien-Thi Nguyen
e333e6cc17 bye bye 2002-05-01 21:03:41 +00:00
Thien-Thi Nguyen
0859b96a4e Add call to $mscripts/render-bugs to create BUGS file. 2002-05-01 21:02:14 +00:00
Thien-Thi Nguyen
49135c5db3 *** empty log message *** 2002-05-01 02:36:54 +00:00
Thien-Thi Nguyen
4b93c26312 (make-display-item): Hoist some lambdas; nfc. 2002-05-01 02:35:56 +00:00
Thien-Thi Nguyen
0bd1b44f15 *** empty log message *** 2002-04-30 22:02:24 +00:00
Thien-Thi Nguyen
19e34cd7d0 (ice9_sources): Add gap-buffer.scm. 2002-04-30 22:01:34 +00:00
Thien-Thi Nguyen
c517e17593 Initial revision.
Differences between this and (ttn gap-buffer):
Use string-join; autoload (srfi srfi-13).
Values for `default-initial-allocation', `default-chunk-size'
and `default-realloc-threshold' are 4x as large.
2002-04-30 21:59:38 +00:00
Marius Vollmer
b592db01b8 *** empty log message *** 2002-04-30 07:41:43 +00:00
Marius Vollmer
87ea4cd389 Invoke plain aclocal instead of guile-aclocal.sh. We don't need the
Guile m4 macros and the previous invocation of guile-aclocal.sh
created the aclocal.m4 file in the wrong directory (see change from
2002-04-26).
2002-04-30 07:41:36 +00:00