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

3645 commits

Author SHA1 Message Date
Kevin Ryde
f98f48bd06 (scm_cons_star): Don't modify the rest list, it belongs to
the caller when cons* is reached through apply.
2005-04-22 23:47:52 +00:00
Kevin Ryde
36ef49fbb4 (list): Use scm_list_copy, so as to produce a fresh list when
list is called using apply, under the debugging evaluator.
(scm_list): Remove.
2005-04-22 23:47:10 +00:00
Kevin Ryde
c581c8eb55 *** empty log message *** 2005-03-25 20:57:03 +00:00
Kevin Ryde
1db3c9000f Change from the head 2004-04-06 by Han-Wen Nienhuys:
Fixes srfi-13 string-index segv on strings containing 8-bit
characters, reported by Alexey Voinov.
* chars.h (SCM_MAKE_CHAR): add (unsigned char) cast. This prevents
havoc when hi-bit ASCII is subjected to SCM_MAKE_CHAR().
2005-03-25 20:54:09 +00:00
Kevin Ryde
b12fc874dc *** empty log message *** 2005-02-20 22:57:06 +00:00
Kevin Ryde
1bbf2cb8cd (scm_istr2flo): In polar form angle part, use SCM_INEXACTP
not SCM_SLOPPY_INEXACTP, since recursive scm_istr2flo can give #f.
Reported by Rafael Avila de Espíndola.
2005-02-20 22:52:01 +00:00
Kevin Ryde
37666d49b9 *** empty log message *** 2005-01-23 22:02:40 +00:00
Kevin Ryde
7398c4370a (scm_setlocale): Force errno=EINVAL for an error, since
POSIX and C99 don't document errno being set.  Reported by Bruno
Haible.
2005-01-23 21:57:17 +00:00
Marius Vollmer
71d1dd79b7 *** empty log message *** 2005-01-17 19:05:03 +00:00
Marius Vollmer
ba96ba4cdc * objects.h, objects.c (scm_classes_initialized): New.
(scm_class_of): Signal error when scm_classes_initialized is zero.
* goops.c (create_standard_classes): Set scm_classes_initialized
to one.
2005-01-17 19:04:54 +00:00
Marius Vollmer
79486f9fdb *** empty log message *** 2005-01-10 20:28:47 +00:00
Marius Vollmer
1882a272f7 (scm_eval): Added example to docstring. Thanks to Issac
Trotts!
2005-01-10 20:25:39 +00:00
Neil Jerram
f268660d1e Fix making a stack from a continuation (ChangeLog). 2004-12-27 23:21:09 +00:00
Neil Jerram
6686011779 Fix making a stack from a continuation, and related functions. 2004-12-27 23:19:30 +00:00
Rob Browning
660ab63ded *** empty log message *** 2004-12-19 15:19:15 +00:00
Rob Browning
4f43d1f282 (guile_LDADD): add libguile-ltdl.la to keep
./pre-inst-guile (actually ./.libs/lt-guile) from failing on some
architectures.  The unconfirmed suspicion is that this is some
problem with autotools (automake, autoconf, and/or libtool) since
libguile already includes a libguile-ltdl.la dependency.
2004-12-19 15:19:06 +00:00
Kevin Ryde
6694258059 *** empty log message *** 2004-12-15 22:58:25 +00:00
Kevin Ryde
1885f42093 (scm_array_map_x): Correction to sources list check, only
need at least one source, not two.  And use SCM_WRONG_NUM_ARGS() for
the error.
2004-12-15 22:54:54 +00:00
Kevin Ryde
6255e812dc *** empty log message *** 2004-12-08 22:56:52 +00:00
Kevin Ryde
0e66d88fa2 (scm_istr2int): Correction to bignum size calculation for
bases other than 2, 10, 16.  This avoids overflows, in particular in
octal string->number and constants (other bases are undocumented, but
reach here so may as well work).
2004-12-08 22:50:09 +00:00
Kevin Ryde
abafc12d3d (scm_istr2int): Correction to overflow test, should be
"blen >= j" not "blen > j", since after blen++ the k<blen loop will
have k==j which is past the end of the j length array and overwrites
data, leading to segvs in certain circumstances.  And put the test
only before the blen++, which is the only place it can overflow, and
since we can legitimately get to blen==j with t2==0 when filling the
high word of the bignum.
2004-12-08 22:29:36 +00:00
Kevin Ryde
1204ecc349 (scm_execle): Correction to memory leak change, need to restore errno. 2004-12-02 00:10:54 +00:00
Kevin Ryde
1f97913e2e *** empty log message *** 2004-12-02 00:10:15 +00:00
Kevin Ryde
dfa3289e76 *** empty log message *** 2004-11-29 21:19:16 +00:00
Kevin Ryde
be21209c1a (NetBSD): Test __m68k__ and __arm__ as well as m68k and
arm32.  Reported by Greg Troxel.
2004-11-29 21:18:15 +00:00
Marius Vollmer
6887d541ce *** empty log message *** 2004-11-04 17:12:07 +00:00
Marius Vollmer
b11b1bd4c1 (scm_charnames, scm_charnums): Added "sp" as an alias for "space".
Thanks to Bruce Korb!
2004-11-04 17:11:59 +00:00
Marius Vollmer
c88a951fd4 *** empty log message *** 2004-09-29 15:59:01 +00:00
Marius Vollmer
0f63e88d5d (scm_array_equal_p): Include scm_tc7_svect in switch. Thanks to
Roland Orre!
2004-09-29 15:58:19 +00:00
Rob Browning
cfa8856006 *** empty log message *** 2004-09-20 06:01:15 +00:00
Rob Browning
b4393f8b3c (scm_compile_shell_switches): Update copyright. 2004-09-20 05:46:56 +00:00
Rob Browning
7987378bd3 *** empty log message *** 2004-09-20 05:45:39 +00:00
Rob Browning
6ce15cabc5 (scm_set_smob_apply): Back out scm_remember_upto_here_1 addition from
yesterday.  It worked, but wasn't the "right" fix since tc is not
subject to GC and has the wrong type.  Instead, rearrange the code in
a way that also avoids the segfault.  Thanks to Sam Hocevar.
2004-09-20 05:43:15 +00:00
Rob Browning
e63bb69d27 *** empty log message *** 2004-09-20 03:47:15 +00:00
Rob Browning
8d0c5006b9 (scm_set_smob_apply): protect tc value with scm_remember_upto_here_1.
Problem was noticed when m68k build segfaulted on document generation.
Reported by Sam Hocevar <sam@zoy.org> (thanks).
2004-09-20 03:47:07 +00:00
Kevin Ryde
f86d524a89 (scm_getc, scm_lfwrite): Recognise \a \b and \r for port column. 2004-09-09 00:10:02 +00:00
Kevin Ryde
5a8d151e8a *** empty log message *** 2004-09-09 00:02:08 +00:00
Kevin Ryde
d987a73787 (SCM_ZEROCOL, SCM_DECCOL): New macros. 2004-09-09 00:01:08 +00:00
Marius Vollmer
ce76fac1fe *** empty log message *** 2004-09-07 15:51:49 +00:00
Marius Vollmer
414f3b7c9d * gc.h (SCM_SET_FREE_CELL_TYPE): New macro.
* gc.c (init_heap_seg): Use it instead of SCM_SET_CELL_TYPE, which
might cause unwanted checking with SCM_DEBUG_CELL_ACCESSES.
2004-09-07 15:50:36 +00:00
Kevin Ryde
76c6d134b2 *** empty log message *** 2004-09-07 00:09:36 +00:00
Kevin Ryde
eaaf29a278 (scm_nice): Correction to error detection. Reported by
Matthias Koeppe.
2004-09-07 00:08:42 +00:00
Han-Wen Nienhuys
459cf1f259 (scm_init_guile_1): move scm_weaks_prehistory before
scm_struct_prehistory. The effect is that structs are freed before
weak vectors are cleaned up. This fixes a bug reported by Kevin
Ryde (putting a struct into a weak vector exposes a freed cell).
2004-08-31 21:44:46 +00:00
Rob Browning
d99217eb04 *** empty log message *** 2004-08-29 23:03:46 +00:00
Rob Browning
2c9656e8c7 (s_scm_array_map_x): update documentation; rename ra0 to
dest, and lra to sources; don't allow (and segfault on) calls
without source arrays, i.e. don't allow (array-map! x proc).
(ramap_1): minor code reformatting.
2004-08-29 23:02:53 +00:00
Kevin Ryde
d2b789516a *** empty log message *** 2004-08-27 01:16:40 +00:00
Kevin Ryde
1155d5ebe2 (scm_fill_sockaddr): Use HAVE_STRUCT_SOCKADDR_SIN_LEN and
HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN for sockaddr fields, SIN_LEN and
SIN_LEN6 are not defined on all systems.  Reported by Michael Tuexen.
2004-08-27 01:12:52 +00:00
Kevin Ryde
88596b9f71 *** empty log message *** 2004-08-17 23:55:53 +00:00
Kevin Ryde
2736b01a86 *** empty log message *** 2004-08-17 23:49:50 +00:00
Kevin Ryde
7caf322c41 (scm_init_socket): Add SOCK_SEQPACKET and SOCK_RDM. 2004-08-17 23:49:09 +00:00