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

5260 commits

Author SHA1 Message Date
Kevin Ryde
b80fcfc4ad *** empty log message *** 2006-05-09 00:28:02 +00:00
Kevin Ryde
05d0fc3833 (scm_seek): Use lseek64.
(scm_truncate_file): Use ftruncate64.
2006-05-09 00:26:58 +00:00
Kevin Ryde
e6a7795376 (scm_open_fdes): Use open64.
(scm_init_filesys): Add O_LARGEFILE.
2006-05-09 00:26:01 +00:00
Kevin Ryde
65581bc84d (scm_i_divide): For big/big wanting inexact, use mpq_get_d
rather than converting to doubles, to avoid inf or nan when the inputs
are too big for a double but the quotient does fit.  This affects
conversions exact->inexact of big fractions.
2006-05-09 00:25:11 +00:00
Marius Vollmer
101bd61cf5 *** empty log message *** 2006-05-07 22:54:25 +00:00
Marius Vollmer
6f4e78e532 (CELL_P): Also check that the potential pointer is
correctly aligned for a cell.  Thanks to Miroslav Lichvar!
2006-05-07 22:53:58 +00:00
Rob Browning
0173b78c97 *** empty log message *** 2006-04-19 03:58:03 +00:00
Rob Browning
2ac0f04603 Add back error if the size of off_t is unknown. The bug was actually
in guile-readline's configuration.
2006-04-19 03:57:03 +00:00
Kevin Ryde
84f954caec *** empty log message *** 2006-04-17 23:39:47 +00:00
Kevin Ryde
adce9123c3 (scm_mkstemp): Update docstring from the manual, in
particular file mode 0600 is not guaranteed.
2006-04-17 23:23:30 +00:00
Kevin Ryde
60771f9057 *** empty log message *** 2006-04-17 01:24:50 +00:00
Kevin Ryde
5c7ff8d92a (scm_to_off_t, scm_from_off_t): No error if unknown off_t
size, to help the guile-readline build where off_t is unused.
2006-04-17 01:22:27 +00:00
Kevin Ryde
51c28a2047 scm_t_uint64 cast in scm_i_uniform32, which was apparently Mikael's
intention (as in the HEAD).
2006-04-17 00:25:52 +00:00
Kevin Ryde
d958b13ed0 Show Mikael's random.c change under his name, to reduce diff between
1.8 branch and the head.
2006-04-17 00:24:17 +00:00
Kevin Ryde
287bb7a23f *** empty log message *** 2006-04-16 01:39:29 +00:00
Kevin Ryde
171412ff78 (stat_or_stat64 etc): Macros for selecting LFS64 when available. 2006-04-16 01:33:22 +00:00
Kevin Ryde
c506a7fda5 (scm_stat2scm, scm_stat, scm_lstat): Use stat64.
(scm_readdir): Use readdir64.
(scm_copy_file): Use open64 and fstat64, to cope with >2Gb files.
2006-04-16 01:26:29 +00:00
Kevin Ryde
1c64e87552 (scm_truncate_file): Use truncate64. Correction truncate
and ftruncate take off_t not size_t.
2006-04-16 01:21:38 +00:00
Kevin Ryde
ffe9f271cc *** empty log message *** 2006-04-06 00:15:18 +00:00
Kevin Ryde
e33026ad91 (scm_setvbuf): Fix for not _IOLBF, clear SCM_BUFLINE
instead of toggling it.  Reported by Ludovic Courtès.
2006-04-06 00:14:10 +00:00
Marius Vollmer
50a64877dd * threads.c (get_thread_stack_base): Use scm_get_stack_base
instead of accessing __libc_stack_end directly, and only do this
when pthread_attr_getstack is known not to work for the main
thread or when not using pthreads at all.

* gc_os_dep.c (scm_get_stack_base): Abort when the machine type is
unknown instead of returning NULL.
2006-03-25 22:24:21 +00:00
Kevin Ryde
1e85890c0e *** empty log message *** 2006-03-21 00:56:33 +00:00
Kevin Ryde
2d25ec1981 2006-03-21 Ludovic Courtès <ludovic.courtes@laas.fr>
* numbers.c (scm_i_mem2number): Renamed to
	scm_c_locale_stringn_to_number.
	* numbers.c, print.c, read.c: Updated callers.
2006-03-21 00:45:09 +00:00
Kevin Ryde
d0a9429acc 2006-03-21 Ludovic Courtès <ludovic.courtes@laas.fr>
* numbers.c (scm_i_mem2number): Renamed to
	scm_c_locale_stringn_to_number.
        * numbers.h: Update function declaration.
