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

9450 commits

Author SHA1 Message Date
Kevin Ryde
35ce851c9e New file. 2004-08-18 00:34:46 +00:00
Kevin Ryde
a158acd158 *** empty log message *** 2004-08-18 00:30:58 +00:00
Kevin Ryde
16e0c623d9 * tests/and-let-star.test, tests/arbiters.test, tests/receive.test:
New files.
	* Makefile.am (SCM_TESTS): Add them.
2004-08-18 00:30:29 +00:00
Kevin Ryde
66aa0ef0c5 New file. 2004-08-18 00:29:19 +00:00
Kevin Ryde
6ee5281f4e Add cond-expand-provide srfi-8, since this module provides that feature. 2004-08-18 00:25:39 +00:00
Kevin Ryde
00ed256c76 *** empty log message *** 2004-08-18 00:24:59 +00:00
Kevin Ryde
b4c0da9ce7 Add cond-expand-provide srfi-2, since this module provides that feature. 2004-08-18 00:22:25 +00:00
Kevin Ryde
86ff1823d5 *** empty log message *** 2004-08-18 00:13:51 +00:00
Kevin Ryde
a8d0313f69 (Internet Socket Examples): Correction to socket calls,
should be PF_INET not AF_INET (though generally the two are the same
value).
2004-08-18 00:12:44 +00:00
Kevin Ryde
0bd094c2ad (Network Sockets and Communication): Add SOCK_RDM and SOCK_SEQPACKET. 2004-08-17 23:58:56 +00:00
Kevin Ryde
1f3cc0d312 *** empty log message *** 2004-08-17 23:57:01 +00:00
Kevin Ryde
d6cd4c3601 *** empty log message *** 2004-08-17 23:53:07 +00:00
Kevin Ryde
6f637a1bc0 (scm_init_socket): Add SOCK_SEQPACKET and SOCK_RDM. 2004-08-17 23:44:25 +00:00
Kevin Ryde
52d1e968ac *** empty log message *** 2004-08-17 23:34:53 +00:00
Kevin Ryde
8a807b26c3 *** empty log message *** 2004-08-17 23:28:16 +00:00
Kevin Ryde
eb37258527 (fport_print): Use scm_ttyname instead of ttyname directly,
to get thread safety of scm_ttyname.
2004-08-17 23:27:11 +00:00
Kevin Ryde
8e4d7cdf06 (ttyname): Remove prototype, unused. 2004-08-17 23:22:23 +00:00
Kevin Ryde
b82cab94d6 (fractions): Correction, equal? 3/4 .75 should be #f, according to R5RS. 2004-08-17 23:20:11 +00:00
Kevin Ryde
728ad4b7cd (scm_equal_p): Remove real==fraction and fraction==real, they
must be #f according to R5RS.  (equal? follows eqv?, and for eqv? an
exact and inexact is #f.)
2004-08-17 23:19:04 +00:00
Kevin Ryde
b1fbeb53bb *** empty log message *** 2004-08-17 23:17:34 +00:00
Kevin Ryde
4f21b9e83f * tests/arbiters.test: New file
* Makefile.am (SCM_TESTS): Add it.
2004-08-17 23:17:06 +00:00
Kevin Ryde
7056d7c2e3 New file. 2004-08-17 23:15:14 +00:00
Kevin Ryde
95a58b3c32 (FETCH_STORE): New macro.
(SCM_LOCK_VAL, SCM_UNLOCK_VAL): New constants.
(SCM_LOCK_ARB, SCM_UNLOCK_ARB): Remove, effectively absorbed into
scm_try_arbiter and scm_release_arbiter.
(scm_try_arbiter, scm_release_arbiter): Use FETCH_STORE to get xchg
for speed on i386, otherwise using mutex.
2004-08-17 23:13:06 +00:00
Marius Vollmer
bc97364ab7 *** empty log message *** 2004-08-15 20:28:24 +00:00
Marius Vollmer
3514320f60 New, from Jose A Ortega Ruiz. Thanks! 2004-08-15 20:26:05 +00:00
Kevin Ryde
80b707b754 *** empty log message *** 2004-08-14 01:06:13 +00:00
Kevin Ryde
3cf066df9b (Mutexes): New datatype-centric section, adding
fair mutexes and collecting up material from ...
(Low level thread primitives, Higher level thread procedures, C level
thread interface): ... these nodes.
2004-08-14 01:02:37 +00:00
Kevin Ryde
02d9c82a02 *** empty log message *** 2004-08-14 00:55:00 +00:00
Kevin Ryde
5b4dba24ef Typo in:
(SRFI-13 Predicates): Add string-any and
string-every support for char and charset predicates.
2004-08-14 00:51:57 +00:00
Kevin Ryde
6ae50c7153 (SRFI-13 Predicates): Add string-any and
string-every support for char and charset predicates.
2004-08-14 00:48:32 +00:00
Kevin Ryde
3ff0e986f3 *** empty log message *** 2004-08-14 00:44:29 +00:00
Kevin Ryde
967c0904a0 (string-any, string-every): Exercise char and charset predicate cases. 2004-08-14 00:43:56 +00:00
Kevin Ryde
038a7484b6 *** empty log message *** 2004-08-14 00:39:01 +00:00
Kevin Ryde
788dafed64 (scm_string_any, scm_string_every): Add support for char
and charset as predicates, per SRFI-13 spec.
2004-08-14 00:37:53 +00:00
Marius Vollmer
fa0c0a4b12 *** empty log message *** 2004-08-13 12:28:38 +00:00
Marius Vollmer
11c5e0bf6b (scm_init_load_path): Do not pass NULL to scm_to_locale_string, which
would happen when GUILE_LOAD_PATH is not set.  Thanks to Bill
Schottstaedt.
2004-08-13 12:28:23 +00:00
Marius Vollmer
c41acab35c *** empty log message *** 2004-08-12 17:52:49 +00:00
Marius Vollmer
57d4d32fa3 (MY_VALIDATE_SUBSTRING_SPEC_COPY, MY_VALIDATE_STRING_COPY): Modernized
clones of the deprecated validation macros.  Replaced every use.
2004-08-12 17:49:59 +00:00
Marius Vollmer
8824ac88f0 * socket.c, rw.c, deprecated.h, validate.h
(SCM_VALIDATE_STRING_COPY): Deprecated.  Replaced all uses with
SCM_VALIDATE_STRING plus SCM_I_STRING_CHARS or
scm_to_locale_string, etc.
(SCM_VALIDATE_SUBSTRING_SPEC_COPY): Deprecated.  Replaced as
above, plus scm_i_get_substring_spec.

