bpt/guile.git
19 years ago(SRFI-0): Add srfi-4, srfi-13 and srfi-14 now in the core.
Kevin Ryde [Thu, 3 Feb 2005 23:10:20 +0000 (23:10 +0000)]
(SRFI-0): Add srfi-4, srfi-13 and srfi-14 now in the core.

19 years agoA bit clearer for:
Kevin Ryde [Thu, 3 Feb 2005 22:59:47 +0000 (22:59 +0000)]
A bit clearer for:
(SRFI-1 Searching): In list-index, note 0 based index and #f for not found.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 28 Jan 2005 21:54:15 +0000 (21:54 +0000)]
*** empty log message ***

19 years ago(remove): Rewrite in C, a trivial adaption from scm_filter in the core.
Kevin Ryde [Fri, 28 Jan 2005 21:53:47 +0000 (21:53 +0000)]
(remove): Rewrite in C, a trivial adaption from scm_filter in the core.

19 years ago(remove): Rewrite in C, a trivial adaption from scm_filter in the core.
Kevin Ryde [Fri, 28 Jan 2005 21:51:15 +0000 (21:51 +0000)]
(remove): Rewrite in C, a trivial adaption from scm_filter in the core.
(remove!): Use filter!.

19 years ago(remove!): New tests.
Kevin Ryde [Fri, 28 Jan 2005 21:49:09 +0000 (21:49 +0000)]
(remove!): New tests.

19 years ago(remove): New tests.
Kevin Ryde [Fri, 28 Jan 2005 21:44:51 +0000 (21:44 +0000)]
(remove): New tests.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 28 Jan 2005 21:44:19 +0000 (21:44 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Kevin Ryde [Fri, 28 Jan 2005 21:34:20 +0000 (21:34 +0000)]
*** empty log message ***

19 years ago(lset-adjoin): Actually use the given `=' procedure.
Kevin Ryde [Fri, 28 Jan 2005 21:30:47 +0000 (21:30 +0000)]
(lset-adjoin): Actually use the given `=' procedure.
Test membership only on the given `list', not `acc', as per the spec.

19 years agoAdd a copyright year.
Kevin Ryde [Fri, 28 Jan 2005 21:19:20 +0000 (21:19 +0000)]
Add a copyright year.

19 years ago(ash): New tests.
Kevin Ryde [Fri, 28 Jan 2005 21:18:55 +0000 (21:18 +0000)]
(ash): New tests.

19 years ago(lset-adjoin): New tests.
Kevin Ryde [Fri, 28 Jan 2005 21:18:01 +0000 (21:18 +0000)]
(lset-adjoin): New tests.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 28 Jan 2005 21:11:28 +0000 (21:11 +0000)]
*** empty log message ***

19 years ago(regexp-quote): Use string-for-each, now that function is
Kevin Ryde [Fri, 28 Jan 2005 21:10:55 +0000 (21:10 +0000)]
(regexp-quote): Use string-for-each, now that function is
in the core.

19 years ago(Signals): In sigaction, add SA_NOCLDSTOP, make it
Kevin Ryde [Fri, 28 Jan 2005 21:09:30 +0000 (21:09 +0000)]
(Signals): In sigaction, add SA_NOCLDSTOP, make it
clearer SA_RESTART is a variable.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 28 Jan 2005 00:14:16 +0000 (00:14 +0000)]
*** empty log message ***

19 years ago(SRFI-1 Predicates): Clarify proper-list?,
Kevin Ryde [Thu, 27 Jan 2005 23:47:20 +0000 (23:47 +0000)]
(SRFI-1 Predicates): Clarify proper-list?,
circular-list? and dotted-list?, note any object passes exactly one of
those.

19 years ago(SRFI-19 Time/Date conversions): In default
Kevin Ryde [Thu, 27 Jan 2005 23:44:05 +0000 (23:44 +0000)]
(SRFI-19 Time/Date conversions): In default
tz-offset, note restrictions on a 32-bit system.

