bpt/guile.git
19 years ago* threads.h, async.h, threads.c (SCM_CRITICAL_SECTION_START,
Marius Vollmer [Mon, 7 Mar 2005 21:30:24 +0000 (21:30 +0000)]
* threads.h, async.h, threads.c (SCM_CRITICAL_SECTION_START,
SCM_CRITICAL_SECTION_END): Moved here from threads.h since now
they also block/unblock execution of asyncs and call
scm_async_click which is declared in async.h but threads.h can not
include async.h since async.h already includes threads.h.
(scm_i_critical_section_level): New, for checking mistakes in the
use of the SCM_CRITICAL_SECTION_* macros.
(scm_i_critical_section_mutex): Make it a recursive mutex so that
critical sections can be nested.

* threads.h, threads.c (scm_frame_lock_mutex): New.
(scm_frame_critical_section): Take mutex as argument.
(framed_critical_section_mutex): New, used as default for above.
(scm_init_threads): Initialize it.
(scm_threads_prehistory): Do not initialize thread_admin_mutex and
scm_i_critical_section_mutex; both are initialized statically.

19 years agoSynchronized docstrings.
Marius Vollmer [Fri, 4 Mar 2005 17:56:31 +0000 (17:56 +0000)]
Synchronized docstrings.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 4 Mar 2005 17:56:04 +0000 (17:56 +0000)]
*** empty log message ***

19 years agoDocstring updates.
Marius Vollmer [Fri, 4 Mar 2005 17:55:49 +0000 (17:55 +0000)]
Docstring updates.

19 years ago(scm_try_mutex): Renamed argument for consistency.
Marius Vollmer [Fri, 4 Mar 2005 17:54:50 +0000 (17:54 +0000)]
(scm_try_mutex): Renamed argument for consistency.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 4 Mar 2005 17:06:34 +0000 (17:06 +0000)]
*** empty log message ***

19 years ago(scm_call_with_dynamic_root): New docstring.
Marius Vollmer [Fri, 4 Mar 2005 17:06:19 +0000 (17:06 +0000)]
(scm_call_with_dynamic_root): New docstring.

19 years agoUpdates.
Marius Vollmer [Fri, 4 Mar 2005 16:57:17 +0000 (16:57 +0000)]
Updates.

19 years agoTalk about new init functions.
Marius Vollmer [Fri, 4 Mar 2005 16:05:01 +0000 (16:05 +0000)]
Talk about new init functions.

19 years agoUse smobs as an example for 'remembering'. Mention continuation barriers.
Marius Vollmer [Fri, 4 Mar 2005 16:04:22 +0000 (16:04 +0000)]
Use smobs as an example for 'remembering'.  Mention continuation barriers.

19 years agoReference "Blocking" for scm_leave_guile/scm_enter_guile.
Marius Vollmer [Fri, 4 Mar 2005 15:48:18 +0000 (15:48 +0000)]
Reference "Blocking" for scm_leave_guile/scm_enter_guile.

19 years agoBetter docs for leaving guile mode.
Marius Vollmer [Fri, 4 Mar 2005 15:47:48 +0000 (15:47 +0000)]
Better docs for leaving guile mode.

19 years agoUse ``...'' instead of "...". The latter doesn't seem to work for
Marius Vollmer [Fri, 4 Mar 2005 14:22:41 +0000 (14:22 +0000)]
Use ``...'' instead of "...".  The latter doesn't seem to work for
some reason.

19 years agoSpecify return type for scm_c_array_rank.
Marius Vollmer [Fri, 4 Mar 2005 14:21:01 +0000 (14:21 +0000)]
Specify return type for scm_c_array_rank.

19 years agoDefine _GNU_SOURCE.
Marius Vollmer [Fri, 4 Mar 2005 12:11:10 +0000 (12:11 +0000)]
Define _GNU_SOURCE.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 2 Mar 2005 20:56:45 +0000 (20:56 +0000)]
*** empty log message ***

19 years agoUse scm_current_input_port instead of scm_cur_inp. Use scm_std_select
Marius Vollmer [Wed, 2 Mar 2005 20:56:34 +0000 (20:56 +0000)]
Use scm_current_input_port instead of scm_cur_inp.  Use scm_std_select
instead of scm_internal_select.

