Marius Vollmer [Tue, 24 Aug 2004 22:25:02 +0000 (22:25 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 24 Aug 2004 22:20:47 +0000 (22:20 +0000)]
(%cond-expand-features): Addef srfi-13 and srfi-14.
Marius Vollmer [Tue, 24 Aug 2004 22:19:21 +0000 (22:19 +0000)]
* srfi-13.scm, srfi-14.scm: Simply re-export the relevant
bindings.
* srfi-13.h, srfi-13.c, srfi-14.h, srfi-14.c: Removed all real
content except for the init functions.
Marius Vollmer [Tue, 24 Aug 2004 22:14:57 +0000 (22:14 +0000)]
Two more tests for double indirect substring modification.
Marius Vollmer [Tue, 24 Aug 2004 22:13:27 +0000 (22:13 +0000)]
* symbols.h, symbols.c (scm_string_ci_to_symbol): Moved here, next
to scm_string_to_symbol.
* deprecated.c, load.c, posix.c, unif.c, symbols.c: Include
"srfi-13.h" instead of "strop.h".
Marius Vollmer [Tue, 24 Aug 2004 22:13:14 +0000 (22:13 +0000)]
(scm_string_equal_p, scm_string_ci_equal_p, scm_string_less_p,
scm_string_leq_p, scm_string_gr_p, scm_string_geq_p,
scm_string_ci_less_p, scm_string_ci_leq_p, scm_string_ci_gr_p,
scm_string_ci_geq_p): Use scm_string_eq, etc instead of explicit code.
Marius Vollmer [Tue, 24 Aug 2004 22:13:07 +0000 (22:13 +0000)]
(scm_init_guile_1): Call scm_init_srfi_13 and scm_init_srfi_14. Do
not call scm_init_strop.
Marius Vollmer [Tue, 24 Aug 2004 22:12:59 +0000 (22:12 +0000)]
(scm_char_alphabetic_p, scm_char_numeric_p, scm_char_whitespace_p,
scm_upper_case_p, scm_lower_case_p, scm_char_is_both_p): Use
scm_char_set_contains_p with the proper charset instead of libc
functions.
Marius Vollmer [Tue, 24 Aug 2004 22:12:37 +0000 (22:12 +0000)]
Include "srfi-13.h" instead of "strop.h".
Marius Vollmer [Tue, 24 Aug 2004 22:12:08 +0000 (22:12 +0000)]
* srfi-13.c, srfi-13.h, srfi-14.c, srfi-14.h: New files.
* strop.h, strop.c: Removed, they are now empty.
* Makefile.am: Updated for new and removed files.
Marius Vollmer [Tue, 24 Aug 2004 16:44:00 +0000 (16:44 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 24 Aug 2004 16:43:50 +0000 (16:43 +0000)]
(scm_inf_p): Synced docstring back from manual.
Marius Vollmer [Tue, 24 Aug 2004 16:43:07 +0000 (16:43 +0000)]
Copied from libguile/guile.texi.
Marius Vollmer [Tue, 24 Aug 2004 16:40:54 +0000 (16:40 +0000)]
Ran a (docstring-process-module "(guile)") and moved entries from
new-docstrings.texi to their appropriate place.
Marius Vollmer [Tue, 24 Aug 2004 16:37:25 +0000 (16:37 +0000)]
New file.
Marius Vollmer [Mon, 23 Aug 2004 10:51:43 +0000 (10:51 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 23 Aug 2004 10:51:23 +0000 (10:51 +0000)]
Replaced all "@c module" markers with "@c module-for-docstring",
making it less likely to collide with a real commentary.
Marius Vollmer [Mon, 23 Aug 2004 10:48:51 +0000 (10:48 +0000)]
* lib.scm (exception:used-before-define): New.
* tests/syntax.test ("letrec"): Use it.
Marius Vollmer [Sun, 22 Aug 2004 19:31:32 +0000 (19:31 +0000)]
*** empty log message ***
Marius Vollmer [Sun, 22 Aug 2004 19:30:04 +0000 (19:30 +0000)]
(Invoking Guile): documented new '-L' switch.
Marius Vollmer [Sun, 22 Aug 2004 19:29:19 +0000 (19:29 +0000)]
(get_str_buf_start): New helper function.
(scm_i_substring, scm_i_substring_copy, scm_i_substring_shared,
scm_i_string_char, scm_i_string_writable_chars): Use it.
(scm_i_substring_copy): Make START argument optional for C
callers, for upcoming SRFI-13 integration.
Marius Vollmer [Sun, 22 Aug 2004 19:25:51 +0000 (19:25 +0000)]
(scm_compile_shell_switches): added '-L' switch to add to the
%load-path.
Kevin Ryde [Sun, 22 Aug 2004 01:49:10 +0000 (01:49 +0000)]
Move variables to avoid c99-isms in recent:
(scm_try_arbiter, scm_release_arbiter): Use FETCH_STORE ...
Noticed by Andreas Vögele.
Dirk Herrmann [Sat, 21 Aug 2004 07:28:16 +0000 (07:28 +0000)]
* eval.c (unmemoize_exprs): When dropping internal body markers
from the output during unmemoization, also drop those that are not
immediately at the beginning of a body.
Marius Vollmer [Fri, 20 Aug 2004 15:14:08 +0000 (15:14 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 20 Aug 2004 15:13:56 +0000 (15:13 +0000)]
(display-source): Use unmemoize-expr instead
of unmemoize.
(write-frame-short/expression): Likewise.
Marius Vollmer [Fri, 20 Aug 2004 13:33:39 +0000 (13:33 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 20 Aug 2004 13:33:28 +0000 (13:33 +0000)]
(scm_lookupcar1): Report "Variable used before given a value" insetad
of an "Unbound" one for variables that are found but still contain
SCM_UNDEFINED.
Marius Vollmer [Fri, 20 Aug 2004 12:27:11 +0000 (12:27 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 20 Aug 2004 12:26:46 +0000 (12:26 +0000)]
(scm_lookupcar1): Report an "Undefined variable" insetad of an
"Unbound" one for variables that are found but still contain
SCM_UNDEFINED.
Marius Vollmer [Fri, 20 Aug 2004 12:25:20 +0000 (12:25 +0000)]
(scm_mkstemp): Correction to the correction, mkstemp expects a
null-terminated string in the locale encoding, but
scm_i_string_writable_chars doesn't give that. Fixed by letting
mkstemp modify a locale version of the tmpl argument and copying the
result back into tmpl.
Marius Vollmer [Fri, 20 Aug 2004 12:25:09 +0000 (12:25 +0000)]
(scm_substring_move_x): Store into str2, not str1.
Kevin Ryde [Fri, 20 Aug 2004 01:36:28 +0000 (01:36 +0000)]
(mkstemp!): New tests.
Kevin Ryde [Fri, 20 Aug 2004 01:35:44 +0000 (01:35 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 20 Aug 2004 01:32:36 +0000 (01:32 +0000)]
(scm_mkstemp): Correction to new locale_string stuff, need
to modify the input string.
Marius Vollmer [Thu, 19 Aug 2004 23:04:45 +0000 (23:04 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 23:03:55 +0000 (23:03 +0000)]
Updated transition section with new recommended things.
Marius Vollmer [Thu, 19 Aug 2004 22:23:34 +0000 (22:23 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 22:23:23 +0000 (22:23 +0000)]
Two tests for substring/shared. Also, use (test-suite lib).
Marius Vollmer [Thu, 19 Aug 2004 20:40:16 +0000 (20:40 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 20:36:29 +0000 (20:36 +0000)]
(SCM_SYMBOL_CHARS): Cast away const in return.
(SCM_SYMBOL_LENGTH): It's scm_i_symbol_length, not
scm_c_symbol_length.
Marius Vollmer [Thu, 19 Aug 2004 20:34:58 +0000 (20:34 +0000)]
Added comment about future improvements...
Marius Vollmer [Thu, 19 Aug 2004 18:54:05 +0000 (18:54 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 18:53:40 +0000 (18:53 +0000)]
(Strings): Document copy-on-write behavior and
mutation-sharing substrings.
(Symbols): Document scm_from_locale_symbol and
scm_from_locale_symboln.
Marius Vollmer [Thu, 19 Aug 2004 18:41:17 +0000 (18:41 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 18:41:05 +0000 (18:41 +0000)]
(scm_string_copy): Use scm_c_substring to get a copy-on-write string.
Marius Vollmer [Thu, 19 Aug 2004 17:54:37 +0000 (17:54 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 17:30:03 +0000 (17:30 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 17:28:53 +0000 (17:28 +0000)]
Avoid the use of discouraged or deprecated things.
Marius Vollmer [Thu, 19 Aug 2004 17:22:35 +0000 (17:22 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 17:22:20 +0000 (17:22 +0000)]
* srfi-13.h, srfi-13.c: (scm_substring_shared): Renamed to
scm_substring_sharedS.
* srfi-14.c, srfi-13.c: Adapted to new internal string and symbol
API.
Marius Vollmer [Thu, 19 Aug 2004 17:21:22 +0000 (17:21 +0000)]
Adapted to new internal string and symbol API.
Marius Vollmer [Thu, 19 Aug 2004 17:20:44 +0000 (17:20 +0000)]
(substring/shared): Export as replacement since we now have a version
in the core.
Marius Vollmer [Thu, 19 Aug 2004 17:19:44 +0000 (17:19 +0000)]
* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
scm_i_string_writable_chars, scm_i_string_stop_writing): New, to
replace SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH. Updated all
uses.
(scm_i_make_string, scm_c_make_string): New, to replace
scm_allocate_string. Updated all uses.
(SCM_STRINGP, SCM_STRING_CHARS, SCM_STRING_UCHARS,
SCM_STRING_LENGTH): Deprecated.
(scm_allocate_string, scm_take_str, scm_take0str, scm_mem2string,
scm_str2string, scm_makfrom0str, scm_makfrom0str_opt):
Discouraged. Replaced all uses with scm_from_locale_string or
similar, as appropriate.
(scm_c_string_length, scm_c_string_ref, scm_c_string_set_x,
scm_c_substring, scm_c_substring_shared, scm_c_substring_copy,
scm_substring_shared, scm_substring_copy): New.
* symbols.c, symbols.h (SCM_SYMBOLP, SCM_SYMBOL_FUNC,
SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS,
SCM_SYMBOL_HASH, SCM_SYMBOL_INTERNED_P, scm_mem2symbol,
scm_str2symbol, scm_mem2uninterned_symbol): Discouraged.
(SCM_SYMBOL_LENGTH, SCM_SYMBOL_CHARS, scm_c_symbol2str):
Deprecated.
(SCM_MAKE_SYMBOL_TAG, SCM_SET_SYMBOL_LENGTH, SCM_SET_SYMBOL_CHARS,
SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Removed.
(scm_is_symbol, scm_from_locale_symbol, scm_from_locale_symboln):
New, to replace scm_str2symbol and scm_mem2symbol, respectively.
Updated all uses.
(scm_gensym): Generate only the number suffix in the buffer, just
string-append the prefix.
Marius Vollmer [Thu, 19 Aug 2004 17:18:25 +0000 (17:18 +0000)]
(gh_set_substr): Made src const.
* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
scm_i_string_writable_chars, scm_i_string_stop_writing): New, to
replace SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH. Updated all
uses.
(scm_i_make_string, scm_c_make_string): New, to replace
scm_allocate_string. Updated all uses.
(SCM_STRINGP, SCM_STRING_CHARS, SCM_STRING_UCHARS,
SCM_STRING_LENGTH): Deprecated.
(scm_allocate_string, scm_take_str, scm_take0str, scm_mem2string,
scm_str2string, scm_makfrom0str, scm_makfrom0str_opt):
Discouraged. Replaced all uses with scm_from_locale_string or
similar, as appropriate.
(scm_c_string_length, scm_c_string_ref, scm_c_string_set_x,
scm_c_substring, scm_c_substring_shared, scm_c_substring_copy,
scm_substring_shared, scm_substring_copy): New.
* symbols.c, symbols.h (SCM_SYMBOLP, SCM_SYMBOL_FUNC,
SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS,
SCM_SYMBOL_HASH, SCM_SYMBOL_INTERNED_P, scm_mem2symbol,
scm_str2symbol, scm_mem2uninterned_symbol): Discouraged.
(SCM_SYMBOL_LENGTH, SCM_SYMBOL_CHARS, scm_c_symbol2str):
Deprecated.
(SCM_MAKE_SYMBOL_TAG, SCM_SET_SYMBOL_LENGTH, SCM_SET_SYMBOL_CHARS,
SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Removed.
(scm_is_symbol, scm_from_locale_symbol, scm_from_locale_symboln):
New, to replace scm_str2symbol and scm_mem2symbol, respectively.
Updated all uses.
(scm_gensym): Generate only the number suffix in the buffer, just
string-append the prefix.
Marius Vollmer [Thu, 19 Aug 2004 17:17:43 +0000 (17:17 +0000)]
(scm_i_casei_streq): New, for counted strings.
* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
scm_i_string_writable_chars, scm_i_string_stop_writing): New, to
replace SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH. Updated all
uses.
(scm_i_make_string, scm_c_make_string): New, to replace
scm_allocate_string. Updated all uses.
(SCM_STRINGP, SCM_STRING_CHARS, SCM_STRING_UCHARS,
SCM_STRING_LENGTH): Deprecated.
(scm_allocate_string, scm_take_str, scm_take0str, scm_mem2string,
scm_str2string, scm_makfrom0str, scm_makfrom0str_opt):
Discouraged. Replaced all uses with scm_from_locale_string or
similar, as appropriate.
(scm_c_string_length, scm_c_string_ref, scm_c_string_set_x,
scm_c_substring, scm_c_substring_shared, scm_c_substring_copy,
scm_substring_shared, scm_substring_copy): New.
* symbols.c, symbols.h (SCM_SYMBOLP, SCM_SYMBOL_FUNC,
SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS,
SCM_SYMBOL_HASH, SCM_SYMBOL_INTERNED_P, scm_mem2symbol,
scm_str2symbol, scm_mem2uninterned_symbol): Discouraged.
(SCM_SYMBOL_LENGTH, SCM_SYMBOL_CHARS, scm_c_symbol2str):
Deprecated.
(SCM_MAKE_SYMBOL_TAG, SCM_SET_SYMBOL_LENGTH, SCM_SET_SYMBOL_CHARS,
SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Removed.
(scm_is_symbol, scm_from_locale_symbol, scm_from_locale_symboln):
New, to replace scm_str2symbol and scm_mem2symbol, respectively.
Updated all uses.
(scm_gensym): Generate only the number suffix in the buffer, just
string-append the prefix.
Marius Vollmer [Thu, 19 Aug 2004 17:17:22 +0000 (17:17 +0000)]
(scm_i_mode_bits_n): New, for counted strings.
(scm_mode_bits): Use it.
(scm_c_port_for_each): Blocking GC does not seem to work, allocate
a vector normally and fill that instead of consing a list with a
blocked GC.
* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
scm_i_string_writable_chars, scm_i_string_stop_writing): New, to
replace SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH. Updated all
uses.
(scm_i_make_string, scm_c_make_string): New, to replace
scm_allocate_string. Updated all uses.
(SCM_STRINGP, SCM_STRING_CHARS, SCM_STRING_UCHARS,
SCM_STRING_LENGTH): Deprecated.
(scm_allocate_string, scm_take_str, scm_take0str, scm_mem2string,
scm_str2string, scm_makfrom0str, scm_makfrom0str_opt):
Discouraged. Replaced all uses with scm_from_locale_string or
similar, as appropriate.
(scm_c_string_length, scm_c_string_ref, scm_c_string_set_x,
scm_c_substring, scm_c_substring_shared, scm_c_substring_copy,
scm_substring_shared, scm_substring_copy): New.
* symbols.c, symbols.h (SCM_SYMBOLP, SCM_SYMBOL_FUNC,
SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS,
SCM_SYMBOL_HASH, SCM_SYMBOL_INTERNED_P, scm_mem2symbol,
scm_str2symbol, scm_mem2uninterned_symbol): Discouraged.
(SCM_SYMBOL_LENGTH, SCM_SYMBOL_CHARS, scm_c_symbol2str):
Deprecated.
(SCM_MAKE_SYMBOL_TAG, SCM_SET_SYMBOL_LENGTH, SCM_SET_SYMBOL_CHARS,
SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Removed.
(scm_is_symbol, scm_from_locale_symbol, scm_from_locale_symboln):
New, to replace scm_str2symbol and scm_mem2symbol, respectively.
Updated all uses.
(scm_gensym): Generate only the number suffix in the buffer, just
string-append the prefix.
Marius Vollmer [Thu, 19 Aug 2004 17:16:49 +0000 (17:16 +0000)]
(scm_memory_error): Do not try to throw, just abort.
Throwing will not work anyway.
* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
scm_i_string_writable_chars, scm_i_string_stop_writing): New, to
replace SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH. Updated all
uses.
(scm_i_make_string, scm_c_make_string): New, to replace
scm_allocate_string. Updated all uses.
(SCM_STRINGP, SCM_STRING_CHARS, SCM_STRING_UCHARS,
SCM_STRING_LENGTH): Deprecated.
(scm_allocate_string, scm_take_str, scm_take0str, scm_mem2string,
scm_str2string, scm_makfrom0str, scm_makfrom0str_opt):
Discouraged. Replaced all uses with scm_from_locale_string or
similar, as appropriate.
(scm_c_string_length, scm_c_string_ref, scm_c_string_set_x,
scm_c_substring, scm_c_substring_shared, scm_c_substring_copy,
scm_substring_shared, scm_substring_copy): New.
* symbols.c, symbols.h (SCM_SYMBOLP, SCM_SYMBOL_FUNC,
SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS,
SCM_SYMBOL_HASH, SCM_SYMBOL_INTERNED_P, scm_mem2symbol,
scm_str2symbol, scm_mem2uninterned_symbol): Discouraged.
(SCM_SYMBOL_LENGTH, SCM_SYMBOL_CHARS, scm_c_symbol2str):
Deprecated.
(SCM_MAKE_SYMBOL_TAG, SCM_SET_SYMBOL_LENGTH, SCM_SET_SYMBOL_CHARS,
SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Removed.
(scm_is_symbol, scm_from_locale_symbol, scm_from_locale_symboln):
New, to replace scm_str2symbol and scm_mem2symbol, respectively.
Updated all uses.
(scm_gensym): Generate only the number suffix in the buffer, just
string-append the prefix.
Marius Vollmer [Thu, 19 Aug 2004 17:16:01 +0000 (17:16 +0000)]
(gc_section_count): Removed, thread-sleeping can not
be nested.
(scm_i_thread_put_to_sleep): Call scm_i_leave_guile before locking
admin mutex so that we can be put to sleep by other threads while
blocking on that mutex. Lock all the heap mutex of all threads,
including ourselves.
(scm_i_thread_wake_up): Unlock all threads, including ourselves,
call scm_i_enter_guile.
(scm_thread_mark_stacks): Expect all threads to be suspended.
Marius Vollmer [Thu, 19 Aug 2004 16:49:42 +0000 (16:49 +0000)]
* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
scm_i_string_writable_chars, scm_i_string_stop_writing): New, to
replace SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH. Updated all
uses.
(scm_i_make_string, scm_c_make_string): New, to replace
scm_allocate_string. Updated all uses.
(SCM_STRINGP, SCM_STRING_CHARS, SCM_STRING_UCHARS,
SCM_STRING_LENGTH): Deprecated.
(scm_allocate_string, scm_take_str, scm_take0str, scm_mem2string,
scm_str2string, scm_makfrom0str, scm_makfrom0str_opt):
Discouraged. Replaced all uses with scm_from_locale_string or
similar, as appropriate.
(scm_c_string_length, scm_c_string_ref, scm_c_string_set_x,
scm_c_substring, scm_c_substring_shared, scm_c_substring_copy,
scm_substring_shared, scm_substring_copy): New.
* symbols.c, symbols.h (SCM_SYMBOLP, SCM_SYMBOL_FUNC,
SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS,
SCM_SYMBOL_HASH, SCM_SYMBOL_INTERNED_P, scm_mem2symbol,
scm_str2symbol, scm_mem2uninterned_symbol): Discouraged.
(SCM_SYMBOL_LENGTH, SCM_SYMBOL_CHARS, scm_c_symbol2str):
Deprecated.
(SCM_MAKE_SYMBOL_TAG, SCM_SET_SYMBOL_LENGTH, SCM_SET_SYMBOL_CHARS,
SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Removed.
(scm_is_symbol, scm_from_locale_symbol, scm_from_locale_symboln):
New, to replace scm_str2symbol and scm_mem2symbol, respectively.
Updated all uses.
(scm_gensym): Generate only the number suffix in the buffer, just
string-append the prefix.
Marius Vollmer [Thu, 19 Aug 2004 16:48:38 +0000 (16:48 +0000)]
* gc.h, gc.c (scm_i_gc_admin_mutex): New, to protect
scm_gc_mallocated, for now.
(scm_init_storage): Initialize it.
* gc-malloc.c (descrease_mtrigger, increase_mtrigger): Use it.
* gc-mark.c (scm_gc_mark_dependencies): Call scm_i_string_mark,
scm_i_stringbuf_mark and scm_i_symbol_mark, as appropriate.
* gc-card.c (scm_i_sweep_card): Call scm_i_string_free,
scm_i_stringbuf_free and scm_i_symbol_free, as appropriate.
Marius Vollmer [Thu, 19 Aug 2004 16:41:30 +0000 (16:41 +0000)]
(scm_tc7_stringbuf): New tag.
Marius Vollmer [Thu, 19 Aug 2004 16:06:45 +0000 (16:06 +0000)]
Align jao's name correctly.
Kevin Ryde [Wed, 18 Aug 2004 00:34:46 +0000 (00:34 +0000)]
New file.
Kevin Ryde [Wed, 18 Aug 2004 00:30:58 +0000 (00:30 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 18 Aug 2004 00:30:29 +0000 (00:30 +0000)]
* tests/and-let-star.test, tests/arbiters.test, tests/receive.test:
New files.
* Makefile.am (SCM_TESTS): Add them.
Kevin Ryde [Wed, 18 Aug 2004 00:29:19 +0000 (00:29 +0000)]
New file.
Kevin Ryde [Wed, 18 Aug 2004 00:25:39 +0000 (00:25 +0000)]
Add cond-expand-provide srfi-8, since this module provides that feature.
Kevin Ryde [Wed, 18 Aug 2004 00:24:59 +0000 (00:24 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 18 Aug 2004 00:22:25 +0000 (00:22 +0000)]
Add cond-expand-provide srfi-2, since this module provides that feature.
Kevin Ryde [Wed, 18 Aug 2004 00:13:51 +0000 (00:13 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 18 Aug 2004 00:12:44 +0000 (00:12 +0000)]
(Internet Socket Examples): Correction to socket calls,
should be PF_INET not AF_INET (though generally the two are the same
value).
Kevin Ryde [Tue, 17 Aug 2004 23:58:56 +0000 (23:58 +0000)]
(Network Sockets and Communication): Add SOCK_RDM and SOCK_SEQPACKET.
Kevin Ryde [Tue, 17 Aug 2004 23:57:01 +0000 (23:57 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 17 Aug 2004 23:53:07 +0000 (23:53 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 17 Aug 2004 23:44:25 +0000 (23:44 +0000)]
(scm_init_socket): Add SOCK_SEQPACKET and SOCK_RDM.
Kevin Ryde [Tue, 17 Aug 2004 23:34:53 +0000 (23:34 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 17 Aug 2004 23:28:16 +0000 (23:28 +0000)]
*** empty log message ***
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.
Kevin Ryde [Tue, 17 Aug 2004 23:22:23 +0000 (23:22 +0000)]
(ttyname): Remove prototype, unused.
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.
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.)
Kevin Ryde [Tue, 17 Aug 2004 23:17:34 +0000 (23:17 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 17 Aug 2004 23:17:06 +0000 (23:17 +0000)]
* tests/arbiters.test: New file
* Makefile.am (SCM_TESTS): Add it.
Kevin Ryde [Tue, 17 Aug 2004 23:15:14 +0000 (23:15 +0000)]
New file.
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.
Marius Vollmer [Sun, 15 Aug 2004 20:28:24 +0000 (20:28 +0000)]
*** empty log message ***
Marius Vollmer [Sun, 15 Aug 2004 20:26:05 +0000 (20:26 +0000)]
New, from Jose A Ortega Ruiz. Thanks!
Kevin Ryde [Sat, 14 Aug 2004 01:06:13 +0000 (01:06 +0000)]
*** empty log message ***
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.
Kevin Ryde [Sat, 14 Aug 2004 00:55:00 +0000 (00:55 +0000)]
*** empty log message ***
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.
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.
Kevin Ryde [Sat, 14 Aug 2004 00:44:29 +0000 (00:44 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 14 Aug 2004 00:43:56 +0000 (00:43 +0000)]
(string-any, string-every): Exercise char and charset predicate cases.
Kevin Ryde [Sat, 14 Aug 2004 00:39:01 +0000 (00:39 +0000)]
*** empty log message ***
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.
Marius Vollmer [Fri, 13 Aug 2004 12:28:38 +0000 (12:28 +0000)]
*** empty log message ***
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.
Marius Vollmer [Thu, 12 Aug 2004 17:52:49 +0000 (17:52 +0000)]
*** empty log message ***