* Rename `call-with-readline-completion-function' to `with-readline-completion-function'.
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
af68e5e5
SJ
12002-01-28 Stefan Jahn <stefan@lkcc.org>
2
3 * symbols.c (scm_c_symbol2str): New function, replacement for
4 `gh_scm2newsymbol()'.
5
6 * strings.c (scm_c_substring2str): New function. Proper
7 replacement for `gh_get_substr()'.
8
9 * socket.c: Include `stdint.h' if available for the `uint32_t'
10 declaration.
11
12 * scmsigs.c (s_scm_sigaction): Initialize `chandler' (inhibits
13 compiler warning).
14
15 * backtrace.c: Include `lang.h' for GUILE_DEBUG conditional.
16
c96d76b8
NJ
172002-01-22 Neil Jerram <neil@ossau.uklinux.net>
18
19 Other changes unrelated to Elisp...
20
21 * eval.c (scm_m_if): Use s_if rather than repeating string literal
22 "if".
23 (comments): Fix a few typos.
24 (scm_for_each): Add parentheses around oddly unparenthesized
25 if/while conditions.
26
27 * read.c (scm_read_opts): Add full stop at end of doc for
28 `keywords' option.
29
30 * script.c (scm_compile_shell_switches): Use scm_str2symbol
31 instead of gh_symbol2scm.
32
33 * srcprop.h (SRCPROPBRK): Return C type rather than SCM.
34 (SRCBRKP): Use SRCPROPBRK rather than duplicating its logic.
35
36 * srcprop.c (scm_srcprops_to_plist, scm_source_property): Change
37 SRCPROPBRK (x) to SCM_BOOL (SRCPROPBRK (x)).
38
39 First batch of changes for Elisp support...
40
41 * alist.c, async.c, boolean.c, dynl.c, eval.c, filesys.c,
42 fluids.c, list.c, load.c, options.c, posix.c, print.c, sort.c,
43 throw.c, vectors.c, weaks.c: Add #include for lang.h.
44
45 * eval.c, eval.h, init.c, lang.c, lang.h: Use SCM_ENABLE_ELISP to
46 conditionalize compilation and initialization of Elisp support
47 function.
48
49 * alist.c (scm_assq, scm_assv, scm_assoc), async.c
50 (scm_asyncs_pending, scm_run_asyncs, noop), backtrace.c
51 (scm_set_print_params_x), dynl.c (scm_make_argv_from_stringlist),
52 filesys.c (fill_select_type, retrieve_select_type), fluids.c
53 (scm_swap_fluids, scm_swap_fluids_reverse), list.c (scm_null_p,
54 scm_ilength, scm_append_x, scm_last_pair, scm_reverse,
55 scm_reverse_x, scm_list_ref, scm_list_set_x, scm_list_cdr_set_x,
bbd26b5a
NJ
56 scm_c_memq, scm_memv, scm_member), load.c (scm_search_path),
57 options.c (change_option_setting, scm_options), posix.c
58 (environ_list_to_c), print.c (scm_iprlist), throw.c
59 (scm_exit_status), vectors.c (scm_vector), weaks.c
60 (scm_weak_vector): Use SCM_NULL_OR_NIL_P instead of SCM_NULLP.
c96d76b8
NJ
61
62 * boolean.c (scm_not): Use `SCM_FALSEP || SCM_NILP' instead of
63 just SCM_FALSEP.
64
65 * boolean.c (scm_boolean_p): Use `SCM_BOOLP || SCM_NILP' instead
66 of just SCM_BOOLP.
67
68 * eval.c (scm_lisp_nil, scm_lisp_t, s_nil_ify, scm_m_nil_ify,
69 s_t_ify, scm_m_t_ify, s_0_cond, scm_m_0_cond, s_0_ify,
70 scm_m_0_ify, s_1_ify, scm_m_1_ify): Removed.
71 (scm_m_atfop): Support function aliasing. Support both function
72 args, which need transformation, and macro args, which do not.
73 Add explanatory comments.
74 (SCM_CEVAL): In switch cases for SCM_IM_AND, SCM_IM_COND,
75 SCM_IM_DO, SCM_IM_IF and SCM_IM_OR, add `|| SCM_NILP' to existing
76 checks for SCM_FALSEP. In switch case for SCM_IM_NIL_COND, use
77 SCM_NULLP || SCM_NILP instead of checks against (removed)
78 scm_lisp_nil. Removed switch cases for SCM_IM_NIL_IFY,
79 SCM_IM_T_IFY, SCM_IM_0_COND, SCM_IM_0_IFY, SCM_IM_1_IFY.
80
81 * lang.c (scm_nil_cons, scm_nil_car, scm_nil_cdr, scm_null,
82 scm_m_while, scm_nil_eq): Commented out; I don't think we need
83 these, but I don't want to remove them yet, just in case.
84 (scm_init_lang): Define `%nil' variable on Scheme level to hold
85 Elisp nil value.
86
87 * lang.h (SCM_NILP): Test against Elisp nil value instead of
88 against (removed) scm_lisp_nil.
89 (SCM_NILNULLP, SCM_NIL2EOL, SCM_EOL2NIL): Commented out.
90 (SCM_NULL_OR_NIL_P): New.
91
92 * list.c (scm_append): Use SCM_VALIDATE_NULL_OR_NIL instead of
93 SCM_VALIDATE_NULL.
94
95 * print.c (scm_isymnames): Fix comment. Remove #@nil-ify,
96 #@t-ify, #@0-cond, #@0-ify, #@1-ify. Add #nil (for SCM_ELISP_NIL
97 value).
98
99 * sort.c (scm_sorted_p, scm_merge, scm_merge_list_x, scm_merge_x,
100 scm_sort_x, scm_sort, scm_stable_sort_x, scm_stable_sort): Use
101 SCM_NULL_OR_NIL_P instead of SCM_NULLP. In constructions like `if
102 (SCM_NULLP (x)) return SCM_EOL;', return x rather than SCM_EOL.
103
104 * tags.h (SCM_IM_NIL_IFY, SCM_IM_T_IFY, SCM_IM_0_COND,
105 SCM_IM_0_IFY, SCM_IM_1_IFY): Removed.
106 (SCM_IM_BIND, SCM_IM_DELAY, SCM_IM_CALL_WITH_VALUES, SCM_UNBOUND):
107 Numbering shifted down accordingly.
108 (SCM_ELISP_NIL): New IFLAG.
109
110 * validate.h (SCM_VALIDATE_NULL_OR_NIL): New.
111
a392ee15
DH
1122002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
113
114 * eval.c: Removed outdated references to "everr". Improved some
115 comments.
116
117 (scm_deval_args, deval_args): Renamed scm_deval_args to
118 deval_args, since it is not part of the interface.
119
120 (SCM_CEVAL): Added (maybe somewhat verbose) comment. Avoid to
121 use references to debug.vect[0] before it exists. Add parentheses
122 to switch statement.
123
124 * goops.h: Added local emacs variables.
125
24933780
DH
1262002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
127
128 * eval.[ch] (scm_deval_args): Made static.
129
130 * srcprop.c (scm_source_property): Remove redundant SCM_IMP
131 test.
132
133 * strings.c (scm_c_string2str): Clarified comment. Replaced
134 THINKME by FIXME for uniformness. Removed question about whether
135 arguments need to be protected from garbage collection: Arguments
136 must be protected as any other variable.
137
f9450cdb
DH
1382002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
139
140 * procs.h (SCM_CLOSURE_BODY): New Macro.
141
142 * debug.c (scm_procedure_name, scm_procedure_source), eval.c
143 (SCM_CEVAL, SCM_APPLY), goops.c (scm_sys_initialize_object,
144 get_slot_value, set_slot_value), procs.c
145 (scm_procedure_documentation), sort.c (closureless), stacks.c
146 (get_applybody): Replace SCM_CDR (SCM_CODE (...)) by
147 SCM_CLOSURE_BODY.
148
149 * sort.c (closureless): Prefer !SCM_FOOP over SCM_NFOOP.
150
5dc64f64
MV
1512001-12-26 Marius Vollmer <mvo@zagadka.ping.de>
152
153 * Makefile.am (guile-procedures.txt): When we don't have makeinfo,
154 use "cp" instead.
155
197ee3d3
MV
1562001-12-16 Marius Vollmer <mvo@zagadka.ping.de>
157
158 * stacks.c, stacks.h (scm_t_stackype): Renamed to scm_stack_type
159 everywhere.
160
161 * continuations.c (scm_make_continuation): Do not retain the
162 throw_value when the continuation is invoked.
163
4d4528e7
SJ
1642001-12-08 Stefan Jahn <stefan@lkcc.org>
165
166 * strings.c (scm_c_string2str): New function. Converts a
167 given Scheme string into a C string. Also put in two
168 THINKME's regarding the malloc policy for the missing converter
169 routines.
170
98347362
NJ
1712001-12-01 Neil Jerram <neil@ossau.uklinux.net>
172
173 * gh_data.c (gh_module_lookup): Use scm_str2symbol rather than
174 gh_symbol2scm.
175
1fc8902f
DH
1762001-11-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
177
178 * gc.h (SCM_GC_CELL_WORD, SCM_GC_CELL_OBJECT,
179 SCM_GC_SET_CELL_WORD, SCM_GC_SET_CELL_OBJECT): New macros.
180
181 (SCM_GC_CELL_TYPE, SCM_CELL_WORD, SCM_CELL_OBJECT,
182 SCM_SET_CELL_WORD, SCM_SET_CELL_OBJECT, SCM_FREE_CELL_CDR,
183 SCM_GC_SET_CELL_OBJECT): Express in terms of SCM_GC_CELL_*
184 macros.
185
186 (SCM_FREE_CELL_P): Express in terms of SCM_GC_CELL_TYPE.
187
188 * inline.h (scm_alloc_cell, scm_alloc_double_cell): Use
189 SCM_GC_CELL_* macros when accessing free cells.
190
4878beec
MV
1912001-11-25 Marius Vollmer <mvo@zagadka.ping.de>
192
193 * vectors.h (SCM_MAKE_VECTOR_TAG): New.
194 * unif.h (SCM_MAKE_BITVECTOR_TAG, SCM_MAKE_UVECTOR_TAG): New.
195 * symbols.h (SCM_MAKE_SYMBOL_TAG): New.
196 * strings.h (SCM_MAKE_STRING_TAG): New.
197 * procs.h (SCM_MAKE_CCLO_TAG): New.
198 * numbers.h (SCM_MAKE_BIGNUM_TAG): New.
199
200 * goops.h: Replaced SCM_DEBUG_DEPRECATED with
201 !SCM_ENABLE_DEPRECATED.
202
203 * async.c, async.h (scm_system_async_mark_from_signal_handler):
204 New.
205
206 * scmsigs.c (scm_take_signal): Removed all code that assumes that
207 signal handlers are allowed to divert the flow of control. Call
208 scm_system_async_mark_from_signal_handler instead of
209 scm_system_async_mark.
210
211
212 Deprecated SCM_NEWCELL and SCM_NEWCELL2. Added scm_alloc_cell and
213 scm_alloc_double_cell in their place.
214
215 * gc.h (SCM_GC_SET_ALLOCATED, scm_debug_newcell,
216 scm_debug_newcell2, scm_tc16_allocated): Removed from header.
217 (scm_deprecated_newcell, scm_deprecated_newcell2): New.
218 (SCM_NEWCELL, SCM_NEWCELL2): Implement in terms of
219 scm_deprecated_newcell and scm_deprecated_newcell2.
220
221 gc.c (scm_tc16_allocated): Only define when including deprecated
222 features.
223 (scm_debug_newcell, scm_debug_newcell2): Removed.
224 (scm_init_storage): Do not initialize scm_tc16_allocated.
225 (scm_init_gc): Do it here.
226 (allocated_mark): New, from old code.
227 (scm_deprecated_newcell, scm_deprecated_newcell2): New.
228
229 * inline.c, inline.h: New files.
230 * Makefile.am: Added them in all the right places.
231
232 * _scm.h: Include "libguile/inline.h".
233
234 * alist.c, coop-threads.c, debug.c, environments.c, eval.c,
235 fports.c, gh_data.c, goops.c, guardians.c, lang.c, list.c,
236 num2float.i.c, numbers.c, pairs.c, ports.c, print.c, procs.c,
237 smob.c, smob.h, strings.c, strports.c, struct.c, symbols.c,
238 unif.c, variable.c, vectors.c, vports.c, weaks.c: Replaced
239 SCM_NEWCELL and SCM_NEWCELL2 with scm_alloc_cell and
240 scm_alloc_double_cell, respectively.
241
d2bc7fae
MV
2422001-11-23 Marius Vollmer <mvo@zagadka.ping.de>
243
244 * modules.c (scm_c_use_module): Adapt to changes to
245 `process-use-modules'.
246
5eec27e9
DH
2472001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
248
249 * numbers.c (scm_divide): Fix more division by zero errors.
250
8978878f
GH
2512001-11-21 Gary Houston <ghouston@arglist.com>
252
253 * Makefile.am (OMIT_DEPENDENCIES): removed, since it seems to be
254 obsolete. autogen.sh says:
255 invalid unused variable name: `OMIT_DEPENDENCIES'
256
164826d3
DH
2572001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
258
259 * numbers.c (scm_divide): Fix (/ 0). Thanks to Keith Wright for
260 reporting the bug.
261
84aff7a7
MV
2622001-11-21 Marius Vollmer <mvo@zagadka.ping.de>
263
264 * Makefile.am (install-exec-hook): Prepend $(DESTDIR) to filename.
265 Thanks to Eric Gillespie, Jr!
266
6063dc1d
SJ
2672001-11-21 Stefan Jahn <stefan@lkcc.org>
268
269 * win32-socket.c (getservent, setservent, endservent,
270 getprotoent, setprotoent, endprotoent): New functions.
271 Appropriate replacements for M$-Windows.
272
273 * numbers.c (SIZE_MAX, PTRDIFF_MAX, PTRDIFF_MIN): Reintroduced
274 these definitions for GUILE_DEBUG.
275
276 * net_db.c: Include "win32-socket.h" if compiling with a native
277 M$-Windows compiler. Include some pieces of code (protoent and
278 servent interface) protected by HAVE_* macros when using a
279 native M$-Windows compiler.
280
351982f6
MV
2812001-11-20 Marius Vollmer <mvo@zagadka.ping.de>
282
283 * modules.c (scm_c_export): Do nothing when the first argument is
284 already the terminating NULL. Thanks to Han-Wen Nienhuys!
285
849038b5
TTN
2862001-11-20 Thien-Thi Nguyen <ttn@glug.org>
287
288 * Makefile.am (libpath.h): In SCM_BUILD_INFO,
289 also include `buildstamp'.
290
5c790b44
RB
2912001-11-18 Rob Browning <rlb@defaultvalue.org>
292
293 * version.c
294 (s_scm_major_version): use SCM_MAJOR_VERSION.
295 (s_scm_minor_version): use SCM_MINOR_VERSION.
296 (s_scm_micro_version): use SCM_MICRO_VERSION.
297 (s_scm_version): use SCM_MAJOR_VERSION, SCM_MINOR_VERSION, and
298 SCM_MICRO_VERSION.
299
300 * version.h.in
301 (SCM_MAJOR_VERSION): renamed from SCM_GUILE_MAJOR_VERSION.
302 (SCM_MINOR_VERSION): renamed from SCM_GUILE_MINOR_VERSION.
303 (SCM_MICRO_VERSION): renamed from SCM_GUILE_MICRO_VERSION.
304
694a9bb3
NJ
3052001-11-18 Neil Jerram <neil@ossau.uklinux.net>
306
307 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
308 Rewrite docstrings without reference to substring-move-left/right,
309 since the latter no longer exist.
310
302c12b4
DH
3112001-11-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
312
313 * eval.c: Removed bogus comment about acros.
314
315 (scm_unmemocar): Use !SCM_CONSP instead of SCM_IMP.
316 Minimize scope of local variable. Eliminate dependency on
317 macro DEBUG_EXTENSIONS.
318
319 (s_splicing): New error message string.
320
321 (scm_m_body): Issue 'bad body' message rather than 'missing
322 expression' message.
323
324 (scm_m_quote): Eliminate unnecessary copying.
325
326 (scm_m_lambda, scm_m_letstar, scm_m_letrec, scm_m_let): Leave the
327 checking of the body to scm_m_body.
328
329 (scm_m_do): Move comment to function header. Rename arg1 to
330 binding. Made the code a bit easier to read.
331
332 (evalcar): Removed.
333
334 (iqq): Added a comment. Changed the depth parameter to
335 unsigned. Use size_t for vector lengths. Make sure vector object
336 is gc protected as long as its contents are read. Add some syntax
337 checks. Get rid of unnecessary SCM_IMP test. Clean up the
338 control structure a bit.
339
340 (scm_m_delay): Added comment about the implementation of
341 scm_m_delay.
342
343 (scm_m_define): Add comment about guile's currying define
344 syntax. Renamed 'proc' to 'name'. Eliminate dependency on macro
345 DEBUG_EXTENSIONS. Simplified code a bit. Eliminate SICP code.
346
347 (scm_m_letrec1): Removed. Part of the functionality is taken
348 over by the new function 'transform_bindings'.
349
350 (transform_bindings): New function. Takes over some of the
351 functionality of removed function 'scm_m_letrec1', namely to split
352 a list of bindings into a reversed list of variables and a list of
353 initializers.
354
355 (scm_m_letrec): Call 'transform_bindings'.
356
357 (scm_m_let): Minimized scope of local variables. Renamed 'proc'
358 to 'temp' and 'arg1' to 'binding'. Eliminated redundant SCM_NIMP
359 test. Use 'transform_bindings'. Fixed scoping error with named
360 let (Thanks to Aubrey Jaffer for reporting the bug and to Neil
361 Jerram for suggesting the fix). Cleaned up the control structure
362 a bit.
363
364 (scm_m_expand_body): Use 'transform_bindings'. Eliminated
365 unnecessary consing. Eliminated unnecessary
366 SCM_DEFER/ALLOW_INTS.
367
368 (SCM_CEVAL): Un-obfuscated some loops.
369
cecb4a5e
NJ
3702001-11-16 Neil Jerram <neil@ossau.uklinux.net>
371
8f85c0c6
NJ
372 * gc.h (scm_unhash_name): Old declaration removed.
373
374 * eval.c (s_scm_eval): Change @var{primitive-eval} to
375 @code{primitive-eval}.
376
377 * feature.c, vectors.c, net_db.c, unif.c, weaks.c, struct.c,
378 version.c, alist.c, ports.c, ramap.c, unif.c, strings.c, list.c:
379 Change @deffnx lines in docstrings to say {Scheme Procedure}
380 rather than primitive or procedure.
381
382 * posix.c (scm_execl), filesys.c (scm_close), unif.c
383 (scm_array_set_x, scm_array_contents, scm_uniform_array_read_x,
384 scm_bit_set_star_x, scm_bit_invert_x), ramap.c (scm_array_fill_x,
385 scm_array_for_each, scm_array_index_map_x), vectors.c (scm_vector,
386 scm_make_vector, scm_vector_to_list, scm_vector_fill_x), strop.c
387 (scm_string_split, scm_string_ci_to_symbol), strings.c
388 (scm_string_p), sort.c (scm_merge), print.c (scm_newline),
389 macros.c (scm_macro_type), alist.c (scm_acons, scm_assq):
390 Docstring fixes and improvements reflecting edits that have been
391 made in the reference manual source.
392
393 * objprop.c (scm_object_properties, scm_set_object_properties_x,
394 scm_object_property, scm_set_object_property_x): Remove invalid
395 @deffnx lines for corresponding procedure property primitives.
396
cecb4a5e
NJ
397 These changes add a @deffnx C function declaration and function
398 index entries for each Guile primitive to the copy of the doc
399 snarf output that is used for reference manual synchronization.
400 Online help is unchanged.
849038b5 401
cecb4a5e
NJ
402 * snarf.h (SCM_SNARF_DOCS): Output primitive's C function name.
403 (SCM_DEFINE, SCM_DEFINE1, SCM_REGISTER_PROC): Supply to C function
404 name to SCM_SNARF_DOCS.
849038b5 405
cecb4a5e
NJ
406 * guile-snarf-docs-texi.in: Pass the shell script's arguments into
407 snarf-check-and-output-texi.
408
409 * Makefile.am (guile-procedures.texi): New rule.
410 (BUILT_SOURCES, guile.texi, guile-procedures.txt, CLEANFILES):
411 Changed so that the last stage of doc snarfing is now performed
412 twice, once to produce guile-procedures.txt for online help, and
413 once to produce guile.texi for reference manual synchronization.
414
ddea3325
DH
4152001-11-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
416
417 * eval.c (RETURN): Wrap in do{}while(0) in order to make it
418 safely usable as a single statement followed by a ';', for example
419 in an if statement.
420
421 (SCM_CEVAL, SCM_APPLY): Clean up code using 'RETURN'.
422
72dd0a03
NJ
4232001-11-13 Neil Jerram <neil@ossau.uklinux.net>
424
425 * random.c (scm_random_solid_sphere_x,
426 scm_random_hollow_sphere_x): Correct "shere" typos.
427
428 * hashtab.c (scm_hash_fold): Add missing apostrophe to docstring.
429
430 * version.c (scm_version): Update docstring to include
431 `micro-version'.
432
6558eda6
MV
4332001-11-13 Marius Vollmer <mvo@zagadka.ping.de>
434
409b8588
MV
435 * modules.c (scm_c_export): Call va_end after collecting the
436 symbols.
437
adb8c0f2
MV
438 * strop.h, strop.c (scm_substring_move_left_x,
439 scm_substring_move_right_x): Removed.
440
6558eda6
MV
441 * __scm.h (HAVE_UINTPTR_T, HAVE_PTRDIFF_T, HAVE_LONG_LONG,
442 HAVE_LONG_LONGS): Define to "1" when defining them, to mirror what
443 configure does.
444
5d8fc640
MV
4452001-11-12 Marius Vollmer <mvo@zagadka.ping.de>
446
447 * numbers.c: Document macros to define when including
448 num2integral.i.c. MAX_VALUE and MIN_VALU are no longer used, we
449 now rely on SIZEOF_ macros that have been figured out at
450 configure time.
451
452 * num2integral.i.c: Adapt to new interface.
453 (NUM2INTEGRAL): Test whether a fixnum can be represented in the
454 target type by casting it and checking whether it is still the
455 same. Do not try to handle bignums for integral types that are
456 smaller than fixnums. When handling bignums, collect the
457 magnituse first into a unsigned type, and correctly check for
458 overflow.
459 (INTEGRAL2BIG): Do not use MIN_VALUE explicitely by observing that
460 only -MIN_VALUE can still be negative of all negative numbers (in
461 twos-complement).
462
849038b5 463 * tags.h (SIZEOF_SCM_T_BITS): Define it appropriately.
5d8fc640
MV
464
465 * __scm.h: Define HAVE_UINTPTR_T, HAVE_PTRDIFF_T and
466 HAVE_LONG_LONG depending on whether their size is non-zero.
467
d6b8cf11
TTN
4682001-11-11 Thien-Thi Nguyen <ttn@glug.org>
469
470 * strop.c (scm_string_null_p): Docfix; nfc.
471 Thanks to Scott Lenser.
472
9401323e
NJ
4732001-11-07 Neil Jerram <neil@ossau.uklinux.net>
474
475 * extensions.c (scm_load_extension): Canonicalize docstring
476 whitespace.
477
478 * unif.c (scm_uniform_array_write), ports.c
479 (scm_current_output_port, scm_force_output), dynwind.c
480 (scm_dynamic_wind), scmsigs.c (scm_setitimer, scm_getitimer),
481 filesys.c (scm_open, scm_lstat), struct.c
482 (scm_make_struct_layout), random.c (scm_random,
483 scm_random_solid_sphere_x, scm_random_hollow_sphere_x, strop.c
484 (scm_i_index): Remove superfluous whitespace from end of docstring
485 lines.
486
487 * filesys.c (scm_select), guardians.c (scm_guardian_greedy_p),
488 strings.c (scm_make_string), variable.c (scm_make_variable,
489 scm_make_undefined_variable, scm_variable_p, scm_variable_set_x,
490 scm_variable_bound_p), scmsigs.c (scm_setitimer, scm_getitimer),
491 posix.c (scm_crypt), struct.c (scm_make_vtable_vtable), hashtab.c
492 (scm_hash_fold), ports.c (scm_port_for_each): Remove superfluous
493 newline at end of docstrings.
494
495 * modules.c (scm_set_current_module): Add missing newline to
496 docstring.
497
b4e15479
SJ
4982001-11-07 Stefan Jahn <stefan@lkcc.org>
499
500 * win32-socket.[ch]: New files. Defines Winsock-API error codes
501 and makes them available through Guile. That is because the
502 Winsock-API does not store its errors in `errno' and thus cannot
503 return error messages via `strerror (errno)'.
504
505 * socket.c (scm_init_socket): Initialize `win32-socket' part
506 here under M$-Windows.
507
d6b8cf11 508 * numbers.h: Added missing declaration of
b4e15479
SJ
509 `scm_sys_check_number_conversions()'.
510
511 * error.c: Local definition of SCM_I_STRERROR and SCM_I_ERRNO
512 and use in `(strerror)' and `(system-error)'.
513
d6b8cf11 514 * Makefile.am (EXTRA_libguile_la_SOURCES): Added
b4e15479
SJ
515 `win32-socket.[ch]' to extra source and header files.
516
7ab89df1
MV
5172001-11-06 Marius Vollmer <mvo@zagadka.ping.de>
518
519 * script.c (scm_shell_usage, scm_compile_shell_switches): Prepend
520 a call to turn-on-debugging when --debug has been given instead of
521 turning it on directly. Also, handle new `--no-debug' option,
522 which might suppress the call to turn-on-debugging.
523
0233bfc1
SJ
5242001-11-05 Stefan Jahn <stefan@lkcc.org>
525
526 * struct.c (s_scm_struct_vtable_p): Corrected docstring.
527
8f99e3f3
SJ
5282001-11-04 Stefan Jahn <stefan@lkcc.org>
529
530 * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL)
d6b8cf11 531 here (was at guile_LDADD) which describes the dependency
8f99e3f3
SJ
532 correctly and allows a clean build on Win32.
533
d6b8cf11 534 * __scm.h (SCM_API): Follow-up patch. Renamed __FOO__ macros
8f99e3f3
SJ
535 into FOO.
536
537 * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL
538 import macros for external libraries (libcrypt, libqthreads,
539 libreadline and libregex).
540
541 * coop-defs.h: Include <winsock2.h> for `struct timeval'.
542
543 * posix.c (flock): Added support for flock() in M$-Windows.
544
545 * guile.c (SCM_IMPORT): Follow-up patch. Use SCM_IMPORT instead
546 of __SCM_IMPORT__.
547
548 * fports.c (getflags): Differentiate reading and writing pipes
549 descriptors.
550
551 * filesys.c (S_IS*): Redefine all of the S_IS*() macros for
552 M$-Windows.
553
554 * coop.c (coop_condition_variable_timed_wait_mutex): Use
555 conditionalized error code if `ETIMEDOUT' is not available.
556 (scm_thread_usleep): Remove bogus declaration of `struct timeval
557 timeout'.
558
559 * numbers.c (PTRDIFF_MIN): Moved this definition where it actually
560 belongs. That is because NO_PREPRO_MAGIC gets undefined after
561 each inclusion of `num2integral.i.c'.
562 (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined.
563
4e21fa60
MV
5642001-11-03 Marius Vollmer <mvo@zagadka.ping.de>
565
566 * eval.c (scm_m_begin): Allow `(begin)`, with no subforms.
567 (SCM_CEVAL): Evaluate an empty `begin' to SCM_UNSPECIFIED.
568
08112c95
MD
5692001-11-02 Mikael Djurfeldt <mdj@linnaeus>
570
7663c008
MD
571 * print.c (scm_iprin1): Mark print state as revealed when
572 dispatching to generic write or display.
573
08112c95
MD
574 * unif.c (scm_ra2contig): Fixed memory overwrite bug.
575
f712d833
MV
5762001-11-02 Marius Vollmer <mvo@zagadka.ping.de>
577
578 Support for native Win32. Thanks to Stefan Jahn!
d6b8cf11 579
f712d833
MV
580 * Makefile.am: Add win32-uname.c, win32-uname.h, win32-dirent.c
581 and win32-dirent.h to extra source and header files. These
582 include the uname() and the POSIX dirent interface implementation
583 for M$-Windows. Put `-no-undefined' into LDFLAGS to support
584 linkers which do not allow unresolved symbols inside shared
585 libraries. Corrected `guile_filter_doc_snarfage$(EXEEXT)'
586 dependency.
587
d6b8cf11
TTN
588 * __scm.h: Defined SCM_API. This macro gets prepended to all
589 function and data definitions which should be exported or imported
f712d833
MV
590 in the resulting dynamic link library in the Win32 port.
591
592 * __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h,
d6b8cf11 593 chars.h, continuations.h, coop-defs.h, coop-threads.h,
f712d833
MV
594 debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h,
595 environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h,
596 feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h,
597 gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h,
598 hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h,
d6b8cf11 599 load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h,
f712d833
MV
600 objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h,
601 procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h,
602 read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h,
603 smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h,
604 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
605 tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h,
606 vports.h, weaks.h:
607 Prefixed each each exported symbol with SCM_API.
608
d6b8cf11 609 * continuations.c: Added comment about the use of the extern
f712d833
MV
610 declarations of {get,set}context() functions used in the ia64 port.
611
612 * continuations.h, gc.c: `__libc_ia64_register_backing_store_base'
613 is meant to be a `unsigned long *'.
614
615 * filesys.c: Include `direct.h' if possible. Use local
616 `win32-dirent.h' for the native M$-Windows port. Define S_IS*()
617 macros for M$-Windows. Implementation of `fstat_Win32()' which is
618 able to differentiate between sockets and other file descriptors.
619 Use this function as wrapper in `scm_fstat()'. Fixed typo in
620 `scm_dirname()'.
621
622 * fports.c: Include `io.h' is possible. Put `*fp' into referring
623 statement block in `scm_fport_buffer_add()'.
624 Some corrections in `getflags()'.
d6b8cf11 625
f712d833
MV
626 * gdb_interface.h (GDB_INTERFACE): Also support __CYGWIN__.
627
628 * guile.c: Make sure to define __SCM_IMPORT__ for shared library
629 build on Win32. Disable preloaded symbols on Win2 platforms.
630
631 * ioext.c, ports.c: Include `io.h' is possible.
632
633 * mkstemp.c: Include `process.h' is possible.
634
635 * net_db.c: Disable extern declaration of `h_errno' for __CYGWIN__,
636 too.
637 Put `scm_return_entry()' into HAVE_GETSERVENT conditional.
638
639 * posix.c: Remove unnecessary dirent includes and defines. Include
640 local `win32-uname.h' for MinGW. Extern declaration of
641 `mkstemp()' for systems where it does not exists. Make
642 `getlogin()' available on M$-Windows.
643
644 * scmsigs.c: Made `usleep()' avalable on MinGW.
645
646 * stime.c: On M$-Windows `tzname[]' is known to be `_tzname[]'.
647
648 * win32-dirent.c: Include "win32-dirent.h", not "dirent.h".
649
650 * win32-uname.c: Include "win32-uname.h", not "uname.h".
651
d245ce23
MD
6522001-10-28 Mikael Djurfeldt <mdj@linnaeus>
653
654 * unif.c (scm_uniform_array_read_x, scm_uniform_array_write):
655 Don't apply scm_uniform_vector_length on arrays.
656
8ea46249
DH
6572001-10-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
658
659 * eval.c (scm_lookupcar, scm_m_letstar, scm_m_do, iqq,
660 scm_m_define, scm_m_letrec1, scm_m_let, scm_m_expand_body,
661 scm_macroexp, unmemocopy, scm_eval_args, scm_deval_args,
662 SCM_CEVAL, scm_map, scm_init_eval): When building lists, prefer
663 scm_list_<n> over scm_cons[2]?.
664
665 (scm_unmemocar, scm_m_cond, scm_m_letstar, scm_m_letrec1,
666 scm_m_let, scm_m_atbind, unmemocopy, SCM_CEVAL, SCM_APPLY): Use
667 SCM_C[AD][AD]R instead of explicit form.
668
669 (scm_m_set_x, scm_m_cond, scm_m_letstar, scm_m_do): Reordered
670 comparison parameters.
671
672 (scm_m_case, scm_m_cond, scm_m_letstar, scm_m_do, SCM_CEVAL): Use
673 !SCM_NULLP instead of SCM_NIMP.
674
675 (scm_m_case): Don't copy the form. Renamed proc to clause and
676 minimized its scope. Renamed x to clauses. Removed side
677 effecting operation from macro call.
678
679 (scm_m_cond): Don't copy the form. Renamed arg1 to clause and
680 minimized its scope. Renamed x to clauses. Minimized the scope
681 of variable 'len'. Make sure the else clause is treated specially
682 even in case of '=>' occurences. Don't change the else to #t in
683 order to be able to distinguish this case in the evaluator. Leave
684 type checking of the recipient to the evaluator.
685
686 (scm_c_improper_memq): Made the comment somewhat clearer.
687
688 (scm_m_lambda): Renamed proc to formals. Removed unnecessary
689 test for SCM_IM_LET at the place of the formal parameters.
690 Simplified the formal parameter checking.
691
692 (scm_m_letstar): Added Comment. Renamed proc to bindings.
693 Renamed arg1 to binding and minimized its scope. Eliminated
694 unnecessary consing.
695
696 (scm_m_do): Renamed proc to bindings. Minimized the scope of
697 variable 'len'.
698
699 (build_binding_list): New static function.
700
701 (unmemocopy): Don't use SCM_TYP7 on pairs (it's unclean).
702 Further, split up the 'letrec' unmemoizing code to the
703 corresponding parts for 'do', 'let' and 'letrec', adding comments
704 to each form. Cleanup the handling of the do form (This removes
705 some *real* code :-).
706
707 (SCM_CEVAL): Removed side effecting operation from macro call.
708 Handle the 'else clause of the 'cond form specially - the symbol
709 'else is not replaced with #t any more.
710
8186c4f5
GH
7112001-10-14 Gary Houston <ghouston@arglist.com>
712
713 * version.c (scm_version): use sprintf instead of snprintf,
714 for portability. thanks to Bill Schottstaedt.
715
89759084
MD
7162001-10-14 Mikael Djurfeldt <mdj@linnaeus>
717
718 * read.c (scm_lreadr): When user-defined hash procedure returns
719 SCM_UNSPECIFIED: Fall back to standard handling instead of raising
720 an exception. (This prevents parsing of uniform vectors from
721 interfering with parsing of numbers.)
722
9c7ce563
MV
7232001-10-13 Marius Vollmer <mvo@zagadka.ping.de>
724
725 * numbers.c: Set NO_PREPRO_MAGIC when defining our version of
726 PTRDIFF_MIN. Thanks to Ken Raeburn.
727
7282001-10-07 Marius Vollmer <mvo@zagadka.ping.de>
729
730 * Makefile.am (EXTRA_libguile_la_SOURCES): Added "mkstemp.c".
731
732 * eval.c (scm_m_atbind): First try to find the variable without
733 defining it locally; when it has not been found, define it
734 locally.
735
736 * modules.c (module_variable): Pass over variables that exist but
737 are unbound.
738
7392001-10-06 Marius Vollmer <mvo@zagadka.ping.de>
740
741 * backtrace.c (display_backtrace_file_and_line): Only use
742 scm_basename when POSIX support is compiled in. Thanks to Chris
743 Cramer.
744
1fe5e088
DH
7452001-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
746
747 * numbers.c (mem2uinteger): Return number read so far when coming
748 across a hexdigit after having read a # or if not reading a hex
749 value. This will enable the calling code to correctly handle
750 forms like 1e2. (The background is, that the exponent markers d,
751 e and f are also hexdigits.) Thanks to Mikael Djurfeldt for
752 providing this patch.
753
754 (mem2complex): Fix erroneous double-negation. Now, numbers like
755 1-i will be read correctly.
756
68665a97
MD
7572001-10-12 Mikael Djurfeldt <mdj@linnaeus>
758
759 * debug.c (scm_mem_to_proc): Fixed typo in previous change.
760
761 * validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro.
762
d5cf5324
DH
7632001-10-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
764
765 * print.c (scm_print_state_vtable, print_state_pool):
766 Initialize. These variables are now registered as gc roots.
767
768 (scm_current_pstate): Update documentation.
769
770 (scm_current_pstate, scm_make_print_state, scm_free_print_state,
771 scm_prin1, scm_init_print): print_state_pool is registered as a
772 gc root and thus does not need to be protected by a surrounding
773 pair any more.
774
775 (make_print_state): The car of print_state_pool no longer holds
776 the scm_print_state_vtable.
777
778 (scm_current_pstate, scm_make_print_state, print_circref,
779 scm_iprin1, scm_prin1, scm_iprlist): Prefer !SCM_<foo> over
780 SCM_N<foo>.
781
782 (scm_prin1): When building lists, prefer scm_list_<n> over
783 scm_cons[2]?.
784
785 (scm_iprlist): Removed a redundant SCM_IMP test.
786
787 (scm_simple_format): Use SCM_EQ_P to compare SCM values.
788
37c56aec
DH
7892001-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
790
791 * debug.c (scm_make_iloc): Prefer !SCM_<foo> over SCM_N<foo>.
792
793 (scm_memcons, scm_mem_to_proc): When building lists, prefer
794 scm_list_<n> over scm_cons[2]?.
795
796 (scm_mem_to_proc): Prefer SCM_CONSP over SCM_NIMP.
797
798 (scm_procedure_name): Use SCM_CADR instead of explicit form.
799
800 (debugobj_print): Coerce scm_intprint arg 1 to long, not int.
801 Thanks to Rob Browning for the patch (see log entry 2001-09-21) -
802 for some reason his patch didn't make it into the cvs.
803
79d34f68
DH
8042001-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
805
806 * numbers.c (mem2decimal_from_point): Cleaned up the parsing a
807 little bit - should even be somewhat more accurate now.
808
5e137c65
RB
8092001-10-08 Rob Browning <rlb@defaultvalue.org>
810
811 * gc.c: support ia64 register backing store.
812 (SCM_MARK_BACKING_STORE): new macro.
813
814 * continuations.h: support ia64 register backing store.
815 (struct scm_t_contregs): add ia64 register backing store.
816
817 * continuations.c: support ia64 register backing store.
818 (continuation_mark): mark ia64 register backing store.
819 (continuation_free): free ia64 register backing store.
820 (scm_make_continuation): capture ia64 register backing store.
821 (copy_stack_and_call): copy ia64 register backing store.
822
ee083ac2
DH
8232001-10-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
824
825 * hashtab.c (scm_hash_fn_create_handle_x): The result of assoc_fn
826 is known to be #f if no entry is found. Thus, use !SCM_FALSEP
827 instead of SCM_NIMP to test for that case.
828
829 * strings.h (SCM_SET_STRING_LENGTH): Cast the length to
830 scm_t_bits instead of long.
831
71dcdbf9
MV
8322001-10-06 Marius Vollmer <mvo@zagadka.ping.de>
833
834 * tags.h (SCM_T_BITS_MAX, SCM_T_SIGNED_BITS_MAX,
835 SCM_T_SIGNED_BITS_MIN): New.
836 * numbers.h (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM):
837 Use them to make these macros computable by the preprocessor.
838
839 * num2integral.i.c (INTEGRAL2NUM): Let the preprocessor test
840 whether the integral type fits in a fixnum, not the compiler.
841 This removes a spurious compiler warning. Also, honor the
842 NO_PREPRO_MAGIC flag to suppress any preprocessor tests. This is
843 needed for `long long's.
844
845 * numbers.c: Define NO_PREPRO_MAGOC when including
846 num2integral.c.i for `long long' and `signed long long'.
847
152812c0
MD
8482001-10-06 Mikael Djurfeldt <mdj@linnaeus>
849
850 These changes fixes a race condition in the Guile coop - pthread
851 compatibility code.
d6b8cf11 852
152812c0
MD
853 * coop.c (mother_awake_p): New variable.
854 (coop_create): Set mother_awake_p before creating or signalling
855 mother; wait until mother is going to sleep before returning.
856 (mother): Reset mother_awake_p before going to sleep.
857
11d49f54
DH
8582001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
859
860 * options.c (protected_objects, scm_init_options): The content of
861 protected_objects is now protected from garbage collection using
862 scm_gc_register_root instead of scm_permanent_object.
863
864 (get_option_setting): New static function that computes an option
865 setting as it was formerly done in the function scm_options.
866
867 (get_documented_option_setting): New static function that
868 returns option documentation as it was formerly done in the
869 function scm_options. Note that documentation C strings are no
870 longer precomputed into SCM objects. Instead, they are converted
871 into SCM strings every time get_documented_option_setting is
872 called.
873
874 (change_option_setting): New static functions that modifies the
875 option setting as it was formerly done in the function
876 scm_options. The function is now exception safe, i. e. won't
877 cause a memory leak when interrupted. Further, only non-immediate
878 option values are added to the protection list.
879
880 (scm_options): This function now has only the purpose to dispatch
881 to to get_option_setting, get_documented_option_setting or
882 change_option_setting, depending on the arguments given to
883 scm_options.
884
885 (scm_init_opts): Don't convert documentation C strings into SCM
886 strings. Further, don't protect any object values: They _must_
887 be immediate values, otherwise there is no guarantee that they
888 have not been collected before anyway.
889
890 * options.[ch] (scm_t_option): Made type unsigned, name into a
891 constant char* and val into a scm_t_bits type.
892
893 (scm_options, scm_init_opts): The number of options is guaranteed
894 to be larger or equal to zero. Thus, the type is changed to
895 unsigned.
896
3dbacabc
DH
8972001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
898
899 * num2integral.i.c (NUM2INTEGRAL): Eliminated some warnings about
900 testing an unsigned value for being >= 0.
901
14282d0f
DH
9022001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
903
904 * numbers.h: Removed old comment about using SCM_CAR to access
905 non-pair cells.
906
907 (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM): Make sure
908 the return value is signed. Thanks to Brian Crowder for the bug
909 report.
910
911 (SCM_SRS): Avoid unnecessary casting and don't unpack input
912 values. With this patch, SCM_SRS can be safely used for other
913 types than scm_t_signed_bits. However, it should still better be
914 an internal macro and thus be renamed to SCM_I_SRS.
915
916 (SCM_MAKINUM, SCM_INUM): Use proper casting.
917
2dbec7b5
GH
9182001-10-03 Gary Houston <ghouston@arglist.com>
919
920 * continuations.h, unif.h: in the descriptions of the bit patterns
921 of the heap cells, make bit 0 the least significant.
922
cf4ee841
TTN
9232001-09-25 Thien-Thi Nguyen <ttn@glug.org>
924
925 * chars.h (SCM_MAKE_CHAR): Use `scm_t_bits' instead of `intptr_t'.
926 Thanks to Golubev I. N.
927
4a151b3d
GH
9282001-09-25 Gary Houston <ghouston@arglist.com>
929
930 * ports.c (scm_drain_input): extended the docstring. thanks to
931 Alex Schroeder and Thien-Thi Nguyen.
932
581ded70
MD
9332001-09-23 Mikael Djurfeldt <mdj@linnaeus>
934
935 * validate.h (SCM_NUM2FLOAT, SCM_NUM2DOUBLE,
936 SCM_VALIDATE_FLOAT_COPY, SCM_VALIDATE_DOUBLE_COPY): New
937 macros. (The NUM names might soon change.)
938
939 * numbers.h: Added missing declarations.
940
5437598b
MD
9412001-09-22 Mikael Djurfeldt <mdj@linnaeus>
942
943 * Makefile.am: Distribute num2float.i.c.
944
945 * num2float.i.c: New file, multiply included by numbers.c, used
946 to "templatize" the float <-> num conversion routines.
947
948 * numbers.c: New functions: scm_num2float, scm_float2num,
949 scm_num2double, scm_double2num.
950
0b073f0f
RB
9512001-09-21 Rob Browning <rlb@defaultvalue.org>
952
953 * .cvsignore: really add version.h
954
955 * strings.h (SCM_SET_STRING_LENGTH): coerce "l" to a long.
956 Otherwise it fails on the alpha. However, we might rather choose
957 this size conditionally.
958
959 * numbers.c (scm_gcd): change "k" to a long from an int.
960 Otherwise it fails on the alpha. However, we might rather choose
961 this size conditionally.
962
963 * error.c (scm_wta): coerce char* to intptr_t before int
964 assignment.
965
966 * debug.c (debugobj_print): coerce scm_intprint arg 1 to long, not
967 int.
968
969 * chars.h (SCM_MAKE_CHAR): coerce value to intptr_t.
970
2830fd91
MD
9712001-09-20 Mikael Djurfeldt <mdj@linnaeus>
972
973 * numbers.c (scm_integer_expt): Accept inexact integer in second
974 argument. (Thanks to Bill Schottstaedt.)
975
c13f0a90
RB
9762001-09-20 Rob Browning <rlb@defaultvalue.org>
977
978 * .cvsignore: add version.h
979
980 * versiondat.h.in: removed (obsolete).
981
982 * version.h.in: renamed from version.h.
983 (SCM_GUILE_MAJOR_VERSION): new public macro.
984 (SCM_GUILE_MINOR_VERSION): new public macro.
985 (SCM_GUILE_MICRO_VERSION): new public macro.
986
987 * version.h: renamed to version.h.in.
988
989 * version.c
990 (scm_major_version): support integer *_VERSION macros.
991 (scm_minor_version): support integer *_VERSION macros.
992 (scm_micro_version): support integer *_VERSION macros.
993 (scm_version): support integer *_VERSION macros.
994
147c18a0
MD
9952001-09-20 Mikael Djurfeldt <mdj@linnaeus>
996
997 * error.c, error.h: Made error keys globally accessible.
998 Applications might want to test for these or use them in a direct
999 call to scm_error.
1000
1001 * num2integral.i.c (NUM2INTEGRAL): Report an error when these
1002 routines are passed an inexact. This change in behavior is
1003 motivated by concordance with R5RS: It is more common that a
1004 primitive doesn't want to accept an inexact for an exact.
1005
662c5539
DH
10062001-09-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
1007
1008 The following patch partially undoes my patch from 2001-06-30,
1009 where I added the function scm_gc_mark_cell_conservatively. The
1010 function is buggy, since it breaks guile during conservative
1011 marking if a pointer on the stack points directly into the list of
1012 free cells on the heap: With conservative cell marking this will
1013 cause the whole free list to be scanned and marked - boom!
1014
1015 * gc.c (allocated_mark, MARK, heap_segment,
1016 scm_gc_mark_cell_conservatively, scm_init_storage), gc.h
cf4ee841 1017 (scm_gc_mark_cell_conservatively): Remove function
662c5539
DH
1018 scm_gc_mark_cell_conservatively and update the corresponding
1019 comments and uses accordingly. Thanks to Christopher Cramer for
1020 the patch. (Minor corrections by me.)
1021
6c1b7628
GH
10222001-09-15 Gary Houston <ghouston@arglist.com>
1023
1024 * root.h (scm_root_state): removed the continuation_stack and
1025 continuation_stack_ptr members, which have no apparent purpose.
1026 (scm_continuation_stack, scm_continuation_stack_ptr): #defines
1027 removed.
662c5539 1028
6c1b7628
GH
1029 * root.c (root_mark), init.c (restart_stack, start_stack), gc
1030 (scm_igc): remove all references to contination_stack and
1031 continuation_stack_ptr, avoiding allocation of a vector and
1032 useless processing during gc.
1033
455c0ac8
DH
10342001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1035
1036 * guardians.c (tconc_t, t_tconc): Renamed tconc_t to t_tconc.
1037
1038 (TCONC_IN): Make sure that the cell word 0 is initialized last.
1039
1040 (guardians_t, t_guardians): Renamed guardians_t to t_guardians.
1041
1042 (GUARDIAN, GUARDIAN_DATA): Renamed GUARDIAN to GUARDIAN_DATA.
1043
1044 (guardian_apply, scm_get_one_zombie, scm_make_guardian,
1045 mark_and_zombify): Prefer !SCM_<foo> over SCM_N<foo>.
1046
22ba637b
DH
10472001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1048
1049 * guardians.c (mark_dependencies_in_tconc,
1050 whine_about_self_centered_zombies, scm_init_guardians): Register
1051 the static global variable `self_centered_zombies' via
1052 scm_gc_register_root, to make some cdr-ing unnecessary.
1053
c3c4d801
DH
10542001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1055
1056 * backtrace.c (display_backtrace_file,
1057 display_backtrace_file_and_line): Use SCM_EQ_P when comparing SCM
1058 values, use SCM_FALSEP when comparing SCM values against #f.
1059 Thanks to Rob Browning for the bug report.
1060
b00418df
DH
10612001-09-12 Martin Baulig <martin@home-of-linux.org>
1062
1063 * strings.[ch] (scm_str2string): New function.
1064
a0d34a0b
MV
10652001-09-06 Marius Vollmer <mvo@zagadka.ping.de>
1066
1067 * gc.c (scm_done_free): Always subtract size from scm_mallocated
1068 when computing nm, even if it's negative.
1069 (scm_must_malloc): Abort on overflow of scm_mtrigger.
1070 (scm_must_realloc): Likewise.
1071
b10586f0
ML
10722001-09-01 Michael Livshin <mlivshin@bigfoot.com>
1073
1074 * numbers.c (scm_sys_check_number_conversions): new function,
1075 defined if Guile is compiled in debugging mode. currently checks
1076 `scm_num2ulong', should check much much more.
1077
1078 * num2integral.i.c (NUM2INTEGRAL): when converting a bignum to
1079 unsigned, ensure that it's positive. thanks to Martin Baulig!
cf4ee841 1080
8c494e99
DH
10812001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
1082
1083 * __scm.h: Added new section about compile time selectable
1084 features.
1085
1086 (long_long, ulong_long, scm_sizet, SCM_WNA, SCM_OUTOFRANGE,
1087 SCM_NALLOC, SCM_HUP_SIGNAL, SCM_INT_SIGNAL, SCM_FPE_SIGNAL,
1088 SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL, SCM_ALRM_SIGNAL, SCM_GC_SIGNAL,
1089 SCM_TICK_SIGNAL, SCM_SIG_ORD, SCM_ORD_SIG, SCM_NUM_SIGS):
1090 Removed.
1091
1092 * deprecation.c (scm_include_deprecated_features): Simplified.
1093
1094 * eval.c (EVALCAR, unmemocopy), eval.h (SCM_XEVALCAR): Use
1095