19 years agoMore of:
Kevin Ryde [Thu, 27 Jan 2005 23:21:06 +0000 (23:21 +0000)]
More of:
(lset=): New tests.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 27 Jan 2005 23:13:43 +0000 (23:13 +0000)]
*** empty log message ***

19 years ago(lset=): Correction to pred call arg order, srfi spec is
Kevin Ryde [Thu, 27 Jan 2005 23:11:36 +0000 (23:11 +0000)]
(lset=): Correction to pred call arg order, srfi spec is
(= e[i] e[i+1]), but had some calls the other way around.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 27 Jan 2005 23:04:05 +0000 (23:04 +0000)]
*** empty log message ***

19 years ago(scm_ash): Rewrite using shifts, much faster than
Kevin Ryde [Thu, 27 Jan 2005 22:51:22 +0000 (22:51 +0000)]
(scm_ash): Rewrite using shifts, much faster than
integer-expt and multiply/divide.  Inexacts and fractions no longer
supported (they happened to work before for left shifts, but not
right).  Don't really need inexacts and fractions, since ash is
documented as a "bitwise operation", and all the rest of those only
take exact integers.

19 years ago* gc-card.c (scm_i_card_statistics): map structs, closures and
Han-Wen Nienhuys [Thu, 27 Jan 2005 22:50:09 +0000 (22:50 +0000)]
* gc-card.c (scm_i_card_statistics): map structs, closures and
subrs to one tag.

* gc-card.c (scm_i_tag_name):  new function.
(scm_i_card_statistics): new function.

19 years ago* gc.c (s_scm_gc_live_object_stats): return alist, not hashtable.
Han-Wen Nienhuys [Thu, 27 Jan 2005 22:44:43 +0000 (22:44 +0000)]
* gc.c (s_scm_gc_live_object_stats): return alist, not hashtable.
(tag_table_to_type_alist): ignore unknown types.

* gc.c (s_scm_gc_live_object_stats): new GUILE callable: return
statistics on the number of live objects of each type.

* gc-card.c (scm_i_tag_name):  new function.
(scm_i_card_statistics): new function.

19 years ago*** empty log message ***
Han-Wen Nienhuys [Thu, 27 Jan 2005 22:20:13 +0000 (22:20 +0000)]
*** empty log message ***

19 years ago* gc.c (s_scm_gc_live_object_stats): return alist, not hashtable.
Han-Wen Nienhuys [Thu, 27 Jan 2005 22:19:49 +0000 (22:19 +0000)]
* gc.c (s_scm_gc_live_object_stats): return alist, not hashtable.

* gc-segment.c (scm_i_all_segments_statistics): new function.
(scm_i_heap_segment_statistics): new function

* gc.c (s_scm_gc_live_object_stats): new GUILE callable: return
statistics on the number of live objects of each type.

* gc-card.c (scm_i_tag_name):  new function.
(scm_i_card_statistics): new function.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 27 Jan 2005 21:23:36 +0000 (21:23 +0000)]
*** empty log message ***

19 years ago(while): Tests running in empty environment are
Kevin Ryde [Thu, 27 Jan 2005 21:23:09 +0000 (21:23 +0000)]
(while): Tests running in empty environment are
now "unresolved" do to workaround in while implementation.

19 years ago(while): Remove the unquote from do, it breaks with ice-9
Kevin Ryde [Thu, 27 Jan 2005 21:20:47 +0000 (21:20 +0000)]
(while): Remove the unquote from do, it breaks with ice-9
syncase.  Reported by Pach Roman.

19 years agoReverted changed from 2005/01/24 19:14:54, which was a commit to the
Marius Vollmer [Mon, 24 Jan 2005 23:41:14 +0000 (23:41 +0000)]
Reverted changed from 2005/01/24 19:14:54, which was a commit to the
wrong branch.  Sorry.

19 years agoThreading changes.
Marius Vollmer [Mon, 24 Jan 2005 19:14:54 +0000 (19:14 +0000)]
Threading changes.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 24 Jan 2005 00:11:03 +0000 (00:11 +0000)]
*** empty log message ***

