Kevin Ryde
2926035a17
*** empty log message ***
2004-03-24 22:16:50 +00:00
Kevin Ryde
2a06f79117
(scm_min, scm_max): Correction to big/real and real/big,
...
return inexact as required by r5rs.
2004-03-24 21:53:31 +00:00
Dirk Herrmann
62360b8975
* libguile/eval.c: Separated some definitions relevant for execution
...
from the memoization part of the file.
(copy_tree): New static function
(scm_copy_tree): Rewritten to fix two kinds or bugs: First, cyclic
structures are detected now and will lead to an exception instead
of forcing guile to run in an endless loop, using up all the
system's memory. Second, arrays in the cdr of an improper list
are now copied. See the new test cases in eval.test.
* test-suite/tests/eval.test: Added tests which reflect the recent
fixes to copy-tree.
2004-03-24 01:21:50 +00:00
Dirk Herrmann
b28f5b3cb2
* posix.c (scm_gethostname): Make sure len is initialised before
...
it is used. Restructured to (hopefully) represent possible
configurations more clearly in the code. Added unwind handler.
2004-03-24 00:49:07 +00:00
Kevin Ryde
3bd3bae820
*** empty log message ***
2004-03-23 00:23:54 +00:00
Kevin Ryde
0eaf105588
(scm_gethostname): Use sysconf(_SC_HOST_NAME_MAX) and/or
...
MAXHOSTNAMELEN when available.
2004-03-22 23:41:30 +00:00
Marius Vollmer
77895d89cf
Don't ignore .cvsigore
2004-03-21 02:12:49 +00:00
Marius Vollmer
254bf78d53
*** empty log message ***
2004-03-21 02:03:02 +00:00
Marius Vollmer
1988130220
(skip_scsh_block_comment): Also recognize '\r' as a line terminator.
...
Rewritten the logic as a state machine, I must have been doing too
much VHDL lately...
2004-03-21 02:02:08 +00:00
Marius Vollmer
fc22b297fc
(scm_ceval, scm_deval): Explicitely evaluate ports to themselves.
...
Thanks to Han-Wen Nienhuys!
2004-03-21 00:30:12 +00:00
Marius Vollmer
71a896390e
Changed docstrings so that they no longer talk about returning
...
'pointers' to something.
2004-03-20 23:55:03 +00:00
Han-Wen Nienhuys
009c34a2da
* gc.c: remove set_debug_cell_accesses! when
...
SCM_DEBUG_CELL_ACCESSES is not defined. Scheme source code should
use (if (defined? 'set-debug-cell-accesses!) .. ) to switch on
debugging conditionally.
2004-03-20 23:37:52 +00:00
Kevin Ryde
54733c952d
*** empty log message ***
2004-03-20 23:22:17 +00:00
Kevin Ryde
45198ffbfe
(scm_gmtime): Use gmtime_r when available, for thread safety.
2004-03-20 23:18:06 +00:00
Kevin Ryde
bbaf87472b
*** empty log message ***
2004-03-19 23:17:59 +00:00
Kevin Ryde
228651245d
* posix.c (scm_gethostname): Preserve errno across free() call.
2004-03-19 23:17:00 +00:00
Han-Wen Nienhuys
726f82e747
(sweep_card): use SCM_GC_SET_CELL_WORD for setting
...
free cells.
2004-03-18 00:19:52 +00:00
Kevin Ryde
e1350d6afa
*** empty log message ***
2004-03-13 23:34:13 +00:00
Kevin Ryde
3c61e80f1d
Define _GNU_SOURCE for strptime prototype from glibc. Use
...
HAVE_DECL_STRPTIME for when to give own strptime prototype.
2004-03-13 23:32:16 +00:00
Kevin Ryde
62055253bd
*** empty log message ***
2004-03-06 22:43:45 +00:00
Kevin Ryde
d6d9e95746
(scm_gmtime): Return bd_time->tm_zone when available, rather than "GMT" always.
...
(filltime): Make zname parameter "const".
2004-03-06 22:41:26 +00:00
Mikael Djurfeldt
92e64b873b
(scm_c_scm2thread): New function.
2004-03-03 16:53:15 +00:00
Kevin Ryde
004ad93130
*** empty log message ***
2004-02-28 20:11:14 +00:00
Kevin Ryde
240a27d2c5
(guile_ieee_init): Use C99 INFINITY and NAN when
...
available. Test HAVE_DINFINITY and HAVE_DQNAN for those globals, in
particular don't assume "defined (__alpha__) && ! defined (linux)"
means OSF. Remove "SCO" code, which was not really SCO specific and
which John W. Eaton advises should be long past being needed.
2004-02-28 20:01:13 +00:00
Kevin Ryde
807f353fed
(scm_execl, scm_execlp, scm_execle): Avoid memory leak under error throw.
2004-02-28 19:16:26 +00:00
Kevin Ryde
72ea45ac4c
*** empty log message ***
2004-02-23 22:59:20 +00:00
Kevin Ryde
1b317eb196
(scm_cuserid): Use a private result buffer, for thread safe.
2004-02-23 22:05:37 +00:00
Kevin Ryde
2af0602e45
*** empty log message ***
2004-02-21 21:59:34 +00:00
Kevin Ryde
dab4e67a0a
(scm_max, scm_min): For one arg, dispatch to generic for
...
complex, same as for two args. (Handle only inum, big, real, frac).
2004-02-21 21:58:30 +00:00
Kevin Ryde
db752bb5cf
*** empty log message ***
2004-02-21 21:21:29 +00:00
Kevin Ryde
2c0334eccd
(NUM2FLOAT): Expand isfinite to !xisinf, as per previous change to numbers.c.
2004-02-21 00:10:47 +00:00
Kevin Ryde
b114eafe80
*** empty log message ***
2004-02-20 23:24:27 +00:00
Kevin Ryde
d675a50f53
Add copyright year 2002, which appears in the ChangeLog.
2004-02-20 23:20:15 +00:00
Kevin Ryde
e60923476f
Add a copyright year.
2004-02-20 23:19:03 +00:00
Kevin Ryde
b9a7b725a8
(scm_crypt): Use new HAVE_CRYPT.
...
(<crypt.h>): Remove HAVE_LIBCRYPT condition.
2004-02-20 23:18:10 +00:00
Neil Jerram
1e55d28813
* list.c (scm_list_n): Add #if SCM_DEBUG_CELL_ACCESSES_P around
...
validation.
* read.c (scm_lreadparen): Removed.
(scm_lreadparen1): Renamed scm_i_lreadparen.
2004-02-20 22:04:24 +00:00
Han-Wen Nienhuys
eb741d98e2
(scm_list_n): check validate non-immediate arguments;
...
this will catch forgotten a SCM_UNDEFINED.
2004-02-20 21:15:56 +00:00
Marius Vollmer
4e28ba5efd
*** empty log message ***
2004-02-18 21:16:01 +00:00
Marius Vollmer
0d558fbb95
* gc.h (scm_gc_cells_collected): Removed duplicated declaration.
...
Thanks to Bill Schottstaedt!
* socket.h (scm_gethost): Removed prototype it is already in
"net_db.h". Thanks to Bill Schottstaedt!
2004-02-18 21:14:35 +00:00
Kevin Ryde
ef861eadba
*** empty log message ***
2004-02-18 00:30:37 +00:00
Kevin Ryde
29c560674b
(INTEGRAL2BIG): WORDS_BIGENDIAN not right for word
...
order parameter to mpz_import, in fact with just one word there's no
order to worry about at all.
2004-02-18 00:25:39 +00:00
Kevin Ryde
48dc9f349d
(scm_shell_usage): Print to stdout for --help, per GNU standard.
2004-02-18 00:22:28 +00:00
Kevin Ryde
d8b95e27ab
(scm_num_eq_p): For real==frac, complex==frac, frac==real
...
and frac==complex, make an exact comparison rather than converting
with fraction2double.
2004-02-18 00:21:11 +00:00
Kevin Ryde
eb7e1603ad
(environ): Use _NSGetEnviron in Darwin
...
shared library, since environ is not directly available there.
2004-02-18 00:20:08 +00:00
Kevin Ryde
73ae3b4cb5
(scm_localtime, scm_gmtime, scm_mktime): Provide a default
...
errno EINVAL in case localtime and gmtime don't set it.
(scm_mktime, scm_strptime): Forcibly use errno EINVAL for our
SCM_SYSERROR, since mktime and strptime generally don't set errno.
2004-02-17 23:37:06 +00:00
Kevin Ryde
c9ea646268
*** empty log message ***
2004-02-16 00:51:17 +00:00
Kevin Ryde
290e9e11e4
Add a copyright year.
2004-02-16 00:50:23 +00:00
Kevin Ryde
4cd3853f37
(scm_done_malloc, scm_done_free): Allow negative sizes,
...
which were permitted in the past for these.
2004-02-16 00:45:55 +00:00
Kevin Ryde
ae43d08ea0
*** empty log message ***
2004-02-16 00:03:44 +00:00
Kevin Ryde
e69681aef4
(scm_shell_usage): Print bug-guile email address, as per
...
GNU standard. Reported by Han-Wen Nienhuys.
2004-02-15 23:49:20 +00:00