Fixed some SCM/scm_bits_t mixups.
[bpt/guile.git] / libguile / ChangeLog
1 2000-04-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
2
3 * options.c (scm_options), read.c (recsexpr): Remove redundant
4 SCM_IMP test.
5
6 * print.c (scm_iprin1): Made the access of the struct vcell
7 element explicit.
8
9 * print.h (SCM_PRINT_CLOSURE): Added call to SCM_PACK.
10
11 * ramap.c (scm_ra_eqp, ra_compare), unif.c
12 (scm_uniform_vector_ref, scm_cvref, rapr1): Separated accesses to
13 unsigned long and signed long arrays and clarified the way the
14 access is performed.
15
16 * ramap.c (scm_array_map_x, raeql), read.c (scm_lreadr), stacks.c
17 (narrow_stack), unif.c (scm_cvref, scm_uniform_array_read_x,
18 scm_raprin1): Use SCM_EQ_P to compare SCM values.
19
20 * strings.c (scm_makstr): Treat the msymbol slots as a field of
21 scm_bits_t values.
22
23 * struct.h (SCM_SET_VTABLE_DESTRUCTOR): Treat the struct data as
24 a field of scm_bits_t values.
25
26 * unif.c (l2ra): Don't test result of scm_array_set_x against
27 zero: It is always SCM_UNSPECIFIED.
28
29 2000-04-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
30
31 * script.c (scm_compile_shell_switches): Also enable
32 record-positions when given the --debug option. (Thanks to Diego
33 Dainese.)
34
35 2000-04-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
36
37 * print.c (ENTER_NESTED_DATA, print_circref, scm_iprlist):
38 Compare SCM's with SCM_EQ_P.
39
40 * print.c (scm_make_print_state), srcprop.c
41 (scm_source_properties): Use valid scheme object to initialize
42 SCM variable.
43
44 * print.c (scm_iprin1): Remove redundant calls to SCM_UNPACK.
45
46 2000-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
47
48 * struct.c (scm_alloc_struct, scm_struct_free_0,
49 scm_struct_free_light, scm_struct_free_standard,
50 scm_struct_free_entity, scm_make_struct, scm_make_vtable_vtable),
51 struct.h (scm_struct_free_t, scm_alloc_struct, scm_struct_free_0,
52 scm_struct_free_light, scm_struct_free_standard,
53 scm_struct_free_entity): Struct data regions (and thus also
54 vtable data regions) are now C arrays of scm_bits_t elements.
55
56 * gc.c (scm_gc_mark, scm_gc_sweep, scm_unhash_name): Made the
57 mixup of glocs and structs explicit.
58
59 * gc.c (scm_unprotect_object): Compare SCM's with SCM_EQ_P.
60
61 2000-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
62
63 * eval.c (scm_unmemocar): Use macros to test for gloc cell.
64 Minimize scope of variable 'ir'.
65
66 * eval.h (SCM_IFRAME, SCM_IDIST), weaks.h (SCM_IS_WHVEC_ANY):
67 Added missing call to SCM_UNPACK.
68
69 2000-04-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
70
71 * validate.h (SCM_VALIDATE_INUM_RANGE_COPY,
72 SCM_VALIDATE_NUMBER_COPY): New macros.
73
74 2000-04-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
75
76 * script.c (scm_compile_shell_switches): Added --debug option.
77
78 2000-04-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
79
80 * vectors.c (scm_vector_set_x): Return SCM_UNSPECIFIED (as
81 specified by R5RS).
82
83 2000-04-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
84
85 * ports.h (SCM_INPUT_PORT_P, SCM_OUTPUT_PORT_P): New macros.
86 (SCM_INPORTP, SCM_OUTPORTP): Marked as deprecated.
87
88 * validate.h (SCM_VALIDATE_INPUT_PORT, SCM_VALIDATE_OUTPUT_PORT):
89 New macros.
90 Cleanup of code layout.
91
92 * ports.c, ports.h (close-input-port, close-output-port): New R5RS
93 procedures.
94
95 2000-04-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
96
97 * continuations.c (scm_make_cont, scm_dynthrow): Completely
98 separated implementations for defined (CHEAP_CONTINUATIONS) and
99 !defined (CHEAP_CONTINUATIONS). Also, now using memcpy for stack
100 copying.
101
102 * continuations.c (grow_stack): Renamed from grow_throw.
103
104 * continuations.c (copy_stack_and_call): New static function.
105
106 * continuations.c (scm_dynthrow): Simplified and made static.
107
108 * continuations.h (scm_dynthrow): Made static.
109
110 2000-04-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
111
112 * unif.c, unif.h (shared-array-root, shared-array-offset,
113 shared-array-increments): New primitives.
114
115 2000-04-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
116
117 * gc.c (scm_gc_sweep): Simplify the computation of freed memory
118 size for msymbols.
119
120 * symbols.h (SCM_SLOTS, SCM_SYMBOL_FUNC, SCM_SYMBOL_PROPS,
121 SCM_SYMBOL_HASH): The msymbol slots are now a field of scm_bits_t
122 values.
123
124 * symbols.h (SCM_SET_SYMBOL_FUNC, SCM_SET_SYMBOL_PROPS): New
125 macros.
126
127 symbols.c (scm_intern_obarray_soft, msymbolize, scm_symbol_fset_x,
128 scm_symbol_pset_x): Use them.
129
130 * symbols.c (scm_symbol_hash): Unpack to access SCM raw data.
131
132 2000-04-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
133
134 * ports.c (scm_port_print): The port data is read as raw data.
135
136 * ports.h (SCM_TC2PTOBNUM, SCM_PTOBNUM): Fix SCM/scm_bits_t
137 mismatch.
138
139 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
140
141 * eval.c (SCM_CEVAL), objects.c (scm_mcache_lookup_cmethod,
142 scm_make_subclass_object), objects.h (SCM_CLASS_FLAGS,
143 SCM_ENTITY_PROCEDURE, SCM_ENTITY_SETTER), struct.c
144 (scm_struct_init, scm_struct_vtable_p, scm_make_struct,
145 scm_struct_ref, scm_struct_set_x), struct.h (SCM_STRUCT_DATA):
146 The struct data is now an array of scm_bits_t variables.
147
148 * objects.h (SCM_SET_ENTITY_PROCEDURE): New macro.
149
150 objects.c (scm_set_object_procedure_x): Use it.
151
152 * struct.c (scm_struct_init): Unused variable 'data' removed.
153
154 (scm_struct_vtable_p): Redundant SCM_IMP tests removed.
155
156 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
157
158 * objects.h (SCM_OBJ_CLASS_FLAGS, SCM_OBJ_CLASS_REDEF), struct.h
159 (SCM_STRUCT_VTABLE_DATA, SCM_STRUCT_LAYOUT, SCM_STRUCT_VTABLE,
160 SCM_STRUCT_PRINTER): The struct vtable data is now an array of
161 scm_bits_t variables.
162
163 * struct.h (SCM_SET_STRUCT_LAYOUT): New macro.
164
165 struct.c (scm_make_vtable_vtable): Use it.
166
167 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
168
169 * symbols.c (scm_sym2vcell, scm_sym2ovcell_soft, scm_sym2ovcell,
170 scm_intern_obarray_soft, scm_sysintern0,
171 scm_string_to_obarray_symbol, scm_intern_symbol,
172 scm_unintern_symbol, scm_symbol_binding, scm_symbol_interned_p,
173 scm_symbol_bound_p, scm_symbol_set_x): Don't use C operators to
174 compare SCM values.
175
176 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
177
178 * numbers.c (scm_quotient, scm_modulo): Reordered to handle the
179 case of immediate numbers parameters first. Also, only use
180 decoded numbers for numerical comparison.
181
182 2000-04-10 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
183
184 * objects.h: Don't redeclare scm_call_generic_0 and
185 scm_apply_generic. (Thanks to Tal Tversky.)
186
187 2000-04-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
188
189 * hash.c (scm_hasher): Use symbolic names for the tc3 constants.
190 Unpack SCM value to use it as a switch parameter. Don't cast SCM
191 values to int values.
192
193 2000-04-10 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
194
195 * coop.c (mother): Handled EINTR (the wait has been interrupted by
196 a signal).
197
198 2000-04-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
199
200 * __scm.h (SCM_WTA_DISPATCH_[012n]): To test whether a SCM value
201 contains a raw zero value it has to be unpacked.
202
203 * debug.c (with_traps_inner, scm_with_traps): Passing SCM values
204 via void * requires unpacking / packing.
205
206 * stacks.h (SCM_STACKP): Remove unnecessary SCM_NIMP test and use
207 SCM_EQ_P to compare SCM values.
208
209 * stacks.h (SCM_FRAME_VOID_P, SCM_FRAME_REAL_P, SCM_FRAME_PROC_P,
210 SCM_FRAME_EVAL_ARGS_P, SCM_FRAME_OVERFLOW_P): Remove unnecessary
211 call to SCM_UNPACK.
212
213 * tags.h (SCM_NECONSP): Define in terms of SCM_ECONSP
214
215 * tags.h (SCM_ECONSP): Clarify the test for glocs. This is still
216 quite ugly.
217
218 2000-04-05 Michael Livshin <mlivshin@bigfoot.com>
219
220 * async.[ch]: unexpose low-level async access macros (thanks to
221 Dirk Herrmann).
222
223 * validate.h: move async validation macros to async.c (nobody else
224 needs them anyway), and rename them.
225
226 2000-04-04 Michael Livshin <mlivshin@bigfoot.com>
227
228 * async.h: kill the scm_async_t struct. having a heap cell
229 pretending to be a C struct is not helthy, and is not needed here
230 anyway, as asyncs happily fit in one heap cell.
231
232 * async.c: reflect the fact that asyncs are now represented by
233 single heap cell each.
234
235 2000-04-04 Gary Houston <ghouston@arglist.com>
236
237 * error.c (scm_syserror): save errno before doing anything else,
238 since it's used in two expressions and may get mutated (thanks to
239 Dirk Herrmann).
240
241 2000-04-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
242
243 * debug.c (scm_procedure_source, scm_procedure_environment),
244 gsubr.c (scm_make_gsubr_with_generic, scm_gsubr_apply), procs.c
245 (scm_procedure, scm_setter): Return valid scheme value as dummy.
246
247 * filesys.c (scm_readdir, scm_rewinddir, scm_closedir,
248 scm_dir_print, scm_dir_free), numbers.h (SCM_COMPLEX_REAL,
249 SCM_COMPLEX_IMAG), regex-posix.h (SCM_RGX), throw.c (JBJMPBUF,
250 SETJBJMPBUF, JBJMPBUF, SETJBJMPBUF, freejb, print_lazy_catch,
251 scm_ithrow), unif.c (scm_uniform_vector_ref, scm_cvref,
252 scm_array_set_x, rapr1), unif.h (SCM_ARRAY_V, SCM_ARRAY_BASE),
253 vectors.h (SCM_VELTS, SCM_VELTS_AS_STACKITEMS, SCM_SETVELTS): Use
254 SCM_{SET_}?CELL_WORD* to access cell entries with raw data.
255
256 * filesys.c (scm_closedir), numbers.c (scm_addbig), numbers.h
257 (SCM_SETNUMDIGS), throw.c (JBACTIVE, SCM_JBDFRAME,
258 SCM_SETJBDFRAME): Read and modify data bits in cell entry #0 using
259 SCM_{SET_}?CELL_WORD_0.
260
261 * filesys.c (fill_select_type, retrieve_select_type, scm_select),
262 numbers.c (scm_gcd, scm_lcm, scm_integer_expt, scm_zero_p,
263 scm_product, scm_divide), posix.c (scm_getgrgid), ramap.c
264 (scm_array_fill_int, racp), throw.c (scm_catch, scm_lazy_catch,
265 scm_ithrow), unif.c (scm_make_uve, scm_array_p,
266 scm_transpose_array, scm_array_set_x, scm_bit_set_star_x,
267 scm_bit_count_star, l2ra), variable.c (prin_var,
268 scm_make_variable, scm_make_undefined_variable,
269 scm_builtin_variable), vectors.c (scm_vector_set_length_x),
270 vports.c (sf_flush, sf_close): Don't use C operators to compare
271 SCM values.
272
273 * numbers.c (scm_odd_p, scm_even_p), variable.c (prin_var): Must
274 unpack SCM values to access their raw contents.
275
276 * numbers.c (big2str): Eliminate unnecessary casts to SCM.
277
278 * numbers.h (SCM_NEWREAL), regex-posix.h (SCM_RGXP), vports.c
279 (scm_make_soft_port): Use SCM_{SET_}?CELL_TYPE to access the cell
280 type information.
281
282 * throw.c (printjb): Eliminated unnecessary unpack.
283
284 * variable.c (make_vcell_variable): Smob data is of type
285 scm_bits_t.
286
287 2000-04-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
288
289 * print.c: Removed promise to rewrite printer code before next
290 release. :)
291
292 2000-04-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
293
294 * iselect.c (add_fd_sets): Insert empty statement after label.
295 (Thanks to Tim Mooney.)
296
297 2000-04-03 Michael Livshin <mlivshin@bigfoot.com>
298
299 * guardians.c (scm_guardian_zombify): mark all zombies in a
300 separate loop after processing all the currently known live
301 guardians, so as to not introduce order dependencies (thanks to
302 Gary Houston). note that the order problems are still there if
303 some guardians are themselves zombies, but that's a sick case that
304 I'm not going to worry about.
305 also, make another outer loop to process zombified
306 guardians (which are uncovered while marking zombies).
307
308 2000-04-03 Dirk Herrmann <D.Herrmann@tu-bs.de>
309
310 * evalext.c (scm_definedp, scm_m_undefine), gc.c
311 (scm_mark_weak_vector_spines, scm_gc_sweep), hashtab.c
312 (scm_hashq_ref, scm_hashv_ref, scm_hash_ref, scm_hashx_ref),
313 keywords.c (scm_make_keyword_from_dash_symbol), lang.c
314 (scm_nil_eq), lang.h (SCM_NILP, SCM_NIL2EOL), load.c
315 (scm_primitive_load), modules.c (scm_module_full_name), objects.c
316 (scm_class_of, scm_mcache_lookup_cmethod, scm_make_class_object),
317 ports.c (scm_close_all_ports_except), ports.h (SCM_EOF_OBJECT_P),
318 print.c (scm_iprin1, scm_prin1, scm_iprlist, scm_simple_format),
319 print.h (SCM_PRINT_STATE_P), procprop.c (scm_i_procedure_arity,
320 scm_stand_in_scm_proc, scm_procedure_property,
321 scm_set_procedure_property_x), procs.c
322 (scm_procedure_documentation), read.c (scm_lreadr, scm_lreadparen,
323 scm_lreadrecparen, scm_read_hash_extend), script.c
324 (scm_compile_shell_switches), srcprop.c (scm_source_property,
325 scm_set_source_property_x), srcprop.h (SCM_WHASHFOUNDP), stacks.c
326 (read_frame, NEXT_FRAME, read_frames, narrow_stack,
327 scm_make_stack, scm_stack_id), strop.c (scm_i_index,
328 scm_string_index, scm_string_rindex), struct.c (scm_struct_init),
329 validate.h (SCM_VALIDATE_BOOL_COPY, SCM_VALIDATE_INUM_DEF,
330 SCM_VALIDATE_INUM_DEF_COPY, SCM_VALIDATE_PROC,
331 SCM_VALIDATE_ARRAY): Don't use C operators to compare SCM values.
332
333 * feature.c (make_hook), keywords.c
334 (scm_make_keyword_from_dash_symbol), macros.c (scm_makacro,
335 scm_makmacro, scm_makmmacro), print.c (scm_iprin1,
336 scm_printer_apply, scm_port_with_print_state): Smob data is of type
337 scm_bits_t.
338
339 * feature.c (print_hook), gc.c (scm_object_address), hash.c
340 (scm_ihashq, scm_ihashv), print.c (scm_iprin1, scm_ipruk), smob.c
341 (freeprint), struct.c (scm_print_struct): Must unpack
342 SCM values to access their raw contents.
343
344 * fluids.c (apply_thunk, scm_with_fluids), hashtab.c (fold_proc,
345 scm_hash_fold), load.c (load, scm_primitive_load): Passing SCM
346 values via void * requires unpacking / packing.
347
348 * fports.c (scm_fport_buffer_add, scm_setvbuf), procs.h
349 (SCM_SUBRNUM, SCM_SET_SUBRNUM), srcprop.h (SRCPROPBRK, SRCBRKP):
350 Read and modify data bits in cell entry #0 using
351 SCM_{SET_}?CELL_WORD_0.
352
353 * fports.c (scm_fdes_to_port), gc.c (scm_gc_for_newcell,
354 scm_gc_sweep, init_heap_seg), init.c (start_stack), ports.c
355 (scm_void_port), procs.c (scm_make_subr_opt,
356 scm_make_procedure_with_setter), root.c (scm_internal_cwdr),
357 smob.c (scm_make_smob), strports.c (scm_mkstrport): Use
358 SCM_SET_CELL_TYPE to write the cell type information.
359
360 * gc.c (scm_gc_mark): Use SCM_CELL_OBJECT* to access SCM values
361 from cells that are no scheme pairs.
362
363 * gc.c (scm_gc_sweep), mallocs.c (prinmalloc), mallocs.h
364 (SCM_MALLOCDATA, SCM_SETMALLOCDATA), print.c (scm_ipruk), random.h
365 (SCM_RSTATE), root.h (SCM_ROOT_STATE), smob.c (scm_smob_free),
366 srcprop.c (freesrcprops), srcprop.h (SRCPROPPOS, SRCPROPFNAME,
367 SRCPROPCOPY, SRCPROPPLIST), struct.c (scm_make_struct,
368 scm_make_vtable_vtable): Use SCM_{SET_}?CELL_WORD* to access cell
369 entries with raw data.
370
371 * gc.c (scm_init_storage), sort.c (applyless), strop.c
372 (scm_string_to_list): Eliminate unnecessary casts to SCM.
373
374 * mallocs.c (scm_malloc_obj): Store result of malloc as raw
375 data.
376
377 * ports.c (scm_close_all_ports_except): Duplicate documentation
378 text removed.
379
380 * print.c (scm_iprin1): Use SCM_ITAG3.
381
382 * procs.h (SCM_SET_SUBRNUM): Fix shift direction.
383
384 * snarf.h (SCM_GPROC, SCM_GPROC1, SCM_SYMBOL, SCM_GLOBAL_SYMBOL,
385 SCM_KEYWORD, SCM_GLOBAL_KEYWORD, SCM_VCELL, SCM_GLOBAL_VCELL,
386 SCM_VCELL_INIT, SCM_GLOBAL_VCELL_INIT): Don't initialize globals
387 and static variables at their point of declaration, but rather in
388 the init function.
389
390 * tags.h (SCM_PACK): Automatically cast to scm_bits_t.
391
392 2000-04-02 Gary Houston <ghouston@arglist.com>
393
394 * guardians.c (TCONC_IN, scm_make_guardian): set the CDR of the
395 empty tconc pair to SCM_EOL instead of SCM_BOOL_F, avoiding the
396 use of an improper list (which breaks g_print. g_print isn't
397 used).
398 guardians.c: Added more comments and modified the make-guardian
399 docstring. Reordered a few procedures.
400
401 2000-04-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
402
403 * eval.c (scm_lookupcar1, scm_lookupcar, scm_m_case, scm_m_cond,
404 scm_m_lambda, iqq, scm_m_define, scm_m_expand_body, unmemocopy,
405 SCM_CEVAL), procs.h (SCM_TOP_LEVEL): Don't use C operators to
406 compare SCM values.
407
408 (scm_makprom): Smob data is of type scm_bits_t.
409
410 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
411
412 * backtrace.c (display_error_body), debug.c (scm_procedure_source,
413 scm_reverse_lookup), dynl.c (scm_dynamic_link): Don't use C
414 operators to compare SCM values.
415
416 * debug.c (scm_make_debugobj), debug.h (SCM_DEBUGOBJ_FRAME,
417 SCM_SET_DEBUGOBJ_FRAME): Update SCM_{SET_}?DEBUGOBJ_FRAME to
418 access raw cell data with SCM_{SET_}?CELL_WORD_1.
419
420 * debug.c (scm_make_debugobj): Don't use SCM_SETCAR to set types.
421
422 * debug.c (scm_make_memoized), dynl.c (scm_dynamic_link): Smob
423 data is of type scm_bits_t.
424
425 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
426
427 * gdbint.c (gdb_maybe_valid_type_p), guardians.c (TCONC_EMPTYP,
428 scm_guardian_zombify): Use SCM_EQ_P to compare SCM values.
429
430 * guardians.c (GUARDIAN): Use SCM_CELL_WORD_1 for raw data.
431
432 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
433
434 * ports.h (scm_port): Change type of stream member to scm_bits_t.
435
436 * gdbint.c (unmark_port, remark_port), ports.c (scm_markstream),
437 strports.c (st_resize_port, scm_mkstrport), vports (sf_flush,
438 sf_write, sf_fill_input, sf_close, scm_make_soft_port): Since
439 streams are now of type scm_bits_t, SCM streams have to be
440 unpacked/packed.
441
442 * ports.h (SCM_SETPTAB_ENTRY, SCM_SETSTREAM): Cast input to
443 scm_bits_t.
444
445 2000-03-31 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
446
447 * coop-defs.h (struct coop_t): Added `sto'-field again because of
448 binary compatibility---let's remove it next time we alter some
449 major structure.
450
451 * coop.c (coop_quitting_p, coop_cond_create, coop_mutex_create,
452 coop_mother, coop_child): New variables.
453 (mother): New function.
454 (coop_create): New thread spawning mechanism which uses a "mother
455 thread". The "dummy" pthreads aren't healthy enough to give birth
456 to new threads since Linux threads thinks they are asleep.
457
458 * coop-defs.h (struct coop_t): Removed dummy_mutex.
459
460 * coop-defs.h, coop-threads.c (struct coop_t): Eliminate
461 `sto'-field when GUILE_PTHREAD_COMPAT is enabled.
462
463 2000-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
464
465 * arbiters.c (scm_make_arbiter), async.c (scm_async), dynwind.c
466 (scm_internal_dynamic_wind): Smob data is always of type
467 scm_bits_t.
468
469 * arbiters.c (SCM_ARB_LOCKED, SCM_LOCK_ARB, SCM_UNLOCK_ARB):
470 Access the locking information in cell entry 0 with
471 SCM_{SET_}?CELL_WORD_0 instead of SCM_*CAR.
472
473 * async.c (scm_run_asyncs): Use SCM_NULLP to test for the empty
474 list.
475
476 * dynwind.c (scm_dowinds): Use SCM_EQ_P to compare SCM values.
477
478 * ports.h (SCM_PTAB_ENTRY, SCM_SETPTAB_ENTRY): Access the ptab
479 entry data using SCM_{SET_}?CELL_WORD_1 instead of SCM_{SET}?CDR.
480
481 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
482
483 * alist.c (scm_sloppy_assq, scm_assq), eq.c (scm_eq_p, scm_eqv_p,
484 scm_equal_p), list.c (scm_ilength, scm_last_pair, scm_reverse,
485 scm_sloppy_memq, scm_delq_x, scm_delq1_x), tags.h (SCM_UNBNDP):
486 Don't use C operators == and != to compare SCM values, use
487 SCM_EQ_P instead.
488
489 * boolean.c (scm_boolean_p): Use SCM_BOOLP to determine whether a
490 SCM value is equal to #t or #f.
491
492 * eq.c (scm_eqv_p, scm_equal_p): Don't use SCM_CAR to access the
493 cell type entry of non immediate objects of unknown type. Use
494 SCM_CELL_TYPE instead.
495
496 * gh_data.c (gh_scm2bool, gh_module_lookup), list.c
497 (scm_sloppy_memv, scm_sloppy_member, scm_delv_x, scm_delete_x,
498 scm_delv1_x, scm_delete1_x), scmsigs.c (scm_sigaction): Use
499 SCM_FALSEP and SCM_TRUE_P to compare SCM values against #f and
500 #t.
501
502 * list.c (scm_listify): Use SCM_UNBNDP to test for an unbound
503 scheme value.
504
505 2000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
506
507 * coop-threads.c (scm_call_with_new_thread, scm_spawn_thread,
508 scm_make_mutex, scm_make_condition_variable): Cast data to
509 scm_bits_t in SCM_SET_CELL_WORD and SCM_NEWSMOB macros.
510
511 * coop.c (coop_create): Set `specific' field, not `data' to NULL.
512
513 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
514
515 * smob.h (SCM_NEWSMOB, SCM_NEWSMOB2, SCM_NEWSMOB3, SCM_SMOB_DATA,
516 SCM_SET_SMOB_DATA, SCM_TC2SMOBNUM, SCM_SMOBNUM): To access smob
517 data, use SCM_{SET_}?CELL_TYPE or SCM_{SET_}?WORD_[1-3].
518
519 Note that this implies that smob data has always to be passed as
520 values of type scm_bits_t.
521
522 2000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
523
524 * threads.c (scm_init_threads): Pass 0 size to scm_make_smob_type
525 for scm_tc16_thread. As the current COOP threads are written, GC
526 is not supposed to manage storage for threads.
527
528 * error.c (scm_error): Don't try to throw an error if
529 scm_gc_heap_lock is true.
530
531 * coop.c (coop_finish): New function. Called at exit.
532 (coop_aborthelp): Free thread structures when threads die.
533 Finished LinuxThreads compatibility support => COOP threads now
534 mesh with LinuxThreads.
535
536 * coop-threads.c (scm_call_with_new_thread, scm_spawn_thread):
537 Changed SETCDR --> SET_CELL_WORD_1.
538
539 * coop-threads.c (scheme_launch_thread): Set word 1 of handle to 0
540 when thread dies.
541
542 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
543
544 * boolean.h (SCM_TRUE_P): New macro.
545
546 * boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP), pairs.h
547 (SCM_NULLP, SCM_NNULLP): Use SCM_EQ_P to compare SCM values.
548
549 2000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
550
551 * continuations.h (SCM_CONTREGS, SCM_SET_CONTREGS): New macros to
552 access continuation data.
553
554 (SCM_SETJMPBUF): Deprecated. Use SCM_SET_CONTREGS instead.
555
556 (SCM_JMPBUF, SCM_DYNENV, SCM_THROW_VALUE, SCM_BASE, SCM_SEQ,
557 SCM_DFRAME): Use SCM_CONTREGS instead of SCM_CHARS to access
558 continuation data.
559
560 * continuations.c (scm_make_cont), init.c (start_stack),
561 root.c (scm_internal_cwdr): Use SCM_SET_CONTREGS instead of
562 SCM_SETJMPBUF.
563
564 2000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
565
566 * symbols.h (SCM_LENGTH, SCM_SETLENGTH): Access the length field
567 of strings and symbols by using SCM_{SET_}?CELL_WORD_0.
568
569 (SCM_CHARS, SCM_UCHARS, SCM_SETCHARS): Use SCM_{SET_}?CELL_WORD_1
570 to access the char * field of strings and symbols.
571
572 2000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
573
574 * gc.h (SCM_NEWCELL, SCM_NEWCELL2): Use SCM_SET_CELL_TYPE to set
575 the type entry of a new cell. Added a comment about things to
576 remember when updating the list of free cells.
577
578 (SCM_FREEP, SCM_MARKEDP): Use SCM_CELL_TYPE to access the type
579 entry of a cell.
580
581 2000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
582
583 * pairs.h (SCM_CAR, SCM_CDR, SCM_SETCAR, SCM_SETCDR): Use
584 SCM_CELL_OBJECT and SCM_SET_CELL_OBJECT. This change implies that
585 with strict type checking enabled these macros will only work if
586 given valid SCM parameters.
587
588 (SCM_GCCDR): Moved to tags.h.
589
590 * tags.h (SCM_GCCDR): Moved here from pairs.h.
591
592 2000-03-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
593
594 * tags.h (SCM2PTR, PTR2SCM): Moved to gc.h.
595
596 * pairs.h (scm_cell, SCM_CELLPTR, SCM_CELL_WORD*, SCM_CELL_OBJECT*,
597 SCM_SET_CELL_WORD*, SCM_SET_CELL_OBJECT*, SCM_CELL_TYPE,
598 SCM_SET_CELL_TYPE, SCM_PTR_LT, SCM_PTR_MASK, SCM_PTR_GT,
599 SCM_PTR_LE, SCM_PTR_GE, SCM_CELL_WORD_LOC, SCM_NEWCELL,
600 SCM_NEWCELL2): Moved to gc.h.
601
602 (SCM_CARLOC, SCM_CDRLOC, SCM_SETAND_CAR, SCM_SETAND_CDR,
603 SCM_SETOR_CAR, SCM_SETOR_CDR): Moved to gc.h. These names should
604 be changed, though, since the macros are not only pair related.
605
606 (SCMPTR): Deleted.
607
608 * gc.h (SCM2PTR, PTR2SCM, scm_cell, SCM_CELLPTR, SCM_CELL_WORD*,
609 SCM_CELL_OBJECT*, SCM_SET_CELL_WORD*, SCM_SET_CELL_OBJECT*,
610 SCM_CELL_TYPE, SCM_SET_CELL_TYPE, SCM_PTR_LT, SCM_PTR_MASK,
611 SCM_PTR_GT, SCM_PTR_LE, SCM_PTR_GE, SCM_CELL_WORD_LOC,
612 SCM_NEWCELL, SCM_NEWCELL2, SCM_CARLOC, SCM_CDRLOC, SCM_SETAND_CAR,
613 SCM_SETAND_CDR, SCM_SETOR_CAR, SCM_SETOR_CDR): Moved here from
614 tags.h and pairs.h.
615
616 2000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
617
618 * tags.h (SCM_STRICT_TYPING): New macro that, if defined,
619 activates strict compile time type checking for variables of
620 type SCM.
621 (SCM, SCM_PACK, SCM_UNPACK): Define according to whether
622 SCM_STRICT_TYPING or SCM_VOIDP_TEST are defined.
623 (SCM_EQ_P): Defined as a macro equivalent for eq?.
624
625 2000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
626
627 * tags.h (SCM_POINTERS_MUNGED): Removed.
628
629 * gc.c (scm_gc_sweep, init_heap_seg): Removed use of
630 SCM_POINTERS_MUNGED, thus fixing some illegal casts to SCM.
631
632 2000-03-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
633
634 * pairs.h (SCM_CELL_OBJECT, SCM_CELL_OBJECT_[0-3],
635 SCM_SET_CELL_OBJECT, SCM_SET_CELL_OBJECT_[0-3], SCM_CELL_TYPE,
636 SCM_SET_CELL_TYPE): Added a set of low level macros for accessing
637 cell entries.
638 (SCM_CELL_WORD_[0-3]): Renamed from the SCM_CELL_WORD[0-3].
639
640 * procs.h, procs.c: Instead of SCM_{SET_}?CELL_WORD[12], use the
641 newly introduced SCM_{SET_}?CELL_OBJECT_[12] macros.
642
643 2000-03-23 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
644
645 * tags.h: Disabled definition of SCM_VOIDP_TEST.
646
647 Defining SCM as void * introduces problems which haven't been
648 handled yet. Developers who work with these issues can enable it
649 in their working copies.
650
651 Disabling this definition exposes a set of newly introduced and
652 older misuses of types which causes warning messages during
653 compilation. We'll fix this successively.
654
655 * gc.c (scm_mark_locations): Changed * (SCM **) X --> * (SCM *) X
656 in order to obtain a value of type SCM.
657 (scm_cellp): Updated with new changes to scm_mark_locations.
658
659 * continuations.h (SCM_SETJMPBUF): Cast second arg into SCM.
660
661 * continuations.c (scm_make_cont): Removed cast of size_t into
662 long.
663
664 * symbols.h (SCM_SETCHARS): Cast second arg into SCM.
665
666 2000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
667
668 * numbers.h (SCM_SETNUMDIGS): Use SCM_BIGSIZEFIELD macro for
669 shifting, not constant. Thanks to Dale P. Smith.
670
671 * numbers.c (scm_sum, scm_difference): Don't test a SCM value
672 for being less than zero. Decode it to a C value first. Again,
673 thank you Dale.
674
675 2000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
676
677 * numbers.h, ramap.c, struct.h, vectors.h: Don't use SCM2PTR for
678 non scheme values. If raw data is stored in SCM variables, it has
679 to be accessed using SCM_UNPACK until a better solution is found.
680
681 2000-03-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
682
683 * tags.h (SCM_ECONSP, SCM_NECONSP): More corrections of
684 pointer-arithmetic induced by the SCM_PACK/UNPACK change.
685
686 * print.c (scm_iprin1): SCM_PACK/UNPACK corrections.
687
688 * gc.c (scm_gc_sweep): SCM_PACK/UNPACK corrections.
689
690 * eval.c (SCM_CEVAL, scm_unmemocar): SCM_PACK/UNPACK corrections.
691
692 * dynwind.c (scm_swap_bindings): SCM_PACK/UNPACK corrections.
693
694 * async.c, __scm.h: Removed lots of the old async click logic. It
695 is possible to reinsert it by defining GUILE_OLD_ASYNC_CLICK in
696 __scm.h. Let's try this out and dump the old code after the
697 threads reorganization.
698 (set-tick-rate, set-switch-rate): Conditionally removed.
699
700 2000-03-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
701
702 * gc.c (scm_gc_mark): Bugfix 1: The recent SCM_PACK/UNPACK change
703 made SCM values into pointers. This turned an arithmetic
704 computation of the address of the vcell into a pointer-arithmetic
705 one, thereby screwing up marking of structs.
706 Bugfix 2: Removed incompletely introduced loop variable `j' used
707 when protecting the tail array of a struct.
708
709 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
710
711 * struct.h (SCM_STRUCT_DATA): Don't cast SCM values to pointers.
712
713 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
714
715 * symbols.h, symbols.c (scm_strhash): Declare the string
716 parameter as constant, since it is not modified.
717
718 * symbols.c (scm_intern_obarray_soft,
719 scm_sysintern0_no_module_lookup): Can now pass constant strings
720 to scm_strhash without need for casting.
721
722 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
723
724 * vectors.h (SCM_VELTS, SCM_VELTS_AS_STACKITEMS): Don't cast SCM
725 values to pointers. Use SCM2PTR instead.
726
727 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
728
729 * async.c (scm_set_tick_rate, scm_set_switch_rate): Don't unpack
730 results of SCM_INUM.
731
732 2000-03-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
733
734 * init.c (scm_boot_guile_1): Renamed GUILE_GC_TRIGGER_1 -->
735 GUILE_MIN_YIELD_1, GUILE_GC_TRIGGER_2 --> GUILE_MIN_YIELD_2.
736 GUILE_MIN_YIELD_X now take *positive* fractions of heap size.
737
738 * gc.c, gc.h (SCM_MIN_YIELD_1, SCM_MIN_YIELD_2,
739 min_yield_fraction, min_yield, adjust_min_yield): Renamed from
740 SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2, gc_trigger_fraction,
741 gc_trigger, adjust_gc_trigger.
742
743 * gc.c (alloc_some_heap): Further improvement of minimal heap size
744 prediction.
745 (SCM_MAX): New macro.
746 (scm_freelist_t): New field: collected_1. Previous amount of
747 collected cells.
748 (gc_sweep_freelist_finish): Trigger based on two last values of
749 freelist->collected to avoid unnecessary allocation due to
750 temporary peaks.
751 (SCM_INIT_HEAP_SIZE_1, SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2):
752 Adjusted to 45000 cells, 40% and 40%. Gives quick startup
753 without extra heap allocation.
754
755 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
756
757 * numbers.h (SCM_MAKINUM): The parameter to SCM_MAKINUM should
758 already be a C value. No need to unpack it.
759
760 * numbers.c (scm_long_long2num): Cast the parameter to scm_bits_t
761 if we know it fits into an inum.
762
763 * ramap.c (ramap_rp): An scm_tc7_[ui]vect object does point to a
764 field of long values. In contrast, SCM_VELTS accesses a field of
765 SCM values.
766
767 2000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
768
769 * gc.c (scm_gc_stats): Inserted explanation of local_scm_mtrigger
770 etc.
771 (scm_gc_yield_1): New variable: Holds previous yield. Used to
772 make better judgements.
773 (gc_sweep_freelist_finish): Inserted explanation of use of
774 gc_trigger.
775
776 * print.h, stacks.h, options.c, options.h: Changed C++
777 commentaries to C.
778
779 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
780
781 * tags.h (SCM2PTR, PTR2SCM): Use SCM_PACK / SCM_UNPACK correctly.
782
783 * numbers.h (SCM_INUMP, SCM_MAKINUM, SCM_INUM0, SCM_COMPLEX_REAL,
784 SCM_COMPLEX_IMAG, SCM_NUMP, SCM_BDIGITS): Use SCM_PACK /
785 SCM_UNPACK / SCM2PTR correctly.
786
787 2000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
788
789 * gc.c (adjust_gc_trigger): Improved documentation.
790 (alloc_some_heap): Since gc_trigger is used against
791 freelist->collected, this is the value which should be used to
792 predict minimum growth.
793
794 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
795
796 * eval.h: Fix mixup of packed/unpacked SCM values. (Thanks
797 Thien-Thi Nguyen for the patch.)
798
799 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
800
801 * numbers.c (scm_ash): Fixed typing problems with the second
802 parameter and added some documentation. (Thanks Thien-Thi Nguyen
803 for indicating the problem.)
804
805 2000-03-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
806
807 * gc.c, gc.h (scm_gc_yield): New variable.
808 (adjust_gc_trigger): Use scm_gc_yield.
809 (alloc_some_heap): Use scm_gc_yield instead of
810 scm_gc_cells_collected.
811
812 * coop-threads.c: Addd #include "root.h", #include "strings.h".
813
814 * debug.c: Added #include "root.h". (Thanks to Thien-Thi Nguyen.)
815
816 * gc.c (scm_gc_for_newcell, adjust_gc_trigger): Improved GC
817 trigger adjustmeant: Take yield (freed cells) for all freelists
818 into account.
819 (SCM_INIT_HEAP_SIZE_1, SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2): Tuned
820 to 50000 cell heap with 45% trigger.
821 (scm_gc_cells_collected): Reintroduced.
822 (SCM_HEAP_SIZE): New macro.
823 (scm_gc_sweep): Reintroduced correct computation of
824 scm_cells_allocated.
825 (scm_freelist_t): Corrected commentary for field `cluster_size':
826 Clustersize counts objects, not cells; New member
827 `clusters_allocated'.
828
829 2000-03-19 Michael Livshin <mlivshin@bigfoot.com>
830
831 * *.[hc]: add Emacs magic at the end of file, to ensure GNU
832 indentation style.
833
834 2000-03-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
835
836 * threads.h: Added #include "libguile/throw.h". (Thanks to
837 Thien-Thi Nguyen.)
838
839 2000-03-18 Michael Livshin <mlivshin@bigfoot.com>
840
841 * tags.h: (SCM_DOUBLE_CELLP, SCM_NDOUBLE_CELLP): new macros (bad
842 names, anyone got any better ones?)
843
844 * gc.h: (typedef struct scm_freelist_t) remove from here.
845
846 * gc.c: (CELL_UP, CELL_DN) made these macros take additional
847 parameter (the span).
848 (CLUSTER_SIZE_IN_BYTES, ALIGNMENT_SLACK) new macros.
849 (typedef struct scm_freelist_t) moved here from gc.h, it had no
850 business being externally visible.
851 (typedef struct scm_heap_seg_data_t) renamed from
852 scm_heap_seg_data, to be style-compliant.
853 (scm_mark_locations) if the possible pointer points to a
854 double-cell, check that it's properly aligned.
855 (init_heap_seg) align double-cells properly, work with the
856 assumption that the segment size divides cleanly by cluster size.
857 (round_to_cluster_size) new function.
858 (alloc_some_heap, make_initial_segment) use round_to_cluster_size
859 to satisfy the new init_heap_seg invariant.
860
861 2000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
862
863 * _scm.h: Don't include async.h everywhere...
864
865 * eq.c eval.c iselect.c: ... only include it here.
866
867 2000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
868
869 * _scm.h: Don't include root.h everywhere...
870
871 * async.c continuations.c eq.c eval.c evalext.c feature.c gc.c
872 gdbint.c gsubr.c ioext.c keywords.c lang.c load.c macros.c
873 numbers.c objprop.c ports.c print.c procprop.c ramap.c read.c
874 srcprop.c stackchk.c stacks.c strports.c symbols.c unif.c
875 variable.c vectors.c vports.c: ... only include it here.
876
877 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
878
879 * _scm.h: Don't include strings.h everywhere...
880
881 * backtrace.c dynl.c error.c feature.c filesys.c fports.c gc.c
882 gdbint.c ioext.c load.c net_db.c numbers.c objects.c options.c
883 ports.c posix.c print.c procs.c random.c read.c regex-posix.c
884 simpos.c socket.c stacks.c stime.c strop.c strports.c struct.c
885 symbols.c unif.c vectors.c version.c vports.c: ... only include it
886 here.
887
888 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
889
890 * _scm.h: Don't include ports.h everywhere...
891
892 * arbiters.c backtrace.c debug.c dynl.c dynwind.c eval.c feature.c
893 fluids.c gc.c gdbint.c guardians.c hash.c keywords.c mallocs.c
894 numbers.c objects.c print.c read.c root.c smob.c srcprop.c
895 stackchk.c strports.c struct.c throw.c variable.c: ... only
896 include it here.
897
898 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
899
900 * _scm.h: Don't include vectors.h everywhere...
901
902 * eq.c eval.c filesys.c gc.c gsubr.c guardians.c hash.c hashtab.c
903 keywords.c net_db.c numbers.c objects.c posix.c print.c procprop.c
904 procs.c ramap.c random.c read.c scmsigs.c socket.c sort.c stime.c
905 strports.c symbols.c unif.c vports.c weaks.c: ... only include it
906 here.
907
908 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
909
910 * genio.h: removed. (Only content was '/* delete me */'.)
911
912 * Makefile.am arbiters.c backtrace.c debug.c dynl.c dynwind.c
913 error.c filesys.c fluids.c gc.c gsubr.c guardians.c keywords.c
914 libguile.h mallocs.c numbers.c print.c random.c read.c root.c
915 srcprop.c stackchk.c struct.c threads.c throw.c variable.c:
916 Removed reference to genio.h
917
918 2000-03-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
919
920 * gc.c, gc.h: Cleanup of the change of 2000-03-15.
921 Cluster sizes are now independent of GC trigger values.
922 GUILE_GC_TRIGGER_n can now specify a relative trigger value:
923 A negative integer gives fraction of total heap size in percent.
924 (SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2): Default values set to -40.
925
926 * init.c (scm_boot_guile_1): Introduced new variable
927 GUILE_MAX_SEGMENT_SIZE; New environment variable names:
928 GUILE_INIT_SEGMENT_SIZE_1, GUILE_GC_TRIGGER_1,
929 GUILE_INIT_SEGMENT_SIZE_2, GUILE_GC_TRIGGER_2
930
931 2000-03-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
932
933 * __scm.h (GC_FREE_SEGMENTS): Disable this until we have made
934 freeing of segment work with the new GC scheme. (Thanks to
935 Michael Livshin.) Oops, also happened to make GUILE_NEW_GC_SCHEME
936 the default, but I'll let this change stay in CVS Guile since this
937 code is not expected to contain serious bugs.
938
939 2000-03-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
940
941 * gc.c, gc.h (scm_map_free_list): Define also if GUILE_DEBUG is
942 defined.
943 (scm_free_list_length): New procedure (GUILE_DEBUG).
944 Fixed a small but serious bug introduced by the previous change.
945
946 * gc.c (scm_gc_sweep): Moved variable n_objects to inner sweep
947 loop and declare as register.
948
949 * gc.c (scm_gc_sweep): Sigh... forgot to clear private freelists
950 after GC.
951
952 Wed Mar 15 08:27:04 2000 Greg J. Badros <gjb@cs.washington.edu>
953
954 * fluids.c: Docstring patch from Keisuke Nishida. Some
955 reindentation, too, and a couple formals renamed. Should
956 fluid-set! return UNSPECIFIED instead of a value?
957
958 Wed Mar 15 08:24:58 2000 Greg J. Badros <gjb@cs.washington.edu>
959
960 * Makefile.am: Separate out DOT_X_FILES and DOT_DOC_FILES, and
961 generate the latter from the concrete listing of the former. Then
962 make guile-procedures.txt depend on DOT_DOC_FILES instead of
963 *.doc, so that rebuilding it works.
964
965 Wed Mar 15 08:12:14 2000 Greg J. Badros <gjb@cs.washington.edu>
966
967 * libguile.h: Include libguile/validate.h. Thanks Keisuke Nishida!
968
969 * guile-snarf.awk.in: Replace docstring line-ending \n" and \n\n"
970 with nothing and \n, respectively. Thanks Keisuke Nishida for
971 noticing this problem.
972
973 2000-03-15 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
974
975 * __scm.h (GUILE_NEW_GC_SCHEME): Define this if you want to test a
976 new way of allocating heap. It makes Guile fast, but still
977 contains bugs.
978
979 * gc.c, gc.h, pairs.h, init.c: Implementation of a new way of
980 allocating heap. The basic idea is to trigger GC every Nth
981 allocated cell and grow heap when free list runs out. The scheme
982 has been extended so that GC isn't triggered until all remaining
983 cells are used. The implementation is also prepared for
984 development in the direction of POSIX threads.
985
986 * gc.c (SCM_EXPHEAP): In order to grow by a factor of 1.5,
987 SCM_EXPHEAP should return half of the heap size.
988
989 2000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
990
991 The following change to init.c is only enabled if Guile was
992 configured with --enable-guile-debug.
993
994 * init.c (scm_i_getenv_int): New function.
995 (scm_boot_guile_1): Use the environment variables
996 GUILE_INIT_HEAP_SIZE, GUILE_INIT_HEAP_SIZE2 to select heap size if
997 they exist. (This may be replaced by a Scheme level mechanism in
998 the future.)
999
1000 * objprop.c (s_scm_set_object_property_x): Use scm_assq instead of
1001 scm_assoc. (Thanks to Keisuke Nishida.)
1002
1003 2000-03-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1004
1005 * eval.c, lang.c, lang.h (scm_lisp_nil, scm_lisp_t): Renamed from
1006 scm_nil, scm_t. (Thanks to Keisuke Nishida.)
1007
1008 2000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1009
1010 * init.c (scm_boot_guile_1): Use same initial segment size for
1011 1-word and 2-word segments. Having the smaller size causes Guile
1012 to GC too often. Obviously something needs to be done to allow
1013 for a smaller 2-word segment without this to happen. (The amount
1014 of heap for each type should be automatically adapted to the
1015 application somehow.)
1016
1017 [Almost all of these changes should be documented in the NEWS
1018 file.]
1019
1020 * gc.h (scm_freelist_t): New type.
1021
1022 * pairs.h (SCM_NEWCELL, SCM_NEWCELL2): Use new style freelists.
1023
1024 * gc.c (SCM_INIT_HEAP_SIZE): Changed from 32768 --> 40000 so that
1025 all of Guile basics fits into one segment and there suitable room
1026 for work.
1027 (SCM_EXPHEAP): Now takes an argument. Grow by a factor of 1.5
1028 instead of 2.
1029 (scm_freelist, scm_freelist2): Now of type scm_freelist_t.
1030 Freelists now contains information about object span, cells
1031 collected and amount of cells in heap segments belonging to the
1032 list.
1033 (scm_heap_size, scm_gc_cells_collected): Removed.
1034
1035 * init.c (scm_boot_guile_1): Make 2-word segment 8K (512 cells).
1036
1037 * Makefile.am (libguile_la_LDFLAGS): Bumped library version
1038 number.
1039
1040 * __scm.h eq.c, eval.c, gc.c, gc.h, gh_data, hash.c, numbers.c,
1041 numbers.h, objects.c, ramap.c, random.c, unif.c, unif.h: Extensive
1042 rewrite of handling of real and complex numbers.
1043 (SCM_FLOATS, SCM_SINGLES): These #ifdef conditionals have been
1044 removed along with the support for floats. (Float vectors are
1045 still supported.)
1046
1047 * tags.h (scm_tcs_bignums): Removed.
1048 (scm_tc16_bigpos, scm_tc16_bigneg): Replaced by scm_tc16_big.
1049 Use SCM_BIGSIGN(x) to test for sign!
1050 (scm_tc16_big): The new bignum type.
1051 (SCM_REAL_PART, SCM_IMAG_PART): Removed.
1052
1053 * numbers.h (SCM_BIGSIGN): Sign moved to bit 16.
1054 (scm_makdbl): Deprecated.
1055 (SCM_NEWREAL, SCM_NEWCOMPLEX): New macros.
1056 (SCM_SINGP): Deprecated.
1057 (SCM_FLO): Removed.
1058 (SCM_INEXP, SCM_CPLXP): Deprecated.
1059 (SCM_INEXACTP, SCM_COMPLEXP): New macros.
1060 (SCM_COMPLEX_REAL, SCM_COMPLEX_IMAG): Renamed from
1061 SCM_REAL, SCM_IMAG (and now only valid for complex numbers).
1062 (SCM_REAL, SCM_IMAG): New, *deprecated*, selectors which work both
1063 for doubles and complex numbers.
1064 (SCM_REAL_VALUE): New selector for doubles.
1065 (scm_double_t, scm_complex_t): New types.
1066 (scm_dbl): Removed.
1067
1068 * numbers.c (scm_floprint, scm_floequal): Removed.
1069 (scm_print_real, scm_print_complex, scm_real_equalp,
1070 scm_complex_equalp): New functions.
1071
1072 * unif.c (scm_makflo): Removed.
1073
1074 * smob.h (SCM_SMOB_PREDICATE): New macro.
1075 (SCM_NEWSMOB2, SCM_RETURN_NEWSMOB2, SCM_NEWSMOB3,
1076 SCM_RETURN_NEWSMOB3): New macros.
1077
1078 1999-11-21 Michael Livshin <mlivshin@bigfoot.com>
1079
1080 The following changes implement primitive support for double cells
1081 (i.e. four-word cells) and change the representation of some
1082 things to multi-cells instead of cons+malloc. (Applied and
1083 modified by mdj.)
1084
1085 * pairs.h (SCM_NEWCELL2): double-cell variants of SCM_NEWCELL.
1086 (SCM_CELL_WORD, SCM_CELL_WORDLOC, SCM_SET_CELL_WORD): primitive
1087 multi-cell access macros (used by the ones below).
1088 (SCM_CELL_WORD[0-3], SCM_SET_CELL_WORD[0-3]): multi-cell access
1089 macros.
1090
1091 * gc.c (scm_freelist2): multi-cell freelists.
1092 (inner_map_free_list): map_free_list, parameterized on ncells.
1093 "nn cells in segment mm" was misleading for ncells > 1; changed to
1094 "objects". still print cells too, though.
1095 (scm_map_free_list): rewritten using inner_map_free_list.
1096 (scm_check_freelist): get freelist as parameter, since now we have
1097 more than one.
1098 (scm_debug_newcell2): multi-cell variants of
1099 scm_debug_newcell.
1100 (scm_gc_for_newcell): take ncells and freelist pointer as
1101 parameters.
1102 (scm_gc_mark): add case for tc7_pws (procedures with setters are
1103 now double cells).
1104 (scm_gc_sweep): don't free the float data, since it's not malloced
1105 anymore.
1106 (init_heap_seg): didn't understand what n_new_objects stood for,
1107 so changed to n_new_cells.
1108 (make_initial_segment): new function, makes an initial segment
1109 according to given ncells.
1110 (scm_init_storage): call make_initial_segment, for ncells={1,2,3}.
1111
1112 * numbers.c (scm_makdbl): no malloc'ing needed, so the
1113 {DEFER,ALLOW}_INTS thing removed.
1114
1115 * numbers.h (struct scm_dbl): changed to represent a double cell,
1116 with the number in the second half.
1117
1118 * dynwind.c: changed the wind-guards representation to double
1119 cell.
1120
1121 * procs.c, procs.h: changed the procedure-with-setter representation
1122 to double cell.
1123
1124 * async.c, async.h: made async representation a double cell.
1125
1126 * dynl.c: made dynamic_obj representation a double cell.
1127
1128 2000-03-13 Gary Houston <ghouston@arglist.com>
1129
1130 * ports.c (flush_void_port): renamed to flush_port_default.
1131 (end_input_void_port): renamed to end_input_default.
1132
1133 * init.c (scm_standard_stream_to_port): create a void port instead
1134 of opening /dev/null if the standard file descriptors are bad.
1135 advantages: no portability problems, doesn't waste a file descriptor,
1136 simplifies the code (thanks to Marius for the idea).
1137
1138 * vports.c (s_scm_make_soft_port): call scm_port_non_buffer.
1139
1140 * void ports: make reading from a void port give EOF instead of
1141 segv:
1142 * ports.c (s_scm_sys_make_void_port): modified docstring.
1143 (fill_input_void_port): new proc.
1144 (scm_init_ports): set up fill_input_void_port.
1145 * ports.c (scm_port_non_buffer): new proc.
1146 (scm_void_port): call scm_port_non_buffer.
1147
1148 * fports.c (scm_setvbuf): docstring: remove the fcntl documentation
1149 which was incorrectly appended.
1150
1151 2000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1152
1153 * guile-doc-snarf.in: Don't use absolute path for `sed'. (Note
1154 that we can't use autoconf for this. Autoconf itself relies on
1155 the existence of `sed' somewhere on your path.) (Thanks to Dirk
1156 Herrman.)
1157
1158 2000-03-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1159
1160 * Makefile.am (libguile_la_SOURCES): Moved iselect.c here from
1161 EXTRA_libguile_la_SOURCES.
1162
1163 * iselect.h: Always declare scm_internal_select.
1164
1165 * iselect.c (scm_internal_select): Added SCM_ASYNC_TICK at the
1166 end. Also let scm_internal_select be a real function also when
1167 not using threads.
1168
1169 * __scm.h (SCM_TICK): Oops! Forgot to put SCM_ASYNC_TICK here...
1170
1171 2000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1172
1173 * __scm.h (SCM_ALLOW_INTS, SCM_REALLOW_INTS): Removed call to
1174 SCM_ASYNC_TICK. (This is a preparation for POSIX threads support,
1175 and kind of an experiment: Will this cause problems?)
1176
1177 Sun Mar 12 13:26:30 2000 Greg J. Badros <gjb@cs.washington.edu>
1178
1179 * Makefile.am: Added *.doc to DISTCLEANFILES.
1180
1181 2000-03-12 Gary Houston <ghouston@arglist.com>
1182
1183 * fports.c (scm_fdes_to_port): call fcntl F_GETFL to test that
1184 the fdes is valid before doing anything else. check that
1185 the file descriptor supports the modes required.
1186 (scm_fport_buffer_add): don't throw an error if fstat doesn't
1187 work: just use the default buffer size.
1188
1189 * throw.c: change an outdated comment about scm_internal_catch
1190 BODY: it doesn't take a jumpbuf arg.
1191
1192 * init.c (scm_standard_stream_to_port): install a handler in case
1193 scm_fdes_to_port throws an error. don't check here whether the
1194 file descriptor is valid, since scm_fdes_to_port will do that.
1195 set the revealed count depending on whether the port got the
1196 standard file descriptor.
1197 (stream_body_data): new type.
1198 (stream_body, stream_handler): new procs.
1199
1200 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1201
1202 * stacks.c, stacks.h, struct.c, tags.h, unif.c (scm_bits_t):
1203 Renamed from SCMWORD.
1204
1205 * tags.h (SCM_NCELLP): Removed (SCMWORD).
1206
1207 * arbiters.c (SCM_ARB_LOCKED): Use SCM_UNPACK_CAR.
1208
1209 * async.c, boolean.h, debug.c, dynl.c, dynwind.c, eval.c, eval.h,
1210 feature.h, filesys.h, fluids.h, fports.c, fports.h, gc.c, gc.h,
1211 hash.c, keywords.h, macros.c, numbers.c, numbers.h, objects.c,
1212 objects.h, options.c, pairs.h, ports.c, ports.h, print.c,
1213 procs.h, ramap.c, read.c, smob.c, smob.h, srcprop.h, stacks.c,
1214 stacks.h, strports.c, struct.c, struct.h, tag.c, tags.h,
1215 throw.c, unif.c, unif.h, variable.h, vectors.h, weaks.c,
1216 weaks.h (SCM_PACK, SCM_UNPACK, SCM_UNPACK_CAR): Renamed from
1217 SCM_ASSCM, SCM_ASWORD, SCM_CARW).
1218
1219 * numbers.h (SCM_SRS, SCM_INUM): Corrected SCM_ASSCM/ASWORD fixes.
1220
1221 * alist.c, eval.c, net_db.c, posix.c, print.c, snarf.h, struct.c,
1222 tags.h: Fixed copyright notices.
1223
1224 * struct.c, coop-threads.c: SCM_ASSCM/ASWORD fixes.
1225
1226 2000-03-12 Marius Vollmer <mvo@zagadka.ping.de>
1227
1228 * init.c (scm_standard_stream_to_port): Check whether the file
1229 descriptor is valid and substitute "/dev/null" when not.
1230
1231 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1232
1233 * coop-defs.h (struct timespec): Conditionally defined.
1234
1235 * coop.c (coop_condition_variable_timed_wait_mutex): Use ETIMEDOUT
1236 instead of ETIME.
1237
1238 * readline.c (match_paren): Bugfix: First arg to select is not
1239 number of descriptors but the number of the highest descriptor +
1240 1.
1241
1242 This is a preliminary attempt at a cleanup of the threads support
1243 code. It moves things to better places, makes arguments more
1244 consistent with the POSIX API (which is used in GNOME's glib), and
1245 adds new functionality.
1246
1247 * readline.c (scm_init_readline): Added new arg to scm_init_mutex.
1248
1249 * coop-defs.h (scm_mutex_trylock): New macro: alias for
1250 coop_mutex_trylock.
1251 (scm_cond_init): Changed definition to
1252 coop_new_condition_variable_init.
1253
1254 * coop.c: #include <errno.h>
1255 (coop_timeout_qinsert): Moved here from iselect.c
1256 (coop_new_mutex_init, coop_new_condition_variable_init): New
1257 functions. The strange names are temporary. Use scm_mutex_init
1258 and scm_cond_init instead.
1259 (coop_mutex_trylock): New function. Uses errno.h:EBUSY. errno.h
1260 is ANSI C, but should we check for individual error codes in
1261 configure.in?
1262 (coop_condition_variable_timed_wait_mutex): New function.
1263 (coop_key_create, coop_setspecific, coop_getspecific,
1264 coop_key_delete): New functions.
1265
1266 * iselect.c (coop_timout_qinsert): Moved to coop.c
1267
1268 2000-03-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1269
1270 * pairs.h (SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR,
1271 SCM_SETOR_CDR): Corrected SCM_ASSCM/WORD fixes.
1272
1273 * tags.h (SCM_VOIDP_TEST): Renamed from VOIDP_TEST.
1274 Layout cleanups.
1275
1276 * objects.h (SCM_CLASS_FLAGS, SCM_OBJ_CLASS_FLAGS,
1277 SCM_SET_CLASS_INSTANCE_SIZE), struct.h (SCM_STRUCT_VTABLE_DATA),
1278 proc.h (SCM_CLOSCAR): SCM_ASSCM/WORD fixes.
1279
1280 * eval.c (scm_lookupcar1): Inserted SCM_ASWORD in expressions
1281 dealing with ilocs.
1282
1283 2000-03-11 Dale P. Smith <dpsm@en.com>, applied by Greg J. Badros, <gjb@cs.washington.edu>
1284
1285 * numbers.c (scm_copy_big_dec, scm_copy_smaller, scm_big_ior,
1286 scm_big_xor, scm_big_and, scm_big_test): Added new lowlevel bignum
1287 logical functions from SCM.
1288
1289 (logand, logior, logxor, logtest, logbit?): Extended scheme
1290 logical functions to use bignums from SCM.
1291
1292 (lognot): Removed call to `SCM_VALIDATE_INUM' that prevented
1293 lognot from using bignums.
1294
1295 Thu Mar 9 11:33:25 2000 Greg J. Badros <gjb@cs.washington.edu>
1296
1297 * vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
1298 eliminating some warnings.
1299
1300 * unif.c, strports.c, print.c, options.c: Fix some warnings on
1301 mis-use of SCM/long
1302
1303 * gc.c, gc.h: Added scm_return_first_int(), and added comment re:
1304 what the scm_return_first* functions do.
1305
1306 2000-03-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>, applied by Greg J. Badros, <gjb@cs.washington.edu>
1307
1308 * libguile/*.[ch]: make a distinction between SCM as a generic
1309 name for a Scheme object (now a void*), and SCM as 32 bit word for
1310 storing tags and immediates (now a long int). Introduced
1311 SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious
1312 code in the process: arbiter.c (use macros), unif.c (scm_array_p),
1313
1314 Wed Mar 8 10:15:59 2000 Greg J. Badros <gjb@cs.washington.edu>
1315
1316 * numbers.c: Use SCM_VALIDATE_LONG_COPY, and longs, not ints, in
1317 various logXXX primitives. Thanks Eric Moore!
1318
1319 Tue Mar 7 08:05:22 2000 Greg J. Badros <gjb@cs.washington.edu>
1320
1321 * run-test, remaining-docs-needed: Added these scripts. The
1322 second one is only temporary until the docstring additions are
1323 complete. run-test may best live on, but is here mostly for
1324 convenience and awareness for now.
1325
1326 * hash.c: Docs, minor cleanup patch from Dirk Herrman.
1327
1328 Thu Mar 2 16:06:58 2000 Greg J. Badros <gjb@cs.washington.edu>
1329
1330 * error.h, error.c: Added `scm_wrong_type_arg_msg' to support
1331 displaying the expected type. Use SCM_LISTn in a couple places
1332 instead of scm_cons-ing by hand.
1333
1334 * __scm.h: Added SCM_ASSERT_TYPE macro.
1335
1336 * validate.h, scm_validate.h: Added the former, as a renamed
1337 version of the latter with SCM_ASSERT_TYPE used in
1338 SCM_MAKE_VALIDATE (instead of just SCM_ASSERT)
1339
1340 * Makefile.am: Rename scm_validate.h to validate.h.
1341
1342 * *.c, *.h: Include validate.h, not scm_validate.h (old name's
1343 prefix was superfluous).
1344
1345 Thu Mar 2 15:33:12 2000 Greg J. Badros <gjb@cs.washington.edu>
1346
1347 * hashtab.c: Improved documentation for lots of functions. Added
1348 handwritten docs for `hash-fold'.
1349
1350 Thu Mar 2 15:13:25 2000 Greg J. Badros <gjb@cs.washington.edu>
1351
1352 * list.c: Added hand-written docs for `del{q,v,ete}1!'.
1353
1354 Thu Mar 2 12:38:30 2000 Greg J. Badros <gjb@cs.washington.edu>
1355
1356 * list.c: Moved append docs to append! Thanks Dirk Hermann. Also,
1357 added append docs from R4RS.
1358
1359 * strings.c: Docstring typo fix, + eliminate unneeded IMP tests.
1360 Thanks Dirk Hermann!
1361
1362 * chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and
1363 deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann!
1364
1365 * *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout.
1366 Drop use of SCM_P for function prototypes... assume an ANSI C
1367 compiler. Thanks Dirk Hermann!
1368
1369 Sat Feb 19 12:20:12 2000 Greg J. Badros <gjb@cs.washington.edu>
1370
1371 * ports.c: Made `set-port-column!' and `set-port-line!' each
1372 return SCM_UNSPECIFIED instead of a (not-scheme-object) integer
1373 that caused a seg fault. Also fixed `set-port-column!'s
1374 docstring. Thanks Han-Wen Nienhuys for finding the bug!
1375
1376 Sun Feb 13 19:11:42 2000 Greg J. Badros <gjb@cs.washington.edu>
1377
1378 * arbiters.c, eq.c, gc.c, guardians.c, list.c, ports.c, print.c,
1379 regex-posix.c, scmsigs.c, stime.c, strings.c, variable.c, stime.c,
1380 strings.c, variable.c: Added lots of documentation, cleaned up
1381 some existing documentation. Occasionally changed formal params
1382 to match docs. Also folded an #ifdef into the inners of a
1383 primitive instead of having two copies of the primitive
1384 (`get-internal-real-time', from stime.c)
1385
1386 Sun Feb 13 18:12:19 2000 Greg J. Badros <gjb@cs.washington.edu>
1387
1388 * ports.c: Added docs for primitives missing them. Written by
1389 hand.
1390
1391 Sun Feb 13 09:40:36 2000 Greg J. Badros <gjb@cs.washington.edu>
1392
1393 * guile-doc-snarf.in: Use ${AWK} -f guile-func-name-check, not
1394 just execing guile-func-name-check. Thanks Michael Livshin!
1395
1396 Thu Feb 10 11:43:23 2000 Greg J. Badros <gjb@cs.washington.edu>
1397
1398 * guile-snarf.awk.in: Tweak to work with Sun/HP awk, removed some
1399 dead code. Patch from Michael Livshin.
1400
1401 * guile-doc-snarf.in: Tweak to work with Sun/HP sh. Patch from
1402 Michael Livshin.
1403
1404 2000-02-09 Gary Houston <ghouston@arglist.com>
1405
1406 * init.c (scm_init_standard_ports): when stdout is a tty, make the
1407 current-output-port unbuffered by default. this is less confusing
1408 for interactive use. it was line-buffered because of a
1409 performance problem with unbuffered ports, but I think it will be
1410 OK now.
1411
1412 2000-02-08 Gary Houston <ghouston@arglist.com>
1413
1414 * __scm.h: don't define long_long or ulong_long if HAVE_LONG_LONGS
1415 is not defined.
1416
1417 * stime.c (scm_localtime, scm_mktime): if neither HAVE_TM_ZONE nor
1418 HAVE_TZNAME are defined, use an empty string instead of giving two
1419 spurious compile-time errors.
1420
1421 Tue Feb 8 13:57:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1422
1423 * ports.c: Doc patches from Richard Kim. Pasted from MIT Scheme.
1424 Thanks Richard!
1425
1426 Mon Feb 7 09:07:31 2000 Greg J. Badros <gjb@cs.washington.edu>
1427
1428 * macros.c: Doc patches from Richard Kim. Pasted from scm.texi.
1429
1430 Sun Feb 6 20:26:21 2000 Greg J. Badros <gjb@cs.washington.edu>
1431
1432 * pairs.c: Doc patches from Richard Kim. Pasted from MIT Scheme
1433 (which is GNU GPL'd).
1434
1435 2000-01-31 Gary Houston <ghouston@arglist.com>
1436
1437 * strings.h: don't use SCM_P. don't include <string.h>.
1438 * error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>.
1439
1440 * strings.c (scm_string_ref): make the 2nd argument compulsory.
1441 previously it defaulted to zero for no good reason that I can see.
1442 use a local variable for SCM_INUM (k). replace
1443 SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY.
1444
1445 (scm_makfromstr): cosmetic changes.
1446
1447 (scm_string): Accept only chars in the list, not strings, for
1448 conformance to R5RS (particularly for list->string, which is
1449 supposed to be the inverse of string->list.) remove
1450 SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since
1451 scm_makstr handles the cell allocation. when reporting wrong-type
1452 arg, don't report the position as 1.
1453
1454 * posix.c (scm_init_posix): intern PIPE_BUF if it's defined.
1455
1456 2000-01-29 Gary Houston <ghouston@arglist.com>
1457
1458 * posix.c (scm_pipe): rewrote the docstring.
1459
1460 * filesys.c (scm_select, retrieve_select_type, get_element,
1461 fill_select_type, set_element): modified so that Scheme
1462 "select" tests port buffers for the ability to provide input
1463 or accept output. Previously only the underlying file descriptors
1464 were checked. Rewrote the docstring.
1465
1466 Thu Jan 27 10:14:25 2000 Greg J. Badros <gjb@cs.washington.edu>
1467
1468 * vectors.c, symbols.c, strorder.c: Documentation cut and pasted
1469 from Gregg Reynolds. Thanks Gregg!
1470
1471 Thu Jan 27 09:59:38 2000 Greg J. Badros <gjb@cs.washington.edu>
1472
1473 * strop.c (scm_i_index): Obfuscated commented-out SCM_DEFINE by
1474 adding "x" prefix to the line so that guile-func-name-check
1475 doesn't complain unnecessarily.
1476
1477 Wed Jan 26 17:33:52 2000 Greg J. Badros <gjb@cs.washington.edu>
1478
1479 * throw.c: Factor out an #ifdef/#else/#endif choice more finely
1480 for maintainability.
1481
1482 * strop.c: Documentation added by Gregg A. Reynolds. Pasted in
1483 from qdocs, RnRs.
1484
1485 Wed Jan 26 10:02:11 2000 Greg J. Badros <gjb@cs.washington.edu>
1486
1487 * tag.c: Added doc for `tag', but mark as deprecated since Mikael
1488 suggests removing tag.c altogether (and using a new `class-of'
1489 instead).
1490
1491 * strings.c: Added documentation from Gregg A. Reynolds. Edited
1492 a bit by me to use FOO instead of @var{foo} and to have the
1493 summary come before preconditions on input. Also dropped trailing
1494 (rnrs) note.
1495
1496 * gsubr.c: Do not use SCM_DEFINE for `gsubr-apply'. Register the
1497 function with scm_make_subr_opt w/ last arg of 0 so it is not
1498 visible at the Scheme level. Mikael says that this is the right
1499 thing because the first arg to the proc is the guts of a compiled
1500 closure and shouldn't be exposed to the Scheme level.
1501
1502 Tue Jan 25 17:15:47 2000 Greg J. Badros <gjb@cs.washington.edu>
1503
1504 * sort.c: typo in comment fixed.
1505
1506 * keywords.c: Added documentation.
1507
1508 * guardians.c: Added documentation (could be better).
1509
1510 * gc.c: Added docs for gc-set-debug-check-freelist.
1511
1512 * eq.c: Added docs for eq?, eqv? equal? abridged from R4RS.
1513
1514 * boolean.c: Added docs for `not', `boolean?' (by hand).
1515
1516 Tue Jan 25 13:28:56 2000 Greg J. Badros <gjb@cs.washington.edu>
1517
1518 * random.c: Added documentation, from SLIB page:
1519 http://angela.ctrl-c.liu.se/~calle/scheme/slib_toc.html
1520
1521 Mon Jan 24 17:50:20 2000 Greg J. Badros <gjb@cs.washington.edu>
1522
1523 * variable.c, version.c: Added documentation, written by hand
1524 since I could not find anything already written that was
1525 relevant.
1526
1527 2000-01-23 Gary Houston <ghouston@arglist.com>
1528
1529 * filesys.c (scm_chown): omit port/fdes support if HAVE_FCHOWN is
1530 not defined (thanks to Richard Y. Kim).
1531
1532 Thu Jan 20 13:00:38 2000 Greg J. Badros <gjb@cs.washington.edu>
1533
1534 * Makefile.in: Removed, this is auto-generated.
1535
1536 Thu Jan 20 11:33:47 2000 Dirk Hermann <dirk@ida.ing.tu-bs.de> --applied 01/20/00 gjb
1537
1538 * list.c: Put some variable initialization code at the point of
1539 declaration; Added a comment for list*; Formatting changes.
1540
1541 * load.c: use SCM_NNULLP to make sure the end of a list is not
1542 reached yet.
1543
1544 2000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1545
1546 * backtrace.c (scm_display_error_message): Bugfix: Don't use
1547 result of scm_list_p as C boolean.
1548 (scm_display_error_message, scm_set_print_params_x): Use new
1549 validation macros. (Thanks to Dirk Herrmann.)
1550
1551 * net_db.c (scm_resolv_error): Cast result from hstrerror.
1552
1553 * strports.c (st_end_input): Inserted parenthesis to get operator
1554 grouping correct.
1555
1556 * list.h (scm_init_list): Removed SCM_P around prototypes.
1557
1558 * fports.c, list.c, numbers.c, ports.c, stime.c, symbols.c,
1559 filesys.c, posix.c: Converted docstrings to ANSI C format and
1560 escaped " occurring inside string literals.
1561
1562 Tue Jan 18 13:21:08 2000 Mikael Djurfeldt <mdj@r11n07-s.pdc.kth.se>
1563
1564 * posix.c (scm_mknod): Escape " occuring inside docstring.
1565
1566 2000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1567
1568 * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
1569 evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
1570 keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
1571 objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
1572 ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
1573 stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
1574 symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
1575 weaks.c: Converted docstrings to ANSI C format.
1576
1577 * filesys.c (scm_chmod), simpos.c (scm_system), version
1578 (scm_version), vports (scm_make_soft_port): Escape " occuring
1579 inside docstring.
1580
1581 Mon Jan 17 11:41:22 2000 Greg J. Badros <gjb@cs.washington.edu>
1582
1583 * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
1584 SCM_VALIDATE_LONG_COPY
1585
1586 * numbers.c: Use SCM_VALIDATE_ULONG_COPY, instead of
1587 SCM_VALIDATE_INUM_COPY to let bigger numbers be used. Rename a
1588 couple of formal arguments (and fix their uses) to make arguments
1589 match the documentation.
1590
1591 2000-01-14 <mstachow@alum.mit.edu>
1592
1593 * Makefile.am: Augment path when running guile-doc-snarf so
1594 guile-func-name-check is found.
1595
1596 Fri Jan 14 09:34:55 2000 Greg J. Badros <gjb@cs.washington.edu>
1597
1598 * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
1599 def, not SCM_MAKINUM(def); thanks Janis Bzerins!
1600
1601 Wed Jan 12 00:06:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1602
1603 * net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's
1604 the way guile-1.3.4 worked, but #if 0 out the version using
1605 SCM_VALIDATE_INUM_COPY for stricter testing.
1606
1607 Tue Jan 11 18:24:18 2000 Greg J. Badros <gjb@cs.washington.edu>
1608
1609 * guile-doc-snarf.in: Use new $fullfilename for running
1610 guile-func-name-check, and put "$fullfilename" and "$filename" in
1611 quotes at uses to make sure re-splitting on whitespace does not
1612 occur (so filenames w/ embedded whitespace would work okay, though
1613 I sure hope we never have to deal with that! :-) ). Thanks to
1614 Mikael for pointing out the source_dir != build_dir was broken.
1615
1616 Tue Jan 11 17:42:40 2000 Greg J. Badros <gjb@cs.washington.edu>
1617
1618 * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
1619 SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num. Added
1620 SCM_COERCE_ROSTRING macro. Added SCM_VALIDATE_NONEMPTYLIST
1621 macro. Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
1622 variants.
1623
1624 * ports.c (scm_port_closed_p): Validate that the arg is a PORT,
1625 then return whether it's an open port (was validating that it was
1626 an open port -- this was a bug I introduced back in December, but
1627 my careful reading of diffs caught it).
1628
1629 * numbers.c: Recombine the two conditional-compilation paths for
1630 all the log* primitives -- they were split based on #ifndef
1631 scm_long2num; factored out a SCM_LOGOP_RETURN macro, and fixed
1632 some bugs and inconsistencies in the two sets of implementations.
1633 (scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!
1634
1635 * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
1636 SCM_VALIDATE_INUM_COPY once where it should've been used.
1637
1638 * fluids.c (scm_internal_with_fluids): Use
1639 SCM_VALIDATE_LIST_COPYLEN.
1640
1641 * filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
1642 this is questionable as it relaxes type safety, but other changes
1643 were useful and all SCM_NUM2LONG's should probably be
1644 revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.
1645
1646 * evalext.c: line-break change on 1 line.
1647
1648 * eval.c (nconc2last): Takes a non-empty list as its first
1649 argument, not just a list.
1650
1651 * dynl.c: Use new SCM_COERCE_ROSTRING macro.
1652
1653 Tue Jan 11 15:44:23 2000 Greg J. Badros <gjb@cs.washington.edu>
1654
1655 * dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
1656 net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
1657 where possible.
1658
1659 * symbols.c (scm_sysintern0): Fixed the function name in a
1660 scm_misc_error invocation.
1661
1662 * print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
1663 use scm_return_first to ward off latent GC bug that Mikael caught.
1664
1665 * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
1666 used before but should've been.
1667
1668 2000-01-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1669
1670 * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
1671 SCM_FUNC_CAST_ARBITRARY_ARGS.
1672
1673 Tue Jan 11 13:44:07 2000 Greg J. Badros <gjb@cs.washington.edu>
1674
1675 * guile-func-name-check.in: Added this script to statically check
1676 #define FUNC_NAME, #undef FUNC_NAME in the source.
1677
1678 * sort.c, posix.c: Fix #undef FUNC_NAME lines to not have trailing
1679 redundant comment, semicolon; caught by new guile-func-name-check
1680 script.
1681
1682 * debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
1683 Caught by new guile-func-name-check-script.
1684
1685 * Makefile.am: Added guile-func-name-check to bin_SCRIPTS
1686
1687 * ramap.c: Fix #if 0'd out code to be syntactically acceptable to
1688 guile-func-name-check.
1689
1690 * guile-doc-snarf.in: Run guile-func-name-check on the file before
1691 doing the snarf.
1692
1693 Tue Jan 11 11:31:10 2000 Greg J. Badros <gjb@cs.washington.edu>
1694
1695 * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
1696 port function take const void*, not void*.
1697
1698 Tue Jan 11 11:18:07 2000 Greg J. Badros <gjb@cs.washington.edu>
1699
1700 * scm_validate.h, chars.c, ports.c, print.c, read.c, strings.c,
1701 strop.c: Use SCM_VALIDATE_ICHR, SCM_VALIDATE_ICHR_COPY instead of
1702 SCM_VALIDATE_CHAR, SCM_VALIDATE_CHAR_COPY. Change made for
1703 consistency with the other macros dealing with immediate
1704 characters. (Similar to INT -> INUM change a week or so ago).
1705
1706 Tue Jan 11 10:41:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1707
1708 * dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,
1709 net_db.c, read.c, socket.c: Update error messages to use ~A for
1710 %s, ~S for %S to work with new `simple-format' format and be
1711 standardized better.
1712
1713 * print.h, print.c (scm_simple_format): Added `simple-format'
1714 primitive. It's the old scm_display_error, with ARGS now a rest
1715 parameter, and the destination first instead of last (and a couple
1716 new capabilities inspired by `format' -- #t as destination means
1717 current-output-port, #f means return the formatted text as a
1718 string.
1719
1720 * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.
1721
1722 * backtrace.c (scm_display_error_message): Rewrote to use
1723 scm_simple_format() procedure.
1724
1725 * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
1726
1727 2000-01-09 Marius Vollmer <mvo@zagadka.ping.de>
1728
1729 Finally applied the libltdl patch from Thomas Tanner, with slight
1730 modifications.
1731
1732 * DYNAMIC-LINKING: Removed because it is obsolete.
1733 * dynl.c: Use ANSI prototypes.
1734 (sysdep_dynl_link): Use lt_dlopenext instead of lt_dlopen.
1735 * scmconfig.h.in: Do not change, as it is automatically generated.
1736
1737 1999-07-25 Thomas Tanner <tanner@ffii.org>
1738
1739 * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
1740 (obsolete)
1741 * Makefile.am: likewise, add INCLTDL (libltdl headers) to
1742 INCLUDES, set dlpreopened files in LDFLAGS, link libguile
1743 against libltdl
1744 * dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
1745 * guile.c: register preloaded modules
1746 * scmconfig.h.in: remove obsolete symbols
1747
1748 2000-01-09 Gary Houston <ghouston@arglist.com>
1749
1750 * These changes should make it unnecessary to call tzset from
1751 Scheme after modifying the TZ environment variable, even if the
1752 system date facilities cache the value.
1753 * stime.c (setzone, scm_localtime): added comments.
1754 (tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
1755 (setzone): don't call tzset.
1756 (restorezone): call tzset only if HAVE_TZSET is defined.
1757 (scm_tzset): don't define if HAVE_TZSET not defined. Change the
1758 doc string to indicate that this procedure isn't likely to do
1759 anything useful.
1760 (scm_localtime, scm_strftime, scm_mktime): call tzset if
1761 LOCALTIME_CACHE is defined.
1762
1763 2000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1764
1765 * posix.c (scm_sync): Return SCM_UNSPECIFIED.
1766
1767 2000-01-09 Gary Houston <ghouston@arglist.com>
1768
1769 * eval.c: define scm_unbound_variable_key ('unbound-variable).
1770 scm_lookupcar1: throw an error with key 'unbound-variable instead
1771 of 'misc-error when an unbound variable is encountered.
1772
1773 * filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
1774 scm_symlink, scm_readlink, scm_lstat),
1775 posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
1776 scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
1777 scm_sync),
1778 simpos.c (scm_system),
1779 stime.c (scm_times, scm_strptime):
1780 move the HAVE_XXX feature tests out of the procedure bodies.
1781 don't use SCM_SYSMISSING.
1782 scm_validate.h (SCM_SYSMISSING): removed.
1783 error.h, error.c (scm_sysmissing): comment that this is deprecated.
1784 see ChangeLog entry for 1999-12-28.
1785
1786 Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
1787
1788 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
1789
1790 Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1791
1792 * backtrace.c: Fix spelling typo in a comment.
1793
1794 * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
1795 text. Reformatted some of the expansions.
1796
1797 Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1798
1799 * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
1800 report the position of the argument.
1801
1802 * error.h, error.c (scm_out_of_range_pos): Added this function to
1803 take extra "pos" argument, the position number of the errant
1804 argument.
1805
1806 * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
1807
1808 * snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
1809 and SCM_SNARFING. Also put the %%% in the SCM_INIT since Mikael
1810 prefers that and I'm reasonably indifferent.
1811
1812 Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
1813
1814 * snarf.h: Factor out differences between C++ and non-C++ into
1815 SCM_FUNC_CAST_ARBITRARY_ARGS macro. Modify all the snarf macro
1816 definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
1817 Mikael's macros, below, but changed names and SCM_SNARFING no
1818 longer expands to include %%% -- that must appear in the argument
1819 so that the token appears at the call-site as a reminder).
1820
1821 2000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1822
1823 * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
1824 snarf macro definitions.
1825
1826 2000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1827
1828 * chars.c (scm_integer_to_char): Use Greg's nice
1829 SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
1830 adherence to R5RS.
1831
1832 Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
1833
1834 * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
1835
1836 Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1837
1838 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
1839 instead of GUILE_PROC.
1840
1841 Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
1842
1843 * alist.c: Do not report mismatch errors on some uses of `tmp' (do
1844 this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
1845 macro call.
1846
1847 Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
1848
1849 * scm_validate.h: Remove some redundant NIMP tests.
1850
1851 * alist.c: minimize scope of the tmp variables, and initialize
1852 them when declared. The strange SCM_NIMP tests are replaced by
1853 SCM_CONSP tests that more closely reflect the intended semantics.
1854 However, we don't get a performance penalty here, because the
1855 SCM_CONSP test was performed by the ALISTCELL test anyway. * The
1856 extremely ugly use of ASRTGO macros was removed: The calls to
1857 ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
1858 label parameter that only exists when SCM_RECKLESS is not defined.
1859 This works, because ASRTGO itself is defined in a way that it only
1860 makes use of the label parameter if SCM_RECKLESS is not defined
1861 (shudder!). Does guile make at all use of the possibility to
1862 define SCM_RECKLESS? * Codesize is likely to be reduced, since
1863 instead of two calls to SCM_ASSERT performed by the ALISTCELL test
1864 we now only get one test.
1865
1866 * list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate. Also use
1867 SCM_NULLP instead of SCM_IMP. Drop use of "register" keyword on
1868 some variables in `list?'. Fix `reverse' and `reverse!'
1869 primitives to handle improper lists better.
1870
1871 Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1872
1873 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
1874 macros and SCM_DEFINE macros to match GNU coding standards.
1875
1876 Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
1877
1878 * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
1879
1880 Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
1881
1882 * *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM for
1883 better consistency with the names of other SCM_VALIDATE_ macros
1884 and better conformance to guile naming policy.
1885
1886 Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
1887
1888 * ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
1889 SCM_VALIDATE instead of 1 to avoid a check on the argument (since
1890 it's not the actual name of the formal).
1891
1892 * guile-snarf.awk.in: Do argument/number mismatch checking and
1893 print warnings in an Emacs compile-mode parseable format.
1894
1895 * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
1896 SCM_OUTOFRANGE as 3rd argument.
1897
1898 * random.c: Fix argument/number mismatch (that I introduced :-( ).
1899
1900 * __scm.h: Do not #define SCM_ARG* when snarfing;
1901 lets us distinguish between 1 and SCM_ARG1 when snarfing as only
1902 the former (using the number) requires the argument to match the
1903 formal in the current argument snarfing check.
1904
1905 * snarf.h: Give new definition of SCM_ASSERT when in
1906 snarfing mode to output a lexically-identifiable sequence that the
1907 guile-snarf.awk script uses to verify argument/position matching.
1908
1909 * ramap.c: Remove extraneous #undef FUNC_NAME.
1910
1911 Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
1912
1913 * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
1914 current version of the same functionality; it writes the .x output
1915 to stdout instead of directly into the file.
1916
1917 Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
1918
1919 * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
1920 posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now
1921 redundant with the safer macros. Patch from Dirk Hermann applied
1922 by hand. Thanks Dirk!
1923
1924 * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
1925 uses in random.c.
1926
1927 * ramap.c: whitespace change.
1928
1929 Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
1930
1931 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
1932 removals from Dirk Hermann.
1933
1934 * alist.c: Rename formals to match the parameter names in the
1935 documentation, updates to documentation. Thanks Dirk Hermann!
1936
1937 2000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1938
1939 * eval.c (SCM_CEVAL): Reverse order of
1940 scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
1941 (Thanks to Brad Knotwell.)
1942
1943 Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
1944
1945 * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
1946 allocated cell.
1947
1948 * pairs.h: Added a comment about the need for the SCM_SETCAR in
1949 SCM_NEWCELL macro.
1950
1951 Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
1952
1953 * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
1954 SCM_NIMP tests that were redundant are now eliminated. Patches
1955 from Dirk Hermann applied by hand.
1956
1957 The ChangeLog continues in the file: "ChangeLog-1996-1999"