19 years ago(check_cont): Cast rewindable to long, to
Kevin Ryde [Mon, 24 Jan 2005 00:07:01 +0000 (00:07 +0000)]
(check_cont): Cast rewindable to long, to
avoid warning from gcc 3.4 on 64-bit systems about casting int
(32-bits) to pointer (64-bits).

19 years ago(scm_sigaction_for_thread): Use scm_to_long for
Kevin Ryde [Mon, 24 Jan 2005 00:03:00 +0000 (00:03 +0000)]
(scm_sigaction_for_thread): Use scm_to_long for
sa_handler, needs to be a long on 64-bit systems where int is only 32
bits.

19 years ago(scm_i_init_rstate): Compare w to -1 not 0xffffffffUL, now
Kevin Ryde [Sun, 23 Jan 2005 23:58:43 +0000 (23:58 +0000)]
(scm_i_init_rstate): Compare w to -1 not 0xffffffffUL, now
that it's an scm_t_int32.  Otherwise gcc 3.4 says it's always false on
a 64-bit system.

19 years ago*** empty log message ***
Kevin Ryde [Sun, 23 Jan 2005 23:36:55 +0000 (23:36 +0000)]
*** empty log message ***

19 years ago(Internationalization): Expand and revise a bit for clarity.
Kevin Ryde [Sun, 23 Jan 2005 23:22:36 +0000 (23:22 +0000)]
(Internationalization): Expand and revise a bit for clarity.

19 years ago*** empty log message ***
Kevin Ryde [Sun, 23 Jan 2005 22:10:12 +0000 (22:10 +0000)]
*** empty log message ***

19 years ago(scm_flock): Update docstring from manual.
Kevin Ryde [Sun, 23 Jan 2005 22:09:14 +0000 (22:09 +0000)]
(scm_flock): Update docstring from manual.

19 years ago(scm_setlocale): Force errno=EINVAL for an error, since
Kevin Ryde [Sun, 23 Jan 2005 21:59:09 +0000 (21:59 +0000)]
(scm_setlocale): Force errno=EINVAL for an error, since
POSIX and C99 don't document errno being set.  Reported by Bruno
Haible.

19 years ago*** empty log message ***
Kevin Ryde [Sun, 23 Jan 2005 21:36:22 +0000 (21:36 +0000)]
*** empty log message ***

19 years ago(lset=, member): New tests.
Kevin Ryde [Sun, 23 Jan 2005 21:36:00 +0000 (21:36 +0000)]
(lset=, member): New tests.

19 years ago*** empty log message ***
Kevin Ryde [Sun, 23 Jan 2005 21:28:45 +0000 (21:28 +0000)]
*** empty log message ***

19 years ago(scm_srfi1_member): Update docstring from manual.
Kevin Ryde [Sun, 23 Jan 2005 21:27:51 +0000 (21:27 +0000)]
(scm_srfi1_member): Update docstring from manual.

19 years ago(SRFI-1 Set Operations): Remove lset-adjoin!, doesn't exist in the
Kevin Ryde [Sun, 23 Jan 2005 21:21:15 +0000 (21:21 +0000)]
(SRFI-1 Set Operations): Remove lset-adjoin!, doesn't exist in the
code or the srfi spec.

19 years ago(SRFI-1 Searching): In member, note `=' called arg order.
Kevin Ryde [Sun, 23 Jan 2005 21:16:46 +0000 (21:16 +0000)]
(SRFI-1 Searching): In member, note `=' called arg order.

19 years ago*** empty log message ***
Kevin Ryde [Sun, 23 Jan 2005 21:02:42 +0000 (21:02 +0000)]
*** empty log message ***

19 years ago(scm_srfi1_member): Correction to pred call arg order, srfi
Kevin Ryde [Sun, 23 Jan 2005 21:02:13 +0000 (21:02 +0000)]
(scm_srfi1_member): Correction to pred call arg order, srfi
spec is (PRED X elem).

