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

10203 commits

Author SHA1 Message Date
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
Han-Wen Nienhuys
d2f92abe2c (Defining new Scheme procedures in C): remove : - note:
causes spurious info reference.
2004-08-16 18:55:21 +00:00
Marius Vollmer
ffa921b45b *** empty log message *** 2004-08-15 20:41:52 +00:00
Marius Vollmer
34b11e0823 New, from Jose A Ortega Ruiz. Thanks! 2004-08-15 20:39:25 +00:00
Marius Vollmer
bc97364ab7 *** empty log message *** 2004-08-15 20:28:24 +00:00
cvs2svn
6b6c42cccf This commit was manufactured by cvs2svn to create branch
'branch_release-1-6'.
2004-08-15 20:26:06 +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
79c8d1ce74 *** empty log message *** 2004-08-14 00:54:20 +00:00
Kevin Ryde
30e9c42fe7 *** empty log message *** 2004-08-14 00:53:49 +00:00
Kevin Ryde
f0ab0c5db1 (SRFI-13 Predicates): Add string-any and
string-every support for char and charset predicates.
2004-08-14 00:53:28 +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
dcb5d76ba3 *** empty log message *** 2004-08-14 00:43:18 +00:00
Kevin Ryde
509a2a8e59 (string-any, string-every): Exercise char and charset predicate cases. 2004-08-14 00:42:52 +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
Kevin Ryde
313f062011 (scm_string_any, scm_string_every): Add support for char
and charset as predicates, per SRFI-13 spec.
2004-08-14 00:36:40 +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
Marius Vollmer
ffa747a6ea (scm_primitive_load_path): Do not check for absolute filenames when
scm_sys_search_load_path returns false, which will return absolute
filenames unchanged.
2004-08-12 11:57:42 +00:00
Kevin Ryde
23043c797a *** empty log message *** 2004-08-11 22:03:15 +00:00
Kevin Ryde
0106cc0898 (SRFI-13 Miscellaneous): Correction to token set
parameter, as per Marius in the cvs head.  Reported by Mike Small.
2004-08-11 22:02:49 +00:00
Marius Vollmer
44815b899d *** empty log message *** 2004-08-11 19:48:55 +00:00
Marius Vollmer
aba341b68f (scm_init_storage, scm_stand_in_procs,
scm_stand_in_proc): Use a hastable for scm_stand_in_procs instead
of an alist.  Thanks to Matthias Koeppe!
2004-08-11 19:48:26 +00:00
Marius Vollmer
bb26cc2d28 *** empty log message *** 2004-08-11 19:39:44 +00:00
Marius Vollmer
82c76fd357 (scm_init_storage, scm_stand_in_procs, scm_stand_in_proc): Use a
hastable for scm_stand_in_procs instead of an alist.  Thanks to
Matthias Koeppe!
2004-08-11 19:38:58 +00:00
Marius Vollmer
35da08ee37 (scm_c_round, scm_c_truncate): Docs for'em. 2004-08-11 19:36:55 +00:00
Marius Vollmer
214195e127 Removed commented out debugging fprintfs. 2004-08-10 15:59:31 +00:00