19 years agoOnly test when 'threads are provided.
Marius Vollmer [Wed, 2 Mar 2005 20:55:17 +0000 (20:55 +0000)]
Only test when 'threads are provided.

19 years agoAdditions.
Marius Vollmer [Wed, 2 Mar 2005 20:54:40 +0000 (20:54 +0000)]
Additions.

19 years agoDo not check for fast or recursive mutexes. Check
Marius Vollmer [Wed, 2 Mar 2005 20:53:19 +0000 (20:53 +0000)]
Do not check for fast or recursive mutexes.  Check
for pthread_attr_getstack.
(SCM_I_GSC_USE_COOP_THREADS): Dot not subst.
(pthread_mutexattr_settype): Do not check for it.

19 years agoUse scm_is_pair instead of SCM_CONSP; use scm_is_null instead of
Marius Vollmer [Wed, 2 Mar 2005 20:50:48 +0000 (20:50 +0000)]
Use scm_is_pair instead of SCM_CONSP; use scm_is_null instead of
SCM_NULLP.

19 years agoUpdates for the new thread stuff.
Marius Vollmer [Wed, 2 Mar 2005 20:46:41 +0000 (20:46 +0000)]
Updates for the new thread stuff.

19 years agoSee ChangeLog from 2005-03-02.
Marius Vollmer [Wed, 2 Mar 2005 20:42:01 +0000 (20:42 +0000)]
See ChangeLog from 2005-03-02.

19 years ago(scm_frame_current_module): New.
Marius Vollmer [Wed, 2 Mar 2005 20:14:59 +0000 (20:14 +0000)]
(scm_frame_current_module): New.

19 years ago(scm_primitive_load): Use scm_i_frame_current_load_port instead of
Marius Vollmer [Wed, 2 Mar 2005 20:13:53 +0000 (20:13 +0000)]
(scm_primitive_load): Use scm_i_frame_current_load_port instead of
scm_internal_dynamic_wind.

19 years agoRemoved obsolete comment.
Marius Vollmer [Wed, 2 Mar 2005 20:11:55 +0000 (20:11 +0000)]
Removed obsolete comment.

19 years ago(scm_hash_fn_create_handle_x, scm_hash_fn_remove_x): Use "!scm_is_eq"
Marius Vollmer [Wed, 2 Mar 2005 20:05:38 +0000 (20:05 +0000)]
(scm_hash_fn_create_handle_x, scm_hash_fn_remove_x): Use "!scm_is_eq"
instead of "!=".

19 years ago(SCM_I_GSC_USE_COOP_THREADS, SCM_USE_COOP_THREADS): Removed.
Marius Vollmer [Wed, 2 Mar 2005 19:58:26 +0000 (19:58 +0000)]
(SCM_I_GSC_USE_COOP_THREADS, SCM_USE_COOP_THREADS): Removed.

19 years ago(progargs_fluid): New.
Marius Vollmer [Wed, 2 Mar 2005 19:40:20 +0000 (19:40 +0000)]
(progargs_fluid): New.
(scm_program_arguments, scm_set_program_arguments): Use it instead
of scm_progargs.
(scm_init_feature): Allocate it.  Also, only add "threads" feature
when SCM_USE_PTHREAD_THREADS is true.

19 years agoComment on #endif
Marius Vollmer [Wed, 2 Mar 2005 18:50:45 +0000 (18:50 +0000)]
Comment on #endif

19 years ago* Makefile.am (modinclude_HEADER): Removed threads-plugin.h.
Marius Vollmer [Wed, 2 Mar 2005 16:41:01 +0000 (16:41 +0000)]
* Makefile.am (modinclude_HEADER): Removed threads-plugin.h.
(libguile_la_SOURCES): Added null-threads.c
(EXTRA_libguile_la_SOURCES): Removed pthread-threads.c and
threads-plugin.c.
* pthread-threads.c, threads-plugin.c, threads-plugin.h: Removed.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 28 Feb 2005 23:01:48 +0000 (23:01 +0000)]
*** empty log message ***

