bpt/guile.git
19 years ago(fport_print): Use scm_ttyname instead of ttyname directly,
Kevin Ryde [Tue, 17 Aug 2004 23:27:11 +0000 (23:27 +0000)]
(fport_print): Use scm_ttyname instead of ttyname directly,
to get thread safety of scm_ttyname.

19 years ago(ttyname): Remove prototype, unused.
Kevin Ryde [Tue, 17 Aug 2004 23:22:23 +0000 (23:22 +0000)]
(ttyname): Remove prototype, unused.

19 years ago(fractions): Correction, equal? 3/4 .75 should be #f, according to R5RS.
Kevin Ryde [Tue, 17 Aug 2004 23:20:11 +0000 (23:20 +0000)]
(fractions): Correction, equal? 3/4 .75 should be #f, according to R5RS.

19 years ago(scm_equal_p): Remove real==fraction and fraction==real, they
Kevin Ryde [Tue, 17 Aug 2004 23:19:04 +0000 (23:19 +0000)]
(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.)

19 years ago*** empty log message ***
Kevin Ryde [Tue, 17 Aug 2004 23:17:34 +0000 (23:17 +0000)]
*** empty log message ***

19 years ago * tests/arbiters.test: New file
Kevin Ryde [Tue, 17 Aug 2004 23:17:06 +0000 (23:17 +0000)]
* tests/arbiters.test: New file
* Makefile.am (SCM_TESTS): Add it.

19 years agoNew file.
Kevin Ryde [Tue, 17 Aug 2004 23:15:14 +0000 (23:15 +0000)]
New file.

19 years ago(FETCH_STORE): New macro.
Kevin Ryde [Tue, 17 Aug 2004 23:13:06 +0000 (23:13 +0000)]
(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.

19 years ago*** empty log message ***
Marius Vollmer [Sun, 15 Aug 2004 20:28:24 +0000 (20:28 +0000)]
*** empty log message ***

19 years agoNew, from Jose A Ortega Ruiz. Thanks!
Marius Vollmer [Sun, 15 Aug 2004 20:26:05 +0000 (20:26 +0000)]
New, from Jose A Ortega Ruiz.  Thanks!

19 years ago*** empty log message ***
Kevin Ryde [Sat, 14 Aug 2004 01:06:13 +0000 (01:06 +0000)]
*** empty log message ***

19 years ago(Mutexes): New datatype-centric section, adding
Kevin Ryde [Sat, 14 Aug 2004 01:02:37 +0000 (01:02 +0000)]
(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.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 14 Aug 2004 00:55:00 +0000 (00:55 +0000)]
*** empty log message ***

19 years agoTypo in:
Kevin Ryde [Sat, 14 Aug 2004 00:51:57 +0000 (00:51 +0000)]
Typo in:
(SRFI-13 Predicates): Add string-any and
string-every support for char and charset predicates.

19 years ago(SRFI-13 Predicates): Add string-any and
Kevin Ryde [Sat, 14 Aug 2004 00:48:32 +0000 (00:48 +0000)]
(SRFI-13 Predicates): Add string-any and
string-every support for char and charset predicates.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 14 Aug 2004 00:44:29 +0000 (00:44 +0000)]
*** empty log message ***

19 years ago(string-any, string-every): Exercise char and charset predicate cases.
Kevin Ryde [Sat, 14 Aug 2004 00:43:56 +0000 (00:43 +0000)]
(string-any, string-every): Exercise char and charset predicate cases.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 14 Aug 2004 00:39:01 +0000 (00:39 +0000)]
*** empty log message ***

19 years ago(scm_string_any, scm_string_every): Add support for char
Kevin Ryde [Sat, 14 Aug 2004 00:37:53 +0000 (00:37 +0000)]
(scm_string_any, scm_string_every): Add support for char
and charset as predicates, per SRFI-13 spec.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 13 Aug 2004 12:28:38 +0000 (12:28 +0000)]
*** empty log message ***

19 years ago(scm_init_load_path): Do not pass NULL to scm_to_locale_string, which
Marius Vollmer [Fri, 13 Aug 2004 12:28:23 +0000 (12:28 +0000)]
(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.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 12 Aug 2004 17:52:49 +0000 (17:52 +0000)]
*** empty log message ***

