1 2000-04-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
3 * options.c (scm_options), read.c (recsexpr): Remove redundant
6 * print.c (scm_iprin1): Made the access of the struct vcell
9 * print.h (SCM_PRINT_CLOSURE): Added call to SCM_PACK.
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
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.
20 * strings.c (scm_makstr): Treat the msymbol slots as a field of
23 * struct.h (SCM_SET_VTABLE_DESTRUCTOR): Treat the struct data as
24 a field of scm_bits_t values.
26 * unif.c (l2ra): Don't test result of scm_array_set_x against
27 zero: It is always SCM_UNSPECIFIED.
29 2000-04-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
31 * script.c (scm_compile_shell_switches): Also enable
32 record-positions when given the --debug option. (Thanks to Diego
35 2000-04-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
37 * print.c (ENTER_NESTED_DATA, print_circref, scm_iprlist):
38 Compare SCM's with SCM_EQ_P.
40 * print.c (scm_make_print_state), srcprop.c
41 (scm_source_properties): Use valid scheme object to initialize
44 * print.c (scm_iprin1): Remove redundant calls to SCM_UNPACK.
46 2000-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
56 * gc.c (scm_gc_mark, scm_gc_sweep, scm_unhash_name): Made the
57 mixup of glocs and structs explicit.
59 * gc.c (scm_unprotect_object): Compare SCM's with SCM_EQ_P.
61 2000-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
63 * eval.c (scm_unmemocar): Use macros to test for gloc cell.
64 Minimize scope of variable 'ir'.
66 * eval.h (SCM_IFRAME, SCM_IDIST), weaks.h (SCM_IS_WHVEC_ANY):
67 Added missing call to SCM_UNPACK.
69 2000-04-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
71 * validate.h (SCM_VALIDATE_INUM_RANGE_COPY,
72 SCM_VALIDATE_NUMBER_COPY): New macros.
74 2000-04-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
76 * script.c (scm_compile_shell_switches): Added --debug option.
78 2000-04-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
80 * vectors.c (scm_vector_set_x): Return SCM_UNSPECIFIED (as
83 2000-04-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
85 * ports.h (SCM_INPUT_PORT_P, SCM_OUTPUT_PORT_P): New macros.
86 (SCM_INPORTP, SCM_OUTPORTP): Marked as deprecated.
88 * validate.h (SCM_VALIDATE_INPUT_PORT, SCM_VALIDATE_OUTPUT_PORT):
90 Cleanup of code layout.
92 * ports.c, ports.h (close-input-port, close-output-port): New R5RS
95 2000-04-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
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
102 * continuations.c (grow_stack): Renamed from grow_throw.
104 * continuations.c (copy_stack_and_call): New static function.
106 * continuations.c (scm_dynthrow): Simplified and made static.
108 * continuations.h (scm_dynthrow): Made static.
110 2000-04-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
112 * unif.c, unif.h (shared-array-root, shared-array-offset,
113 shared-array-increments): New primitives.
115 2000-04-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
117 * gc.c (scm_gc_sweep): Simplify the computation of freed memory
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
124 * symbols.h (SCM_SET_SYMBOL_FUNC, SCM_SET_SYMBOL_PROPS): New
127 symbols.c (scm_intern_obarray_soft, msymbolize, scm_symbol_fset_x,
128 scm_symbol_pset_x): Use them.
130 * symbols.c (scm_symbol_hash): Unpack to access SCM raw data.
132 2000-04-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
134 * ports.c (scm_port_print): The port data is read as raw data.
136 * ports.h (SCM_TC2PTOBNUM, SCM_PTOBNUM): Fix SCM/scm_bits_t
139 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
148 * objects.h (SCM_SET_ENTITY_PROCEDURE): New macro.
150 objects.c (scm_set_object_procedure_x): Use it.
152 * struct.c (scm_struct_init): Unused variable 'data' removed.
154 (scm_struct_vtable_p): Redundant SCM_IMP tests removed.
156 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
163 * struct.h (SCM_SET_STRUCT_LAYOUT): New macro.
165 struct.c (scm_make_vtable_vtable): Use it.
167 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
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
176 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
182 2000-04-10 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
184 * objects.h: Don't redeclare scm_call_generic_0 and
185 scm_apply_generic. (Thanks to Tal Tversky.)
187 2000-04-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
193 2000-04-10 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
195 * coop.c (mother): Handled EINTR (the wait has been interrupted by
198 2000-04-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
200 * __scm.h (SCM_WTA_DISPATCH_[012n]): To test whether a SCM value
201 contains a raw zero value it has to be unpacked.
203 * debug.c (with_traps_inner, scm_with_traps): Passing SCM values
204 via void * requires unpacking / packing.
206 * stacks.h (SCM_STACKP): Remove unnecessary SCM_NIMP test and use
207 SCM_EQ_P to compare SCM values.
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
213 * tags.h (SCM_NECONSP): Define in terms of SCM_ECONSP
215 * tags.h (SCM_ECONSP): Clarify the test for glocs. This is still
218 2000-04-05 Michael Livshin <mlivshin@bigfoot.com>
220 * async.[ch]: unexpose low-level async access macros (thanks to
223 * validate.h: move async validation macros to async.c (nobody else
224 needs them anyway), and rename them.
226 2000-04-04 Michael Livshin <mlivshin@bigfoot.com>
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.
232 * async.c: reflect the fact that asyncs are now represented by
233 single heap cell each.
235 2000-04-04 Gary Houston <ghouston@arglist.com>
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
241 2000-04-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
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.
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.
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
273 * numbers.c (scm_odd_p, scm_even_p), variable.c (prin_var): Must
274 unpack SCM values to access their raw contents.
276 * numbers.c (big2str): Eliminate unnecessary casts to SCM.
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
282 * throw.c (printjb): Eliminated unnecessary unpack.
284 * variable.c (make_vcell_variable): Smob data is of type
287 2000-04-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
289 * print.c: Removed promise to rewrite printer code before next
292 2000-04-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
294 * iselect.c (add_fd_sets): Insert empty statement after label.
295 (Thanks to Tim Mooney.)
297 2000-04-03 Michael Livshin <mlivshin@bigfoot.com>
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).
308 2000-04-03 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
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
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.
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.
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.
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.
360 * gc.c (scm_gc_mark): Use SCM_CELL_OBJECT* to access SCM values
361 from cells that are no scheme pairs.
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.
371 * gc.c (scm_init_storage), sort.c (applyless), strop.c
372 (scm_string_to_list): Eliminate unnecessary casts to SCM.
374 * mallocs.c (scm_malloc_obj): Store result of malloc as raw
377 * ports.c (scm_close_all_ports_except): Duplicate documentation
380 * print.c (scm_iprin1): Use SCM_ITAG3.
382 * procs.h (SCM_SET_SUBRNUM): Fix shift direction.
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
390 * tags.h (SCM_PACK): Automatically cast to scm_bits_t.
392 2000-04-02 Gary Houston <ghouston@arglist.com>
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
398 guardians.c: Added more comments and modified the make-guardian
399 docstring. Reordered a few procedures.
401 2000-04-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
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
408 (scm_makprom): Smob data is of type scm_bits_t.
410 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
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.
420 * debug.c (scm_make_debugobj): Don't use SCM_SETCAR to set types.
422 * debug.c (scm_make_memoized), dynl.c (scm_dynamic_link): Smob
423 data is of type scm_bits_t.
425 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
427 * gdbint.c (gdb_maybe_valid_type_p), guardians.c (TCONC_EMPTYP,
428 scm_guardian_zombify): Use SCM_EQ_P to compare SCM values.
430 * guardians.c (GUARDIAN): Use SCM_CELL_WORD_1 for raw data.
432 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
434 * ports.h (scm_port): Change type of stream member to scm_bits_t.
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
442 * ports.h (SCM_SETPTAB_ENTRY, SCM_SETSTREAM): Cast input to
445 2000-03-31 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
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
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.
458 * coop-defs.h (struct coop_t): Removed dummy_mutex.
460 * coop-defs.h, coop-threads.c (struct coop_t): Eliminate
461 `sto'-field when GUILE_PTHREAD_COMPAT is enabled.
463 2000-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
465 * arbiters.c (scm_make_arbiter), async.c (scm_async), dynwind.c
466 (scm_internal_dynamic_wind): Smob data is always of type
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.
473 * async.c (scm_run_asyncs): Use SCM_NULLP to test for the empty
476 * dynwind.c (scm_dowinds): Use SCM_EQ_P to compare SCM values.
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.
481 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
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
489 * boolean.c (scm_boolean_p): Use SCM_BOOLP to determine whether a
490 SCM value is equal to #t or #f.
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.
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
502 * list.c (scm_listify): Use SCM_UNBNDP to test for an unbound
505 2000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
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.
511 * coop.c (coop_create): Set `specific' field, not `data' to NULL.
513 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
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].
519 Note that this implies that smob data has always to be passed as
520 values of type scm_bits_t.
522 2000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
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.
528 * error.c (scm_error): Don't try to throw an error if
529 scm_gc_heap_lock is true.
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.
536 * coop-threads.c (scm_call_with_new_thread, scm_spawn_thread):
537 Changed SETCDR --> SET_CELL_WORD_1.
539 * coop-threads.c (scheme_launch_thread): Set word 1 of handle to 0
542 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
544 * boolean.h (SCM_TRUE_P): New macro.
546 * boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP), pairs.h
547 (SCM_NULLP, SCM_NNULLP): Use SCM_EQ_P to compare SCM values.
549 2000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
551 * continuations.h (SCM_CONTREGS, SCM_SET_CONTREGS): New macros to
552 access continuation data.
554 (SCM_SETJMPBUF): Deprecated. Use SCM_SET_CONTREGS instead.
556 (SCM_JMPBUF, SCM_DYNENV, SCM_THROW_VALUE, SCM_BASE, SCM_SEQ,
557 SCM_DFRAME): Use SCM_CONTREGS instead of SCM_CHARS to access
560 * continuations.c (scm_make_cont), init.c (start_stack),
561 root.c (scm_internal_cwdr): Use SCM_SET_CONTREGS instead of
564 2000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
566 * symbols.h (SCM_LENGTH, SCM_SETLENGTH): Access the length field
567 of strings and symbols by using SCM_{SET_}?CELL_WORD_0.
569 (SCM_CHARS, SCM_UCHARS, SCM_SETCHARS): Use SCM_{SET_}?CELL_WORD_1
570 to access the char * field of strings and symbols.
572 2000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
578 (SCM_FREEP, SCM_MARKEDP): Use SCM_CELL_TYPE to access the type
581 2000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
588 (SCM_GCCDR): Moved to tags.h.
590 * tags.h (SCM_GCCDR): Moved here from pairs.h.
592 2000-03-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
594 * tags.h (SCM2PTR, PTR2SCM): Moved to gc.h.
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.
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.
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
616 2000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
618 * tags.h (SCM_STRICT_TYPING): New macro that, if defined,
619 activates strict compile time type checking for variables of
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?.
625 2000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
627 * tags.h (SCM_POINTERS_MUNGED): Removed.
629 * gc.c (scm_gc_sweep, init_heap_seg): Removed use of
630 SCM_POINTERS_MUNGED, thus fixing some illegal casts to SCM.
632 2000-03-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
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
638 (SCM_CELL_WORD_[0-3]): Renamed from the SCM_CELL_WORD[0-3].
640 * procs.h, procs.c: Instead of SCM_{SET_}?CELL_WORD[12], use the
641 newly introduced SCM_{SET_}?CELL_OBJECT_[12] macros.
643 2000-03-23 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
645 * tags.h: Disabled definition of SCM_VOIDP_TEST.
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.
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.
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.
659 * continuations.h (SCM_SETJMPBUF): Cast second arg into SCM.
661 * continuations.c (scm_make_cont): Removed cast of size_t into
664 * symbols.h (SCM_SETCHARS): Cast second arg into SCM.
666 2000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
668 * numbers.h (SCM_SETNUMDIGS): Use SCM_BIGSIZEFIELD macro for
669 shifting, not constant. Thanks to Dale P. Smith.
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,
675 2000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.
681 2000-03-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
683 * tags.h (SCM_ECONSP, SCM_NECONSP): More corrections of
684 pointer-arithmetic induced by the SCM_PACK/UNPACK change.
686 * print.c (scm_iprin1): SCM_PACK/UNPACK corrections.
688 * gc.c (scm_gc_sweep): SCM_PACK/UNPACK corrections.
690 * eval.c (SCM_CEVAL, scm_unmemocar): SCM_PACK/UNPACK corrections.
692 * dynwind.c (scm_swap_bindings): SCM_PACK/UNPACK corrections.
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.
700 2000-03-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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.
709 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
711 * struct.h (SCM_STRUCT_DATA): Don't cast SCM values to pointers.
713 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
715 * symbols.h, symbols.c (scm_strhash): Declare the string
716 parameter as constant, since it is not modified.
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.
722 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
724 * vectors.h (SCM_VELTS, SCM_VELTS_AS_STACKITEMS): Don't cast SCM
725 values to pointers. Use SCM2PTR instead.
727 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
729 * async.c (scm_set_tick_rate, scm_set_switch_rate): Don't unpack
732 2000-03-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
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.
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.
743 * gc.c (alloc_some_heap): Further improvement of minimal heap size
745 (SCM_MAX): New macro.
746 (scm_freelist_t): New field: collected_1. Previous amount of
748 (gc_sweep_freelist_finish): Trigger based on two last values of
749 freelist->collected to avoid unnecessary allocation due to
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.
755 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
757 * numbers.h (SCM_MAKINUM): The parameter to SCM_MAKINUM should
758 already be a C value. No need to unpack it.
760 * numbers.c (scm_long_long2num): Cast the parameter to scm_bits_t
761 if we know it fits into an inum.
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
767 2000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
769 * gc.c (scm_gc_stats): Inserted explanation of local_scm_mtrigger
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
776 * print.h, stacks.h, options.c, options.h: Changed C++
779 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
781 * tags.h (SCM2PTR, PTR2SCM): Use SCM_PACK / SCM_UNPACK correctly.
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.
787 2000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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.
794 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
796 * eval.h: Fix mixup of packed/unpacked SCM values. (Thanks
797 Thien-Thi Nguyen for the patch.)
799 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
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.)
805 2000-03-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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.
812 * coop-threads.c: Addd #include "root.h", #include "strings.h".
814 * debug.c: Added #include "root.h". (Thanks to Thien-Thi Nguyen.)
816 * gc.c (scm_gc_for_newcell, adjust_gc_trigger): Improved GC
817 trigger adjustmeant: Take yield (freed cells) for all freelists
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
825 (scm_freelist_t): Corrected commentary for field `cluster_size':
826 Clustersize counts objects, not cells; New member
827 `clusters_allocated'.
829 2000-03-19 Michael Livshin <mlivshin@bigfoot.com>
831 * *.[hc]: add Emacs magic at the end of file, to ensure GNU
834 2000-03-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
836 * threads.h: Added #include "libguile/throw.h". (Thanks to
839 2000-03-18 Michael Livshin <mlivshin@bigfoot.com>
841 * tags.h: (SCM_DOUBLE_CELLP, SCM_NDOUBLE_CELLP): new macros (bad
842 names, anyone got any better ones?)
844 * gc.h: (typedef struct scm_freelist_t) remove from here.
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.
861 2000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
863 * _scm.h: Don't include async.h everywhere...
865 * eq.c eval.c iselect.c: ... only include it here.
867 2000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
869 * _scm.h: Don't include root.h everywhere...
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.
877 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
879 * _scm.h: Don't include strings.h everywhere...
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
888 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
890 * _scm.h: Don't include ports.h everywhere...
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
898 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
900 * _scm.h: Don't include vectors.h everywhere...
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
908 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
910 * genio.h: removed. (Only content was '/* delete me */'.)
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
918 2000-03-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
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.
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
931 2000-03-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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.
939 2000-03-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
941 * gc.c, gc.h (scm_map_free_list): Define also if GUILE_DEBUG is
943 (scm_free_list_length): New procedure (GUILE_DEBUG).
944 Fixed a small but serious bug introduced by the previous change.
946 * gc.c (scm_gc_sweep): Moved variable n_objects to inner sweep
947 loop and declare as register.
949 * gc.c (scm_gc_sweep): Sigh... forgot to clear private freelists
952 Wed Mar 15 08:27:04 2000 Greg J. Badros <gjb@cs.washington.edu>
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?
958 Wed Mar 15 08:24:58 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
965 Wed Mar 15 08:12:14 2000 Greg J. Badros <gjb@cs.washington.edu>
967 * libguile.h: Include libguile/validate.h. Thanks Keisuke Nishida!
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.
973 2000-03-15 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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
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.
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.
989 2000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
991 The following change to init.c is only enabled if Guile was
992 configured with --enable-guile-debug.
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
1000 * objprop.c (s_scm_set_object_property_x): Use scm_assq instead of
1001 scm_assoc. (Thanks to Keisuke Nishida.)
1003 2000-03-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1005 * eval.c, lang.c, lang.h (scm_lisp_nil, scm_lisp_t): Renamed from
1006 scm_nil, scm_t. (Thanks to Keisuke Nishida.)
1008 2000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
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.)
1017 [Almost all of these changes should be documented in the NEWS
1020 * gc.h (scm_freelist_t): New type.
1022 * pairs.h (SCM_NEWCELL, SCM_NEWCELL2): Use new style freelists.
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
1027 (SCM_EXPHEAP): Now takes an argument. Grow by a factor of 1.5
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
1033 (scm_heap_size, scm_gc_cells_collected): Removed.
1035 * init.c (scm_boot_guile_1): Make 2-word segment 8K (512 cells).
1037 * Makefile.am (libguile_la_LDFLAGS): Bumped library version
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
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.
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.
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.
1068 * numbers.c (scm_floprint, scm_floequal): Removed.
1069 (scm_print_real, scm_print_complex, scm_real_equalp,
1070 scm_complex_equalp): New functions.
1072 * unif.c (scm_makflo): Removed.
1074 * smob.h (SCM_SMOB_PREDICATE): New macro.
1075 (SCM_NEWSMOB2, SCM_RETURN_NEWSMOB2, SCM_NEWSMOB3,
1076 SCM_RETURN_NEWSMOB3): New macros.
1078 1999-11-21 Michael Livshin <mlivshin@bigfoot.com>
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
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
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
1098 (scm_debug_newcell2): multi-cell variants of
1100 (scm_gc_for_newcell): take ncells and freelist pointer as
1102 (scm_gc_mark): add case for tc7_pws (procedures with setters are
1104 (scm_gc_sweep): don't free the float data, since it's not malloced
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}.
1112 * numbers.c (scm_makdbl): no malloc'ing needed, so the
1113 {DEFER,ALLOW}_INTS thing removed.
1115 * numbers.h (struct scm_dbl): changed to represent a double cell,
1116 with the number in the second half.
1118 * dynwind.c: changed the wind-guards representation to double
1121 * procs.c, procs.h: changed the procedure-with-setter representation
1124 * async.c, async.h: made async representation a double cell.
1126 * dynl.c: made dynamic_obj representation a double cell.
1128 2000-03-13 Gary Houston <ghouston@arglist.com>
1130 * ports.c (flush_void_port): renamed to flush_port_default.
1131 (end_input_void_port): renamed to end_input_default.
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).
1138 * vports.c (s_scm_make_soft_port): call scm_port_non_buffer.
1140 * void ports: make reading from a void port give EOF instead of
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.
1148 * fports.c (scm_setvbuf): docstring: remove the fcntl documentation
1149 which was incorrectly appended.
1151 2000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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
1158 2000-03-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1160 * Makefile.am (libguile_la_SOURCES): Moved iselect.c here from
1161 EXTRA_libguile_la_SOURCES.
1163 * iselect.h: Always declare scm_internal_select.
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
1169 * __scm.h (SCM_TICK): Oops! Forgot to put SCM_ASYNC_TICK here...
1171 2000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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?)
1177 Sun Mar 12 13:26:30 2000 Greg J. Badros <gjb@cs.washington.edu>
1179 * Makefile.am: Added *.doc to DISTCLEANFILES.
1181 2000-03-12 Gary Houston <ghouston@arglist.com>
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.
1189 * throw.c: change an outdated comment about scm_internal_catch
1190 BODY: it doesn't take a jumpbuf arg.
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.
1200 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1202 * stacks.c, stacks.h, struct.c, tags.h, unif.c (scm_bits_t):
1203 Renamed from SCMWORD.
1205 * tags.h (SCM_NCELLP): Removed (SCMWORD).
1207 * arbiters.c (SCM_ARB_LOCKED): Use SCM_UNPACK_CAR.
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).
1219 * numbers.h (SCM_SRS, SCM_INUM): Corrected SCM_ASSCM/ASWORD fixes.
1221 * alist.c, eval.c, net_db.c, posix.c, print.c, snarf.h, struct.c,
1222 tags.h: Fixed copyright notices.
1224 * struct.c, coop-threads.c: SCM_ASSCM/ASWORD fixes.
1226 2000-03-12 Marius Vollmer <mvo@zagadka.ping.de>
1228 * init.c (scm_standard_stream_to_port): Check whether the file
1229 descriptor is valid and substitute "/dev/null" when not.
1231 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1233 * coop-defs.h (struct timespec): Conditionally defined.
1235 * coop.c (coop_condition_variable_timed_wait_mutex): Use ETIMEDOUT
1238 * readline.c (match_paren): Bugfix: First arg to select is not
1239 number of descriptors but the number of the highest descriptor +
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.
1247 * readline.c (scm_init_readline): Added new arg to scm_init_mutex.
1249 * coop-defs.h (scm_mutex_trylock): New macro: alias for
1251 (scm_cond_init): Changed definition to
1252 coop_new_condition_variable_init.
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
1262 (coop_condition_variable_timed_wait_mutex): New function.
1263 (coop_key_create, coop_setspecific, coop_getspecific,
1264 coop_key_delete): New functions.
1266 * iselect.c (coop_timout_qinsert): Moved to coop.c
1268 2000-03-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1270 * pairs.h (SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR,
1271 SCM_SETOR_CDR): Corrected SCM_ASSCM/WORD fixes.
1273 * tags.h (SCM_VOIDP_TEST): Renamed from VOIDP_TEST.
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.
1280 * eval.c (scm_lookupcar1): Inserted SCM_ASWORD in expressions
1283 2000-03-11 Dale P. Smith <dpsm@en.com>, applied by Greg J. Badros, <gjb@cs.washington.edu>
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.
1289 (logand, logior, logxor, logtest, logbit?): Extended scheme
1290 logical functions to use bignums from SCM.
1292 (lognot): Removed call to `SCM_VALIDATE_INUM' that prevented
1293 lognot from using bignums.
1295 Thu Mar 9 11:33:25 2000 Greg J. Badros <gjb@cs.washington.edu>
1297 * vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
1298 eliminating some warnings.
1300 * unif.c, strports.c, print.c, options.c: Fix some warnings on
1303 * gc.c, gc.h: Added scm_return_first_int(), and added comment re:
1304 what the scm_return_first* functions do.
1306 2000-03-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>, applied by Greg J. Badros, <gjb@cs.washington.edu>
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),
1314 Wed Mar 8 10:15:59 2000 Greg J. Badros <gjb@cs.washington.edu>
1316 * numbers.c: Use SCM_VALIDATE_LONG_COPY, and longs, not ints, in
1317 various logXXX primitives. Thanks Eric Moore!
1319 Tue Mar 7 08:05:22 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1326 * hash.c: Docs, minor cleanup patch from Dirk Herrman.
1328 Thu Mar 2 16:06:58 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1334 * __scm.h: Added SCM_ASSERT_TYPE macro.
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)
1340 * Makefile.am: Rename scm_validate.h to validate.h.
1342 * *.c, *.h: Include validate.h, not scm_validate.h (old name's
1343 prefix was superfluous).
1345 Thu Mar 2 15:33:12 2000 Greg J. Badros <gjb@cs.washington.edu>
1347 * hashtab.c: Improved documentation for lots of functions. Added
1348 handwritten docs for `hash-fold'.
1350 Thu Mar 2 15:13:25 2000 Greg J. Badros <gjb@cs.washington.edu>
1352 * list.c: Added hand-written docs for `del{q,v,ete}1!'.
1354 Thu Mar 2 12:38:30 2000 Greg J. Badros <gjb@cs.washington.edu>
1356 * list.c: Moved append docs to append! Thanks Dirk Hermann. Also,
1357 added append docs from R4RS.
1359 * strings.c: Docstring typo fix, + eliminate unneeded IMP tests.
1360 Thanks Dirk Hermann!
1362 * chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and
1363 deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann!
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!
1369 Sat Feb 19 12:20:12 2000 Greg J. Badros <gjb@cs.washington.edu>
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!
1376 Sun Feb 13 19:11:42 2000 Greg J. Badros <gjb@cs.washington.edu>
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)
1386 Sun Feb 13 18:12:19 2000 Greg J. Badros <gjb@cs.washington.edu>
1388 * ports.c: Added docs for primitives missing them. Written by
1391 Sun Feb 13 09:40:36 2000 Greg J. Badros <gjb@cs.washington.edu>
1393 * guile-doc-snarf.in: Use ${AWK} -f guile-func-name-check, not
1394 just execing guile-func-name-check. Thanks Michael Livshin!
1396 Thu Feb 10 11:43:23 2000 Greg J. Badros <gjb@cs.washington.edu>
1398 * guile-snarf.awk.in: Tweak to work with Sun/HP awk, removed some
1399 dead code. Patch from Michael Livshin.
1401 * guile-doc-snarf.in: Tweak to work with Sun/HP sh. Patch from
1404 2000-02-09 Gary Houston <ghouston@arglist.com>
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
1412 2000-02-08 Gary Houston <ghouston@arglist.com>
1414 * __scm.h: don't define long_long or ulong_long if HAVE_LONG_LONGS
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.
1421 Tue Feb 8 13:57:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1423 * ports.c: Doc patches from Richard Kim. Pasted from MIT Scheme.
1426 Mon Feb 7 09:07:31 2000 Greg J. Badros <gjb@cs.washington.edu>
1428 * macros.c: Doc patches from Richard Kim. Pasted from scm.texi.
1430 Sun Feb 6 20:26:21 2000 Greg J. Badros <gjb@cs.washington.edu>
1432 * pairs.c: Doc patches from Richard Kim. Pasted from MIT Scheme
1433 (which is GNU GPL'd).
1435 2000-01-31 Gary Houston <ghouston@arglist.com>
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>.
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.
1445 (scm_makfromstr): cosmetic changes.
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.
1454 * posix.c (scm_init_posix): intern PIPE_BUF if it's defined.
1456 2000-01-29 Gary Houston <ghouston@arglist.com>
1458 * posix.c (scm_pipe): rewrote the docstring.
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.
1466 Thu Jan 27 10:14:25 2000 Greg J. Badros <gjb@cs.washington.edu>
1468 * vectors.c, symbols.c, strorder.c: Documentation cut and pasted
1469 from Gregg Reynolds. Thanks Gregg!
1471 Thu Jan 27 09:59:38 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1477 Wed Jan 26 17:33:52 2000 Greg J. Badros <gjb@cs.washington.edu>
1479 * throw.c: Factor out an #ifdef/#else/#endif choice more finely
1480 for maintainability.
1482 * strop.c: Documentation added by Gregg A. Reynolds. Pasted in
1485 Wed Jan 26 10:02:11 2000 Greg J. Badros <gjb@cs.washington.edu>
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'
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
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.
1502 Tue Jan 25 17:15:47 2000 Greg J. Badros <gjb@cs.washington.edu>
1504 * sort.c: typo in comment fixed.
1506 * keywords.c: Added documentation.
1508 * guardians.c: Added documentation (could be better).
1510 * gc.c: Added docs for gc-set-debug-check-freelist.
1512 * eq.c: Added docs for eq?, eqv? equal? abridged from R4RS.
1514 * boolean.c: Added docs for `not', `boolean?' (by hand).
1516 Tue Jan 25 13:28:56 2000 Greg J. Badros <gjb@cs.washington.edu>
1518 * random.c: Added documentation, from SLIB page:
1519 http://angela.ctrl-c.liu.se/~calle/scheme/slib_toc.html
1521 Mon Jan 24 17:50:20 2000 Greg J. Badros <gjb@cs.washington.edu>
1523 * variable.c, version.c: Added documentation, written by hand
1524 since I could not find anything already written that was
1527 2000-01-23 Gary Houston <ghouston@arglist.com>
1529 * filesys.c (scm_chown): omit port/fdes support if HAVE_FCHOWN is
1530 not defined (thanks to Richard Y. Kim).
1532 Thu Jan 20 13:00:38 2000 Greg J. Badros <gjb@cs.washington.edu>
1534 * Makefile.in: Removed, this is auto-generated.
1536 Thu Jan 20 11:33:47 2000 Dirk Hermann <dirk@ida.ing.tu-bs.de> --applied 01/20/00 gjb
1538 * list.c: Put some variable initialization code at the point of
1539 declaration; Added a comment for list*; Formatting changes.
1541 * load.c: use SCM_NNULLP to make sure the end of a list is not
1544 2000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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.)
1551 * net_db.c (scm_resolv_error): Cast result from hstrerror.
1553 * strports.c (st_end_input): Inserted parenthesis to get operator
1556 * list.h (scm_init_list): Removed SCM_P around prototypes.
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.
1562 Tue Jan 18 13:21:08 2000 Mikael Djurfeldt <mdj@r11n07-s.pdc.kth.se>
1564 * posix.c (scm_mknod): Escape " occuring inside docstring.
1566 2000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
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.
1577 * filesys.c (scm_chmod), simpos.c (scm_system), version
1578 (scm_version), vports (scm_make_soft_port): Escape " occuring
1581 Mon Jan 17 11:41:22 2000 Greg J. Badros <gjb@cs.washington.edu>
1583 * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
1584 SCM_VALIDATE_LONG_COPY
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.
1591 2000-01-14 <mstachow@alum.mit.edu>
1593 * Makefile.am: Augment path when running guile-doc-snarf so
1594 guile-func-name-check is found.
1596 Fri Jan 14 09:34:55 2000 Greg J. Badros <gjb@cs.washington.edu>
1598 * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
1599 def, not SCM_MAKINUM(def); thanks Janis Bzerins!
1601 Wed Jan 12 00:06:53 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1607 Tue Jan 11 18:24:18 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1616 Tue Jan 11 17:42:40 2000 Greg J. Badros <gjb@cs.washington.edu>
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
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).
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!
1635 * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
1636 SCM_VALIDATE_INUM_COPY once where it should've been used.
1638 * fluids.c (scm_internal_with_fluids): Use
1639 SCM_VALIDATE_LIST_COPYLEN.
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.
1646 * evalext.c: line-break change on 1 line.
1648 * eval.c (nconc2last): Takes a non-empty list as its first
1649 argument, not just a list.
1651 * dynl.c: Use new SCM_COERCE_ROSTRING macro.
1653 Tue Jan 11 15:44:23 2000 Greg J. Badros <gjb@cs.washington.edu>
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
1659 * symbols.c (scm_sysintern0): Fixed the function name in a
1660 scm_misc_error invocation.
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.
1665 * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
1666 used before but should've been.
1668 2000-01-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1670 * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
1671 SCM_FUNC_CAST_ARBITRARY_ARGS.
1673 Tue Jan 11 13:44:07 2000 Greg J. Badros <gjb@cs.washington.edu>
1675 * guile-func-name-check.in: Added this script to statically check
1676 #define FUNC_NAME, #undef FUNC_NAME in the source.
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
1682 * debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
1683 Caught by new guile-func-name-check-script.
1685 * Makefile.am: Added guile-func-name-check to bin_SCRIPTS
1687 * ramap.c: Fix #if 0'd out code to be syntactically acceptable to
1688 guile-func-name-check.
1690 * guile-doc-snarf.in: Run guile-func-name-check on the file before
1693 Tue Jan 11 11:31:10 2000 Greg J. Badros <gjb@cs.washington.edu>
1695 * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
1696 port function take const void*, not void*.
1698 Tue Jan 11 11:18:07 2000 Greg J. Badros <gjb@cs.washington.edu>
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).
1706 Tue Jan 11 10:41:46 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
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
1720 * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.
1722 * backtrace.c (scm_display_error_message): Rewrote to use
1723 scm_simple_format() procedure.
1725 * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
1727 2000-01-09 Marius Vollmer <mvo@zagadka.ping.de>
1729 Finally applied the libltdl patch from Thomas Tanner, with slight
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.
1737 1999-07-25 Thomas Tanner <tanner@ffii.org>
1739 * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
1741 * Makefile.am: likewise, add INCLTDL (libltdl headers) to
1742 INCLUDES, set dlpreopened files in LDFLAGS, link libguile
1744 * dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
1745 * guile.c: register preloaded modules
1746 * scmconfig.h.in: remove obsolete symbols
1748 2000-01-09 Gary Houston <ghouston@arglist.com>
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
1760 (scm_localtime, scm_strftime, scm_mktime): call tzset if
1761 LOCALTIME_CACHE is defined.
1763 2000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1765 * posix.c (scm_sync): Return SCM_UNSPECIFIED.
1767 2000-01-09 Gary Houston <ghouston@arglist.com>
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.
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,
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.
1786 Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
1788 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
1790 Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1792 * backtrace.c: Fix spelling typo in a comment.
1794 * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
1795 text. Reformatted some of the expansions.
1797 Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1799 * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
1800 report the position of the argument.
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
1806 * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
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.
1812 Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
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).
1821 2000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1823 * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
1824 snarf macro definitions.
1826 2000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1828 * chars.c (scm_integer_to_char): Use Greg's nice
1829 SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
1832 Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
1834 * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
1836 Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1838 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
1839 instead of GUILE_PROC.
1841 Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
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
1847 Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
1849 * scm_validate.h: Remove some redundant NIMP tests.
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.
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.
1871 Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1873 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
1874 macros and SCM_DEFINE macros to match GNU coding standards.
1876 Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
1878 * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
1880 Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1886 Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
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).
1892 * guile-snarf.awk.in: Do argument/number mismatch checking and
1893 print warnings in an Emacs compile-mode parseable format.
1895 * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
1896 SCM_OUTOFRANGE as 3rd argument.
1898 * random.c: Fix argument/number mismatch (that I introduced :-( ).
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.
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.
1909 * ramap.c: Remove extraneous #undef FUNC_NAME.
1911 Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1917 Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
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!
1924 * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
1927 * ramap.c: whitespace change.
1929 Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
1931 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
1932 removals from Dirk Hermann.
1934 * alist.c: Rename formals to match the parameter names in the
1935 documentation, updates to documentation. Thanks Dirk Hermann!
1937 2000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1939 * eval.c (SCM_CEVAL): Reverse order of
1940 scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
1941 (Thanks to Brad Knotwell.)
1943 Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
1945 * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
1948 * pairs.h: Added a comment about the need for the SCM_SETCAR in
1951 Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
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.
1957 The ChangeLog continues in the file: "ChangeLog-1996-1999"