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

5232 commits

Author SHA1 Message Date
Kevin Ryde
9d5dc023b4 (scm_error_pair_access): Use scm_from_locale_string rather
than scm_makfrom0str.
Reported by Ken Raeburn.
2005-07-11 23:50:45 +00:00
Kevin Ryde
adc0677d60 *** empty log message *** 2005-07-11 00:13:36 +00:00
Kevin Ryde
5ee417fc83 (scm_inet_pton, scm_inet_ntop): Pointer cast to scm_t_uint8
for scm ipv6 funcs, gcc 4 is picky about char* vs uchar*.
(scm_getsockopt, scm_accept, scm_getsockname, scm_getpeername,
scm_recvfrom) Use socklen_t, gcc 4 is picky about int* vs socklen_t*.
2005-07-10 01:56:07 +00:00
Han-Wen Nienhuys
8fecbb1900 * gc-card.c (scm_i_card_statistics): init tag.
* gc.c (tag_table_to_type_alist): check type of tag. Should be integer.
2005-07-01 12:34:58 +00:00
Han-Wen Nienhuys
fc9c5d0684 *** empty log message *** 2005-06-26 23:25:18 +00:00
Kevin Ryde
08fce816cb *** empty log message *** 2005-06-24 21:54:15 +00:00
Kevin Ryde
8230ee411d (scm_string_filter, scm_string_delete): Partial revert
last change, use plain copy-on-write substrings, the individual
descriptions in the srfi don't mention shared storage (only the
introduction does).
2005-06-24 21:53:10 +00:00
Kevin Ryde
48ddf0d9a9 (scm_take_locale_stringn): Use realloc to make room for
null-terminator, rather than mallocing a whole new block.
(scm_take_locale_string): Use scm_take_locale_stringn len==-1.
2005-06-24 21:43:36 +00:00
Marius Vollmer
12097c77c0 *** empty log message *** 2005-06-12 16:16:37 +00:00
Marius Vollmer
fab07c3048 (scm_array_index_map_x): First test for real arrays,
then check for generalized vectors.  This ensures that the
generalized vector case need only work with zero-origin ranges.
(scm_ra_eqp, scm_ra_compare): Use the new array handle functions
to access the target array, making these functions work with all
kinds of arrays, not just bit arrays.
2005-06-12 14:13:37 +00:00
Marius Vollmer
e3da8a3007 *** empty log message *** 2005-06-12 12:53:40 +00:00
Marius Vollmer
5ead53fc4e (scm_array_index_map_x): First test for real arrays,
then check for generalized vectors.  This ensures that the
generalized vector case need only work with zero-origin ranges.
2005-06-12 12:52:59 +00:00
Marius Vollmer
fc4abd0e6a *** empty log message *** 2005-06-12 12:35:35 +00:00
Marius Vollmer
5c56ebe15b Deprecated everything. 2005-06-12 12:34:52 +00:00
Marius Vollmer
9b26d381c1 (environment_default_folder,
environment_default_observer): Do not use gh_call3, gh_call1.
2005-06-12 12:33:01 +00:00
Han-Wen Nienhuys
e4da074025 *** empty log message *** 2005-06-11 01:48:19 +00:00
Kevin Ryde
2766715855 *** empty log message *** 2005-06-10 22:39:33 +00:00
Kevin Ryde
8753a993c1 (scm_string_filter, scm_string_delete): For char and
charset cases, count chars kept and build a string in a second pass,
rather than using a cons cell for every char kept.  Use a shared
substring when nothing removed (such sharing is allowed by the srfi).
2005-06-10 22:34:59 +00:00
Han-Wen Nienhuys
8a00ba7178 (tag_table_to_type_alist): convert tag number to "tag %d"
string, so live object stats can be sorted with string<?.
2005-06-09 19:33:38 +00:00
Marius Vollmer
2ff668b005 *** empty log message *** 2005-06-06 19:55:08 +00:00
Marius Vollmer
6d92f14f14 (iprin1): When writing a string, collect all characters that can be
printed directly into one call to scm_lfwrite.  Previously, every
character was output with its own call to write(2) on unbuffered
ports.
2005-06-06 19:54:20 +00:00
Marius Vollmer
589f22f665 *** empty log message *** 2005-06-06 18:50:17 +00:00
Marius Vollmer
876099d4ef (scm_eval_options_interface): Use scm_frame_critical_section instead
of SCM_CRITICAL_SECTION_START and SCM_CRITICAL_SECTION_END.
2005-06-06 18:49:55 +00:00
Marius Vollmer
a677679f49 *** empty log message *** 2005-06-06 17:21:50 +00:00
Marius Vollmer
cb5773fe72 (scm_array_in_bounds_p): First test for real arrays, then
check for generalized vectors.  This ensures that the generalized
vector case need only work with zero-origin ranges.
2005-06-06 17:21:26 +00:00
Kevin Ryde
4d54ee3597 *** empty log message *** 2005-06-05 21:36:31 +00:00
Kevin Ryde
f8cda9ee2d *** empty log message *** 2005-06-05 21:19:09 +00:00
Kevin Ryde
994f151dc3 (scm_string_split): Compare char/char in scan. Mixing an
unsigned int SCM_CHAR and a char string meant an 8-bit char was never
matched.
2005-06-05 21:10:13 +00:00
Marius Vollmer
6642f7ace4 *** empty log message *** 2005-06-05 20:52:56 +00:00
Marius Vollmer
e9ed042cbc Added comment on how to make case 1.1 of r5rs_pitfall.test succeed. 2005-06-05 20:52:23 +00:00
Marius Vollmer
cdac1be446 *** empty log message *** 2005-06-05 18:28:20 +00:00
Marius Vollmer
ecc9f40fe5 * hashtab.h: Bugfix: use SCM_API (WAS: extern).
* socket.c: Remove obsolete comment about socklen_t.
(s_scm_setsockopt)[!HAVE_IP_MREQ]: Do not use ip_mreq code.