19 years ago(MY_VALIDATE_SUBSTRING_SPEC_COPY, MY_VALIDATE_STRING_COPY): Modernized
Marius Vollmer [Thu, 12 Aug 2004 17:49:59 +0000 (17:49 +0000)]
(MY_VALIDATE_SUBSTRING_SPEC_COPY, MY_VALIDATE_STRING_COPY): Modernized
clones of the deprecated validation macros.  Replaced every use.

19 years ago* socket.c, rw.c, deprecated.h, validate.h
Marius Vollmer [Thu, 12 Aug 2004 17:45:03 +0000 (17:45 +0000)]
* 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.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 12 Aug 2004 17:44:43 +0000 (17:44 +0000)]
*** empty log message ***

19 years ago* strings.h, strings.c (scm_i_get_substring_spec): New.
Marius Vollmer [Thu, 12 Aug 2004 17:43:41 +0000 (17:43 +0000)]
* 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.

19 years ago* socket.c (scm_inet_aton, scm_inet_pton): Convert SCM strings to
Marius Vollmer [Thu, 12 Aug 2004 17:43:17 +0000 (17:43 +0000)]
* 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.

19 years ago(scm_system): Convert SCM strings to locale strings instead of
Marius Vollmer [Thu, 12 Aug 2004 17:38:52 +0000 (17:38 +0000)]
(scm_system): Convert SCM strings to locale strings instead of
accessing their internals.

19 years agoConvert version to locale string before printing it.
Marius Vollmer [Thu, 12 Aug 2004 17:35:53 +0000 (17:35 +0000)]
Convert version to locale string before printing it.

