bpt/guile.git
19 years ago*** empty log message ***
Marius Vollmer [Thu, 26 Aug 2004 15:40:25 +0000 (15:40 +0000)]
*** empty log message ***

19 years ago* strings.h, strings.c (scm_i_make_symbol): Added FLAGS parameter.
Marius Vollmer [Thu, 26 Aug 2004 15:40:13 +0000 (15:40 +0000)]
* strings.h, strings.c (scm_i_make_symbol): Added FLAGS parameter.
* symbols.h, symbols.c (SCM_I_F_SYMBOL_UNINTERNED,
scm_i_symbol_is_interned, scm_i_mem2symbol,
scm_i_mem2uninternedsymbol): Use it to store uninternedness flag.

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

19 years ago* LIBGUILEREADLINE-VERSION: Bumped versions for the 1.7.1 release.
Marius Vollmer [Thu, 26 Aug 2004 15:16:56 +0000 (15:16 +0000)]
* LIBGUILEREADLINE-VERSION: Bumped versions for the 1.7.1 release.
Added LIBGUILEREADLINE_MAJOR variable for inclusion in the name of
the shared library.
* configure.in: AC_SUBST it.
* Makefile.am: Substitute it into name of library.
* ice-9/readline.scm: Use new name with load-extension.

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

19 years ago* LIBGUILEREADLINE-VERSION: Bumped versions for the 1.7.1 release.
Marius Vollmer [Thu, 26 Aug 2004 15:16:10 +0000 (15:16 +0000)]
* LIBGUILEREADLINE-VERSION: Bumped versions for the 1.7.1 release.
Added LIBGUILEREADLINE_MAJOR variable for inclusion in the name of
the shared library.
* configure.in: AC_SUBST it.
* Makefile.am: Substitute it into name of library.

19 years ago* Makefile.am: Added appropriate @LIBGUILE_*_MAJOR@ substitutions
Marius Vollmer [Thu, 26 Aug 2004 15:13:05 +0000 (15:13 +0000)]
* Makefile.am: Added appropriate @LIBGUILE_*_MAJOR@ substitutions
to the library names.
* srfi-1.scm, srfi-4.scm: Use the new library names with
load-extension.

19 years agoBumped version number of libguile-ltdl to 2.
Marius Vollmer [Thu, 26 Aug 2004 15:10:24 +0000 (15:10 +0000)]
Bumped version number of libguile-ltdl to 2.

19 years ago* GUILE-VERSION: Bumped all versions for the 1.7.1 release. Added
Marius Vollmer [Thu, 26 Aug 2004 15:09:36 +0000 (15:09 +0000)]
* GUILE-VERSION: Bumped all versions for the 1.7.1 release.  Added
LIBGUILE_*_MAJOR variables for inclusion in the names of shared
libraries such as "libguile-srfi-srfi-1-v-MAJOR.la".  Removed
LIBQTHREADS_*.
* configure.in: Updated for the new set of variables defined in
GUILE-VERSION.

19 years agoBumped all versions for the 1.7.1 release. Added LIBGUILE_*_MAJOR
Marius Vollmer [Thu, 26 Aug 2004 15:08:44 +0000 (15:08 +0000)]
Bumped all versions for the 1.7.1 release.  Added LIBGUILE_*_MAJOR
variables for inclusion in the names of shared libraries such as
"libguile-srfi-srfi-1-v-MAJOR.la".  Removed LIBQTHREADS_*.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 26 Aug 2004 14:59:44 +0000 (14:59 +0000)]
*** empty log message ***

19 years agoAdditions.
Marius Vollmer [Wed, 25 Aug 2004 19:03:14 +0000 (19:03 +0000)]
Additions.

19 years agoTypos fixed. Use existing functions in explaining symbol and keyword
Marius Vollmer [Wed, 25 Aug 2004 19:02:34 +0000 (19:02 +0000)]
Typos fixed.  Use existing functions in explaining symbol and keyword
snarfer.

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

19 years agoRemoved things that are no longer true. Updated in general.
Marius Vollmer [Wed, 25 Aug 2004 17:22:38 +0000 (17:22 +0000)]
Removed things that are no longer true.  Updated in general.

19 years agoTidied up somewhat.
Marius Vollmer [Wed, 25 Aug 2004 17:22:14 +0000 (17:22 +0000)]
Tidied up somewhat.

19 years agoInclude srfi-13.h and srfi-14.h, do not include strop.h.
Marius Vollmer [Wed, 25 Aug 2004 17:21:04 +0000 (17:21 +0000)]
Include srfi-13.h and srfi-14.h, do not include strop.h.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 25 Aug 2004 16:04:30 +0000 (16:04 +0000)]
*** empty log message ***