19 years agoMore of:
Kevin Ryde [Mon, 28 Feb 2005 22:58:03 +0000 (22:58 +0000)]
More of:
(Shared Arrays): New section.

19 years ago(Shared Arrays): Rewrite make-shared-array for clarity, adding examples.
Kevin Ryde [Mon, 28 Feb 2005 22:57:10 +0000 (22:57 +0000)]
(Shared Arrays): Rewrite make-shared-array for clarity, adding examples.

19 years ago(Shared Arrays): New section.
Kevin Ryde [Mon, 28 Feb 2005 22:46:08 +0000 (22:46 +0000)]
(Shared Arrays): New section.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 28 Feb 2005 22:36:26 +0000 (22:36 +0000)]
*** empty log message ***

19 years ago(Control Flow): Cross reference Tail Calls.
Kevin Ryde [Mon, 28 Feb 2005 22:35:51 +0000 (22:35 +0000)]
(Control Flow): Cross reference Tail Calls.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 28 Feb 2005 02:46:46 +0000 (02:46 +0000)]
*** empty log message ***

19 years agoAdd '--verbose' option to autoreconf invocation. Thanks to Bruno
Marius Vollmer [Mon, 28 Feb 2005 02:46:30 +0000 (02:46 +0000)]
Add '--verbose' option to autoreconf invocation.  Thanks to Bruno
Haible.

19 years agodocs for scm_c_array_rank.
Marius Vollmer [Mon, 28 Feb 2005 02:45:10 +0000 (02:45 +0000)]
docs for scm_c_array_rank.

19 years agoRemoved references to text "below" that does not exist in this file.
Marius Vollmer [Mon, 28 Feb 2005 01:21:54 +0000 (01:21 +0000)]
Removed references to text "below" that does not exist in this file.

19 years agoMore of:
Kevin Ryde [Mon, 28 Feb 2005 00:33:40 +0000 (00:33 +0000)]
More of:
(SRFI-1 Fold and Map): Rewrite fold, pair-fold and reduce for clarity.

19 years ago*** empty log message ***
Marius Vollmer [Sun, 27 Feb 2005 23:52:04 +0000 (23:52 +0000)]
*** empty log message ***

19 years ago(scm_setsockopt): Handle IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP
Marius Vollmer [Sun, 27 Feb 2005 23:50:30 +0000 (23:50 +0000)]
(scm_setsockopt): Handle IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP
options.  Also, reorganized the code a bit for cleanliness.  Thanks to
Greg Troxel!

19 years agoBugfix: Include <libguile.h> outside of the extern "C"
Mikael Djurfeldt [Sun, 27 Feb 2005 00:04:56 +0000 (00:04 +0000)]
Bugfix: Include <libguile.h> outside of the extern "C"
block.

19 years agoIn format, note no parameters to ~( case conversion.
Kevin Ryde [Fri, 25 Feb 2005 23:09:33 +0000 (23:09 +0000)]
In format, note no parameters to ~( case conversion.

19 years ago*** empty log message ***
Marius Vollmer [Fri, 25 Feb 2005 22:36:07 +0000 (22:36 +0000)]
*** empty log message ***

19 years ago(scm_i_rehash): Remove elements from old bucket vector
Marius Vollmer [Fri, 25 Feb 2005 22:35:26 +0000 (22:35 +0000)]
(scm_i_rehash): Remove elements from old bucket vector
so that no two weak alist vectors share a spine.
(scm_hash_fn_create_handle_x): Deal with a possible rehashing
during GC before inserting the new alist cell.

19 years ago(scm_i_rehash): Remove elements from old bucket vector so that no two
Marius Vollmer [Fri, 25 Feb 2005 21:22:44 +0000 (21:22 +0000)]
(scm_i_rehash): Remove elements from old bucket vector so that no two
weak alist vectors share a spine.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 23 Feb 2005 17:24:38 +0000 (17:24 +0000)]
*** empty log message ***

19 years ago* hashtab.c (scm_i_rehash): Cope with the case that a GC modifies
Marius Vollmer [Wed, 23 Feb 2005 17:24:19 +0000 (17:24 +0000)]
* hashtab.c (scm_i_rehash): Cope with the case that a GC modifies
the hashtable.
(scm_hash_fn_create_handle_x): Likewise.
* vectors.h (SCM_I_SET_WVECT_TYPE): New, for use in scm_i_rehash.

19 years ago*** empty log message ***
Kevin Ryde [Sun, 20 Feb 2005 22:56:16 +0000 (22:56 +0000)]
*** empty log message ***

19 years ago(string->number): Exercise polar form with invalid angle.
Kevin Ryde [Sun, 20 Feb 2005 22:55:53 +0000 (22:55 +0000)]
(string->number): Exercise polar form with invalid angle.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 17 Feb 2005 21:25:25 +0000 (21:25 +0000)]
*** empty log message ***

