Commit | Line | Data |
---|---|---|
504d99c5 MD |
1 | 2002-12-01 Mikael Djurfeldt <mdj@linnaeus> |
2 | ||
3 | The following change makes it possible to move procedure | |
4 | application dispatch outside inner loops. The motivation was | |
5 | clean implementation of efficient replacements of R5RS primitives | |
6 | in SRFI-1. | |
7 | ||
8 | The semantics is clear: scm_trampoline_N returns an optimized | |
9 | version of scm_call_N (or NULL if the procedure isn't applicable | |
10 | on N args). | |
11 | ||
12 | Applying the optimization to map and for-each increases efficiency | |
13 | noticeably. For example, (map abs ls) is 8 times faster than | |
14 | before. | |
15 | ||
16 | * eval.h (scm_t_trampoline_1, scm_t_trampoline_2): New types. | |
17 | ||
18 | * eval.c, eval.h (scm_trampoline_1, scm_trampoline_2): New functions. | |
19 | ||
20 | * eval.c (call_subr2_2, call_lsubr_2, call_closure_2): New functions; | |
21 | (map, for-each): Handle also application on two args as a special | |
22 | case; Use trampolines. | |
23 | ||
24 | Other changes: | |
25 | ||
26 | * sort.c (scm_cmp_function): Choose subr2less for scm_tc7_subr_2o; | |
27 | (subr2oless): Removed. | |
28 | (scm_restricted_vector_sort_x): Use scm_return_first to keep the | |
29 | vector GC protected. | |
30 | ||
31 | * eval.c (check_map_args): Use scm_out_of_range_pos instead of | |
32 | scm_out_of_range. | |
33 | ||
63dd3413 DH |
34 | 2002-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de> |
35 | ||
36 | * evalext.[ch] (scm_m_undefine, undefine): Deprecated. | |
37 | ||
4ba5f279 MD |
38 | 2002-11-17 Mikael Djurfeldt <mdj@linnaeus> |
39 | ||
40 | * debug.c (scm_make_iloc): Added missing "return". | |
41 | ||
56ae231f MV |
42 | 2002-11-17 Marius Vollmer <mvo@zagadka.ping.de> |
43 | ||
44 | * strports.c (scm_eval_string_in_module): Validate second arg to | |
45 | be a module. Thanks to Arno Peters! | |
46 | ||
80b28865 DH |
47 | 2002-11-16 Dirk Herrmann <D.Herrmann@tu-bs.de> |
48 | ||
49 | * .cvsignore: remove goops.c | |
50 | ||
c88b1456 DH |
51 | 2002-11-16 Dirk Herrmann <D.Herrmann@tu-bs.de> |
52 | ||
53 | * modules.c (scm_env_top_level, scm_lookup_closure_module, | |
54 | module_variable, scm_module_lookup_closure, | |
55 | scm_module_transformer, scm_sym2var, scm_module_reverse_lookup, | |
56 | scm_system_module_env_p): Don't compare SCM values with C | |
57 | operators == or !=. Avoid SCM_IMP predicates. Prefer !SCM_FALSEP | |
58 | over SCM_NFALSEP. | |
59 | ||
a8a19efc DH |
60 | 2002-11-16 Dirk Herrmann <D.Herrmann@tu-bs.de> |
61 | ||
62 | * eval.h (SCM_MAKE_ILOC): New macro. | |
63 | ||
64 | * debug.c (scm_make_iloc): Use SCM_MAKE_ILOC instead of computing | |
65 | the iloc bitpattern here. | |
66 | ||
76734914 MD |
67 | 2002-11-14 Mikael Djurfeldt <mdj@linnaeus> |
68 | ||
69 | * coop-pthreads.c, coop-pthreads.h: scm_internal_select should be | |
70 | part of the API, otherwise it's difficult to write Guile | |
71 | extensions using non-blocking I/O => moved #include | |
72 | "libguile/iselect.h" from coop-pthreads.c --> coop-pthreads.h. | |
73 | ||
74 | * coop-pthreads.c (scm_unlock_mutex): Changed s_lock_mutex --> | |
75 | s_unlock_mutex. | |
76 | ||
8b5b4a75 MV |
77 | 2002-11-10 Marius Vollmer <mvo@zagadka.ping.de> |
78 | ||
79 | * __scm.h (USE_THREADS, GUILE_ISELECT): Do not define here. They | |
80 | are defined in configure.in. | |
81 | ||
82 | * threads.c: Removed SCM_API from function definitions. SCM_API | |
83 | is only for declarations. | |
84 | ||
e5a83084 MD |
85 | 2002-11-07 Mikael Djurfeldt <mdj@linnaeus> |
86 | ||
9be8bb45 MD |
87 | * coop-pthreads.h: Added support for thread specific data to the |
88 | generic C API for the coop-pthreads case. | |
89 | ||
e5a83084 MD |
90 | * threads.c, threads.h (scm_cond_init): Undo unintentional API |
91 | change. | |
6c214b62 | 92 | (scm_cond_broadcast): Added missing function. |
e5a83084 | 93 | |
7edf178e MV |
94 | 2002-11-04 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
95 | ||
96 | * coop.c (coop_next_runnable_thread): Removed, wich should have | |
97 | happened when GUILE_ISELECT was hard-wired. | |
98 | ||
7f5b1b77 MV |
99 | 2002-11-03 Marius Vollmer <mvo@zagadka.ping.de> |
100 | ||
7caa1b07 MV |
101 | * Makefile.am (libguile_la_SOURCES): Added threads.c |
102 | (DOT_DOC_FILES): Added threads.doc. | |
103 | (DOT_X_FILES): Added threads.x. | |
104 | (EXTRA_libguile_la_SOURCES): Removed threads.c. | |
105 | (noinst_HEADERS): Added coop-pthreads.c. | |
106 | (modinclude_HEADERS): Added coop-pthreads.h. | |
107 | ||
108 | * __scm.h (USE_THREADS, GUILE_ISELECT): Define when | |
109 | SCM_DEBUG_DEPRECATED. Removed their use thru-out Guile. | |
110 | ||
bb11cbf4 MV |
111 | * iselect.c: Include "_scm.h" before testing HAVE_UNISTD_H. |
112 | Thanks to Bill Schottstaedt! | |
113 | ||
1d4cbbed MV |
114 | * numbers.c (scm_integer_expt): Make 0^z == 0 for z != 0. |
115 | ||
7f5b1b77 MV |
116 | * _scm.h (HAVE_RESTARTABLE_SYSCALLS): Do define even when |
117 | SCM_COPT_THREADS is defined. | |
118 | (SCM_SYSCALL): Use EINTR-expection version when SCM_COPT_THREADS | |
119 | is defined. | |
120 | ||
121 | * coop-pthreads.c: Some harmless renamings of internal stuff. | |
122 | (create_thread): New, generalized version of | |
123 | scm_call_with_new_thread. | |
124 | (scm_call_with_new_thread): Use it. | |
125 | (scm_spawn_thread): New, use create_thread. | |
126 | ||
d52f53b1 MV |
127 | 2002-11-02 Marius Vollmer <mvo@zagadka.ping.de> |
128 | ||
129 | * coop-pthreads.c, coop-pthreads.h: Redone completely, you might | |
130 | start testing it now. | |
131 | ||
132 | * _scm.h: Include <errno.h< so that SCM_SYSCALL is correctly | |
133 | defined when HAVE_RESTARTABLE_SYSCALLS is not defined. | |
134 | (HAVE_RESTARTABLE_SYSCALLS): Do not define when USE_COPT_THREADS | |
135 | is defined. | |
136 | ||
30f920c3 MV |
137 | 2002-10-27 Marius Vollmer <mvo@zagadka.ping.de> |
138 | ||
139 | * scmsigs.c (signal_cell_handlers, install_handler_data, | |
140 | scm_delq_spine_x, really_install_handler, install_handler): New | |
141 | scheme for triggering signal handlers, to simplify take_signal. | |
142 | (take_signal): Simplified, to avoid race conditions. | |
143 | (scm_sigaction_for_thread): Use new Scheme. Validate that thread | |
144 | hasn't exited yet. | |
145 | ||
146 | * async.c (scm_async_click): Reset pending_asyncs, handle | |
147 | signal_asyncs. Don't set cdr of a non-signal async to #f. | |
148 | (scm_i_queue_async_cell): Do not check cdr of cell for #f, queue | |
149 | always. Set pending_asyncs. | |
150 | (scm_system_async_mark_for_thread): Check that thread has not | |
151 | exited. | |
152 | (scm_unmask_signals, decrease_block): Call scm_async_click after | |
153 | block_asyncs becomes zero. | |
154 | ||
155 | * __scm.h (SCM_ASYNC_CLICK): Check pending_asyncs instead of | |
156 | active_asyncs. | |
157 | ||
158 | * root.h (scm_root_state): Added pending_asyncs and signal_asyncs | |
159 | fields. | |
160 | * root.c (root_mark): Mark them. | |
161 | (make_root): Initialize them. | |
162 | ||
163 | * iselect.c, iselect.h: Replaced GUILE_ISELECT with | |
164 | USE_COOP_THREADS. | |
165 | (scm_internal_select): Define one version for USE_COOP_THREADS and | |
166 | one for USE_NULL_THREADS. | |
167 | (scm_init_iselect): Likewise. | |
168 | ||
169 | * inline.h (scm_cell, scm_double_cell): Also allow | |
170 | USE_COPT_THREADS to not protect the slot initializers. | |
171 | ||
172 | * init.c (scm_init_guile_1): Call scm_init_thread_procs. This is | |
173 | because threads need to be initialized before the stack, but | |
174 | gsubrs such as scm_timed_condition_variable_wait can only be | |
175 | created later. | |
176 | ||
177 | * threads.h: Include "coop-pthreads.h" when requested. | |
178 | (scm_threads_make_mutex, scm_threads_lock_mutex, | |
179 | scm_threads_unlock_mutex, scm_threads_monitor): Removed, they were | |
180 | not implemented anyway. | |
181 | (scm_init_thread_procs, scm_try_mutex, | |
182 | scm_timed_condition_variable_wait, | |
183 | scm_broadcast_condition_variable, scm_c_thread_exited_p, | |
184 | scm_thread_exited_p): New prototypes. | |
185 | (struct timespec): Define if not already defined. | |
186 | (scm_t_mutex, scm_mutex_init, scm_mutex_lock, scm_mutex_trylock, | |
187 | scm_mutex_unlock, scm_mutex_destroy, scm_t_cond, scm_cond_init, | |
188 | scm_cond_wait, scm_cond_timedwait, scm_cond_signal, | |
189 | scm_cond_broadcast, scm_cond_destroy): Declarations moved here and | |
190 | deprecated. | |
191 | ||
192 | * threads.c: Include <errno.h>. Include "coop-pthreads.c" when | |
193 | requested. | |
194 | (scm_thread_exited_p): New. | |
195 | (scm_try_mutex, scm_broadcast_condition_variable): Newly | |
196 | registered procedures. | |
197 | (scm_wait_condition_variable, scm_timed_wait_condition_variable): | |
198 | Use the latter as the procedure for "wait-condition-variable", | |
199 | thus offering a optional timeout parameter to Scheme. | |
200 | (scm_wait_condition_variable): Implement in terms of | |
201 | scm_timed_wait_condition_variable. | |
202 | (scm_mutex_init, scm_mutex_lock, scm_mutex_trylock, | |
203 | scm_mutex_unlock, scm_mutex_destroy, scm_cond_init, | |
204 | scm_cond_wait, scm_cond_timedwait, scm_cond_signal, | |
205 | scm_cond_broadcast, scm_cond_destroy): Implement in terms of | |
206 | scm_make_mutex, etc, and deprecate. | |
207 | (scm_init_threads): Do not create smobs, leave this to | |
208 | scm_threads_init. Do not include "threads.x" file. | |
209 | (scm_init_thread_procs): New, include "threads.x" here. | |
210 | ||
211 | * null-threads.h (scm_null_mutex, scm_null_mutex_init, | |
212 | scm_null_mutex_lock, scm_null_mutex_unlock, | |
213 | scm_null_mutex_destroy, scm_null_condvar, scm_null_condvar_init, | |
214 | scm_null_condvar_wait, scm_null_condvar_signal, | |
215 | scm_null_condvar_destroy): Removed. | |
216 | (scm_mutex_init, scm_mutex_lock, scm_mutex_unlock, scm_cond_init, | |
217 | scm_cond_wait, scm_cond_signal, scm_cond_broadcast, | |
218 | scm_cond_destory): Do not define, they are now deprecated and | |
219 | handled by threads.{h,c}. | |
220 | ||
221 | * null-threads.c (scm_null_mutex, scm_null_cond): Define here. | |
222 | (scm_threads_init): Create smobs here, using the appropriate | |
223 | sizes. | |
224 | (block): Removed, now unused. | |
225 | (scm_c_thread_exited_p): New. | |
226 | (scm_null_mutex_init, scm_null_mutex_lock, scm_null_mutex_unlock, | |
227 | scm_null_mutex_destroy, scm_null_condvar_init, | |
228 | scm_null_condvar_wait, scm_null_condvar_signal, | |
229 | scm_null_condvar_destroy): Removed and updated users to do their | |
230 | task directly. | |
231 | (scm_try_mutex, timeval_subtract, | |
232 | scm_timed_wait_condition_variable, | |
233 | scm_broadcast_condition_variable): New. | |
234 | (scm_wait_condition_variable): Removed. | |
235 | ||
236 | * coop-defs.h (coop_m): Added 'level' field. | |
237 | (scm_t_mutex, scm_mutex_init, scm_mutex_lock, scm_mutex_trylock, | |
238 | scm_mutex_unlock, scm_mutex_destroy, scm_t_cond, scm_cond_init, | |
239 | scm_cond_wait, scm_cond_timedwait, scm_cond_signal, | |
240 | scm_cond_broadcast, scm_cond_destroy, struct timespec): Do not | |
241 | define. | |
242 | (coop_condition_variable_broadcast): New. | |
243 | ||
244 | * coop-threads.c (scm_threads_init): Create smobs here, using the | |
245 | appropriate sizes. | |
246 | (scm_c_thread_exited_p, scm_try_mutex, | |
247 | scm_timed_wait_condition_variable, | |
248 | scm_broadcast_condition_variable): New. | |
249 | (scm_wait_condition_variable): Removed. | |
250 | ||
251 | * coop.c (coop_new_mutex_init): Initialize level. | |
252 | (coop_mutex_trylock, coop_mutex_lock, coop_mutex_unlock): maintain | |
253 | level. | |
254 | (coop_condition_variable_signal): Renamed to | |
255 | coop_condition_variable_broadcast and reimplemented in terms of | |
256 | that. Thus... | |
257 | (coop_condition_variable_broadcast): New. | |
258 | ||
259 | * goops.c (hell_mutex): Reimplemented using scm_make_mutex, etc. | |
260 | ||
261 | * coop-pthreads.h, coop-pthreads.c: New, but unfinished. | |
262 | ||
087ed40d MV |
263 | 2002-10-21 Marius Vollmer <mvo@zagadka.ping.de> |
264 | ||
65a23095 MV |
265 | * null-threads.c: Include <time.h>. Also, use <...> for inclusion |
266 | of system headers. | |
267 | ||
087ed40d MV |
268 | * async.c, goops.h, modules.h, validate.h (SCM_MAKE_VALIDATE_MSG): |
269 | New. Use it instead of SCM_MAKE_VALIDATE in lots of places to | |
30f920c3 | 270 | give better error messages. Thanks to Bill Schottstaedt! |
087ed40d | 271 | |
5ec1d2c8 DH |
272 | 2002-10-19 Dirk Herrmann <D.Herrmann@tu-bs.de> |
273 | ||
274 | * evalext.h, evalext.c (scm_definedp, scm_defined_p): Renamed | |
275 | scm_definedp to scm_defined_p and deprecated scm_definedp. | |
276 | ||
100ae50d DH |
277 | 2002-10-19 Dirk Herrmann <D.Herrmann@tu-bs.de> |
278 | ||
279 | * async.h, async.c (scm_system_async): Fixed deprecation to work | |
280 | correctly when deprecated features are excluded. | |
281 | ||
2794cb50 MV |
282 | 2002-10-16 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
283 | ||
284 | * async.c (scm_system_async_mark_for_thread): Validate thread | |
285 | argument. | |
286 | ||
287 | * coop-threads.c (scm_i_thread_root): Do not validate argument. | |
288 | ||
289 | * feature.c (scm_init_feature): Don't add 'threads' for | |
290 | USE_NULL_THREADS. | |
291 | ||
292 | * inline.h (scm_cell, scm_double_cell): Also allow | |
293 | USE_NULL_THREADS to not protect the slot initializers. | |
294 | ||
295 | * scmsigs.c (scm_sigaction_for_thread): It's "USE_THREADS" not | |
296 | "USE_THREAD". | |
297 | ||
298 | * Makefile.am (noinst_HEADERS): Added null-threads.c. | |
299 | (modinclude_HEADERS): Added null-threads.h. | |
300 | ||
301 | * threads.h: Include null-threads.h when !USE_COOP_THREADS. | |
302 | * threads.c: Include null-threads.c when !USE_COOP_THREADS. | |
303 | (scm_init_threads): Use generic type names scm_t_mutex and | |
304 | scm_t_cond instead of coop_m and coop_c. | |
305 | ||
306 | * null-threads.c, null-threads.h: New files. | |
307 | ||
ff810d7a MV |
308 | 2002-10-15 Marius Vollmer <mvo@zagadka.ping.de> |
309 | ||
310 | * Makefile.am: Replaced "$<" in non-pattern rules with its value. | |
311 | This is to support makes that know about "$<" only in pattern | |
312 | rules, like Sun's make. | |
313 | ||
a90bdb73 MV |
314 | 2002-10-13 Marius Vollmer <mvo@zagadka.ping.de> |
315 | ||
316 | * Makefile.am (libpath.h): Fixed typo in top_srcdir_absolute | |
317 | substitution. Thanks to David Allouche! | |
318 | ||
e71a8bf2 DH |
319 | 2002-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de> |
320 | ||
321 | * evalext.h: Replaced SCM_DEBUG_DEPRECATED with | |
322 | !SCM_ENABLE_DEPRECATED. | |
323 | ||
41f77ff5 MV |
324 | 2002-10-11 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
325 | ||
504d99c5 | 326 | * async.c (scm_system_async_mark_for_thread): Only call |
41f77ff5 MV |
327 | scm_i_thread_root when USE_THREADS is defined. Use scm_root |
328 | otherwise. | |
329 | ||
330 | * scmsigs.c (take_signal): Only call scm_i_thread_root when | |
331 | USE_THREADS is defined. Use scm_root otherwise. | |
332 | (scm_sigaction_for_thread): Ignore THREAD argument when | |
333 | USE_THREADS is not defined. Also, move THREAD argument defaulting | |
334 | out of HAVE_SIGACTION section, which was a bug. | |
335 | ||
6d16b125 MV |
336 | 2002-10-10 Marius Vollmer <marius.vollmer@uni-dortmund.de> |
337 | ||
338 | * scmsigs.c (scm_sigaction_for_thread): Store original handler in | |
339 | signal_handlers, not the closure that is used as the async. | |
340 | The closure is stored in signal_handler_cells, as previously. | |
341 | ||
acfa1f52 MV |
342 | 2002-10-10 Marius Vollmer <mvo@zagadka.ping.de> |
343 | ||
344 | * root.h (scm_root_state): Added 'block_async' slot. | |
345 | (scm_active_asyncs): Removed abbrev. | |
346 | * root.c (scm_make_root): Initialize 'block_asyncs' slot. | |
347 | ||
348 | * __scm.h (SCM_ASYNC_TICK): Do without the scm_active_asyncs | |
349 | abbrev. | |
350 | ||
351 | * async.h (scm_call_with_blocked_asyncs, | |
352 | scm_call_with_unblocked_asyncs, scm_c_call_with_blocked_asyncs, | |
353 | scm_c_call_with_unblocked_asyncs): New prototypes. | |
354 | (scm_mask_signals, scm_unmask_signals): Deprecated. | |
355 | (scm_mask_ints): Turned into a macro. | |
356 | * async.c (scm_mask_ints): Removed. | |
357 | (scm_run_asyncs): Do not set scm_mask_ints while running an async. | |
358 | this should not be necessary. | |
359 | (scm_async_click): Test block_asyncs instead of scm_mask_ints. | |
360 | (scm_mask_signals, scm_unmask_signals): Deprecated. Emit | |
361 | deprecation warning and check for errornous use. Set block_asyncs | |
362 | instead of scm_mask_ints. | |
363 | (increase_block, decrease_block, scm_call_with_blocked_asyncs, | |
364 | scm_call_with_unblocked_asyncs, scm_c_call_with_blocked_asyncs, | |
365 | scm_c_call_with_unblocked_asyncs): New. | |
366 | ||
367 | * script.c (scm_compile_shell_switches): Do not set scm_mask_ints. | |
368 | Asyncs are enabled by default. | |
369 | ||
34010f56 NJ |
370 | 2002-10-09 Neil Jerram <neil@ossau.uklinux.net> |
371 | ||
372 | * vports.c (scm_make_soft_port): Allow vector argument to carry a | |
373 | 6th element: an input waiting thunk. | |
374 | (sf_input_waiting): New. | |
375 | ||
9310d6f2 MV |
376 | 2002-10-05 Marius Vollmer <mvo@zagadka.ping.de> |
377 | ||
378 | * root.c (root_mark): Mark active_asyncs slot. | |
379 | ||
380 | * async.c (scm_async_click): Set the cdr of a executed handler | |
381 | cell to SCM_BOOL_F, not SCM_EOL. | |
382 | (scm_i_queue_async_cell): Queue the cell at the end of the list, | |
383 | and only if the handler procedure is not already present. | |
384 | (scm_system_async_mark_for_thread): Initialize cdr of handler cell | |
385 | with SCM_BOOL_F. | |
386 | * scmsigs.c (scm_sigaction_for_thread): Likewise. | |
387 | ||
ac48c719 RB |
388 | 2002-10-04 Rob Browning <rlb@defaultvalue.org> |
389 | ||
1360a142 RB |
390 | * guile.c (main): switch to scm_lt_dlset_preloaded_symbols; |
391 | ||
392 | * dynl.c (sysdep_dynl_link): switch to scm_lt_dlhandle, | |
393 | scm_lt_dlopenext, and scm_lt_dlerror. | |
394 | (sysdep_dynl_unlink): switch to scm_lt_dlhandle, scm_lt_dlclose, | |
395 | and scm_lt_dlerror. | |
396 | (sysdep_dynl_func): switch to scm_lt_dlhandle, scm_lt_dlsym, | |
397 | and scm_lt_dlerror. | |
398 | (sysdep_dynl_init): switch to scm_lt_dlinit(); | |
399 | ||
400 | * Makefile.am (libguile_la_LIBADD): switch to use | |
401 | libguile-ltdl.la. | |
402 | ||
504d99c5 | 403 | * numbers.c (scm_integer_expt): (expt 0 1) should be 1. |
ac48c719 | 404 | |
497092c9 MV |
405 | 2002-10-04 Marius Vollmer <mvo@zagadka.ping.de> |
406 | ||
407 | * scmsigs.h (scm_sigaction_for_thread): New prototype. | |
408 | * scmsigs.c (got_signal): Removed. | |
409 | (signal_handler_cells, signal_handler_threads): New. | |
410 | (take_signal): Queue the cell of the signal for the specified | |
411 | thread. Reset the signal handler on systems that don't have | |
412 | sigaction. | |
413 | (sys_deliver_signals): Removed. | |
414 | (close_1): New. | |
415 | (scm_sigaction_for_thread): Renamed from scm_sigaction and | |
416 | extended to also set the thread of a signal and allocate a cell | |
417 | for it. Keep the Scheme name "sigaction". Check that signum is | |
418 | within range. Also, use SCM_VECTOR_REF instead of SCM_VELTS. | |
419 | (scm_sigaction): Implement in terms of scm_sigaction_for_thread. | |
420 | (scm_init_scmsigs): Allocate signal_handler_cells and | |
421 | signal_handler_threads vectors. | |
422 | ||
423 | * async.c: Removed GUILE_OLD_ASYNC_CLICK code. Reorganized so | |
424 | that system asnycs and user asyncs are separated. Reimplemented | |
425 | system asyncs to work per-thread. | |
426 | ||
427 | * gc.c (scm_init_gc): Do not use scm_system_async. | |
428 | ||
429 | * async.h (scm_asyncs_pending, scm_set_tick_rate, | |
430 | scm_set_switch_rate, scm_system_async_mark_from_signal_handler): | |
431 | Removed prototypes. | |
432 | (scm_i_queue_async_cell): New. | |
433 | ||
434 | * __scm.h (scm_asyncs_pending_p): Removed. | |
435 | (SCM_ASYNC_CLICK): Check scm_active_asyncs instead of | |
436 | scm_asyncs_pending_p. | |
437 | ||
438 | * async.h (scm_system_async_mark_for_thread): New prototype. | |
439 | ||
440 | * __scm.h: Removed GUILE_OLD_ASYNC_CLICK code. | |
441 | ||
442 | * root.h (scm_root_state): Added new "active_asyncs" slot. | |
443 | * root.c (scm_make_root): Initialize it to SCM_EOL. | |
444 | ||
445 | * coop-defs.h (coop_t): Added new "handle" slot. | |
446 | * coop-threads.c (all_threads, scm_current_thread, | |
447 | scm_all_threads, scm_i_thread_root): New. | |
448 | (scm_threads_init): Add main thread to all_threads. | |
449 | (scheme_launch_thread): Remove thread from all_threads when it | |
450 | terminates. | |
451 | (scm_call_with_new_thread): Initialize handle slot of coop_t | |
452 | structure and add new thread to all_threads. | |
453 | (scm_spawn_thread): Likewise. | |
454 | ||
455 | * threads.h (scm_current_thread, scm_all_threads): New prototypes. | |
456 | * threads.c (scm_current_thread, scm_all_threads): Register as | |
457 | primitives. | |
458 | ||
459 | * dynl.c: Use scm_lt_ prefix for libltdl functions. | |
460 | ||
480fa28d NJ |
461 | 2002-09-29 Neil Jerram <neil@ossau.uklinux.net> |
462 | ||
463 | * script.c (scm_compile_shell_switches): Fix bad spelling of | |
464 | `explicitly' in comment. | |
465 | ||
466 | 2002-09-28 Neil Jerram <neil@ossau.uklinux.net> | |
467 | ||
468 | * posix.c (scm_geteuid, scm_getegid, scm_seteuid, scm_setegid): | |
469 | Refer to provided? in doc string rather than deprecated feature?. | |
470 | ||
3553e1d1 GH |
471 | 2002-09-24 Gary Houston <ghouston@arglist.com> |
472 | ||
473 | * inline.h (scm_double_cell): prevent reordering of statements | |
474 | with any following code (for GCC 3 strict-aliasing). | |
475 | * numbers.c (scm_make_real), num2float.i.c (FLOAT2NUM): removed | |
476 | the earlier version of the reordering prevention. | |
477 | ||
4ad0814a HWN |
478 | 2002-09-19 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
479 | ||
480 | * inline.h (scm_double_cell): move SET_GCMARK set out of if body. | |
481 | ||
e88e4f2e HWN |
482 | 2002-09-09 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
483 | ||
484 | * gc-malloc.c (scm_gc_register_collectable_memory): more overflow | |
485 | protection. | |
486 | ||
1e71eafb HWN |
487 | 2002-09-08 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
488 | ||
489 | * inline.h: include stdio.h | |
490 | ||
491 | * smob.c (free_print): abort if scm_debug_cell_accesses_p is set | |
492 | ||
61ef9c1f HWN |
493 | 2002-09-05 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
494 | ||
dac04e9f HWN |
495 | * gc-segment.c (scm_i_make_initial_segment): check user settings |
496 | for sanity. | |
497 | ||
498 | * gc-malloc.c (scm_gc_init_malloc): check user settings for | |
499 | sanity. | |
dac04e9f HWN |
500 | |
501 | * gc-freelist.c (scm_init_freelist): check user settings for sanity. | |
502 | ||
ffd72400 HWN |
503 | * struct.h: change scm_structs_to_free to scm_i_structs_to_free |
504 | ||
505 | * gc-malloc.c (scm_gc_register_collectable_memory): use floats; | |
1e71eafb HWN |
506 | these won't ever wrap around with high memory usage. Thanks to |
507 | Sven Hartrumpf for finding this. | |
ffd72400 | 508 | |
5bd4a949 HWN |
509 | * gc-freelist.c: include <stdio.h> |
510 | ||
61ef9c1f HWN |
511 | * gc-malloc.c: add DEBUGINFO for mtrigger GCs. |
512 | ||
ffd0ef3b MV |
513 | 2002-09-01 Marius Vollmer <mvo@zagadka.ping.de> |
514 | ||
a27e3d14 MV |
515 | * vectors.h (SCM_VECTOR_REF): New. |
516 | ||
ffd0ef3b MV |
517 | * snarf.h (SCM_DEFINE_PUBLIC): New. |
518 | ||
f8a1712b MV |
519 | 2002-08-30 Marius Vollmer <mvo@zagadka.ping.de> |
520 | ||
521 | * socket.c (scm_addr_vector): Added size of address to arguments. | |
522 | Use it to avoid accessing a non-existent path in a sockaddr_un. | |
523 | Changed all callers. | |
524 | ||
7200a36b HWN |
525 | 2002-08-29 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
526 | ||
1383773b HWN |
527 | * gc.h: remove DOUBLECELL card flags. |
528 | ||
529 | * gc-malloc.c (scm_calloc): try to use calloc() before calling | |
530 | scm_realloc(). | |
531 | ||
532 | * gc-segment.c (scm_i_initialize_heap_segment_data): remove card | |
533 | init loop; handle this from scm_init_card_freelist() | |
534 | ||
535 | * gc-card.c (scm_init_card_freelist): init bit vector here. | |
536 | ||
7200a36b | 537 | * numbers.c (scm_make_real): prevent reordering of statements |
8fa5786d | 538 | num2float.i.c (FLOAT2NUM): idem |
7200a36b | 539 | |
9981de3a HWN |
540 | 2002-08-27 Han-Wen Nienhuys <hanwen@cs.uu.nl> |
541 | ||
542 | * eval.h: prepend libguile/ to include path | |
543 | ||
19647556 MV |
544 | 2002-08-26 Marius Vollmer <mvo@zagadka.ping.de> |
545 | ||
546 | * script.c (scm_compile_shell_switches): Added "2002" to Copyright | |
547 |