Marius Vollmer
18622c4e84
Do not configure QTHREADS. Do not define USE_COOP_THREADS. Changed
...
logic for thread package selection so that the default is
"coop-pthread" when -lpthread is found, "null" otherwise.
2002-12-02 01:02:46 +00:00
Marius Vollmer
1d798a004a
(SCM_VALIDATE_THREAD): Moved to threads.h.
2002-12-02 01:00:50 +00:00
Marius Vollmer
d823b11b10
* threads.h: Do not include "libguile/coop-defs.h". Include
...
"libguile/pthread-threads.h" for USE_COPT_THREADS. Removed
(previously deprecated) C level thread API prototypes. They are
now in the thread package specific headers, "null-threads.h" and
"pthread-threads.h".
(SCM_VALIDATE_THREAD, SCM_VALIDATE_MUTEX, SCM_VALIDATE_CONDVAR):
New.
(scm_threads_init): Removed.
(SCM_CRITICAL_SECTION_START, SCM_CRITICAL_SECTION_END,
SCM_THREAD_SWITCHING_CODE, scm_i_switch_counter,
SCM_I_THREAD_SWITCH_COUNT): Define here.
(scm_single_thread_p): Removed.
(scm_call_with_new_thread): Take two args directly instead of list
of two args.
(scm_i_thread_data, scm_i_set_thread_data, SCM_THREAD_LOCAL_DATA,
SCM_SET_THREAD_LOCAL_DATA): Define here.
* threads.c: Merged with "coop-pthreads.c".
2002-12-02 01:00:41 +00:00
Marius Vollmer
eac85310c2
* pthread-threads.h: New, implement pthread-like API by deferring to
...
pthread itself.
2002-12-02 01:00:20 +00:00
Marius Vollmer
d035029382
* null-threads.h: Implement pthread-like API as a set of macros.
2002-12-02 00:59:27 +00:00
Marius Vollmer
340c49bf2c
(libguile_la_SOURCES): Removed iselect.c.
...
(noinst_HEADERS): Removed coop-threads.c, coop-threads.h, coop.c,
null-threads.c, coop-pthreads.c.
(modinclude_HEADERS): Removed coop-defs.h, coop-pthreads.h. Added
pthread-threads.h.
2002-12-02 00:58:42 +00:00
Marius Vollmer
aeb08e9b18
(scm_init_guile_1): Do not call scm_init_iselect, which has been lost
...
in the reorganization.
2002-12-02 00:54:11 +00:00
Marius Vollmer
2902a459df
*** empty log message ***
2002-12-02 00:35:44 +00:00
Mikael Djurfeldt
7692d26b31
* srfi-1.scm: Load srfi-1 extension.
...
(map, map-in-order, for-each, member, assoc): Replaced by
primitives in srfi-1.c.
(map1): Defined as `map'.
2002-12-01 13:56:11 +00:00
Mikael Djurfeldt
ee6aac9733
* srfi-1.scm: Load srfi-1 extension.
...
(map, map-in-order, for-each, member): Replaced by primitives in
srfi-1.c.
* Makefile.am: Added rules for srfi-1.c.
* srfi-1.c, srfi-1.h: New files.
2002-12-01 13:10:51 +00:00
Mikael Djurfeldt
cfc7c7c03f
* GUILE-VERSION: Added versioning info for srfi 1.
...
* configure.in (LIBGUILE_SRFI_SRFI_1_INTERFACE_CURRENT,
LIBGUILE_SRFI_SRFI_1_INTERFACE_REVISION,
LIBGUILE_SRFI_SRFI_1_INTERFACE_AGE,
LIBGUILE_SRFI_SRFI_1_INTERFACE): New AC_SUBST.
2002-12-01 13:10:07 +00:00
Mikael Djurfeldt
504d99c5f8
* eval.h (scm_t_trampoline_1, scm_t_trampoline_2): New types.
...
* eval.c, eval.h (scm_trampoline_1, scm_trampoline_2): New functions.
* eval.c (call_subr2_2, call_lsubr_2, call_closure_2): New functions;
(map, for-each): Handle also application on two args as a special
case; Use trampolines.
* sort.c (scm_cmp_function): Choose subr2less for scm_tc7_subr_2o;
(subr2oless): Removed.
(scm_restricted_vector_sort_x): Use scm_return_first to keep the
vector GC protected.
* eval.c (check_map_args): Use scm_out_of_range_pos instead of
scm_out_of_range.
2002-12-01 13:09:26 +00:00
Mikael Djurfeldt
0359fc922c
* README: Added description of compat.
...
* compat/acconfig.h, compat/acinclude.m4, compat.h, configure.in:
New files.
2002-12-01 03:33:26 +00:00
Dirk Herrmann
63dd3413f3
* evalext.[ch] (scm_m_undefine, undefine): Deprecated.
2002-11-24 18:21:48 +00:00
Dirk Herrmann
f2cbc0e567
* boot-9.scm (re-export-syntax): Re-introduced after accidentally
...
removing it in my patch from 2002-11-16.
2002-11-24 08:28:05 +00:00
Dirk Herrmann
9123414ee0
Thanks to Mikael Djurfeldt for a bugreport which led to the
...
following changes:
* slib.scm (%system-define): Removed.
(define): Changed to use define-private instead of
%system-define.
* boot-9.scm (define-private): Undid my changes from 2002-11-16
until Guile supports hygienic macros.
2002-11-24 08:18:19 +00:00
Neil Jerram
dc6cf54848
Add Stephen Compall for manual patches and myself for breakpoints.
2002-11-17 22:23:03 +00:00
Neil Jerram
82512be035
Applied patches (mostly Texinfo markup) from Stephen Compall. (finished now)
2002-11-17 22:20:12 +00:00
Mikael Djurfeldt
4ba5f279f0
* debug.c (scm_make_iloc): Added missing "return".
2002-11-17 22:18:51 +00:00
Neil Jerram
50a6300387
Define local read-and-eval! in emacs interface.
2002-11-17 22:17:59 +00:00
Neil Jerram
7403e409f0
Applied patches (mostly Texinfo markup) from Stephen Compall.
2002-11-17 22:08:45 +00:00
Marius Vollmer
428561f263
*** empty log message ***
2002-11-17 14:56:47 +00:00
Marius Vollmer
56ae231fbe
*** empty log message ***
2002-11-17 10:36:22 +00:00
Marius Vollmer
aeec5be115
(scm_eval_string_in_module): Validate second arg to be a module.
...
Thanks to Arno Peters!
2002-11-17 10:35:49 +00:00
Dirk Herrmann
80b28865d1
* .cvsignore: remove goops.c
2002-11-16 18:30:18 +00:00
Dirk Herrmann
c88b1456e0
* modules.c (scm_env_top_level, scm_lookup_closure_module,
...
module_variable, scm_module_lookup_closure,
scm_module_transformer, scm_sym2var, scm_module_reverse_lookup,
scm_system_module_env_p): Don't compare SCM values with C
operators == or !=. Avoid SCM_IMP predicates. Prefer !SCM_FALSEP
over SCM_NFALSEP.
2002-11-16 16:56:52 +00:00
Dirk Herrmann
9089f73c52
* goops.scm (standard-define-class): Changed definition to form
...
a 'real' macro definition.
2002-11-16 16:29:06 +00:00
Dirk Herrmann
a8a19efc2b
* eval.h (SCM_MAKE_ILOC): New macro.
...
* debug.c (scm_make_iloc): Use SCM_MAKE_ILOC instead of computing
the iloc bitpattern here.
2002-11-16 16:20:14 +00:00
Dirk Herrmann
c55bcb3297
* syncase.scm (define-syntax, eval-when, fluid-let-syntax,
...
identifier-syntax, let-syntax, letrec-syntax, syntax, syntax-case,
syntax-rules, with-syntax, include): Changed definitions to form
'real' macro definitions.
2002-11-16 16:01:06 +00:00
Dirk Herrmann
6aa9ea7c90
* boot-9.scm (define-private, export-syntax, export-syntax):
...
Fixed my previous fix (blush).
2002-11-16 15:40:27 +00:00
Dirk Herrmann
ab382f5204
* boot-9.scm (define-private, export-syntax, export-syntax):
...
Changed definitions to form 'real' macro definitions.
2002-11-16 15:05:29 +00:00
Mikael Djurfeldt
7673491416
* coop-pthreads.c, coop-pthreads.h: scm_internal_select should be
...
part of the API, otherwise it's difficult to write Guile
extensions using non-blocking I/O => moved #include
"libguile/iselect.h" from coop-pthreads.c --> coop-pthreads.h.
* coop-pthreads.c (scm_unlock_mutex): Changed s_lock_mutex -->
s_unlock_mutex.
2002-11-14 17:17:40 +00:00
Marius Vollmer
8b5b4a758c
*** empty log message ***
2002-11-10 22:07:10 +00:00
Marius Vollmer
d8db94d601
(USE_THREADS, GUILE_ISELECT): Define always. We define them with
...
AC_DEFINE and not in some header file so that they are visible exactly
in the same way as they used to be.
2002-11-10 22:06:32 +00:00
Marius Vollmer
ccb8b13859
(USE_THREADS, GUILE_ISELECT): Do not define here. They are defined in
...
configure.in.
2002-11-10 22:05:22 +00:00
Marius Vollmer
911782b79c
Removed SCM_API from function definitions. SCM_API is only for
...
declarations.
2002-11-10 22:04:26 +00:00
Neil Jerram
8cb6d96d9d
Small textual changes to GOOPS manual (for HTML generation).
2002-11-08 00:36:46 +00:00
Neil Jerram
066ca68736
Remove old code that was already commented out.
2002-11-07 20:52:36 +00:00
Mikael Djurfeldt
9be8bb4541
* coop-pthreads.h: Added support for thread specific data to the
...
generic C API for the coop-pthreads case.
2002-11-07 14:35:08 +00:00
Mikael Djurfeldt
6c214b6217
* threads.c, threads.h (scm_cond_broadcast): Added missing function.
2002-11-07 13:55:25 +00:00
Marius Vollmer
81cf290d2a
*** empty log message ***
2002-11-07 13:46:05 +00:00
Marius Vollmer
b3a0f5c3a2
(format): Use 'monitor' properly. Not the definition
...
needs to be restricted, the actual function needs to be.
2002-11-07 13:45:53 +00:00
Mikael Djurfeldt
e5a830847e
* threads.c, threads.h (scm_cond_init): Undo unintentional API
...
change.
2002-11-07 13:29:12 +00:00
Neil Jerram
d2864c8adb
New file for tests related to options interface.
2002-11-06 00:38:44 +00:00
Neil Jerram
3f619266b1
Fix error in recent define-option-interface "simplification".
...
Fix source breakpoints to cope with port whose filename is #f.
Ensure that position recording is enabled when source breakpoint module loaded.
2002-11-06 00:29:24 +00:00
Neil Jerram
0983f67f09
Simplify code for define-option-interface.
2002-11-04 19:40:49 +00:00
Neil Jerram
8e733f1095
Whitespace and markup fixes.
2002-11-04 19:03:54 +00:00
Neil Jerram
9124ba8de6
Import readline function dynamically when necessary.
2002-11-04 18:58:15 +00:00
Marius Vollmer
7edf178eee
*** empty log message ***
2002-11-04 15:43:17 +00:00
Marius Vollmer
79796da5b5
(coop_next_runnable_thread): Removed, wich should have happened when
...
GUILE_ISELECT was hard-wired.
2002-11-04 15:43:00 +00:00