*** empty log message ***
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
cffcab30
DH
12000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
2
3 * backtrace.c (display_error_body), debug.c (scm_procedure_source,
4 scm_reverse_lookup), dynl.c (scm_dynamic_link): Don't use C
5 operators to compare SCM values.
6
7 * debug.c (scm_make_debugobj), debug.h (SCM_DEBUGOBJ_FRAME,
8 SCM_SET_DEBUGOBJ_FRAME): Update SCM_{SET_}?DEBUGOBJ_FRAME to
9 access raw cell data with SCM_{SET_}?CELL_WORD_1.
10
11 * debug.c (scm_make_debugobj): Don't use SCM_SETCAR to set types.
12
13 * debug.c (scm_make_memoized), dynl.c (scm_dynamic_link): Smob
14 data is of type scm_bits_t.
15
7fa93bf8
DH
162000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
17
18 * gdbint.c (gdb_maybe_valid_type_p), guardians.c (TCONC_EMPTYP,
19 scm_guardian_zombify): Use SCM_EQ_P to compare SCM values.
20
21 * guardians.c (GUARDIAN): Use SCM_CELL_WORD_1 for raw data.
22
74a16888
DH
232000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
24
25 * ports.h (scm_port): Change type of stream member to scm_bits_t.
26
27 * gdbint.c (unmark_port, remark_port), ports.c (scm_markstream),
28 strports.c (st_resize_port, scm_mkstrport), vports (sf_flush,
29 sf_write, sf_fill_input, sf_close, scm_make_soft_port): Since
30 streams are now of type scm_bits_t, SCM streams have to be
31 unpacked/packed.
32
33 * ports.h (SCM_SETPTAB_ENTRY, SCM_SETSTREAM): Cast input to
34 scm_bits_t.
35
b6cc0ef6
MD
362000-03-31 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
37
6a878357
MD
38 * coop-defs.h (struct coop_t): Added `sto'-field again because of
39 binary compatibility---let's remove it next time we alter some
40 major structure.
41
b6cc0ef6
MD
42 * coop.c (coop_quitting_p, coop_cond_create, coop_mutex_create,
43 coop_mother, coop_child): New variables.
44 (mother): New function.
45 (coop_create): New thread spawning mechanism which uses a "mother
46 thread". The "dummy" pthreads aren't healthy enough to give birth
47 to new threads since Linux threads thinks they are asleep.
48
49 * coop-defs.h (struct coop_t): Removed dummy_mutex.
50
51 * coop-defs.h, coop-threads.c (struct coop_t): Eliminate
52 `sto'-field when GUILE_PTHREAD_COMPAT is enabled.
53
843524cc
DH
542000-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
55
56 * arbiters.c (scm_make_arbiter), async.c (scm_async), dynwind.c
57 (scm_internal_dynamic_wind): Smob data is always of type
58 scm_bits_t.
59
60 * arbiters.c (SCM_ARB_LOCKED, SCM_LOCK_ARB, SCM_UNLOCK_ARB):
61 Access the locking information in cell entry 0 with
62 SCM_{SET_}?CELL_WORD_0 instead of SCM_*CAR.
63
64 * async.c (scm_run_asyncs): Use SCM_NULLP to test for the empty
65 list.
66
67 * dynwind.c (scm_dowinds): Use SCM_EQ_P to compare SCM values.
68
69 * ports.h (SCM_PTAB_ENTRY, SCM_SETPTAB_ENTRY): Access the ptab
70 entry data using SCM_{SET_}?CELL_WORD_1 instead of SCM_{SET}?CDR.
71
fbd485ba
DH
722000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
73
74 * alist.c (scm_sloppy_assq, scm_assq), eq.c (scm_eq_p, scm_eqv_p,
75 scm_equal_p), list.c (scm_ilength, scm_last_pair, scm_reverse,
76 scm_sloppy_memq, scm_delq_x, scm_delq1_x), tags.h (SCM_UNBNDP):
77 Don't use C operators == and != to compare SCM values, use
78 SCM_EQ_P instead.
79
80 * boolean.c (scm_boolean_p): Use SCM_BOOLP to determine whether a
81 SCM value is equal to #t or #f.
82
83 * eq.c (scm_eqv_p, scm_equal_p): Don't use SCM_CAR to access the
84 cell type entry of non immediate objects of unknown type. Use
85 SCM_CELL_TYPE instead.
86
87 * gh_data.c (gh_scm2bool, gh_module_lookup), list.c
88 (scm_sloppy_memv, scm_sloppy_member, scm_delv_x, scm_delete_x,
89 scm_delv1_x, scm_delete1_x), scmsigs.c (scm_sigaction): Use
90 SCM_FALSEP and SCM_TRUE_P to compare SCM values against #f and
91 #t.
92
93 * list.c (scm_listify): Use SCM_UNBNDP to test for an unbound
94 scheme value.
95
64e3bf6c
MD
962000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
97
0208baa0
MD
98 * coop-threads.c (scm_call_with_new_thread, scm_spawn_thread,
99 scm_make_mutex, scm_make_condition_variable): Cast data to
100 scm_bits_t in SCM_SET_CELL_WORD and SCM_NEWSMOB macros.
101
64e3bf6c
MD
102 * coop.c (coop_create): Set `specific' field, not `data' to NULL.
103
94113249
DH
1042000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
105
106 * smob.h (SCM_NEWSMOB, SCM_NEWSMOB2, SCM_NEWSMOB3, SCM_SMOB_DATA,
107 SCM_SET_SMOB_DATA, SCM_TC2SMOBNUM, SCM_SMOBNUM): To access smob
108 data, use SCM_{SET_}?CELL_TYPE or SCM_{SET_}?WORD_[1-3].
109
110 Note that this implies that smob data has always to be passed as
111 values of type scm_bits_t.
112
1978b33e
MD
1132000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
114
115 * threads.c (scm_init_threads): Pass 0 size to scm_make_smob_type
116 for scm_tc16_thread. As the current COOP threads are written, GC
117 is not supposed to manage storage for threads.
118
119 * error.c (scm_error): Don't try to throw an error if
120 scm_gc_heap_lock is true.
121
122 * coop.c (coop_finish): New function. Called at exit.
123 (coop_aborthelp): Free thread structures when threads die.
124 Finished LinuxThreads compatibility support => COOP threads now
125 mesh with LinuxThreads.
126
127 * coop-threads.c (scm_call_with_new_thread, scm_spawn_thread):
128 Changed SETCDR --> SET_CELL_WORD_1.
129
130 * coop-threads.c (scheme_launch_thread): Set word 1 of handle to 0
131 when thread dies.
132
dd039d6d
DH
1332000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
134
135 * boolean.h (SCM_TRUE_P): New macro.
136
137 * boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP), pairs.h
138 (SCM_NULLP, SCM_NNULLP): Use SCM_EQ_P to compare SCM values.
139
8b3bda20
DH
1402000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
141
142 * continuations.h (SCM_CONTREGS, SCM_SET_CONTREGS): New macros to
143 access continuation data.
144
145 (SCM_SETJMPBUF): Deprecated. Use SCM_SET_CONTREGS instead.
146
147 (SCM_JMPBUF, SCM_DYNENV, SCM_THROW_VALUE, SCM_BASE, SCM_SEQ,
148 SCM_DFRAME): Use SCM_CONTREGS instead of SCM_CHARS to access
149 continuation data.
150
151 * continuations.c (scm_make_cont), init.c (start_stack),
152 root.c (scm_internal_cwdr): Use SCM_SET_CONTREGS instead of
153 SCM_SETJMPBUF.
154
3210f49a
DH
1552000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
156
157 * symbols.h (SCM_LENGTH, SCM_SETLENGTH): Access the length field
158 of strings and symbols by using SCM_{SET_}?CELL_WORD_0.
159
160 (SCM_CHARS, SCM_UCHARS, SCM_SETCHARS): Use SCM_{SET_}?CELL_WORD_1
161 to access the char * field of strings and symbols.
162
2d67e390
DH
1632000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
164
165 * gc.h (SCM_NEWCELL, SCM_NEWCELL2): Use SCM_SET_CELL_TYPE to set
166 the type entry of a new cell. Added a comment about things to
167 remember when updating the list of free cells.
168
169 (SCM_FREEP, SCM_MARKEDP): Use SCM_CELL_TYPE to access the type
170 entry of a cell.
171
76a369d9
DH
1722000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
173
174 * pairs.h (SCM_CAR, SCM_CDR, SCM_SETCAR, SCM_SETCDR): Use
175 SCM_CELL_OBJECT and SCM_SET_CELL_OBJECT. This change implies that
176 with strict type checking enabled these macros will only work if
177 given valid SCM parameters.
178
3210f49a 179 (SCM_GCCDR): Moved to tags.h.
76a369d9
DH
180
181 * tags.h (SCM_GCCDR): Moved here from pairs.h.
182
2549a709
DH
1832000-03-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
184
185 * tags.h (SCM2PTR, PTR2SCM): Moved to gc.h.
186
187 * pairs.h (scm_cell, SCM_CELLPTR, SCM_CELL_WORD*, SCM_CELL_OBJECT*,
188 SCM_SET_CELL_WORD*, SCM_SET_CELL_OBJECT*, SCM_CELL_TYPE,
189 SCM_SET_CELL_TYPE, SCM_PTR_LT, SCM_PTR_MASK, SCM_PTR_GT,
190 SCM_PTR_LE, SCM_PTR_GE, SCM_CELL_WORD_LOC, SCM_NEWCELL,
191 SCM_NEWCELL2): Moved to gc.h.
192
193 (SCM_CARLOC, SCM_CDRLOC, SCM_SETAND_CAR, SCM_SETAND_CDR,
194 SCM_SETOR_CAR, SCM_SETOR_CDR): Moved to gc.h. These names should
195 be changed, though, since the macros are not only pair related.
196
197 (SCMPTR): Deleted.
198
199 * gc.h (SCM2PTR, PTR2SCM, scm_cell, SCM_CELLPTR, SCM_CELL_WORD*,
200 SCM_CELL_OBJECT*, SCM_SET_CELL_WORD*, SCM_SET_CELL_OBJECT*,
201 SCM_CELL_TYPE, SCM_SET_CELL_TYPE, SCM_PTR_LT, SCM_PTR_MASK,
202 SCM_PTR_GT, SCM_PTR_LE, SCM_PTR_GE, SCM_CELL_WORD_LOC,
203 SCM_NEWCELL, SCM_NEWCELL2, SCM_CARLOC, SCM_CDRLOC, SCM_SETAND_CAR,
204 SCM_SETAND_CDR, SCM_SETOR_CAR, SCM_SETOR_CDR): Moved here from
205 tags.h and pairs.h.
206
8d3356e7
DH
2072000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
208
209 * tags.h (SCM_STRICT_TYPING): New macro that, if defined,
210 activates strict compile time type checking for variables of
211 type SCM.
212 (SCM, SCM_PACK, SCM_UNPACK): Define according to whether
213 SCM_STRICT_TYPING or SCM_VOIDP_TEST are defined.
214 (SCM_EQ_P): Defined as a macro equivalent for eq?.
215
96f6f4ae
DH
2162000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
217
218 * tags.h (SCM_POINTERS_MUNGED): Removed.
219
220 * gc.c (scm_gc_sweep, init_heap_seg): Removed use of
221 SCM_POINTERS_MUNGED, thus fixing some illegal casts to SCM.
222
0cbaaf0b
DH
2232000-03-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
224
225 * pairs.h (SCM_CELL_OBJECT, SCM_CELL_OBJECT_[0-3],
226 SCM_SET_CELL_OBJECT, SCM_SET_CELL_OBJECT_[0-3], SCM_CELL_TYPE,
227 SCM_SET_CELL_TYPE): Added a set of low level macros for accessing
228 cell entries.
229 (SCM_CELL_WORD_[0-3]): Renamed from the SCM_CELL_WORD[0-3].
230
231 * procs.h, procs.c: Instead of SCM_{SET_}?CELL_WORD[12], use the
232 newly introduced SCM_{SET_}?CELL_OBJECT_[12] macros.
233
7284d584
MD
2342000-03-23 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
235
236 * tags.h: Disabled definition of SCM_VOIDP_TEST.
237
238 Defining SCM as void * introduces problems which haven't been
239 handled yet. Developers who work with these issues can enable it
240 in their working copies.
241
242 Disabling this definition exposes a set of newly introduced and
243 older misuses of types which causes warning messages during
244 compilation. We'll fix this successively.
245
246 * gc.c (scm_mark_locations): Changed * (SCM **) X --> * (SCM *) X
247 in order to obtain a value of type SCM.
248 (scm_cellp): Updated with new changes to scm_mark_locations.
249
250 * continuations.h (SCM_SETJMPBUF): Cast second arg into SCM.
251
2f9055ea
MD
252 * continuations.c (scm_make_cont): Removed cast of size_t into
253 long.
254
7284d584
MD
255 * symbols.h (SCM_SETCHARS): Cast second arg into SCM.
256
f81e080b
DH
2572000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
258
259 * numbers.h (SCM_SETNUMDIGS): Use SCM_BIGSIZEFIELD macro for
260 shifting, not constant. Thanks to Dale P. Smith.
261
262 * numbers.c (scm_sum, scm_difference): Don't test a SCM value
263 for being less than zero. Decode it to a C value first. Again,
264 thank you Dale.
265
1ff2fa6e
DH
2662000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
267
268 * numbers.h, ramap.c, struct.h, vectors.h: Don't use SCM2PTR for
269 non scheme values. If raw data is stored in SCM variables, it has
270 to be accessed using SCM_UNPACK until a better solution is found.
271
3920465b
MD
2722000-03-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
273
6f29dc6d
MD
274 * tags.h (SCM_ECONSP, SCM_NECONSP): More corrections of
275 pointer-arithmetic induced by the SCM_PACK/UNPACK change.
276
277 * print.c (scm_iprin1): SCM_PACK/UNPACK corrections.
278
279 * gc.c (scm_gc_sweep): SCM_PACK/UNPACK corrections.
280
281 * eval.c (SCM_CEVAL, scm_unmemocar): SCM_PACK/UNPACK corrections.
282
283 * dynwind.c (scm_swap_bindings): SCM_PACK/UNPACK corrections.
284
3920465b
MD
285 * async.c, __scm.h: Removed lots of the old async click logic. It
286 is possible to reinsert it by defining GUILE_OLD_ASYNC_CLICK in
287 __scm.h. Let's try this out and dump the old code after the
288 threads reorganization.
289 (set-tick-rate, set-switch-rate): Conditionally removed.
290
90cca6f9
MD
2912000-03-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
292
293 * gc.c (scm_gc_mark): Bugfix 1: The recent SCM_PACK/UNPACK change
294 made SCM values into pointers. This turned an arithmetic
295 computation of the address of the vcell into a pointer-arithmetic
296 one, thereby screwing up marking of structs.
297 Bugfix 2: Removed incompletely introduced loop variable `j' used
298 when protecting the tail array of a struct.
299
8246bf3e
DH
3002000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
301
302 * struct.h (SCM_STRUCT_DATA): Don't cast SCM values to pointers.
303
95c9e176
DH
3042000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
305
306 * symbols.h, symbols.c (scm_strhash): Declare the string
307 parameter as constant, since it is not modified.
308
309 * symbols.c (scm_intern_obarray_soft,
310 scm_sysintern0_no_module_lookup): Can now pass constant strings
311 to scm_strhash without need for casting.
312
7352d0b2
DH
3132000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
314
315 * vectors.h (SCM_VELTS, SCM_VELTS_AS_STACKITEMS): Don't cast SCM
316 values to pointers. Use SCM2PTR instead.
317
b00c8cdc 3182000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
9b139b4e
DH
319
320 * async.c (scm_set_tick_rate, scm_set_switch_rate): Don't unpack
321 results of SCM_INUM.
322
df2d5178
MD
3232000-03-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
324
bd54e664
MD
325 * init.c (scm_boot_guile_1): Renamed GUILE_GC_TRIGGER_1 -->
326 GUILE_MIN_YIELD_1, GUILE_GC_TRIGGER_2 --> GUILE_MIN_YIELD_2.
327 GUILE_MIN_YIELD_X now take *positive* fractions of heap size.
328
329 * gc.c, gc.h (SCM_MIN_YIELD_1, SCM_MIN_YIELD_2,
330 min_yield_fraction, min_yield, adjust_min_yield): Renamed from
331 SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2, gc_trigger_fraction,
332 gc_trigger, adjust_gc_trigger.
333
df2d5178
MD
334 * gc.c (alloc_some_heap): Further improvement of minimal heap size
335 prediction.
336 (SCM_MAX): New macro.
337 (scm_freelist_t): New field: collected_1. Previous amount of
338 collected cells.
339 (gc_sweep_freelist_finish): Trigger based on two last values of
340 freelist->collected to avoid unnecessary allocation due to
341 temporary peaks.
bd54e664
MD
342 (SCM_INIT_HEAP_SIZE_1, SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2):
343 Adjusted to 45000 cells, 40% and 40%. Gives quick startup
344 without extra heap allocation.
df2d5178 345
f2961ccd
DH
3462000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
347
348 * numbers.h (SCM_MAKINUM): The parameter to SCM_MAKINUM should
349 already be a C value. No need to unpack it.
350
3210f49a 351 * numbers.c (scm_long_long2num): Cast the parameter to scm_bits_t
f2961ccd
DH
352 if we know it fits into an inum.
353
354 * ramap.c (ramap_rp): An scm_tc7_[ui]vect object does point to a
355 field of long values. In contrast, SCM_VELTS accesses a field of
356 SCM values.
357
7b4cc831
MD
3582000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
359
f1d316dd
MD
360 * gc.c (scm_gc_stats): Inserted explanation of local_scm_mtrigger
361 etc.
80770ddc
MD
362 (scm_gc_yield_1): New variable: Holds previous yield. Used to
363 make better judgements.
f1083dd7
MD
364 (gc_sweep_freelist_finish): Inserted explanation of use of
365 gc_trigger.
f1d316dd
MD
366
367 * print.h, stacks.h, options.c, options.h: Changed C++
368 commentaries to C.
7b4cc831 369
7a710745
DH
3702000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
371
372 * tags.h (SCM2PTR, PTR2SCM): Use SCM_PACK / SCM_UNPACK correctly.
373
374 * numbers.h (SCM_INUMP, SCM_MAKINUM, SCM_INUM0, SCM_COMPLEX_REAL,
375 SCM_COMPLEX_IMAG, SCM_NUMP, SCM_BDIGITS): Use SCM_PACK /
376 SCM_UNPACK / SCM2PTR correctly.
377
1ef20c80
MD
3782000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
379
380 * gc.c (adjust_gc_trigger): Improved documentation.
381 (alloc_some_heap): Since gc_trigger is used against
382 freelist->collected, this is the value which should be used to
383 predict minimum growth.
384
b464b970
DH
3852000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
386
387 * eval.h: Fix mixup of packed/unpacked SCM values. (Thanks
388 Thien-Thi Nguyen for the patch.)
389
3ab9f56e
DH
3902000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
391
392 * numbers.c (scm_ash): Fixed typing problems with the second
393 parameter and added some documentation. (Thanks Thien-Thi Nguyen
394 for indicating the problem.)
395
05bc3265
MD
3962000-03-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
397
78a4915a
MD
398 * gc.c, gc.h (scm_gc_yield): New variable.
399 (adjust_gc_trigger): Use scm_gc_yield.
400 (alloc_some_heap): Use scm_gc_yield instead of
401 scm_gc_cells_collected.
402
05bc3265
MD
403 * coop-threads.c: Addd #include "root.h", #include "strings.h".
404
405 * debug.c: Added #include "root.h". (Thanks to Thien-Thi Nguyen.)
406
407 * gc.c (scm_gc_for_newcell, adjust_gc_trigger): Improved GC
408 trigger adjustmeant: Take yield (freed cells) for all freelists
409 into account.
410 (SCM_INIT_HEAP_SIZE_1, SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2): Tuned
411 to 50000 cell heap with 45% trigger.
412 (scm_gc_cells_collected): Reintroduced.
413 (SCM_HEAP_SIZE): New macro.
414 (scm_gc_sweep): Reintroduced correct computation of
415 scm_cells_allocated.
416 (scm_freelist_t): Corrected commentary for field `cluster_size':
417 Clustersize counts objects, not cells; New member
418 `clusters_allocated'.
419
89e00824
ML
4202000-03-19 Michael Livshin <mlivshin@bigfoot.com>
421
422 * *.[hc]: add Emacs magic at the end of file, to ensure GNU
423 indentation style.
424
afcfc5bb
MD
4252000-03-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
426
427 * threads.h: Added #include "libguile/throw.h". (Thanks to
428 Thien-Thi Nguyen.)
429
a00c95d9
ML
4302000-03-18 Michael Livshin <mlivshin@bigfoot.com>
431
432 * tags.h: (SCM_DOUBLE_CELLP, SCM_NDOUBLE_CELLP): new macros.
433
434 * gc.h: (typedef struct scm_freelist_t) remove from here.
435
436 * gc.c: (CELL_UP, CELL_DN) make these macros take additional
437 parameter (the span).
438 (CLUSTER_SIZE_IN_BYTES, ALIGNMENT_SLACK) new macros.
439 (typedef struct scm_freelist_t) move here from gc.h, it had no
440 business being externally visible.
441 (typedef struct scm_heap_seg_data_t) renamed from
442 scm_heap_seg_data, to be style-compliant.
443 (scm_mark_locations) if the possible pointer points to a
444 multy-cell, check that it's properly aligned.
445 (init_heap_seg) alighn multy-cells properly, work with the
446 assumption that the segment size divides cleanly by cluster size
447 (so that there's no spill).
448 (round_to_cluster_size) new function.
449 (alloc_some_heap, make_initial_segment) use round_to_cluster_size
450 to satisfy the new init_heap_seg invariant.
451
28b3236d
DH
4522000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
453
454 * _scm.h: Don't include async.h everywhere...
455
456 * eq.c eval.c iselect.c: ... only include it here.
457
ba11fd4c
DH
4582000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
459
460 * _scm.h: Don't include root.h everywhere...
461
462 * async.c continuations.c eq.c eval.c evalext.c feature.c gc.c
463 gdbint.c gsubr.c ioext.c keywords.c lang.c load.c macros.c
464 numbers.c objprop.c ports.c print.c procprop.c ramap.c read.c
465 srcprop.c stackchk.c stacks.c strports.c symbols.c unif.c
466 variable.c vectors.c vports.c: ... only include it here.
467
7ab3fdd5
DH
4682000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
469
470 * _scm.h: Don't include strings.h everywhere...
471
472 * backtrace.c dynl.c error.c feature.c filesys.c fports.c gc.c
473 gdbint.c ioext.c load.c net_db.c numbers.c objects.c options.c
474 ports.c posix.c print.c procs.c random.c read.c regex-posix.c
475 simpos.c socket.c stacks.c stime.c strop.c strports.c struct.c
476 symbols.c unif.c vectors.c version.c vports.c: ... only include it
477 here.
478
f04d8caf
DH
4792000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
480
481 * _scm.h: Don't include ports.h everywhere...
482
483 * arbiters.c backtrace.c debug.c dynl.c dynwind.c eval.c feature.c
484 fluids.c gc.c gdbint.c guardians.c hash.c keywords.c mallocs.c
485 numbers.c objects.c print.c read.c root.c smob.c srcprop.c
486 stackchk.c strports.c struct.c throw.c variable.c: ... only
487 include it here.
488
003d1fd0
DH
4892000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
490
491 * _scm.h: Don't include vectors.h everywhere...
492
493 * eq.c eval.c filesys.c gc.c gsubr.c guardians.c hash.c hashtab.c
494 keywords.c net_db.c numbers.c objects.c posix.c print.c procprop.c
495 procs.c ramap.c random.c read.c scmsigs.c socket.c sort.c stime.c
496 strports.c symbols.c unif.c vports.c weaks.c: ... only include it
497 here.
498
0fa27efa
DH
4992000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
500
501 * genio.h: removed. (Only content was '/* delete me */'.)
502
503 * Makefile.am arbiters.c backtrace.c debug.c dynl.c dynwind.c
504 error.c filesys.c fluids.c gc.c gsubr.c guardians.c keywords.c
505 libguile.h mallocs.c numbers.c print.c random.c read.c root.c
506 srcprop.c stackchk.c struct.c threads.c throw.c variable.c:
507 Removed reference to genio.h
508
148f31de
MD
5092000-03-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
510
511 * gc.c, gc.h: Cleanup of the change of 2000-03-15.
512 Cluster sizes are now independent of GC trigger values.
513 GUILE_GC_TRIGGER_n can now specify a relative trigger value:
514 A negative integer gives fraction of total heap size in percent.
1eb489a2 515 (SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2): Default values set to -40.
148f31de
MD
516
517 * init.c (scm_boot_guile_1): Introduced new variable
518 GUILE_MAX_SEGMENT_SIZE; New environment variable names:
519 GUILE_INIT_SEGMENT_SIZE_1, GUILE_GC_TRIGGER_1,
520 GUILE_INIT_SEGMENT_SIZE_2, GUILE_GC_TRIGGER_2
521
6d0f81dd 5222000-03-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
a00c95d9 523
6d0f81dd
MD
524 * __scm.h (GC_FREE_SEGMENTS): Disable this until we have made
525 freeing of segment work with the new GC scheme. (Thanks to
bc2c8d98
MD
526 Michael Livshin.) Oops, also happened to make GUILE_NEW_GC_SCHEME
527 the default, but I'll let this change stay in CVS Guile since this
528 code is not expected to contain serious bugs.
a00c95d9 529
17351a6f 5302000-03-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
c5133dc9 531
6c7c449e
MD
532 * gc.c, gc.h (scm_map_free_list): Define also if GUILE_DEBUG is
533 defined.
5a551542
MD
534 (scm_free_list_length): New procedure (GUILE_DEBUG).
535 Fixed a small but serious bug introduced by the previous change.
536
17351a6f
MD
537 * gc.c (scm_gc_sweep): Moved variable n_objects to inner sweep
538 loop and declare as register.
6c7c449e 539
c5133dc9
MD
540 * gc.c (scm_gc_sweep): Sigh... forgot to clear private freelists
541 after GC.
542
3820581c
GB
543Wed Mar 15 08:27:04 2000 Greg J. Badros <gjb@cs.washington.edu>
544
545 * fluids.c: Docstring patch from Keisuke Nishida. Some
546 reindentation, too, and a couple formals renamed. Should
547 fluid-set! return UNSPECIFIED instead of a value?
548
549Wed Mar 15 08:24:58 2000 Greg J. Badros <gjb@cs.washington.edu>
550
551 * Makefile.am: Separate out DOT_X_FILES and DOT_DOC_FILES, and
a00c95d9 552 generate the latter from the concrete listing of the former. Then
3820581c
GB
553 make guile-procedures.txt depend on DOT_DOC_FILES instead of
554 *.doc, so that rebuilding it works.
555
dd6390bf
GB
556Wed Mar 15 08:12:14 2000 Greg J. Badros <gjb@cs.washington.edu>
557
558 * libguile.h: Include libguile/validate.h. Thanks Keisuke Nishida!
559
560 * guile-snarf.awk.in: Replace docstring line-ending \n" and \n\n"
561 with nothing and \n, respectively. Thanks Keisuke Nishida for
562 noticing this problem.
563
4fdb0ae2
MD
5642000-03-15 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
565
566 * __scm.h (GUILE_NEW_GC_SCHEME): Define this if you want to test a
567 new way of allocating heap. It makes Guile fast, but still
568 contains bugs.
569
570 * gc.c, gc.h, pairs.h, init.c: Implementation of a new way of
571 allocating heap. The basic idea is to trigger GC every Nth
572 allocated cell and grow heap when free list runs out. The scheme
573 has been extended so that GC isn't triggered until all remaining
574 cells are used. The implementation is also prepared for
575 development in the direction of POSIX threads.
576
577 * gc.c (SCM_EXPHEAP): In order to grow by a factor of 1.5,
578 SCM_EXPHEAP should return half of the heap size.
579
3d8d1283
MD
5802000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
581
5f4edb86
MD
582 The following change to init.c is only enabled if Guile was
583 configured with --enable-guile-debug.
a00c95d9 584
5f4edb86
MD
585 * init.c (scm_i_getenv_int): New function.
586 (scm_boot_guile_1): Use the environment variables
587 GUILE_INIT_HEAP_SIZE, GUILE_INIT_HEAP_SIZE2 to select heap size if
588 they exist. (This may be replaced by a Scheme level mechanism in
589 the future.)
590
3d8d1283 591 * objprop.c (s_scm_set_object_property_x): Use scm_assq instead of
90e77861 592 scm_assoc. (Thanks to Keisuke Nishida.)
3d8d1283 593
b0e37c83
MD
5942000-03-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
595
596 * eval.c, lang.c, lang.h (scm_lisp_nil, scm_lisp_t): Renamed from
2b260c0f 597 scm_nil, scm_t. (Thanks to Keisuke Nishida.)
b0e37c83 598
16d35552
MD
5992000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
600
5ebf0091
MD
601 * init.c (scm_boot_guile_1): Use same initial segment size for
602 1-word and 2-word segments. Having the smaller size causes Guile
603 to GC too often. Obviously something needs to be done to allow
604 for a smaller 2-word segment without this to happen. (The amount
605 of heap for each type should be automatically adapted to the
606 application somehow.)
607
31ed4cff
MD
608 [Almost all of these changes should be documented in the NEWS
609 file.]
610
cf2c7413
MD
611 * gc.h (scm_freelist_t): New type.
612
613 * pairs.h (SCM_NEWCELL, SCM_NEWCELL2): Use new style freelists.
614
615 * gc.c (SCM_INIT_HEAP_SIZE): Changed from 32768 --> 40000 so that
616 all of Guile basics fits into one segment and there suitable room
617 for work.
618 (SCM_EXPHEAP): Now takes an argument. Grow by a factor of 1.5
619 instead of 2.
620 (scm_freelist, scm_freelist2): Now of type scm_freelist_t.
621 Freelists now contains information about object span, cells
622 collected and amount of cells in heap segments belonging to the
623 list.
624 (scm_heap_size, scm_gc_cells_collected): Removed.
625
626 * init.c (scm_boot_guile_1): Make 2-word segment 8K (512 cells).
627
16d35552
MD
628 * Makefile.am (libguile_la_LDFLAGS): Bumped library version
629 number.
630
cf2c7413 631 * __scm.h eq.c, eval.c, gc.c, gc.h, gh_data, hash.c, numbers.c,
16d35552
MD
632 numbers.h, objects.c, ramap.c, random.c, unif.c, unif.h: Extensive
633 rewrite of handling of real and complex numbers.
634 (SCM_FLOATS, SCM_SINGLES): These #ifdef conditionals have been
635 removed along with the support for floats. (Float vectors are
636 still supported.)
637
638 * tags.h (scm_tcs_bignums): Removed.
639 (scm_tc16_bigpos, scm_tc16_bigneg): Replaced by scm_tc16_big.
640 Use SCM_BIGSIGN(x) to test for sign!
641 (scm_tc16_big): The new bignum type.
642 (SCM_REAL_PART, SCM_IMAG_PART): Removed.
643
644 * numbers.h (SCM_BIGSIGN): Sign moved to bit 16.
645 (scm_makdbl): Deprecated.
646 (SCM_NEWREAL, SCM_NEWCOMPLEX): New macros.
647 (SCM_SINGP): Deprecated.
648 (SCM_FLO): Removed.
649 (SCM_INEXP, SCM_CPLXP): Deprecated.
650 (SCM_INEXACTP, SCM_COMPLEXP): New macros.
651 (SCM_COMPLEX_REAL, SCM_COMPLEX_IMAG): Renamed from
652 SCM_REAL, SCM_IMAG (and now only valid for complex numbers).
653 (SCM_REAL, SCM_IMAG): New, *deprecated*, selectors which work both
654 for doubles and complex numbers.
655 (SCM_REAL_VALUE): New selector for doubles.
656 (scm_double_t, scm_complex_t): New types.
657 (scm_dbl): Removed.
658
659 * numbers.c (scm_floprint, scm_floequal): Removed.
660 (scm_print_real, scm_print_complex, scm_real_equalp,
661 scm_complex_equalp): New functions.
662
663 * unif.c (scm_makflo): Removed.
664
665 * smob.h (SCM_SMOB_PREDICATE): New macro.
666 (SCM_NEWSMOB2, SCM_RETURN_NEWSMOB2, SCM_NEWSMOB3,
667 SCM_RETURN_NEWSMOB3): New macros.
668
6691999-11-21 Michael Livshin <mlivshin@bigfoot.com>
670
671 The following changes implement primitive support for double cells
672 (i.e. four-word cells) and change the representation of some
673 things to multi-cells instead of cons+malloc. (Applied and
674 modified by mdj.)
675
676 * pairs.h (SCM_NEWCELL2): double-cell variants of SCM_NEWCELL.
677 (SCM_CELL_WORD, SCM_CELL_WORDLOC, SCM_SET_CELL_WORD): primitive
678 multi-cell access macros (used by the ones below).
679 (SCM_CELL_WORD[0-3], SCM_SET_CELL_WORD[0-3]): multi-cell access
680 macros.
681
682 * gc.c (scm_freelist2): multi-cell freelists.
683 (inner_map_free_list): map_free_list, parameterized on ncells.
684 "nn cells in segment mm" was misleading for ncells > 1; changed to
685 "objects". still print cells too, though.
686 (scm_map_free_list): rewritten using inner_map_free_list.
687 (scm_check_freelist): get freelist as parameter, since now we have
688 more than one.
689 (scm_debug_newcell2): multi-cell variants of
690 scm_debug_newcell.
691 (scm_gc_for_newcell): take ncells and freelist pointer as
692 parameters.
693 (scm_gc_mark): add case for tc7_pws (procedures with setters are
694 now double cells).
695 (scm_gc_sweep): don't free the float data, since it's not malloced
696 anymore.
697 (init_heap_seg): didn't understand what n_new_objects stood for,
698 so changed to n_new_cells.
699 (make_initial_segment): new function, makes an initial segment
700 according to given ncells.
701 (scm_init_storage): call make_initial_segment, for ncells={1,2,3}.
702
703 * numbers.c (scm_makdbl): no malloc'ing needed, so the
704 {DEFER,ALLOW}_INTS thing removed.
705
706 * numbers.h (struct scm_dbl): changed to represent a double cell,
707 with the number in the second half.
16d35552
MD
708
709 * dynwind.c: changed the wind-guards representation to double
710 cell.
711
712 * procs.c, procs.h: changed the procedure-with-setter representation
713 to double cell.
714
715 * async.c, async.h: made async representation a double cell.
716
16d35552 717 * dynl.c: made dynamic_obj representation a double cell.
a00c95d9 718
b70ecbd0
GH
7192000-03-13 Gary Houston <ghouston@arglist.com>
720
721 * ports.c (flush_void_port): renamed to flush_port_default.
722 (end_input_void_port): renamed to end_input_default.
723
724 * init.c (scm_standard_stream_to_port): create a void port instead
725 of opening /dev/null if the standard file descriptors are bad.
726 advantages: no portability problems, doesn't waste a file descriptor,
727 simplifies the code (thanks to Marius for the idea).
728
729 * vports.c (s_scm_make_soft_port): call scm_port_non_buffer.
730
731 * void ports: make reading from a void port give EOF instead of
732 segv:
733 * ports.c (s_scm_sys_make_void_port): modified docstring.
734 (fill_input_void_port): new proc.
735 (scm_init_ports): set up fill_input_void_port.
736 * ports.c (scm_port_non_buffer): new proc.
737 (scm_void_port): call scm_port_non_buffer.
738
739 * fports.c (scm_setvbuf): docstring: remove the fcntl documentation
740 which was incorrectly appended.
741
fdc7ea2d
MD
7422000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
743
744 * guile-doc-snarf.in: Don't use absolute path for `sed'. (Note
745 that we can't use autoconf for this. Autoconf itself relies on
26fba922 746 the existence of `sed' somewhere on your path.) (Thanks to Dirk
fdc7ea2d 747 Herrman.)
a00c95d9 748
68933ba3
MD
7492000-03-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
750
b44a555a
MD
751 * Makefile.am (libguile_la_SOURCES): Moved iselect.c here from
752 EXTRA_libguile_la_SOURCES.
753
754 * iselect.h: Always declare scm_internal_select.
755
756 * iselect.c (scm_internal_select): Added SCM_ASYNC_TICK at the
757 end. Also let scm_internal_select be a real function also when
758 not using threads.
759
68933ba3
MD
760 * __scm.h (SCM_TICK): Oops! Forgot to put SCM_ASYNC_TICK here...
761
c7f6ea11
MD
7622000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
763
764 * __scm.h (SCM_ALLOW_INTS, SCM_REALLOW_INTS): Removed call to
765 SCM_ASYNC_TICK. (This is a preparation for POSIX threads support,
766 and kind of an experiment: Will this cause problems?)
767
62dbc244
GB
768Sun Mar 12 13:26:30 2000 Greg J. Badros <gjb@cs.washington.edu>
769
770 * Makefile.am: Added *.doc to DISTCLEANFILES.
771
4f2f645d
GH
7722000-03-12 Gary Houston <ghouston@arglist.com>
773
774 * fports.c (scm_fdes_to_port): call fcntl F_GETFL to test that
775 the fdes is valid before doing anything else. check that
776 the file descriptor supports the modes required.
777 (scm_fport_buffer_add): don't throw an error if fstat doesn't
778 work: just use the default buffer size.
779
780 * throw.c: change an outdated comment about scm_internal_catch
781 BODY: it doesn't take a jumpbuf arg.
782
783 * init.c (scm_standard_stream_to_port): install a handler in case
784 scm_fdes_to_port throws an error. don't check here whether the
785 file descriptor is valid, since scm_fdes_to_port will do that.
786 set the revealed count depending on whether the port got the
787 standard file descriptor.
788 (stream_body_data): new type.
789 (stream_body, stream_handler): new procs.
790
7f782a0a
MD
7912000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
792
67673f75
MD
793 * stacks.c, stacks.h, struct.c, tags.h, unif.c (scm_bits_t):
794 Renamed from SCMWORD.
795
796 * tags.h (SCM_NCELLP): Removed (SCMWORD).
797
f1267706 798 * arbiters.c (SCM_ARB_LOCKED): Use SCM_UNPACK_CAR.
67673f75 799
74a426ae
MD
800 * async.c, boolean.h, debug.c, dynl.c, dynwind.c, eval.c, eval.h,
801 feature.h, filesys.h, fluids.h, fports.c, fports.h, gc.c, gc.h,
802 hash.c, keywords.h, macros.c, numbers.c, numbers.h, objects.c,
803 objects.h, options.c, pairs.h, ports.c, ports.h, print.c,
804 procs.h, ramap.c, read.c, smob.c, smob.h, srcprop.h, stacks.c,
805 stacks.h, strports.c, struct.c, struct.h, tag.c, tags.h,
806 throw.c, unif.c, unif.h, variable.h, vectors.h, weaks.c,
f1267706 807 weaks.h (SCM_PACK, SCM_UNPACK, SCM_UNPACK_CAR): Renamed from
74a426ae
MD
808 SCM_ASSCM, SCM_ASWORD, SCM_CARW).
809
7f782a0a
MD
810 * numbers.h (SCM_SRS, SCM_INUM): Corrected SCM_ASSCM/ASWORD fixes.
811
812 * alist.c, eval.c, net_db.c, posix.c, print.c, snarf.h, struct.c,
813 tags.h: Fixed copyright notices.
814
815 * struct.c, coop-threads.c: SCM_ASSCM/ASWORD fixes.
0cd87628 816
7f782a0a 8172000-03-12 Marius Vollmer <mvo@zagadka.ping.de>
a00c95d9 818
0cd87628
MV
819 * init.c (scm_standard_stream_to_port): Check whether the file
820 descriptor is valid and substitute "/dev/null" when not.
a00c95d9 821
f3b5e185
MD
8222000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
823
824 * coop-defs.h (struct timespec): Conditionally defined.
825
826 * coop.c (coop_condition_variable_timed_wait_mutex): Use ETIMEDOUT
827 instead of ETIME.
38eca29b
MD
828
829 * readline.c (match_paren): Bugfix: First arg to select is not
830 number of descriptors but the number of the highest descriptor +
831 1.
832
833 This is a preliminary attempt at a cleanup of the threads support
834 code. It moves things to better places, makes arguments more
835 consistent with the POSIX API (which is used in GNOME's glib), and
836 adds new functionality.
a00c95d9 837
38eca29b
MD
838 * readline.c (scm_init_readline): Added new arg to scm_init_mutex.
839
840 * coop-defs.h (scm_mutex_trylock): New macro: alias for
841 coop_mutex_trylock.
842 (scm_cond_init): Changed definition to
843 coop_new_condition_variable_init.
a00c95d9 844
38eca29b
MD
845 * coop.c: #include <errno.h>
846 (coop_timeout_qinsert): Moved here from iselect.c
847 (coop_new_mutex_init, coop_new_condition_variable_init): New
848 functions. The strange names are temporary. Use scm_mutex_init
849 and scm_cond_init instead.
850 (coop_mutex_trylock): New function. Uses errno.h:EBUSY. errno.h
851 is ANSI C, but should we check for individual error codes in
852 configure.in?
853 (coop_condition_variable_timed_wait_mutex): New function.
854 (coop_key_create, coop_setspecific, coop_getspecific,
7f782a0a 855 coop_key_delete): New functions.
38eca29b
MD
856
857 * iselect.c (coop_timout_qinsert): Moved to coop.c
858
32e1616c
MD
8592000-03-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
860
861 * pairs.h (SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR,
862 SCM_SETOR_CDR): Corrected SCM_ASSCM/WORD fixes.
863
864 * tags.h (SCM_VOIDP_TEST): Renamed from VOIDP_TEST.
865 Layout cleanups.
866
867 * objects.h (SCM_CLASS_FLAGS, SCM_OBJ_CLASS_FLAGS,
868 SCM_SET_CLASS_INSTANCE_SIZE), struct.h (SCM_STRUCT_VTABLE_DATA),
869 proc.h (SCM_CLOSCAR): SCM_ASSCM/WORD fixes.
870
871 * eval.c (scm_lookupcar1): Inserted SCM_ASWORD in expressions
872 dealing with ilocs.
873
d5c39069
GB
8742000-03-11 Dale P. Smith <dpsm@en.com>, applied by Greg J. Badros, <gjb@cs.washington.edu>
875
876 * numbers.c (scm_copy_big_dec, scm_copy_smaller, scm_big_ior,
877 scm_big_xor, scm_big_and, scm_big_test): Added new lowlevel bignum
878 logical functions from SCM.
879
880 (logand, logior, logxor, logtest, logbit?): Extended scheme
881 logical functions to use bignums from SCM.
882
883 (lognot): Removed call to `SCM_VALIDATE_INUM' that prevented
884 lognot from using bignums.
885
3e892913
GB
886Thu Mar 9 11:33:25 2000 Greg J. Badros <gjb@cs.washington.edu>
887
a00c95d9 888 * vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
3e892913
GB
889 eliminating some warnings.
890
891 * unif.c, strports.c, print.c, options.c: Fix some warnings on
892 mis-use of SCM/long
893
894 * gc.c, gc.h: Added scm_return_first_int(), and added comment re:
895 what the scm_return_first* functions do.
896
7ac030d6
GB
8972000-03-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>, applied by Greg J. Badros, <gjb@cs.washington.edu>
898
899 * libguile/*.[ch]: make a distinction between SCM as a generic
900 name for a Scheme object (now a void*), and SCM as 32 bit word for
901 storing tags and immediates (now a long int). Introduced
902 SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious
903 code in the process: arbiter.c (use macros), unif.c (scm_array_p),
a00c95d9 904
f635d2d4
GB
905Wed Mar 8 10:15:59 2000 Greg J. Badros <gjb@cs.washington.edu>
906
907 * numbers.c: Use SCM_VALIDATE_LONG_COPY, and longs, not ints, in
908 various logXXX primitives. Thanks Eric Moore!
909
9eaa7fb6
GB
910Tue Mar 7 08:05:22 2000 Greg J. Badros <gjb@cs.washington.edu>
911
912 * run-test, remaining-docs-needed: Added these scripts. The
913 second one is only temporary until the docstring additions are
914 complete. run-test may best live on, but is here mostly for
915 convenience and awareness for now.
916
917 * hash.c: Docs, minor cleanup patch from Dirk Herrman.
918
49673698
GB
919Thu Mar 2 16:06:58 2000 Greg J. Badros <gjb@cs.washington.edu>
920
921 * error.h, error.c: Added `scm_wrong_type_arg_msg' to support
922 displaying the expected type. Use SCM_LISTn in a couple places
923 instead of scm_cons-ing by hand.
924
925 * __scm.h: Added SCM_ASSERT_TYPE macro.
926
927 * validate.h, scm_validate.h: Added the former, as a renamed
928 version of the latter with SCM_ASSERT_TYPE used in
929 SCM_MAKE_VALIDATE (instead of just SCM_ASSERT)
930
931 * Makefile.am: Rename scm_validate.h to validate.h.
932
933 * *.c, *.h: Include validate.h, not scm_validate.h (old name's
934 prefix was superfluous).
935
417bdef8
GB
936Thu Mar 2 15:33:12 2000 Greg J. Badros <gjb@cs.washington.edu>
937
938 * hashtab.c: Improved documentation for lots of functions. Added
939 handwritten docs for `hash-fold'.
940
941Thu Mar 2 15:13:25 2000 Greg J. Badros <gjb@cs.washington.edu>
942
943 * list.c: Added hand-written docs for `del{q,v,ete}1!'.
944
26a760c6
GB
945Thu Mar 2 12:38:30 2000 Greg J. Badros <gjb@cs.washington.edu>
946
a00c95d9 947 * list.c: Moved append docs to append! Thanks Dirk Hermann. Also,
26a760c6
GB
948 added append docs from R4RS.
949
950 * strings.c: Docstring typo fix, + eliminate unneeded IMP tests.
951 Thanks Dirk Hermann!
952
953 * chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and
954 deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann!
a00c95d9 955
26a760c6
GB
956 * *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout.
957 Drop use of SCM_P for function prototypes... assume an ANSI C
958 compiler. Thanks Dirk Hermann!
959
898942f8
GB
960Sat Feb 19 12:20:12 2000 Greg J. Badros <gjb@cs.washington.edu>
961
962 * ports.c: Made `set-port-column!' and `set-port-line!' each
963 return SCM_UNSPECIFIED instead of a (not-scheme-object) integer
964 that caused a seg fault. Also fixed `set-port-column!'s
965 docstring. Thanks Han-Wen Nienhuys for finding the bug!
966
84a3df2c
GB
967Sun Feb 13 19:11:42 2000 Greg J. Badros <gjb@cs.washington.edu>
968
969 * arbiters.c, eq.c, gc.c, guardians.c, list.c, ports.c, print.c,
a00c95d9 970 regex-posix.c, scmsigs.c, stime.c, strings.c, variable.c, stime.c,
84a3df2c
GB
971 strings.c, variable.c: Added lots of documentation, cleaned up
972 some existing documentation. Occasionally changed formal params
973 to match docs. Also folded an #ifdef into the inners of a
974 primitive instead of having two copies of the primitive
975 (`get-internal-real-time', from stime.c)
976
977Sun Feb 13 18:12:19 2000 Greg J. Badros <gjb@cs.washington.edu>
978
979 * ports.c: Added docs for primitives missing them. Written by
980 hand.
981
3f557de6
GB
982Sun Feb 13 09:40:36 2000 Greg J. Badros <gjb@cs.washington.edu>
983
984 * guile-doc-snarf.in: Use ${AWK} -f guile-func-name-check, not
985 just execing guile-func-name-check. Thanks Michael Livshin!
986
ddcccdb3
GB
987Thu Feb 10 11:43:23 2000 Greg J. Badros <gjb@cs.washington.edu>
988
989 * guile-snarf.awk.in: Tweak to work with Sun/HP awk, removed some
990 dead code. Patch from Michael Livshin.
991
992 * guile-doc-snarf.in: Tweak to work with Sun/HP sh. Patch from
993 Michael Livshin.
994
720e8692
GH
9952000-02-09 Gary Houston <ghouston@arglist.com>
996
997 * init.c (scm_init_standard_ports): when stdout is a tty, make the
998 current-output-port unbuffered by default. this is less confusing
999 for interactive use. it was line-buffered because of a
1000 performance problem with unbuffered ports, but I think it will be
1001 OK now.
1002
43ff3170
GH
10032000-02-08 Gary Houston <ghouston@arglist.com>
1004
1005 * __scm.h: don't define long_long or ulong_long if HAVE_LONG_LONGS
1006 is not defined.
1007
1008 * stime.c (scm_localtime, scm_mktime): if neither HAVE_TM_ZONE nor
1009 HAVE_TZNAME are defined, use an empty string instead of giving two
1010 spurious compile-time errors.
1011
4ba47302
GB
1012Tue Feb 8 13:57:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1013
1014 * ports.c: Doc patches from Richard Kim. Pasted from MIT Scheme.
1015 Thanks Richard!
1016
09a617f7
GB
1017Mon Feb 7 09:07:31 2000 Greg J. Badros <gjb@cs.washington.edu>
1018
1019 * macros.c: Doc patches from Richard Kim. Pasted from scm.texi.
1020
9dbcf010
GB
1021Sun Feb 6 20:26:21 2000 Greg J. Badros <gjb@cs.washington.edu>
1022
1023 * pairs.c: Doc patches from Richard Kim. Pasted from MIT Scheme
1024 (which is GNU GPL'd).
1025
bd9e24b3
GH
10262000-01-31 Gary Houston <ghouston@arglist.com>
1027
1028 * strings.h: don't use SCM_P. don't include <string.h>.
1029 * error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>.
a00c95d9 1030
bd9e24b3
GH
1031 * strings.c (scm_string_ref): make the 2nd argument compulsory.
1032 previously it defaulted to zero for no good reason that I can see.
1033 use a local variable for SCM_INUM (k). replace
1034 SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY.
1035
1036 (scm_makfromstr): cosmetic changes.
1037
1038 (scm_string): Accept only chars in the list, not strings, for
1039 conformance to R5RS (particularly for list->string, which is
1040 supposed to be the inverse of string->list.) remove
1041 SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since
1042 scm_makstr handles the cell allocation. when reporting wrong-type
1043 arg, don't report the position as 1.
1044
1045 * posix.c (scm_init_posix): intern PIPE_BUF if it's defined.
1046
28d77376
GH
10472000-01-29 Gary Houston <ghouston@arglist.com>
1048
ae1b098b
GH
1049 * posix.c (scm_pipe): rewrote the docstring.
1050
28d77376
GH
1051 * filesys.c (scm_select, retrieve_select_type, get_element,
1052 fill_select_type, set_element): modified so that Scheme
1053 "select" tests port buffers for the ability to provide input
1054 or accept output. Previously only the underlying file descriptors
1055 were checked. Rewrote the docstring.
a00c95d9 1056
7f1497ce
GB
1057Thu Jan 27 10:14:25 2000 Greg J. Badros <gjb@cs.washington.edu>
1058
1059 * vectors.c, symbols.c, strorder.c: Documentation cut and pasted
1060 from Gregg Reynolds. Thanks Gregg!
1061
2288ff9b
GB
1062Thu Jan 27 09:59:38 2000 Greg J. Badros <gjb@cs.washington.edu>
1063
1064 * strop.c (scm_i_index): Obfuscated commented-out SCM_DEFINE by
1065 adding "x" prefix to the line so that guile-func-name-check
1066 doesn't complain unnecessarily.
1067
349af6dd
GB
1068Wed Jan 26 17:33:52 2000 Greg J. Badros <gjb@cs.washington.edu>
1069
1070 * throw.c: Factor out an #ifdef/#else/#endif choice more finely
1071 for maintainability.
1072
1073 * strop.c: Documentation added by Gregg A. Reynolds. Pasted in
1074 from qdocs, RnRs.
1075
a28eb127
GB
1076Wed Jan 26 10:02:11 2000 Greg J. Badros <gjb@cs.washington.edu>
1077
a00c95d9 1078 * tag.c: Added doc for `tag', but mark as deprecated since Mikael
a28eb127
GB
1079 suggests removing tag.c altogether (and using a new `class-of'
1080 instead).
1081
1082 * strings.c: Added documentation from Gregg A. Reynolds. Edited
1083 a bit by me to use FOO instead of @var{foo} and to have the
a00c95d9 1084 summary come before preconditions on input. Also dropped trailing
a28eb127
GB
1085 (rnrs) note.
1086
1087 * gsubr.c: Do not use SCM_DEFINE for `gsubr-apply'. Register the
1088 function with scm_make_subr_opt w/ last arg of 0 so it is not
1089 visible at the Scheme level. Mikael says that this is the right
1090 thing because the first arg to the proc is the guts of a compiled
1091 closure and shouldn't be exposed to the Scheme level.
1092
ac2259fc
GB
1093Tue Jan 25 17:15:47 2000 Greg J. Badros <gjb@cs.washington.edu>
1094
1095 * sort.c: typo in comment fixed.
1096
1097 * keywords.c: Added documentation.
1098
1099 * guardians.c: Added documentation (could be better).
1100
1101 * gc.c: Added docs for gc-set-debug-check-freelist.
1102
1103 * eq.c: Added docs for eq?, eqv? equal? abridged from R4RS.
1104
1105 * boolean.c: Added docs for `not', `boolean?' (by hand).
a00c95d9 1106
d928e0b4
GB
1107Tue Jan 25 13:28:56 2000 Greg J. Badros <gjb@cs.washington.edu>
1108
1109 * random.c: Added documentation, from SLIB page:
1110 http://angela.ctrl-c.liu.se/~calle/scheme/slib_toc.html
1111
1112Mon Jan 24 17:50:20 2000 Greg J. Badros <gjb@cs.washington.edu>
1113
1114 * variable.c, version.c: Added documentation, written by hand
1115 since I could not find anything already written that was
1116 relevant.
1117
d831b039
GH
11182000-01-23 Gary Houston <ghouston@arglist.com>
1119
a00c95d9 1120 * filesys.c (scm_chown): omit port/fdes support if HAVE_FCHOWN is
d831b039
GH
1121 not defined (thanks to Richard Y. Kim).
1122
88ec97ad
GB
1123Thu Jan 20 13:00:38 2000 Greg J. Badros <gjb@cs.washington.edu>
1124
1125 * Makefile.in: Removed, this is auto-generated.
1126
078e9092
GB
1127Thu Jan 20 11:33:47 2000 Dirk Hermann <dirk@ida.ing.tu-bs.de> --applied 01/20/00 gjb
1128
1129 * list.c: Put some variable initialization code at the point of
1130 declaration; Added a comment for list*; Formatting changes.
1131
1132 * load.c: use SCM_NNULLP to make sure the end of a list is not
1133 reached yet.
1134
e7a96050
MD
11352000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1136
a177af34
MD
1137 * backtrace.c (scm_display_error_message): Bugfix: Don't use
1138 result of scm_list_p as C boolean.
1139 (scm_display_error_message, scm_set_print_params_x): Use new
1140 validation macros. (Thanks to Dirk Herrmann.)
1141
d06bcb02
MD
1142 * net_db.c (scm_resolv_error): Cast result from hstrerror.
1143
1144 * strports.c (st_end_input): Inserted parenthesis to get operator
1145 grouping correct.
1146
1147 * list.h (scm_init_list): Removed SCM_P around prototypes.
1148
1149 * fports.c, list.c, numbers.c, ports.c, stime.c, symbols.c,
1150 filesys.c, posix.c: Converted docstrings to ANSI C format and
e7a96050
MD
1151 escaped " occurring inside string literals.
1152
682eefe9
MD
1153Tue Jan 18 13:21:08 2000 Mikael Djurfeldt <mdj@r11n07-s.pdc.kth.se>
1154
1155 * posix.c (scm_mknod): Escape " occuring inside docstring.
1156
56cfe22b
MD
11572000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1158
1159 * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
1160 evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
1161 keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
1162 objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
1163 ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
1164 stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
1165 symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
1166 weaks.c: Converted docstrings to ANSI C format.
a00c95d9 1167
56cfe22b
MD
1168 * filesys.c (scm_chmod), simpos.c (scm_system), version
1169 (scm_version), vports (scm_make_soft_port): Escape " occuring
1170 inside docstring.
1171
fcb1720f
GB
1172Mon Jan 17 11:41:22 2000 Greg J. Badros <gjb@cs.washington.edu>
1173
1174 * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
1175 SCM_VALIDATE_LONG_COPY
1176
1177 * numbers.c: Use SCM_VALIDATE_ULONG_COPY, instead of
1178 SCM_VALIDATE_INUM_COPY to let bigger numbers be used. Rename a
1179 couple of formal arguments (and fix their uses) to make arguments
1180 match the documentation.
1181
b9af3d0e
MS
11822000-01-14 <mstachow@alum.mit.edu>
1183
1184 * Makefile.am: Augment path when running guile-doc-snarf so
1185 guile-func-name-check is found.
1186
153511a7
GB
1187Fri Jan 14 09:34:55 2000 Greg J. Badros <gjb@cs.washington.edu>
1188
1189 * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
1190 def, not SCM_MAKINUM(def); thanks Janis Bzerins!
1191
59d5245f
GB
1192Wed Jan 12 00:06:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1193
1194 * net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's
1195 the way guile-1.3.4 worked, but #if 0 out the version using
1196 SCM_VALIDATE_INUM_COPY for stricter testing.
1197
95aec69f
GB
1198Tue Jan 11 18:24:18 2000 Greg J. Badros <gjb@cs.washington.edu>
1199
1200 * guile-doc-snarf.in: Use new $fullfilename for running
1201 guile-func-name-check, and put "$fullfilename" and "$filename" in
1202 quotes at uses to make sure re-splitting on whitespace does not
a00c95d9 1203 occur (so filenames w/ embedded whitespace would work okay, though
95aec69f
GB
1204 I sure hope we never have to deal with that! :-) ). Thanks to
1205 Mikael for pointing out the source_dir != build_dir was broken.
1206
b7ac2837
GB
1207Tue Jan 11 17:42:40 2000 Greg J. Badros <gjb@cs.washington.edu>
1208
1209 * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
1210 SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num. Added
1211 SCM_COERCE_ROSTRING macro. Added SCM_VALIDATE_NONEMPTYLIST
1212 macro. Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
1213 variants.
1214
1215 * ports.c (scm_port_closed_p): Validate that the arg is a PORT,
1216 then return whether it's an open port (was validating that it was
1217 an open port -- this was a bug I introduced back in December, but
1218 my careful reading of diffs caught it).
1219
1220 * numbers.c: Recombine the two conditional-compilation paths for
1221 all the log* primitives -- they were split based on #ifndef
1222 scm_long2num; factored out a SCM_LOGOP_RETURN macro, and fixed
1223 some bugs and inconsistencies in the two sets of implementations.
1224 (scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!
1225
1226 * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
1227 SCM_VALIDATE_INUM_COPY once where it should've been used.
1228
1229 * fluids.c (scm_internal_with_fluids): Use
1230 SCM_VALIDATE_LIST_COPYLEN.
1231
1232 * filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
1233 this is questionable as it relaxes type safety, but other changes
1234 were useful and all SCM_NUM2LONG's should probably be
1235 revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.
1236
1237 * evalext.c: line-break change on 1 line.
1238
1239 * eval.c (nconc2last): Takes a non-empty list as its first
1240 argument, not just a list.
1241
1242 * dynl.c: Use new SCM_COERCE_ROSTRING macro.
1243
1244Tue Jan 11 15:44:23 2000 Greg J. Badros <gjb@cs.washington.edu>
1245
1246 * dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
1247 net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
1248 where possible.
1249
1250 * symbols.c (scm_sysintern0): Fixed the function name in a
1251 scm_misc_error invocation.
1252
1253 * print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
1254 use scm_return_first to ward off latent GC bug that Mikael caught.
1255
1256 * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
1257 used before but should've been.
1258
d61f6b02
MD
12592000-01-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1260
1261 * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
1262 SCM_FUNC_CAST_ARBITRARY_ARGS.
1263
88423ab1
GB
1264Tue Jan 11 13:44:07 2000 Greg J. Badros <gjb@cs.washington.edu>
1265
1266 * guile-func-name-check.in: Added this script to statically check
1267 #define FUNC_NAME, #undef FUNC_NAME in the source.
1268
1269 * sort.c, posix.c: Fix #undef FUNC_NAME lines to not have trailing
1270 redundant comment, semicolon; caught by new guile-func-name-check
1271 script.
1272
1273 * debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
1274 Caught by new guile-func-name-check-script.
1275
1276 * Makefile.am: Added guile-func-name-check to bin_SCRIPTS
1277
1278 * ramap.c: Fix #if 0'd out code to be syntactically acceptable to
1279 guile-func-name-check.
1280
a00c95d9 1281 * guile-doc-snarf.in: Run guile-func-name-check on the file before
88423ab1
GB
1282 doing the snarf.
1283
7f15e635
GB
1284Tue Jan 11 11:31:10 2000 Greg J. Badros <gjb@cs.washington.edu>
1285
1286 * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
1287 port function take const void*, not void*.
1288
bf121b59
GB
1289Tue Jan 11 11:18:07 2000 Greg J. Badros <gjb@cs.washington.edu>
1290
1291 * scm_validate.h, chars.c, ports.c, print.c, read.c, strings.c,
1292 strop.c: Use SCM_VALIDATE_ICHR, SCM_VALIDATE_ICHR_COPY instead of
1293 SCM_VALIDATE_CHAR, SCM_VALIDATE_CHAR_COPY. Change made for
1294 consistency with the other macros dealing with immediate
1295 characters. (Similar to INT -> INUM change a week or so ago).
1296
7965d98f
GB
1297Tue Jan 11 10:41:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1298
1299 * dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,
1300 net_db.c, read.c, socket.c: Update error messages to use ~A for
1301 %s, ~S for %S to work with new `simple-format' format and be
1302 standardized better.
1303
1304 * print.h, print.c (scm_simple_format): Added `simple-format'
1305 primitive. It's the old scm_display_error, with ARGS now a rest
a00c95d9 1306 parameter, and the destination first instead of last (and a couple
7965d98f
GB
1307 new capabilities inspired by `format' -- #t as destination means
1308 current-output-port, #f means return the formatted text as a
1309 string.
1310
1311 * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.
1312
1313 * backtrace.c (scm_display_error_message): Rewrote to use
1314 scm_simple_format() procedure.
1315
1316 * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
1317
f73d2411
MV
13182000-01-09 Marius Vollmer <mvo@zagadka.ping.de>
1319
1320 Finally applied the libltdl patch from Thomas Tanner, with slight
1321 modifications.
1322
1323 * DYNAMIC-LINKING: Removed because it is obsolete.
1324 * dynl.c: Use ANSI prototypes.
1325 (sysdep_dynl_link): Use lt_dlopenext instead of lt_dlopen.
1326 * scmconfig.h.in: Do not change, as it is automatically generated.
a00c95d9 1327
f73d2411
MV
1328 1999-07-25 Thomas Tanner <tanner@ffii.org>
1329
1330 * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
1331 (obsolete)
1332 * Makefile.am: likewise, add INCLTDL (libltdl headers) to
1333 INCLUDES, set dlpreopened files in LDFLAGS, link libguile
1334 against libltdl
1335 * dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
1336 * guile.c: register preloaded modules
1337 * scmconfig.h.in: remove obsolete symbols
1338
38c1d3c4
GH
13392000-01-09 Gary Houston <ghouston@arglist.com>
1340
1341 * These changes should make it unnecessary to call tzset from
1342 Scheme after modifying the TZ environment variable, even if the
1343 system date facilities cache the value.
1344 * stime.c (setzone, scm_localtime): added comments.
1345 (tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
1346 (setzone): don't call tzset.
1347 (restorezone): call tzset only if HAVE_TZSET is defined.
1348 (scm_tzset): don't define if HAVE_TZSET not defined. Change the
1349 doc string to indicate that this procedure isn't likely to do
1350 anything useful.
1351 (scm_localtime, scm_strftime, scm_mktime): call tzset if
1352 LOCALTIME_CACHE is defined.
1353
9359d657
MD
13542000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1355
1356 * posix.c (scm_sync): Return SCM_UNSPECIFIED.
1357
f25f761d
GH
13582000-01-09 Gary Houston <ghouston@arglist.com>
1359
1360 * eval.c: define scm_unbound_variable_key ('unbound-variable).
1361 scm_lookupcar1: throw an error with key 'unbound-variable instead
1362 of 'misc-error when an unbound variable is encountered.
1363
a00c95d9 1364 * filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
f25f761d
GH
1365 scm_symlink, scm_readlink, scm_lstat),
1366 posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
1367 scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
1368 scm_sync),
a00c95d9 1369 simpos.c (scm_system),
f25f761d
GH
1370 stime.c (scm_times, scm_strptime):
1371 move the HAVE_XXX feature tests out of the procedure bodies.
1372 don't use SCM_SYSMISSING.
1373 scm_validate.h (SCM_SYSMISSING): removed.
1374 error.h, error.c (scm_sysmissing): comment that this is deprecated.
1375 see ChangeLog entry for 1999-12-28.
1376
a4dd2611
GB
1377Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
1378
1379 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
1380
1381Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1382
1383 * backtrace.c: Fix spelling typo in a comment.
1384
1385 * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
1386 text. Reformatted some of the expansions.
1387
5ac36451
GB
1388Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
1389
1390 * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
1391 report the position of the argument.
1392
a00c95d9 1393 * error.h, error.c (scm_out_of_range_pos): Added this function to
5ac36451 1394 take extra "pos" argument, the position number of the errant
a00c95d9 1395 argument.
5ac36451
GB
1396
1397 * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
1398
1399 * snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
1400 and SCM_SNARFING. Also put the %%% in the SCM_INIT since Mikael
1401 prefers that and I'm reasonably indifferent.
1402
1403Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
1404
1405 * snarf.h: Factor out differences between C++ and non-C++ into
1406 SCM_FUNC_CAST_ARBITRARY_ARGS macro. Modify all the snarf macro
1407 definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
1408 Mikael's macros, below, but changed names and SCM_SNARFING no
1409 longer expands to include %%% -- that must appear in the argument
1410 so that the token appears at the call-site as a reminder).
1411
088bb1d4
MD
14122000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
1413
1414 * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
1415 snarf macro definitions.
1416
636480e6
MD
14172000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1418
1419 * chars.c (scm_integer_to_char): Use Greg's nice
1420 SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
1421 adherence to R5RS.
1422
7c5628e2
GB
1423Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
1424
1425 * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
1426
2cc0f8cb
GB
1427Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1428
1429 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
1430 instead of GUILE_PROC.
1431
1432Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
1433
a00c95d9 1434 * alist.c: Do not report mismatch errors on some uses of `tmp' (do
2cc0f8cb
GB
1435 this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
1436 macro call.
1437
9179dcdd
GB
1438Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
1439
1440 * scm_validate.h: Remove some redundant NIMP tests.
1441
1442 * alist.c: minimize scope of the tmp variables, and initialize
1443 them when declared. The strange SCM_NIMP tests are replaced by
1444 SCM_CONSP tests that more closely reflect the intended semantics.
1445 However, we don't get a performance penalty here, because the
1446 SCM_CONSP test was performed by the ALISTCELL test anyway. * The
1447 extremely ugly use of ASRTGO macros was removed: The calls to
1448 ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
1449 label parameter that only exists when SCM_RECKLESS is not defined.
1450 This works, because ASRTGO itself is defined in a way that it only
1451 makes use of the label parameter if SCM_RECKLESS is not defined
1452 (shudder!). Does guile make at all use of the possibility to
1453 define SCM_RECKLESS? * Codesize is likely to be reduced, since
1454 instead of two calls to SCM_ASSERT performed by the ALISTCELL test
1455 we now only get one test.
1456
1457 * list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate. Also use
1458 SCM_NULLP instead of SCM_IMP. Drop use of "register" keyword on
1459 some variables in `list?'. Fix `reverse' and `reverse!'
1460 primitives to handle improper lists better.
1461
15b33280
GB
1462Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
1463
1464 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
1465 macros and SCM_DEFINE macros to match GNU coding standards.
1466
ca8cd130
GB
1467Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
1468
1469 * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
1470
fb764465
GB
1471Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
1472
1473 * *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM for
1474 better consistency with the names of other SCM_VALIDATE_ macros
1475 and better conformance to guile naming policy.
1476
1477Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
1478
1479 * ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
1480 SCM_VALIDATE instead of 1 to avoid a check on the argument (since
1481 it's not the actual name of the formal).
1e484823
GB
1482
1483 * guile-snarf.awk.in: Do argument/number mismatch checking and
1484 print warnings in an Emacs compile-mode parseable format.
1485
1486 * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
1487 SCM_OUTOFRANGE as 3rd argument.
1488
1489 * random.c: Fix argument/number mismatch (that I introduced :-( ).
1490
1491 * __scm.h: Do not #define SCM_ARG* when snarfing;
1492 lets us distinguish between 1 and SCM_ARG1 when snarfing as only
1493 the former (using the number) requires the argument to match the
1494 formal in the current argument snarfing check.
1495
1496 * snarf.h: Give new definition of SCM_ASSERT when in
a00c95d9 1497 snarfing mode to output a lexically-identifiable sequence that the
1e484823
GB
1498 guile-snarf.awk script uses to verify argument/position matching.
1499
1500 * ramap.c: Remove extraneous #undef FUNC_NAME.
1501
53fc4636
GB
1502Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
1503
1504 * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
a00c95d9 1505 current version of the same functionality; it writes the .x output
53fc4636
GB
1506 to stdout instead of directly into the file.
1507
1508Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
1509
1510 * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
1511 posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now
1512 redundant with the safer macros. Patch from Dirk Hermann applied
1513 by hand. Thanks Dirk!
1514
1515 * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
1516 uses in random.c.
1517
1518 * ramap.c: whitespace change.
1519
3b5345d9
GB
1520Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
1521
1522 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
1523 removals from Dirk Hermann.
1524
1525 * alist.c: Rename formals to match the parameter names in the
1526 documentation, updates to documentation. Thanks Dirk Hermann!
1527
169aec65
MD
15282000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1529
db62436e
MD
1530 * eval.c (SCM_CEVAL): Reverse order of
1531 scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
1532 (Thanks to Brad Knotwell.)
169aec65 1533
da43d822
GB
1534Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
1535
1536 * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
a00c95d9 1537 allocated cell.
da43d822
GB
1538
1539 * pairs.h: Added a comment about the need for the SCM_SETCAR in
1540 SCM_NEWCELL macro.
1541
1542Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
1543
1544 * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
1545 SCM_NIMP tests that were redundant are now eliminated. Patches
1546 from Dirk Hermann applied by hand.
1547
339999c7 1548The ChangeLog continues in the file: "ChangeLog-1996-1999"