19 years ago(scm_read_delimited_x): Avoid
Marius Vollmer [Thu, 12 Aug 2004 17:32:15 +0000 (17:32 +0000)]
(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.

19 years ago(STRING_SYSCALL, STRING2_SYSCALL): New helper macros.
Marius Vollmer [Thu, 12 Aug 2004 17:32:07 +0000 (17:32 +0000)]
(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.

19 years ago(WITH_STRING): New helper macro. Use it where one
Marius Vollmer [Thu, 12 Aug 2004 17:28:06 +0000 (17:28 +0000)]
(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.

19 years ago(scm_fdopen): Use scm_i_fdes_to_port together with scm_i_mode_bits to
Marius Vollmer [Thu, 12 Aug 2004 17:16:49 +0000 (17:16 +0000)]
(scm_fdopen): Use scm_i_fdes_to_port together with scm_i_mode_bits to
avoid accessing internals of SCM string from C.

19 years ago(load_extension): Convert lib and init to locale
Marius Vollmer [Thu, 12 Aug 2004 17:06:37 +0000 (17:06 +0000)]
(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.

19 years ago* fports.h, fports.c (scm_i_fdes_to_port): New, like
Marius Vollmer [Thu, 12 Aug 2004 17:03:36 +0000 (17:03 +0000)]
* 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.

19 years ago(scm_primitive_load_path): Do not check for absolute filenames when
Marius Vollmer [Thu, 12 Aug 2004 11:57:42 +0000 (11:57 +0000)]
(scm_primitive_load_path): Do not check for absolute filenames when
scm_sys_search_load_path returns false, which will return absolute
filenames unchanged.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 11 Aug 2004 19:39:44 +0000 (19:39 +0000)]
*** empty log message ***

19 years ago(scm_init_storage, scm_stand_in_procs, scm_stand_in_proc): Use a
Marius Vollmer [Wed, 11 Aug 2004 19:38:58 +0000 (19:38 +0000)]
(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!

19 years ago(scm_c_round, scm_c_truncate): Docs for'em.
Marius Vollmer [Wed, 11 Aug 2004 19:36:55 +0000 (19:36 +0000)]
(scm_c_round, scm_c_truncate): Docs for'em.

19 years agoRemoved commented out debugging fprintfs.
Marius Vollmer [Tue, 10 Aug 2004 15:59:31 +0000 (15:59 +0000)]
Removed commented out debugging fprintfs.

19 years agoTypos.
Marius Vollmer [Tue, 10 Aug 2004 15:58:57 +0000 (15:58 +0000)]
Typos.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 15:45:58 +0000 (15:45 +0000)]
*** empty log message ***

19 years ago(test_locale_strings): New.
Marius Vollmer [Tue, 10 Aug 2004 15:45:49 +0000 (15:45 +0000)]
(test_locale_strings): New.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 14:16:46 +0000 (14:16 +0000)]
*** empty log message ***

19 years agoUpdated example to use scm_to_locale_string
Marius Vollmer [Tue, 10 Aug 2004 14:16:34 +0000 (14:16 +0000)]
Updated example to use scm_to_locale_string
instead of roll-your-own scm_to_string.  Also showcase
scm_frame_free.

19 years agoDocs for scm_is_string, scm_to_locale_string*, and
Marius Vollmer [Tue, 10 Aug 2004 14:15:33 +0000 (14:15 +0000)]
Docs for scm_is_string, scm_to_locale_string*, and
scm_from_locale_string*.

19 years agoDocs for scm_frame_free.
Marius Vollmer [Tue, 10 Aug 2004 14:14:46 +0000 (14:14 +0000)]
Docs for scm_frame_free.

19 years ago* stime.c, socket.c, simpos.c, procs.c, posix.c, ports.c,
Marius Vollmer [Tue, 10 Aug 2004 14:08:02 +0000 (14:08 +0000)]
* stime.c, socket.c, simpos.c, procs.c, posix.c, ports.c,
net_db.c, fports.c, filesys.c, eval.c, deprecation.c, dynl.c:
Replaced uses of SCM_STRING_CHARS with proper uses of
scm_to_locale_string.  Replaced SCM_STRINGP with scm_is_string.
Replaced scm_mem2string with scm_from_locale_string.

* simpos.c, posix.c (allocate_string_pointers, environ_list_to_c):
Removed, replaced all uses with scm_i_allocate_string_pointers.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 14:07:35 +0000 (14:07 +0000)]
*** empty log message ***

19 years ago(scm_mkstrport): Use SCM_I_STRING_UCHARS instead of SCM_STRING_UCHARS.
Marius Vollmer [Tue, 10 Aug 2004 14:06:59 +0000 (14:06 +0000)]
(scm_mkstrport): Use SCM_I_STRING_UCHARS instead of SCM_STRING_UCHARS.
Use SCM_I_STRINGP instead of SCM_STRINGP.

19 years ago(scm_i_index): Replaced SCM_STRINGP, SCM_STRING_CHARS, and
Marius Vollmer [Tue, 10 Aug 2004 14:05:14 +0000 (14:05 +0000)]
(scm_i_index): Replaced SCM_STRINGP, SCM_STRING_CHARS, and
SCM_STRING_LENGTH with SCM_I_STRINGP, SCM_I_STRING_CHARS, and
SCM_I_STRING_LENGTH, respectively.  Pass string object directly, not
as a pointer.  Use scm_remember_upto_here_1 to protect it.

19 years ago* procs.c, posix.c, ports.c, net_db.c, fports.c, filesys.c,
Marius Vollmer [Tue, 10 Aug 2004 13:54:16 +0000 (13:54 +0000)]
* procs.c, posix.c, ports.c, net_db.c, fports.c, filesys.c,
eval.c, deprecation.c, dynl.c: Replaced uses of SCM_STRING_CHARS
with proper uses of scm_to_locale_string.  Replaced SCM_STRINGP
with scm_is_string.

* posix.c (allocate_string_pointers, environ_list_to_c): Removed,
replaced all uses with scm_i_allocate_string_pointers.

19 years ago(scm_input_error): Use a SCM value for 'fn', not a C string. This
Marius Vollmer [Tue, 10 Aug 2004 13:54:01 +0000 (13:54 +0000)]
(scm_input_error): Use a SCM value for 'fn', not a C string.  This
avoids a conversion round-trip.

19 years agoReplaced SCM_STRINGP, SCM_STRING_CHARS, and
Marius Vollmer [Tue, 10 Aug 2004 13:43:55 +0000 (13:43 +0000)]
Replaced SCM_STRINGP, SCM_STRING_CHARS, and
SCM_STRING_LENGTH with SCM_I_STRINGP, SCM_I_STRING_CHARS, and
SCM_I_STRING_LENGTH, respectively.
(gh_scm2newstr): Implement in terms of scm_to_locale_string.

19 years ago(scm_error_scm): Throw directly instead of calling
Marius Vollmer [Tue, 10 Aug 2004 13:37:11 +0000 (13:37 +0000)]
(scm_error_scm): Throw directly instead of calling
scm_error, this avoids the back and forth conversion of SUBR and
MESSAGE and also plugs a memory leak.
(scm_error): Call scm_error_scm.

19 years agoInstead calling scm_puts on the SCM_STRING_CHARS of a string, call
Marius Vollmer [Tue, 10 Aug 2004 13:36:45 +0000 (13:36 +0000)]
Instead calling scm_puts on the SCM_STRING_CHARS of a string, call
scm_display on the string itself.

19 years ago(scm_frame_free): New.
Marius Vollmer [Tue, 10 Aug 2004 13:35:28 +0000 (13:35 +0000)]
(scm_frame_free): New.

19 years ago* backtrace.c: Replaced SCM_STRINGP with scm_is_string.
Marius Vollmer [Tue, 10 Aug 2004 13:31:22 +0000 (13:31 +0000)]
* backtrace.c: Replaced SCM_STRINGP with scm_is_string.
(display_header): Print FNAME when it is true, not
merely when it is a string.

19 years ago(scm_internal_parse_path): Removed.
Marius Vollmer [Tue, 10 Aug 2004 13:30:12 +0000 (13:30 +0000)]
(scm_internal_parse_path): Removed.
(scm_parse_path): Use scm_string_split to do the work.
(scm_init_load_path): Use scm_parse_path instead of
scm_internal_parse_path.
(scm_search_path): Rewritten string handling part of the code in
terms of scm_to_locale_stringbuf and so that it is thread safe.

19 years ago* strings.h, deprecated.h (SCM_STRING_COERCE_0TERMINATION_X):
Marius Vollmer [Tue, 10 Aug 2004 13:20:59 +0000 (13:20 +0000)]
* strings.h, deprecated.h (SCM_STRING_COERCE_0TERMINATION_X):
Moved from string.h to deprecated.h.

* deprecated.c, deprecated.h (SCM_CHARS, SCM_LENGTH): Removed.

* strings.h, strings.c (SCM_MAKE_STRING_TAG): Rename dto
SCM_I_MAKE_STRING_TAG, changed all uses.
(SCM_STRING_CHARS, SCM_STRING_UCHARS, SCM_STRING_LENGTH): Renamed
to SCM_I_STRING_CHARS, SCM_I_STRING_UCHARS, and SCM_I_LENGTH
respectively.  For a short time, the old names are still there as
aliases.  Not all uses have been changed yet, but the ones in
strings.c have.
(SCM_STRING_MAX_LEN): Do not hardcode to 24 bits, compute from
SCM_T_BITS_MAX.
(scm_is_string, scm_from_locale_string, scm_from_locale_stringn,
scm_take_locale_string, scm_take_locale_stringn,
scm_to_locale_string, scm_to_locale_stringn,
scm_to_locale_stringbuf): New.
(scm_c_string2str, scm_c_substring2str): Deprecated by moving to
deprecated.[hc]. Implemented in terms of the new functions above.
(scm_take_str, scm_take0str, scm_mem2string, scm_str2string,
scm_makfrom0str): Reimplemented in terms of the new functions from
above.  They will be discouraged shortly.
(scm_substring): Do not use scm_mem2string.
(scm_i_allocate_string_pointers, scm_i_free_string_pointers): New,
to replace similar code from posix.c, simpos.c, and dynl.c.
(scm_string_append): Use memcpy instead of explicit loop.  Do not
use register keyword.  Use plain 'char' instead of 'unsigned
char'.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 12:20:02 +0000 (12:20 +0000)]
*** empty log message ***

19 years agoReplaced all uses of scm_round with scm_c_round.
Marius Vollmer [Tue, 10 Aug 2004 12:19:49 +0000 (12:19 +0000)]
Replaced all uses of scm_round with scm_c_round.

19 years agoMore of: New file.
Kevin Ryde [Tue, 10 Aug 2004 00:52:50 +0000 (00:52 +0000)]
More of: New file.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 9 Aug 2004 23:33:27 +0000 (23:33 +0000)]
*** empty log message ***