19 years ago(Reals and Rationals): Use tex for sqrt2 and pi.
Kevin Ryde [Thu, 17 Feb 2005 21:18:31 +0000 (21:18 +0000)]
(Reals and Rationals): Use tex for sqrt2 and pi.
(Complex Numbers): Add polar form read syntax.

19 years ago(lset-adjoin): Amend tests to expect duplicates among args cast out.
Kevin Ryde [Thu, 17 Feb 2005 21:15:46 +0000 (21:15 +0000)]
(lset-adjoin): Amend tests to expect duplicates among args cast out.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 17 Feb 2005 21:07:22 +0000 (21:07 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Kevin Ryde [Thu, 17 Feb 2005 20:51:00 +0000 (20:51 +0000)]
*** empty log message ***

19 years ago(lset-adjoin): Revert change using `list' not `acc', the
Kevin Ryde [Thu, 17 Feb 2005 20:35:11 +0000 (20:35 +0000)]
(lset-adjoin): Revert change using `list' not `acc', the
spec is not quite clear, but reference code uses acc, so do that.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 14 Feb 2005 23:45:40 +0000 (23:45 +0000)]
*** empty log message ***

19 years ago(Tail Calls): New section.
Kevin Ryde [Mon, 14 Feb 2005 23:44:43 +0000 (23:44 +0000)]
(Tail Calls): New section.

19 years ago(File System): In tmpnam, clarify security and use of
Kevin Ryde [Mon, 14 Feb 2005 23:37:28 +0000 (23:37 +0000)]
(File System): In tmpnam, clarify security and use of
O_EXCL.  In mkstemp!, in fact posix doesn't specify permissions.

19 years agoAdd a copyright year.
Kevin Ryde [Mon, 14 Feb 2005 23:15:08 +0000 (23:15 +0000)]
Add a copyright year.

19 years agoIn scm_difference, amend comment about normbig.
Kevin Ryde [Mon, 14 Feb 2005 23:14:35 +0000 (23:14 +0000)]
In scm_difference, amend comment about normbig.

19 years ago*** empty log message ***
Rob Browning [Sat, 12 Feb 2005 06:15:51 +0000 (06:15 +0000)]
*** empty log message ***

19 years ago(check_SCRIPTS): add test-require-extension.
Rob Browning [Sat, 12 Feb 2005 06:15:25 +0000 (06:15 +0000)]
(check_SCRIPTS): add test-require-extension.
(TESTS): add test-require-extension.

19 years ago* standalone/test-require-extension: new test script.
Rob Browning [Sat, 12 Feb 2005 06:15:07 +0000 (06:15 +0000)]
* standalone/test-require-extension: new test script.

19 years ago(%cond-expand-features): add srfi-55.
Rob Browning [Sat, 12 Feb 2005 06:12:21 +0000 (06:12 +0000)]
(%cond-expand-features): add srfi-55.
(require-extension): add require-extension macro for srfi-55.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 11 Feb 2005 22:04:13 +0000 (22:04 +0000)]
*** empty log message ***

19 years ago(SRFI-1 Fold and Map): Rewrite fold, pair-fold and
Kevin Ryde [Fri, 11 Feb 2005 22:03:48 +0000 (22:03 +0000)]
(SRFI-1 Fold and Map): Rewrite fold, pair-fold and
reduce for clarity.