19 years agoAdd a copyright year.
Kevin Ryde [Sun, 23 Jan 2005 20:47:36 +0000 (20:47 +0000)]
Add a copyright year.

19 years ago(lset=): Allow no list arguments, per srfi spec example.
Kevin Ryde [Sun, 23 Jan 2005 20:47:12 +0000 (20:47 +0000)]
(lset=): Allow no list arguments, per srfi spec example.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 21 Jan 2005 13:23:01 +0000 (13:23 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Marius Vollmer [Thu, 20 Jan 2005 15:58:06 +0000 (15:58 +0000)]
*** empty log message ***

19 years ago(obarray_enter, obarray_replace): Call SCM_HASHTABLE_INCREMENT when
Marius Vollmer [Thu, 20 Jan 2005 15:57:50 +0000 (15:57 +0000)]
(obarray_enter, obarray_replace): Call SCM_HASHTABLE_INCREMENT when
adding a new entry.

19 years ago*** empty log message ***
Marius Vollmer [Thu, 20 Jan 2005 14:41:14 +0000 (14:41 +0000)]
*** empty log message ***

19 years agoInclude goops.h for the scm_class_of prototype.
Marius Vollmer [Thu, 20 Jan 2005 14:40:46 +0000 (14:40 +0000)]
Include goops.h for the scm_class_of prototype.

19 years ago(hashtable_size, HASHTABLE_SIZE_N): Restrict hashtable sizes to be
Marius Vollmer [Thu, 20 Jan 2005 14:39:49 +0000 (14:39 +0000)]
(hashtable_size, HASHTABLE_SIZE_N): Restrict hashtable sizes to be
smaller than the maximum lengths of vectors.

19 years ago*** empty log message ***
Kevin Ryde [Wed, 19 Jan 2005 23:36:06 +0000 (23:36 +0000)]
*** empty log message ***

19 years ago(SRFI-1 Searching): In list-index, note 0 based
Kevin Ryde [Wed, 19 Jan 2005 23:35:38 +0000 (23:35 +0000)]
(SRFI-1 Searching): In list-index, note 0 based
index and #f for not found.

19 years ago(Ports and File Descriptors): In flock, for LOCK_NB note
Kevin Ryde [Wed, 19 Jan 2005 23:32:44 +0000 (23:32 +0000)]
(Ports and File Descriptors): In flock, for LOCK_NB note
logior for LOCK_NB and EWOULDBLOCK error, and note flock doesn't work
over NFS.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 18 Jan 2005 15:00:52 +0000 (15:00 +0000)]
*** empty log message ***

19 years ago(class-of): Changed from being re-exported to just
Marius Vollmer [Tue, 18 Jan 2005 15:00:44 +0000 (15:00 +0000)]
(class-of): Changed from being re-exported to just
being exported.

19 years ago* objects.h, objects.c, goops.c, goops.h (scm_class_boolean,
Marius Vollmer [Tue, 18 Jan 2005 14:58:39 +0000 (14:58 +0000)]
* objects.h, objects.c, goops.c, goops.h (scm_class_boolean,
scm_class_char, scm_class_pair, scm_class_procedure,
scm_class_string, scm_class_symbol,
scm_class_procedure_with_setter, scm_class_primitive_generic,
scm_class_vector, scm_class_null, scm_class_real,
scm_class_complex, scm_class_integer, scm_class_fraction,
scm_class_unknown, scm_port_class, scm_smob_class,
scm_no_applicable_method, scm_class_of): Moved from objects to
goops since they are only useable once goops has been loaded.
(scm_classes_initialized): Removed.
(scm_class_of): Do not check it.
(create_standard_classes): Do not set it.

19 years agoInclude "libguile/goops.h".
Marius Vollmer [Tue, 18 Jan 2005 13:59:04 +0000 (13:59 +0000)]
Include "libguile/goops.h".

19 years ago*** empty log message ***
Kevin Ryde [Mon, 17 Jan 2005 22:32:52 +0000 (22:32 +0000)]
*** empty log message ***

19 years agoRemove (ice-9 session) and (ice-9 receive), not used.
Kevin Ryde [Mon, 17 Jan 2005 22:26:07 +0000 (22:26 +0000)]
Remove (ice-9 session) and (ice-9 receive), not used.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 17 Jan 2005 18:54:58 +0000 (18:54 +0000)]
*** empty log message ***

