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

4393 commits

Author SHA1 Message Date
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
Kevin Ryde
292dfa7fbc *** empty log message *** 2004-02-15 23:44:15 +00:00
Kevin Ryde
344a212fd1 *** empty log message *** 2004-02-15 00:37:52 +00:00
Mikael Djurfeldt
711a9fd7ee * unif.c (scm_make_uve): Removed local variable and simplified
code in order to avoid compiler used uninitialized warnings.

* hashtab.c, hashtab.h (scm_hash_map_to_list): Renamed from
scm_hash_map.
(scm_hash_fold): Use scm_call_3 directly in the call to
scm_internal_hash_fold instead of going via fold_proc (which is
now removed).
(scm_hash_for_each): Use a trampoline +
scm_internal_hash_for_each_handle.
(scm_internal_hash_for_each_handle, scm_hash_for_each_handle): New
functions.
2004-02-13 23:15:37 +00:00
Kevin Ryde
a150979dab (scm_port_line): In docstring, note first line is 0.
(scm_set_port_line_x): In docstring, note first line is 0.
(scm_port_column): In docstring, there's no default to current input
port, and remove shared port-line @defun.
(scm_set_port_column_x): In docstring, there's no default to current
input port, note first column is 0, remove shared set-port-line!
@defun.
2004-02-12 00:45:36 +00:00
Kevin Ryde
88531a74f3 *** empty log message *** 2004-02-11 23:46:30 +00:00
Kevin Ryde
3da7f6b233 *** empty log message *** 2004-02-11 23:33:46 +00:00
Kevin Ryde
7c183c95a4 (scm_make_uve, scm_array_p): Allow fraction 1/3 as prototype
for dvect.
(scm_array_p): Add missing "break"s in switch, fix llvect test look
for "l" not "s", fix dvect to be false for singp(prot) since such a
value is for fvect.
(scm_array_prototype): Return 1/3 for dvect, rather than 0.33..33.
2004-02-11 23:20:26 +00:00
Kevin Ryde
ac3c6ad6cf (scm_array_fill_x): For fvect and dvect, use scm_num2dbl to
convert args the same way that array-set! does.
2004-02-11 23:16:53 +00:00
Neil Jerram
cd21f5eb17 * read.c (scm_read_opts): Change `escaped-parens' to
`elisp-strings'.
2004-02-10 19:44:10 +00:00
Neil Jerram
16353acc6f * read.c (scm_read_opts): New opts `elisp-vectors' and
`escaped-parens'.
	(s_vector): New.
	(scm_lreadr): Use scm_lreadparen1 instead of scm_lreadparen.  Make
	handling of elisp vector syntax dependent on SCM_ENABLE_ELISP and
	`elisp-vectors' option instead of SCM_ELISP_READ_EXTENSIONS.
	Allow "\(" and "\)" in strings when SCM_ENABLE_ELISP defined and
	`escaped-parens' option set.
	(scm_read_token): If elisp vector syntax active, disallow [ and ]
	in tokens.
	(scm_lreadparen): Rewrite as interface to scm_lreadparen1.
	(scm_lreadparen1): New.

	* read.h: Remove conditionally compiled last arg to
	scm_lreadparen.
	(SCM_ELISP_VECTORS_P, SCM_ESCAPED_PARENS_P): New.
2004-02-08 19:14:18 +00:00
Han-Wen Nienhuys
f62b9dff21 (m_expand_body): remove stray variable new_body. 2004-01-22 23:14:09 +00:00