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

3696 commits

Author SHA1 Message Date
Kevin Ryde
b3721a0545 add a copyright year 2006-12-05 00:04:37 +00:00
Kevin Ryde
c574874dca *** empty log message *** 2006-12-04 23:57:05 +00:00
Kevin Ryde
0fbe205325 (scm_product): For flonum*inum and complex*inum, return
exact 0 if inum==0.  Already done for inum*flonum and inum*complex,
and as per R5RS section "Exactness".
2006-12-04 23:38:24 +00:00
Neil Jerram
6868a8e68f * strings.h: If GUILE_EXPERIMENTAL_BIG_STRINGS is defined, use
different definitions for SCM_STRING_MAX_LENGTH, SCM_STRING_LENGTH
and SCM_SET_STRING_LENGTH, and add new convenience macro
SCM_SET_SUBSTRING_LENGTH.

* strings.c (scm_makstr, scm_take_str, scm_allocate_string,
scm_make_shared_substring): Allocate a double cell for a string,
if GUILE_EXPERIMENTAL_BIG_STRINGS is defined.
2006-11-17 14:03:35 +00:00
Kevin Ryde
03607df1ee *** empty log message *** 2006-10-02 20:23:37 +00:00
Kevin Ryde
f286c952b4 (SCM_APPLY): For scm_tc7_subr_2o, throw wrong-num-args on 0
arguments or 3 or more arguments.  Previously 0 called proc with
SCM_UNDEFINED, and 3 or more silently used just the first 2.
2006-10-02 20:22:49 +00:00
Kevin Ryde
76af04d6a2 *** empty log message *** 2006-07-23 22:28:15 +00:00
Kevin Ryde
0e558e5693 (scm_num2uint32): New function.
(scm_htonl, scm_ntohl): Use it to enforce 32-bit range check on
systems with 64-bit long.
2006-07-23 22:25:11 +00:00
Rob Browning
0af390c729 *** empty log message *** 2006-07-19 06:28:36 +00:00
Rob Browning
ff0ce31c65 Add __attribute__ ((returns_twice)) to the ia64_getcontext prototype
so that gcc will make the right arrangements and avoid an illegal
instruction during call-with-current-continuation.
2006-07-19 06:20:05 +00:00
Kevin Ryde
1415be2578 *** empty log message *** 2006-07-06 02:05:36 +00:00
Kevin Ryde
62e7d047df (bdtime2c): tm_gmtoff is seconds East, so take negative of
tm:gmtoff which is seconds West.  Reported by Aaron VanDevender.
(bdtime2c): Test HAVE_STRUCT_TM_TM_GMTOFF for tm_gmtoff, rather than
HAVE_TM_ZONE.
(scm_strptime): Use tm_gmtoff from the strptime result when that field
exists, it's set by glibc strptime "%s".
2006-07-06 02:05:01 +00:00
Kevin Ryde
99f4af3672 *** empty log message *** 2006-06-03 23:35:36 +00:00
Kevin Ryde
dd0d4238d3 (EXTRA_DOT_X_FILES): Typo in dependency rule, was a
duplicate of EXTRA_DOT_DOC_FILES.
2006-06-03 23:33:08 +00:00
Rob Browning
40e0bf0795 *** empty log message *** 2006-05-24 05:58:49 +00:00
Rob Browning
c0353b92eb (scm_compile_shell_switches): Update copyright. 2006-05-24 05:49:27 +00:00
Rob Browning
5a50747466 *** empty log message *** 2006-05-14 21:02:02 +00:00
Rob Browning
7c72d4e172 (skip_scsh_block_comment): Recognize "!#" everywhere, not just on a
line of its own.  (Backport 1.8 fix by Marius Vollmer
<mvo@zagadka.de>.)
2006-05-14 21:01:44 +00:00
Kevin Ryde
eebe98f0f3 *** empty log message *** 2006-04-09 01:03:51 +00:00
Kevin Ryde
2538a0f551 (scm_must_realloc): Actually resize down when requested, in
particular adjust scm_mallocated so that when bignums are trimmed by
scm_i_adjbig the net effect (after gc) on scm_mallocated is 0.  Test
case in gc.test.
2006-04-09 01:03:17 +00:00
Kevin Ryde
d3b74defb1 *** empty log message *** 2006-04-09 00:24:20 +00:00
Kevin Ryde
e3cbcc57ba (scm_remove_from_port_table): Report freed ptab entry size
with scm_done_free, matching scm_must_malloc in scm_add_to_port_table.
2006-04-09 00:13:16 +00:00
Kevin Ryde
38ed76f413 *** empty log message *** 2006-04-06 00:23:15 +00:00
Kevin Ryde
e47b236d6d (scm_setvbuf): Fix for not _IOLBF, clear SCM_BUFLINE
instead of toggling it.  Reported by Ludovic Courtès.
2006-04-06 00:16:44 +00:00
Kevin Ryde
40745b8ca1 *** empty log message *** 2006-02-02 21:19:39 +00:00
Kevin Ryde
e204ca913f (scm_list): Restore this function for use from C.
It's a complete no-op but in theory might used by someone.
2006-02-02 21:17:07 +00:00
Neil Jerram
5a2e8010d4 (EXIT_NESTED_DATA): Before popping from the stack, reset
the value at its top.  This fixes a reference leak.
(PUSH_REF): Perform `pstate->top++' after setting the next stack
slot to make the code clearer.  (Thanks to Ludovic Courtès for
this patch.)
2006-01-07 23:01:22 +00:00
Marius Vollmer
7099174768 *** empty log message *** 2005-12-06 22:57:55 +00:00
Marius Vollmer
804fa981ae (scm_find_executable): Compile fix -- fgetc returns an
unsigned char cast to an int, or -1 for EOS.
2005-12-06 22:57:42 +00:00
Rob Browning
5bc79276df *** empty log message *** 2005-10-15 01:56:17 +00:00
Rob Browning
042121e055 Use socklen_t for socket calls whenever it is
available and appropriate.  This fixes some type problems on
systems (recent linux) where int wasn't quite right.  If
HAVE_SOCKLEN_T isn't defined, then revert to int.  This is a
short-term fix, local to socket.c, and will be addressed more
generally in the next major release.
(ipv6_net_to_num): Change the argument type from "const char *" to
"const unsigned char *" to match the sign of the s6_addr type.
(ipv6_num_to_net): Change the argument type from "const char *" to
"const unsigned char *" to match its usage.
(s_scm_inet_pton): Use unsigned type when calling ipv6_net_to_num.
(s_scm_inet_ntop): Use unsigned type when calling ipv6_net_to_num.
(s_scm_getsockopt): Use scm_socklen_t rather than int.
(s_scm_accept): Use socklen_t rather than int.
(s_scm_getsockname): Use socklen_t rather than int.
(s_scm_getpeername): Use socklen_t rather than int.
(s_scm_recvfrom): Use socklen_t rather than int.
2005-10-15 01:55:18 +00:00
Rob Browning
f5dcc0e8bb (s_scm_read_line): Initialize slen to make gcc happy. 2005-10-15 01:55:05 +00:00
Rob Browning
e43af77c81 (s_scm_ctermid): Use a fixed size buffer of length
L_ctermid for the ctermid() result rather than passing NULL and
expecting a static pointer.  This fixes a problem caused when
glibc sets a __nonnull attribute for ctermid() whenever
__USE_XOPEN is defined.
2005-10-15 01:54:54 +00:00
Kevin Ryde
a58d910c1c *** empty log message *** 2005-08-12 01:11:37 +00:00
Kevin Ryde
0aae457a4a (st_flush): Increase buffer by 1.5x when growing, to
avoid lots of copying where previoulsy growing by only 80 bytes at a
time.
2005-08-12 00:59:49 +00:00
Marius Vollmer
141de6078d *** empty log message *** 2005-07-31 23:53:49 +00:00
Marius Vollmer
b201e75aaa (scm_eval_closure_module): Removed, we already have
scm_lookup_closure_module, which does the same thing.
2005-07-31 23:49:03 +00:00
Kevin Ryde
5cdf9a33d4 *** empty log message *** 2005-07-12 00:09:29 +00:00
Kevin Ryde
681d09ce5e (main): Revert change by Han-Wen, "extern
*lt_preloaded_symbols" is not right.  (Instead define the struct in
guile-ltdl.h to make gcc 4 happy.)
2005-07-12 00:04:38 +00:00
Han-Wen Nienhuys
05d44505b8 *** empty log message *** 2005-06-19 13:27:50 +00:00
Han-Wen Nienhuys
bde70eddce (main): use pointer iso. array. This fixes compile error
on GCC 4.
2005-06-19 13:12:00 +00:00
Neil Jerram
8a5f4a307f (scm_source_properties): Use SCM_NECONSP instead of
SCM_NCONSP in arg validation.
(scm_set_source_properties_x): Ditto.
(scm_set_source_property_x): Ditto.
2005-06-07 19:16:12 +00:00
Kevin Ryde
3f5f8f832b *** empty log message *** 2005-06-05 21:23:24 +00:00
Kevin Ryde
2e4b615a10 (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:22:47 +00:00
Marius Vollmer
7d81830dd2 The FSF has a new address. 2005-05-23 20:15:36 +00:00
Marius Vollmer
bde1a86295 New versions of the GPLand LGPL with the new address of the FSF. 2005-05-23 19:01:31 +00:00
Kevin Ryde
a04f57dbfe *** empty log message *** 2005-04-29 22:56:57 +00:00
Kevin Ryde
1c9c30b6b2 (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:54:35 +00:00
Kevin Ryde
5cc196c863 *** empty log message *** 2005-04-25 00:11:01 +00:00
Kevin Ryde
09cd7e1d3a (scm_array_map_x): Allow no source args, add num args checks
to subr_1, subr_2, subr_2o and cxr cases.
2005-04-25 00:07:58 +00:00