bpt/guile.git
19 years ago(scm_char_alphabetic_p, scm_char_numeric_p, scm_char_whitespace_p,
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.

19 years agoInclude "srfi-13.h" instead of "strop.h".
Marius Vollmer [Tue, 24 Aug 2004 22:12:37 +0000 (22:12 +0000)]
Include "srfi-13.h" instead of "strop.h".

19 years ago* srfi-13.c, srfi-13.h, srfi-14.c, srfi-14.h: New files.
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.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 24 Aug 2004 16:44:00 +0000 (16:44 +0000)]
*** empty log message ***

19 years ago(scm_inf_p): Synced docstring back from manual.
Marius Vollmer [Tue, 24 Aug 2004 16:43:50 +0000 (16:43 +0000)]
(scm_inf_p): Synced docstring back from manual.

19 years agoCopied from libguile/guile.texi.
Marius Vollmer [Tue, 24 Aug 2004 16:43:07 +0000 (16:43 +0000)]
Copied from libguile/guile.texi.

19 years agoRan a (docstring-process-module "(guile)") and moved entries from
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.

19 years agoNew file.
Marius Vollmer [Tue, 24 Aug 2004 16:37:25 +0000 (16:37 +0000)]
New file.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 23 Aug 2004 10:51:43 +0000 (10:51 +0000)]
*** empty log message ***

19 years agoReplaced all "@c module" markers with "@c module-for-docstring",
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.

19 years ago* lib.scm (exception:used-before-define): New.
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.

19 years ago*** empty log message ***
Marius Vollmer [Sun, 22 Aug 2004 19:31:32 +0000 (19:31 +0000)]
*** empty log message ***

19 years ago(Invoking Guile): documented new '-L' switch.
Marius Vollmer [Sun, 22 Aug 2004 19:30:04 +0000 (19:30 +0000)]
(Invoking Guile): documented new '-L' switch.

19 years ago(get_str_buf_start): New helper function.
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.

19 years ago(scm_compile_shell_switches): added '-L' switch to add to the
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.

19 years agoMove variables to avoid c99-isms in recent:
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.

19 years ago * eval.c (unmemoize_exprs): When dropping internal body markers
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.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 20 Aug 2004 15:14:08 +0000 (15:14 +0000)]
*** empty log message ***

19 years ago(display-source): Use unmemoize-expr instead
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.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 20 Aug 2004 13:33:39 +0000 (13:33 +0000)]
*** empty log message ***

19 years ago(scm_lookupcar1): Report "Variable used before given a value" insetad
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.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 20 Aug 2004 12:27:11 +0000 (12:27 +0000)]
*** empty log message ***

19 years ago(scm_lookupcar1): Report an "Undefined variable" insetad of an
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.

19 years ago(scm_mkstemp): Correction to the correction, mkstemp expects a
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.

19 years ago(scm_substring_move_x): Store into str2, not str1.
Marius Vollmer [Fri, 20 Aug 2004 12:25:09 +0000 (12:25 +0000)]
(scm_substring_move_x): Store into str2, not str1.

19 years ago(mkstemp!): New tests.
Kevin Ryde [Fri, 20 Aug 2004 01:36:28 +0000 (01:36 +0000)]
(mkstemp!): New tests.

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

19 years ago(scm_mkstemp): Correction to new locale_string stuff, need
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.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 23:04:45 +0000 (23:04 +0000)]
*** empty log message ***

19 years agoUpdated transition section with new recommended things.
Marius Vollmer [Thu, 19 Aug 2004 23:03:55 +0000 (23:03 +0000)]
Updated transition section with new recommended things.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 22:23:34 +0000 (22:23 +0000)]
*** empty log message ***

19 years agoTwo tests for substring/shared. Also, use (test-suite lib).
Marius Vollmer [Thu, 19 Aug 2004 22:23:23 +0000 (22:23 +0000)]
Two tests for substring/shared.  Also, use (test-suite lib).