19 years ago(scm_round, scm_truncate): Renamed to scm_c_round and scm_c_truncate;
Marius Vollmer [Mon, 9 Aug 2004 23:32:14 +0000 (23:32 +0000)]
(scm_round, scm_truncate): Renamed to scm_c_round and scm_c_truncate;
deprecated versions installed in deprecated.h and deprecated.c.
Changed all uses.

19 years agoRemoved caveat that pretty-print uses its own 'write' implementation.
Marius Vollmer [Mon, 9 Aug 2004 21:58:14 +0000 (21:58 +0000)]
Removed caveat that pretty-print uses its own 'write' implementation.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 9 Aug 2004 21:56:19 +0000 (21:56 +0000)]
*** empty log message ***

19 years ago(generic-write): In the local procedure `wr', use object->string to
Marius Vollmer [Mon, 9 Aug 2004 21:56:00 +0000 (21:56 +0000)]
(generic-write): In the local procedure `wr', use object->string to
print all data (except for the reader macros), rather than
implementing an own printer.  The user-visible difference is that
procedures and control characters like #\tab are now printed in the
same way as by `write'.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 9 Aug 2004 01:33:36 +0000 (01:33 +0000)]
*** empty log message ***

19 years agoIn open-file, split a paragraph for clarity.
Kevin Ryde [Mon, 9 Aug 2004 01:33:03 +0000 (01:33 +0000)]
In open-file, split a paragraph for clarity.

19 years ago(File Ports): In open-file, describe the "b" binary flag.
Kevin Ryde [Mon, 9 Aug 2004 01:32:22 +0000 (01:32 +0000)]
(File Ports): In open-file, describe the "b" binary flag.

19 years ago(SLIB): Add notes on delete-file, provided? and open-file
Kevin Ryde [Mon, 9 Aug 2004 01:29:52 +0000 (01:29 +0000)]
(SLIB): Add notes on delete-file, provided? and open-file
overridden by ice-9 slib module.

19 years ago * tests/slib.test: New file.
Kevin Ryde [Mon, 9 Aug 2004 01:28:23 +0000 (01:28 +0000)]
* tests/slib.test: New file.
* Makefile.am (SCM_TESTS): Add it.

19 years agoNew file.
Kevin Ryde [Mon, 9 Aug 2004 01:23:03 +0000 (01:23 +0000)]
New file.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 9 Aug 2004 01:21:32 +0000 (01:21 +0000)]
*** empty log message ***

19 years ago(*features*): Remove array and array-for-each, core
Kevin Ryde [Mon, 9 Aug 2004 01:20:47 +0000 (01:20 +0000)]
(*features*): Remove array and array-for-each, core
definitions are insufficient for latest slib.
(t, nil): New constants slib says are supposed to exist.
(call-with-open-ports, browse-url): New functions for latest slib.
Implementations taken from Template.scm (public domain).
(open-file): Extend core definition to accept symbols for the mode,
required by latest slib.
(delete-file): Replace core definition with version returning #t/#f as
per slib spec.
(system): Mark as #:replace to suppress override warning, use new
style "(@ (guile) system)" to call core function.

19 years ago(scm_resolv_error): don't cause an exception while
Rob Browning [Sat, 7 Aug 2004 03:48:17 +0000 (03:48 +0000)]
(scm_resolv_error): don't cause an exception while
trying to throw an exception -- call scm_misc_error with correct
arguments.  The previous arguments needed a format escape that
wasn't in any of the format strings.

19 years ago*** empty log message ***
Rob Browning [Sat, 7 Aug 2004 03:48:03 +0000 (03:48 +0000)]
*** empty log message ***

19 years agoAmend #if and comments for cmp_d and get_d about unreleased gmp, don't
Kevin Ryde [Fri, 6 Aug 2004 01:26:26 +0000 (01:26 +0000)]
Amend #if and comments for cmp_d and get_d about unreleased gmp, don't
know when or as what version number it will come out.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 01:08:37 +0000 (01:08 +0000)]
*** empty log message ***

19 years ago(array-fill!): Exercise byte range and type checks.
Kevin Ryde [Fri, 6 Aug 2004 01:08:12 +0000 (01:08 +0000)]
(array-fill!): Exercise byte range and type checks.

19 years ago(scm_array_fill_x): For byvect char fill, force signed char
Kevin Ryde [Fri, 6 Aug 2004 01:04:05 +0000 (01:04 +0000)]
(scm_array_fill_x): For byvect char fill, force signed char
so as not to depend on signedness of plain char.  For byvect range
check, throw out-of-range rather than wrong-type-arg.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 00:29:13 +0000 (00:29 +0000)]
*** empty log message ***

19 years ago(uniform-vector-ref): Exercise byte returns.
Kevin Ryde [Fri, 6 Aug 2004 00:27:31 +0000 (00:27 +0000)]
(uniform-vector-ref): Exercise byte returns.

19 years ago(scm_uniform_vector_ref, scm_array_set_x): For byvect, force
Kevin Ryde [Fri, 6 Aug 2004 00:21:13 +0000 (00:21 +0000)]
(scm_uniform_vector_ref, scm_array_set_x): For byvect, force
signed byte range checks by using scm_to_schar and scm_from_schar,
don't want to depend on signedness of C char.

19 years ago(array-set!): Exercise byte array range checks.
Kevin Ryde [Fri, 6 Aug 2004 00:17:12 +0000 (00:17 +0000)]
(array-set!): Exercise byte array range checks.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 00:04:14 +0000 (00:04 +0000)]
*** empty log message ***

19 years ago(parse-message): Correction to header
Kevin Ryde [Fri, 6 Aug 2004 00:03:11 +0000 (00:03 +0000)]
(parse-message): Correction to header
continuation, loop with read-line not cdr lines.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 01:19:35 +0000 (01:19 +0000)]
*** empty log message ***

19 years ago(scm_copy_file): Use fstat on the input fd rather than
Kevin Ryde [Thu, 5 Aug 2004 01:02:58 +0000 (01:02 +0000)]
(scm_copy_file): Use fstat on the input fd rather than
stat on the filename, to be certain a file rename can't mean we get
info on one filesystem object but open another.  This fstat usage is
similar to Emacs copy-file.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 00:46:34 +0000 (00:46 +0000)]
*** empty log message ***

19 years agoUpdate docstrings per doc/ref/api-scheduling.texi.
Kevin Ryde [Thu, 5 Aug 2004 00:40:26 +0000 (00:40 +0000)]
Update docstrings per doc/ref/api-scheduling.texi.

19 years ago(Arbiters): Tweak wording for clarity, note any
Kevin Ryde [Thu, 5 Aug 2004 00:38:13 +0000 (00:38 +0000)]
(Arbiters): Tweak wording for clarity, note any
thread can unlock not just the one which locked.

19 years ago(scm_system_star): Use scm_from_int on SIGINT and SIGQUIT,
Kevin Ryde [Thu, 5 Aug 2004 00:33:58 +0000 (00:33 +0000)]
(scm_system_star): Use scm_from_int on SIGINT and SIGQUIT,
since that's what those values are.

19 years ago(scm_try_arbiter): Use scm_i_misc_mutex instead of
Kevin Ryde [Thu, 5 Aug 2004 00:20:13 +0000 (00:20 +0000)]
(scm_try_arbiter): Use scm_i_misc_mutex instead of
SCM_DEFER_INTS.
(scm_release_arbiter): Use scm_i_misc_mutex so return value can be
guaranteed if multiple threads compete to unlock.

19 years ago(scm_setgroups): Enhance docstring, per doc/ref/posix.texi.
Kevin Ryde [Thu, 5 Aug 2004 00:19:14 +0000 (00:19 +0000)]
(scm_setgroups): Enhance docstring, per doc/ref/posix.texi.

19 years ago(Processes): Add setgroups.
Kevin Ryde [Thu, 5 Aug 2004 00:17:39 +0000 (00:17 +0000)]
(Processes): Add setgroups.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 00:13:24 +0000 (00:13 +0000)]
*** empty log message ***

19 years ago(scm_string_any, scm_string_every): Enhance docstrings as
Kevin Ryde [Thu, 5 Aug 2004 00:12:59 +0000 (00:12 +0000)]
(scm_string_any, scm_string_every): Enhance docstrings as
per doc/ref/srfi-modules.texi.

19 years ago(SRFI-13 Predicates): Tweak wording for clarity.
Kevin Ryde [Thu, 5 Aug 2004 00:10:22 +0000 (00:10 +0000)]
(SRFI-13 Predicates): Tweak wording for clarity.
For string-every, note return is #t when no characters.  For
string-any and string-every, note last pred call is not currently a
tail call, contrary to SRFI-13 spec.