* numbers.h (isnan)[__MINGW32__]: Remove.

* Makefile.am (gen_scmconfig_SOURCES): Bugfix: Add
DEFAULT_INCLUDES when cross compiling.

* threads.c (ETIMEDOUT, pipe)[__MINGW32__]: Add defines.

* stime.c (s_scm_strftime)[!HAVE_TM_ZONE]: Use
SCM_SIMPLE_VECTOR_REF instead of SCM_VELTS.  (Changed slightly
from Jan's patch.)
2005-06-05 18:27:53 +00:00
Marius Vollmer
92205699d0 The FSF has a new address. 2005-05-23 19:57:22 +00:00
Marius Vollmer
5ae1bd9109 New versions of the GPLand LGPL with the new address of the FSF. 2005-05-23 19:00:08 +00:00
Marius Vollmer
188d0c5ef7 *** empty log message *** 2005-05-22 17:19:38 +00:00
Marius Vollmer
14bed4cc26 (scm_make_shared_array): Add old base to new base since
scm_array_handle_pos does not include the base.
(scm_aind): Likewise.
2005-05-22 17:19:17 +00:00
Marius Vollmer
9e664475b9 *** empty log message *** 2005-05-22 16:19:19 +00:00
Marius Vollmer
417b0dc1fb (scm_putc, scm_puts): Assert that the port argument is a output port. 2005-05-22 16:18:55 +00:00
Neil Jerram
5a6d139b35 * unif.c (scm_i_read_array): Declare rank as ssize_t, to guarantee
that it is signed.

* strports.c (st_resize_port): Add unsigned char cast.
(scm_mkstrport): Make read/write_buf cast unsigned.

* srfi-13.c (string_titlecase_x): Add unsigned char cast.

* rdelim.c (scm_read_line): Initialize slen.

* load.c (scm_search_path): Remove weird >=1, and add
parentheses to clarify conditions.

* hash.c (scm_hasher): Add const unsigned char cast.

* gh_data.c (gh_chars2byvect): Add scm_t_int8 cast.
2005-05-12 06:39:50 +00:00
Neil Jerram
b01532af77 * threads.c (s_scm_lock_mutex): Don't declare msg in middle of
code.

* gc.c (s_scm_gc_live_object_stats): Don't declare alist in middle
of code.

* gc-card.c (scm_i_card_statistics): Don't declare tag in middle
of code.
(scm_i_card_statistics): Add block for declarations of tag_as_scm
and current.
2005-05-11 07:41:36 +00:00
Neil Jerram
229a07109c (signal_delivery_thread): Return a value, to avoid
compile warning reported by Werner Scheinast.
2005-05-10 20:04:14 +00:00
Han-Wen Nienhuys
8003802199 remove scm_list() 2005-04-30 20:54:35 +00:00
Han-Wen Nienhuys
645dd3fc36 (DYNAMIC_STATE_NEXT_LOC): new macro for use with
SCM_DEBUG_CELL_ACCESSES
(FLUID_NEXT_LOC): idem.
2005-04-30 20:07:50 +00:00
Kevin Ryde
9a68a4a8af *** empty log message *** 2005-04-29 23:03:41 +00:00
Kevin Ryde
4c6e36a6e3 (scm_divide): Correction to 1/complex and <any>/complex,
need to test abs(re)<abs(im) for choice of cases, otherwise divide by
zero when re==0 and im<0.  Reported by Jean Crepeau.
2005-04-29 22:59:22 +00:00
Kevin Ryde
0640cdaa8b *** empty log message *** 2005-04-25 00:04:02 +00:00
Kevin Ryde
f530e94f5d (scm_array_map_x): Allow no source args, add num args checks
to subr_1, subr_2, subr_2o and dsubr cases.
2005-04-25 00:02:47 +00:00
Neil Jerram
7346de618a Fix comment typos 2005-04-24 12:23:57 +00:00
Neil Jerram
a61b2054b4 Critical section review 2005-04-24 12:23:24 +00:00
Kevin Ryde
c51682b416 *** empty log message *** 2005-04-23 00:17:33 +00:00