* regex-posix.c, read.c, random.c, ramap.c, print.c, numbers.c,
hash.c, gc.c, gc-card.c, convert.i.c, backtrace.c, strop.c,
strorder.c, strports.c, struct.c, symbols.c, unif.c, ports.c: Use
SCM_I_STRING_CHARS, SCM_I_STRING_UCHARS, and SCM_I_STRING_LENGTH
instead of SCM_STRING_CHARS, SCM_STRING_UCHARS, and
SCM_STRING_LENGTH, respectively.  Also, replaced scm_return_first
with more explicit scm_remember_upto_here_1, etc, or introduced
them in the first place.
2004-08-12 17:45:03 +00:00
Marius Vollmer
70f7ee4188 *** empty log message *** 2004-08-12 17:44:43 +00:00
Marius Vollmer
6f14f578d2 * strings.h, strings.c (scm_i_get_substring_spec): New.
* socket.c, rw.c, deprecated.h, validate.h
(SCM_VALIDATE_STRING_COPY): Deprecated.  Replaced all uses with
SCM_VALIDATE_STRING plus SCM_I_STRING_CHARS or
scm_to_locale_string, etc.
(SCM_VALIDATE_SUBSTRING_SPEC_COPY): Deprecated.  Replaced as
above, plus scm_i_get_substring_spec.
2004-08-12 17:43:41 +00:00
Marius Vollmer
396e5506d6 * socket.c (scm_inet_aton, scm_inet_pton): Convert SCM strings to
locale strings instead of accessing their internals.
(scm_recv, scm_send, scm_recvfrom, scm_sendto): Use
SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH instead of
SCM_STRING_CHARS and SCM_STRING_LENGTH.