2006-03-21 00:42:41 +00:00
Neil Jerram
a9bcaa37b3 (string_set): Don't return in a void function. (Reported
by Mike Gran.)
2006-03-11 20:47:52 +00:00
Neil Jerram
05b454920e (scm_uniform_vector_read_x): Declare base as char*
rather than void*, so we can do pointer arithmetic on it.
(Reported by Mike Gran.)
(s_scm_uniform_vector_write): Ditto.
2006-03-11 12:32:25 +00:00
Neil Jerram
41352a0ab0 (scm_make_shared_array): Don't use SCM_I_ARRAY_BASE when
oldra is not an array.  (Reported by Steve Juranich.)
2006-03-10 23:59:33 +00:00
Neil Jerram
b82115b8ba (do_unlock): Renamed from "unlock", which is defined
in unistd.h on QNX.  (Reported by Matt Kraai.)
2006-03-10 23:04:46 +00:00
Kevin Ryde
e1110dcbdf *** empty log message *** 2006-03-03 23:58:32 +00:00
Kevin Ryde
f367635227 Copyright year 2006-03-03 23:57:27 +00:00
Kevin Ryde
b89dc7ae57 Change comments from C++ to C style. Reported by Mike Gran. 2006-03-03 23:56:51 +00:00
Kevin Ryde
1b52ef74b7 *** empty log message *** 2006-03-03 23:36:58 +00:00
Kevin Ryde
51d123b40c (scm_i_defer_ints_etc): Show SCM_DEFER_INTS in message,
not SCM_CRITICAL_SECTION_START.
2006-03-03 23:35:57 +00:00
Kevin Ryde
6c4015417a *** empty log message *** 2006-02-27 16:37:34 +00:00
Kevin Ryde
b0ef6db3d0 (bitvector_set): Use h->writable_elements not h->elements. 2006-02-27 16:34:12 +00:00
Kevin Ryde
dbc82ba387 *** empty log message *** 2006-02-25 21:23:33 +00:00
Kevin Ryde
d34a52e744 (scm_readdir): Use fpathconf for the dirent size when
NAME_MAX is not available, which is so on Solaris 10.  Report and help
by Bill Schottstaedt.
2006-02-25 21:22:30 +00:00
Kevin Ryde
b39546b95f *** empty log message *** 2006-02-25 20:51:32 +00:00
Kevin Ryde
c39ca281a3 (MY_VALIDATE_SUBSTRING_SPEC_UCOPY): New macro.
(scm_string_compare, scm_string_compare_ci, scm_string_lt,
scm_string_gt, scm_string_le, scm_string_ge, scm_string_ci_lt,
scm_string_ci_gt, scm_string_ci_le, scm_string_ci_ge): In comparisons
use "unsigned char", not signed char.  This ensures comparisons are
the same as `char<?' etc, and is also the same as guile 1.6 did.
Reported by Sven Hartrumpf.
2006-02-25 20:50:02 +00:00
Marius Vollmer
cbd17f3783 *** empty log message *** 2006-02-20 21:17:59 +00:00
Marius Vollmer
5f25a9a1a7 Test for SCM_HAVE_T_UINT64 instead of
SCM_HAVE_T_INT64.
(scm_i_uniform32, scm_i_uniform32, scm_i_init_rstate): Use
scm_t_uint64 and scm_t_uint32 instead of scm_t_int64 and
scm_t_int32.
2006-02-20 21:17:37 +00:00
Kevin Ryde
908c45434e *** empty log message *** 2006-02-15 00:40:13 +00:00
Kevin Ryde
0e84f2fea2 2006-02-14 Ludovic Courtès <ludovic.courtes@laas.fr>
* gc-malloc.c (decrease_mtrigger): Make sure SIZE is lower than or
	equal to SCM_MALLOCATED.
2006-02-15 00:38:44 +00:00
Kevin Ryde
a0e39346e2 2006-02-14 Ludovic Courtès <ludovic.courtes@laas.fr>
* strings.c (scm_i_take_stringbufn): Register LEN+1 bytes instead of
	LEN.  Without this, too much collectable memory gets unregistered,
	which results in an underflow of SCM_MALLOCATED in
	`decrease_mtrigger()'.
2006-02-15 00:36:58 +00:00
Marius Vollmer
677ad9d214 (scm_eval_body): Use scm_i_dynwind_pthread_mutex_lock
oinstead of scm_dynwind_pthread_mutex_lock so that it works when
configured --without-threads.
(SCM_APPLY, CEVAL): Likewise.  Thanks to Han-Wen Nienhuys!
2006-02-12 22:54:29 +00:00
Marius Vollmer
0ab652a386 Added 2006 to copyright years in every file, as per the new rules. 2006-02-12 13:42:52 +00:00
Marius Vollmer
c3eed9ee87 Fixed typo. 2006-02-12 12:40:58 +00:00
Marius Vollmer
bbcade428b * deprecated.scm (make-uniform-array): Don't pass the prototype as
the fill value, dimensions->uniform-array will do the right thing
now.  See scm_dimensions_to_uniform_array why we need to be tricky
about the fill value.

* unif.c (scm_dimensions_to_uniform_array): Use the prototype for
filling when the fill paramater is omitted, as documented, but
turn #\nul into 0 since s8 arrays (signified by a #\nul prototype)
can not store characters.
2006-02-12 00:57:14 +00:00
Neil Jerram
58b1ceaf5c (scm_c_make_socket_address): Pass address_size pointer
on to scm_fill_sockaddr call.
2006-02-09 14:08:12 +00:00
Kevin Ryde
689596d425 *** empty log message *** 2006-02-06 20:43:27 +00:00