19 years ago* objects.h, objects.c (scm_classes_initialized): New.
Marius Vollmer [Mon, 17 Jan 2005 18:11:43 +0000 (18:11 +0000)]
* objects.h, objects.c (scm_classes_initialized): New.
(scm_class_of): Signal error when scm_classes_initialized is zero.
* goops.c (create_standard_classes): Set scm_classes_initialized
to one.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 17 Jan 2005 17:22:33 +0000 (17:22 +0000)]
*** empty log message ***

19 years ago(scm_random_solid_sphere_x): Use scm_c_generalized_vector_length
Marius Vollmer [Mon, 17 Jan 2005 17:22:22 +0000 (17:22 +0000)]
(scm_random_solid_sphere_x): Use scm_c_generalized_vector_length
instead of scm_uniform_vector_length.

19 years ago*** empty log message ***
Marius Vollmer [Sun, 16 Jan 2005 17:21:28 +0000 (17:21 +0000)]
*** empty log message ***

19 years ago(scm_compile_shell_switches): Removed debugging output.
Marius Vollmer [Sun, 16 Jan 2005 17:20:36 +0000 (17:20 +0000)]
(scm_compile_shell_switches): Removed debugging output.

19 years ago*** empty log message ***
Kevin Ryde [Sat, 15 Jan 2005 00:04:54 +0000 (00:04 +0000)]
*** empty log message ***

19 years ago(scm_random_solid_sphere_x): Update docstring from manual.
Kevin Ryde [Sat, 15 Jan 2005 00:03:53 +0000 (00:03 +0000)]
(scm_random_solid_sphere_x): Update docstring from manual.

19 years ago(scm_logtest, scm_logbit_p, scm_integer_expt): Update
Kevin Ryde [Sat, 15 Jan 2005 00:01:40 +0000 (00:01 +0000)]
(scm_logtest, scm_logbit_p, scm_integer_expt): Update
docstrings from manual.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 14 Jan 2005 23:56:16 +0000 (23:56 +0000)]
*** empty log message ***

19 years ago(Loading): In %load-hook, need to use set!, and describe #f.
Kevin Ryde [Fri, 14 Jan 2005 23:55:07 +0000 (23:55 +0000)]
(Loading): In %load-hook, need to use set!, and describe #f.

19 years ago(Random): In random:solid-sphere!, there is no return value.
Kevin Ryde [Fri, 14 Jan 2005 23:52:02 +0000 (23:52 +0000)]
(Random): In random:solid-sphere!, there is no return value.

19 years ago@code for %load-path
Kevin Ryde [Fri, 14 Jan 2005 23:23:08 +0000 (23:23 +0000)]
@code for %load-path

19 years ago(Bitwise Operations): In logtest and logbit?, describe
Kevin Ryde [Fri, 14 Jan 2005 23:20:25 +0000 (23:20 +0000)]
(Bitwise Operations): In logtest and logbit?, describe
operations in words, not just equivalent expressions.  In
integer-expt, clarify a bit and note negative k allowed and 0^0==1.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 14 Jan 2005 18:27:12 +0000 (18:27 +0000)]
*** empty log message ***