* socket.c, rw.c, deprecated.h, validate.h
(SCM_VALIDATE_STRING_COPY): Deprecated.  Replaced all uses with
SCM_VALIDATE_STRING plus SCM_I_STRING_CHARS or
scm_to_locale_string, etc.
(SCM_VALIDATE_SUBSTRING_SPEC_COPY): Deprecated.  Replaced as
above, plus scm_i_get_substring_spec.
2004-08-12 17:43:17 +00:00
Marius Vollmer
ddae95259d (scm_system): Convert SCM strings to locale strings instead of
accessing their internals.
2004-08-12 17:38:52 +00:00
Marius Vollmer
0d189573e5 Convert version to locale string before printing it. 2004-08-12 17:35:53 +00:00
Marius Vollmer
3eb1e2aa88 (scm_read_delimited_x): Avoid
SCM_VALIDATE_SUBSTRING_SPEC_COPY and use scm_from_size_t instead
of scm_from_long for the returned number of read characters.
2004-08-12 17:32:15 +00:00
Marius Vollmer
1299a0f17b (STRING_SYSCALL, STRING2_SYSCALL): New helper macros.
Use them instead of SCM_SYSCALL when one or two strings need to be
converted into locale strings.
(my_rename): New, gathers platform dependent code for renaming.
(scm_rename): Use it.
(scm_readlink, scm_copy_file): Convert SCM strings to locale
strings instead of accessing their internals.
(scm_basename, scm_dirname): Use SCM_I_STRING_CHARS and
SCM_I_STRING_LENGTH instead of SCM_STRING_CHARS and
SCM_STRING_LENGTH.
2004-08-12 17:32:07 +00:00
Marius Vollmer
f015614ae0 (WITH_STRING): New helper macro. Use it where one
locale string is needed for a short piece of code.
(STRING_SYSCALL): New helper macro.  Use it instead of SCM_SYSCALL
when one locale string is needed.
(scm_mkstemp): Convert tmpl to a locale string.
(scm_putenv): Rewritten to use only C strings.
(scm_setlocale, scm_crpt): Convert argument strings to locale
strings.
2004-08-12 17:28:06 +00:00
Marius Vollmer
86e14f5c3b (scm_fdopen): Use scm_i_fdes_to_port together with scm_i_mode_bits to
avoid accessing internals of SCM string from C.
2004-08-12 17:16:49 +00:00
Marius Vollmer
4695c75947 (load_extension): Convert lib and init to locale
strings instead of accessing the internals directly.
(scm_c_load_extension): Use scm_from_locale_string instead of
scm_makfrom0str.
2004-08-12 17:06:37 +00:00
Marius Vollmer
d617ee1895 * fports.h, fports.c (scm_i_fdes_to_port): New, like
scm_fdes_to_port, but take mode bits directly instead of as a C
string.
(scm_i_fdes_to_port): Implement using above.
(scm_open_file): Use scm_i_fdes_to_port together with
scm_i_mode_bits to avoid accessing internals of SCM string from C.
* vports.c (scm_make_soft_port): Use scm_i_fdes_to_port together
with scm_i_mode_bits to avoid accessing internals of SCM string
from C.

* ports.h (scm_i_mode_bits): New, same as scm_mode_bits but with a
SCM string as argument.

* ports.c (scm_i_void_port): New, like scm_void_port but take mode
bits directly instead of C string.
(scm_void_port): Implement using above.
(scm_sys_make_void_port): Use scm_i_void_port together with
scm_i_mode_bits to avoid accessing internals of SCM string.

* convert.i.c, backtrace.c, strop.c, strorder.c, strports.c,
struct.c, unif.c, ports.c: Use SCM_I_STRING_CHARS,
SCM_I_STRING_UCHARS, and SCM_I_STRING_LENGTH instead of
SCM_STRING_CHARS, SCM_STRING_UCHARS, and SCM_STRING_LENGTH,
respectively.  Also, replaced scm_return_first with more explicit
scm_remember_upto_here_1, etc, or introduced them in the first
place.
2004-08-12 17:03:36 +00:00