19 years ago*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 20:40:16 +0000 (20:40 +0000)]
*** empty log message ***

19 years ago(SCM_SYMBOL_CHARS): Cast away const in return.
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.

19 years agoAdded comment about future improvements...
Marius Vollmer [Thu, 19 Aug 2004 20:34:58 +0000 (20:34 +0000)]
Added comment about future improvements...

19 years ago*** empty log message ***
Marius Vollmer [Thu, 19 Aug 2004 18:54:05 +0000 (18:54 +0000)]
*** empty log message ***

19 years ago(Strings): Document copy-on-write behavior and
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.

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

19 years ago(scm_string_copy): Use scm_c_substring to get a copy-on-write string.
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.

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

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

19 years agoAvoid the use of discouraged or deprecated things.
Marius Vollmer [Thu, 19 Aug 2004 17:28:53 +0000 (17:28 +0000)]
Avoid the use of discouraged or deprecated things.

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

19 years ago* srfi-13.h, srfi-13.c: (scm_substring_shared): Renamed to
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.

19 years agoAdapted 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.

19 years ago(substring/shared): Export as replacement since we now have a version
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.

19 years ago* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
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.

19 years ago(gh_set_substr): Made src const.
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.

19 years ago(scm_i_casei_streq): New, for counted strings.
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.

19 years ago(scm_i_mode_bits_n): New, for counted strings.
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.

19 years ago(scm_memory_error): Do not try to throw, just abort.
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.

19 years ago(gc_section_count): Removed, thread-sleeping can not
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.

19 years ago* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length,
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.

19 years ago* gc.h, gc.c (scm_i_gc_admin_mutex): New, to protect
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.

19 years ago(scm_tc7_stringbuf): New tag.
Marius Vollmer [Thu, 19 Aug 2004 16:41:30 +0000 (16:41 +0000)]
(scm_tc7_stringbuf): New tag.

19 years agoAlign jao's name correctly.
Marius Vollmer [Thu, 19 Aug 2004 16:06:45 +0000 (16:06 +0000)]
Align jao's name correctly.

19 years agoNew file.
Kevin Ryde [Wed, 18 Aug 2004 00:34:46 +0000 (00:34 +0000)]
New file.

19 years ago*** empty log message ***
Kevin Ryde [Wed, 18 Aug 2004 00:30:58 +0000 (00:30 +0000)]
*** empty log message ***

19 years ago * tests/and-let-star.test, tests/arbiters.test, tests/receive.test:
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.

19 years agoNew file.
Kevin Ryde [Wed, 18 Aug 2004 00:29:19 +0000 (00:29 +0000)]
New file.

19 years agoAdd cond-expand-provide srfi-8, since this module provides that feature.
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.

19 years ago*** empty log message ***
Kevin Ryde [Wed, 18 Aug 2004 00:24:59 +0000 (00:24 +0000)]
*** empty log message ***

19 years agoAdd cond-expand-provide srfi-2, since this module provides that feature.
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.

19 years ago*** empty log message ***
Kevin Ryde [Wed, 18 Aug 2004 00:13:51 +0000 (00:13 +0000)]
*** empty log message ***

19 years ago(Internet Socket Examples): Correction to socket calls,
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).

19 years ago(Network Sockets and Communication): Add SOCK_RDM and SOCK_SEQPACKET.
Kevin Ryde [Tue, 17 Aug 2004 23:58:56 +0000 (23:58 +0000)]
(Network Sockets and Communication): Add SOCK_RDM and SOCK_SEQPACKET.

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

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

19 years ago(scm_init_socket): Add SOCK_SEQPACKET and SOCK_RDM.
Kevin Ryde [Tue, 17 Aug 2004 23:44:25 +0000 (23:44 +0000)]
(scm_init_socket): Add SOCK_SEQPACKET and SOCK_RDM.

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

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

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.