19 years ago* srfi-13.c: First cut at thread-safeness and proper use of
Marius Vollmer [Wed, 25 Aug 2004 16:04:09 +0000 (16:04 +0000)]
* srfi-13.c: First cut at thread-safeness and proper use of
scm_i_string_chars et al.  Copious scm_remember_upto_heres have
been inserted.  Made sure that no internal string pointer is used
across a SCM_TICK or a possible GC.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 25 Aug 2004 13:49:48 +0000 (13:49 +0000)]
*** empty log message ***

19 years ago(scm_compile_shell_switches): Use scm_from_locale_string instead of
Marius Vollmer [Wed, 25 Aug 2004 13:47:52 +0000 (13:47 +0000)]
(scm_compile_shell_switches): Use scm_from_locale_string instead of
scm_makfrom0str.

19 years ago(scm_string_rindex): Export to Scheme, as it has always been.
Marius Vollmer [Wed, 25 Aug 2004 13:42:04 +0000 (13:42 +0000)]
(scm_string_rindex): Export to Scheme, as it has always been.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 25 Aug 2004 13:41:14 +0000 (13:41 +0000)]
*** empty log message ***

19 years agoCorrect xref to SRFI-13, now points to node Strings.
Marius Vollmer [Wed, 25 Aug 2004 13:40:53 +0000 (13:40 +0000)]
Correct xref to SRFI-13, now points to node Strings.

19 years agoMoved docs for SRFI-14 into main API chapter. Updated docstrings from
Marius Vollmer [Wed, 25 Aug 2004 13:40:21 +0000 (13:40 +0000)]
Moved docs for SRFI-14 into main API chapter.  Updated docstrings from
libguile/.

19 years agoLeft inf? in its place, since wants to be here so much.
Marius Vollmer [Wed, 25 Aug 2004 13:39:26 +0000 (13:39 +0000)]
Left inf? in its place, since wants to be here so much.

19 years agoSynced from libguile/
Marius Vollmer [Wed, 25 Aug 2004 13:38:37 +0000 (13:38 +0000)]
Synced from libguile/

19 years ago*** empty log message ***
Kevin Ryde [Wed, 25 Aug 2004 01:08:14 +0000 (01:08 +0000)]
*** empty log message ***

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

19 years agoMore tests, in particular exercise #t result on empty body.
Kevin Ryde [Wed, 25 Aug 2004 01:04:40 +0000 (01:04 +0000)]
More tests, in particular exercise #t result on empty body.

19 years ago(and-let*): Give #t for an empty body, per srfi-2
Kevin Ryde [Wed, 25 Aug 2004 00:46:59 +0000 (00:46 +0000)]
(and-let*): Give #t for an empty body, per srfi-2
spec, previously came out as an empty (begin).

19 years ago*** empty log message ***
Marius Vollmer [Tue, 24 Aug 2004 23:37:07 +0000 (23:37 +0000)]
*** empty log message ***

19 years ago(docstring-process-alist): Consider entries in reverse order. That
Marius Vollmer [Tue, 24 Aug 2004 23:36:56 +0000 (23:36 +0000)]
(docstring-process-alist): Consider entries in reverse order.  That
puts them in new-docstrings.texi in the same order as in the C source.

19 years agoCorrected reference to srfi-14, which is now elsewhere.
Marius Vollmer [Tue, 24 Aug 2004 23:34:24 +0000 (23:34 +0000)]
Corrected reference to srfi-14, which is now elsewhere.

19 years agoMoved docs for SRFI-14 into main API chapter. Updated docstrings from
Marius Vollmer [Tue, 24 Aug 2004 23:33:39 +0000 (23:33 +0000)]
Moved docs for SRFI-14 into main API chapter.  Updated docstrings from
libguile/.

19 years agoMore deprecated entries.
Marius Vollmer [Tue, 24 Aug 2004 23:32:28 +0000 (23:32 +0000)]
More deprecated entries.

19 years agoRemoved scm_inf_p.
Marius Vollmer [Tue, 24 Aug 2004 23:32:10 +0000 (23:32 +0000)]
Removed scm_inf_p.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 24 Aug 2004 22:25:02 +0000 (22:25 +0000)]
*** empty log message ***

19 years ago(%cond-expand-features): Addef srfi-13 and srfi-14.
Marius Vollmer [Tue, 24 Aug 2004 22:20:47 +0000 (22:20 +0000)]
(%cond-expand-features): Addef srfi-13 and srfi-14.

19 years ago* srfi-13.scm, srfi-14.scm: Simply re-export the relevant
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.

19 years agoTwo more tests for double indirect substring modification.
Marius Vollmer [Tue, 24 Aug 2004 22:14:57 +0000 (22:14 +0000)]
Two more tests for double indirect substring modification.

19 years ago* symbols.h, symbols.c (scm_string_ci_to_symbol): Moved here, next
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".

19 years ago(scm_string_equal_p, scm_string_ci_equal_p, scm_string_less_p,
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.

19 years ago(scm_init_guile_1): Call scm_init_srfi_13 and scm_init_srfi_14. Do
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.

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.