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