19 years ago(scm_take_u64vector,
Marius Vollmer [Fri, 14 Jan 2005 18:19:13 +0000 (18:19 +0000)]
(scm_take_u64vector,
scm_array_handle_u64_elements,
scm_array_handle_u64_writable_elements, scm_u64vector_elements,
scm_u64vector_writable_elements): Do not define when scm_t_uint64
is not available.
(scm_take_s64vector, scm_array_handle_s64_elements,
scm_array_handle_s64_writable_elements, scm_s64vector_elements,
scm_s64vector_writable_elements): Likewise for scm_t_int64.
(uvec_sizes, uvec_print, uvec_equalp): Use SCM bignums when
scm_t_int64/scm_t_uint64 are not available.
(uvec_mark): New, to mark the bignums.
(alloc_uvec): Initialize bignums.
(uvec_fast_ref): Return bignums directly.
(scm_uint64_min, scm_uint64_max, scm_int64_min, scm_int64_max,
assert_exact_integer): New.
(uvec_fast_set): Use them to validate the bignums.
(scm_init_srfi_4): Set mark function of smob when needed.
Initialize scm_uint64_min, scm_uint64_max, scm_int64_min,
scm_int64_max.

19 years agoDon't check for definedness of SCM_HAVE_T_INT64, check
Marius Vollmer [Fri, 14 Jan 2005 18:01:31 +0000 (18:01 +0000)]
Don't check for definedness of SCM_HAVE_T_INT64, check
its value.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 14 Jan 2005 16:24:17 +0000 (16:24 +0000)]
*** empty log message ***

19 years agoDescribe new 1.4 compatability behavior of
Marius Vollmer [Fri, 14 Jan 2005 16:24:09 +0000 (16:24 +0000)]
Describe new 1.4 compatability behavior of
-e option.

19 years ago(sym_at, sym_atat, sym_main, all_symbols): New.
Marius Vollmer [Fri, 14 Jan 2005 16:20:36 +0000 (16:20 +0000)]
(sym_at, sym_atat, sym_main, all_symbols): New.
(scm_compile_shell_switches): Use them to recognize and convert
1.4 "-e" syntax.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 13 Jan 2005 23:49:34 +0000 (23:49 +0000)]
*** empty log message ***

19 years ago(Mapping Folding and Unfolding): In
Kevin Ryde [Thu, 13 Jan 2005 23:49:10 +0000 (23:49 +0000)]
(Mapping Folding and Unfolding): In
string-for-each-index, make it clear iteration is over indices.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 13 Jan 2005 23:45:21 +0000 (23:45 +0000)]
*** empty log message ***

19 years ago(SRFI-39): New section.
Kevin Ryde [Thu, 13 Jan 2005 23:42:43 +0000 (23:42 +0000)]
(SRFI-39): New section.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 13 Jan 2005 23:22:15 +0000 (23:22 +0000)]
*** empty log message ***

19 years ago(User Information): Note cuserid gone from POSIX.
Kevin Ryde [Thu, 13 Jan 2005 23:18:09 +0000 (23:18 +0000)]
(User Information): Note cuserid gone from POSIX.
Prompted by Roland Besserer.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 12 Jan 2005 11:11:45 +0000 (11:11 +0000)]
*** empty log message ***

19 years agoTurn all deprecated features that once were macros but are now
Marius Vollmer [Wed, 12 Jan 2005 11:10:02 +0000 (11:10 +0000)]
Turn all deprecated features that once were macros but are now
functions back into macros.

19 years agoTalk about (debug-enable 'warn-deprecated) etc.
Marius Vollmer [Wed, 12 Jan 2005 11:08:58 +0000 (11:08 +0000)]
Talk about (debug-enable 'warn-deprecated) etc.

19 years agoMoved info about deprecation to "Changes to distribution" section.
Marius Vollmer [Wed, 12 Jan 2005 11:08:51 +0000 (11:08 +0000)]
Moved info about deprecation to "Changes to distribution" section.
Talk about (debug-enable 'warn-deprecated).

19 years ago*** empty log message ***
Kevin Ryde [Tue, 11 Jan 2005 23:55:37 +0000 (23:55 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Kevin Ryde [Tue, 11 Jan 2005 23:49:04 +0000 (23:49 +0000)]
*** empty log message ***

19 years ago(current-input-port, current-output-port, current-error-port): New tests.
Kevin Ryde [Tue, 11 Jan 2005 23:48:42 +0000 (23:48 +0000)]
(current-input-port, current-output-port, current-error-port): New tests.