19 years ago(Integer Operations): In gcd and lcm, show args.
Kevin Ryde [Fri, 11 Feb 2005 21:47:59 +0000 (21:47 +0000)]
(Integer Operations): In gcd and lcm, show args.
(Arithmetic): In truncate, add missing arg.

19 years ago(String Selection): In string-pad and
Kevin Ryde [Fri, 11 Feb 2005 21:44:44 +0000 (21:44 +0000)]
(String Selection): In string-pad and
string-pad-right, clarify which end the padding goes on, and merge
descriptions.

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

19 years ago(reduce, reduce-right): New tests.
Kevin Ryde [Fri, 11 Feb 2005 21:40:32 +0000 (21:40 +0000)]
(reduce, reduce-right): New tests.

19 years ago(reduce, reduce-right): Don't call f with ridentity, use
Kevin Ryde [Fri, 11 Feb 2005 21:37:08 +0000 (21:37 +0000)]
(reduce, reduce-right): Don't call f with ridentity, use
it only if lst is empty, per srfi and intended optimization reduce
represents over fold.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 10 Feb 2005 20:37:57 +0000 (20:37 +0000)]
*** empty log message ***

19 years ago(ash): Remove tests of ash on fractions, not
Kevin Ryde [Thu, 10 Feb 2005 20:37:19 +0000 (20:37 +0000)]
(ash): Remove tests of ash on fractions, not
supported after scm_ash rewrite.

19 years ago(build-link): Replaced -lguile-ltdl with -lltdl.
Mikael Djurfeldt [Thu, 10 Feb 2005 14:40:10 +0000 (14:40 +0000)]
(build-link): Replaced -lguile-ltdl with -lltdl.

19 years ago(prototype_to_type): Bugfix: Don't compare prototype to
Mikael Djurfeldt [Thu, 10 Feb 2005 11:15:50 +0000 (11:15 +0000)]
(prototype_to_type): Bugfix: Don't compare prototype to
the prototypical examples mentioned in the old reference manual.
Instead keep the old semantics of dispatching on type.  (Yes, this
is extremely ugly, but the whole point of keeping the deprecated
interface is not to break old code.)

19 years agoTypo.
Mikael Djurfeldt [Tue, 8 Feb 2005 19:19:03 +0000 (19:19 +0000)]
Typo.

19 years ago(SCM_ARRAY_DIMS): Rename scm_i_attay_dims -->
Mikael Djurfeldt [Tue, 8 Feb 2005 18:58:37 +0000 (18:58 +0000)]
(SCM_ARRAY_DIMS): Rename scm_i_attay_dims -->
scm_i_array_dims.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 4 Feb 2005 22:42:27 +0000 (22:42 +0000)]
*** empty log message ***

19 years ago(File System): In mkstemp!, in fact posix doesn't specify
Kevin Ryde [Fri, 4 Feb 2005 22:40:21 +0000 (22:40 +0000)]
(File System): In mkstemp!, in fact posix doesn't specify
the permissions mode.  Add an example setting 666 less umask.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 3 Feb 2005 23:24:16 +0000 (23:24 +0000)]
*** empty log message ***

19 years ago(list=): New tests.
Kevin Ryde [Thu, 3 Feb 2005 23:20:08 +0000 (23:20 +0000)]
(list=): New tests.

19 years ago(list=): Correction to arguments passed to given elt=,
Kevin Ryde [Thu, 3 Feb 2005 23:18:59 +0000 (23:18 +0000)]
(list=): Correction to arguments passed to given elt=,
spec is (elt= e[i] e[i+1]) for lists i and i+1, previously the first
arg was always from list 0 not list i.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 3 Feb 2005 23:17:50 +0000 (23:17 +0000)]
*** empty log message ***

19 years ago(File Ports): In port-filename, cannot use after close.
Kevin Ryde [Thu, 3 Feb 2005 23:17:27 +0000 (23:17 +0000)]
(File Ports): In port-filename, cannot use after close.

19 years ago(Time): In mktime, clarify fields of sbd-time used, and
Kevin Ryde [Thu, 3 Feb 2005 23:16:35 +0000 (23:16 +0000)]
(Time): In mktime, clarify fields of sbd-time used, and
the handling of tm:isdst.

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.