* debug.h (scm_ready_p, debug_print): Removed declarations.
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
680516ba
DH
12002-03-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
2
3 * debug.h (scm_ready_p, debug_print): Removed declarations.
4
5 * eval.c (EVALCELLCAR): Removed.
6
7 (SCM_CEVAL): Eliminated label loopnoap. Removed side-effecting
8 operation from condition.
9
e2bd68e0
MV
102002-03-24 Marius Vollmer <mvo@zagadka.ping.de>
11
12 * guile-snarf.in: When the output filename is "-", write to
13 stdout. When no "-o" option is given, use "-" as the output
14 filename (i.e., stdout). Only 'clean' the inputfile or remove the
15 output file on error when the output file name is not "-". Define
16 the preprocessor macro SCM_MAGIC_SNARFER while snarfing.
17
18 * Makefile.am (.c.x): Pass "-o $@" to guile-snarf.
19
ab1f1094
DH
202002-03-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
21
22 * eval.c (SCM_CEVAL, SCM_APPLY): Eliminated labels wrongnumargs
23 and the corresponding goto statements. Removed redundant code.
24
42030fb2
DH
252002-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
26
27 * eval.c (SCM_CEVAL): Minimized scope of variable arg2.
28 Eliminated redundant SCM_IMP check. Exlined call to EVALCAR.
29 Re-enabled handing of rpsubrs and asubrs.
30
e050d4f8
DH
312002-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
32
33 * eval.c (SIDEVAL): Removed.
34
35 (SCM_CEVAL): Minimized scope of variable orig_sym. Eliminated
36 goto-labels cdrxnoap, cdrxbegin and nontoplevel_cdrxnoap. Changed
37 argument checking order for set! to locals, variables and symbols.
38 Improvements to control structure. Removed some uses of arg1 and
39 arg2 as temporary variables.
40
a6d344d3
TTN
412002-03-15 Thien-Thi Nguyen <ttn@giblet.glug.org>
42
43 * guile-snarf.in: Remove "--compat=1.4" support.
44 Add "-d" and "-D" support.
45
46 (deprecated_list): New var.
47 (compat_mode_clean_xxx): Delete.
48 (grep_deprecated): New func.
49 ("main"): If "-d" or "-D", call `grep_deprecated'.
50
3939e9df
NJ
512002-03-15 Neil Jerram <neil@ossau.uklinux.net>
52
387d418c
NJ
53 * hooks.h: Change scm_t_c_hookype_t everywhere to
54 scm_t_c_hook_type.
55
bb2c02f2 56 Docstring fixes:
a6d344d3 57
bb2c02f2
NJ
58 * strings.c (scm_string_p): Change unnecessary `iff' to `if'.
59
60 * ports.c (scm_sys_make_void_port): Use `@file'.
61
62 * numbers.c (scm_number_p, scm_real_p): Use `otherwise' rather
63 than `else'.
64
65 * macros.c (scm_makmacro): Don't say that the form replaces its
66 source, because it doesn't.
67 (scm_makmmacro): Clarify difference between this and scm_makmacro.
68
69 * backtrace.c (scm_display_error), filesys.c (scm_umask,
70 scm_select, scm_basename), goops.c (scm_method_generic_function),
71 numbers.c (scm_integer_length), posix.c (scm_getgroups, scm_execl,
72 scm_setlocale, scm_flock), socket.c (scm_shutdown): Correct
73 spelling mistakes.
74
3939e9df
NJ
75 * debug.c (scm_debug_options), eval.c
76 (scm_eval_options_interface), read.c (scm_read_options): Change
77 incorrect @var in docstring to @code.
78
3b3cc781
MV
792002-03-14 Marius Vollmer <mvo@zagadka.ping.de>
80
500b0d5b
MV
81 * unif.c (singp): Use SCM_REALP instead of SCM_SLOPPY_REALP.
82
3b3cc781
MV
83 * snarf.h (SCM_SNARF_INIT): Add "^:^" after code so that
84 guile-snarf can remove trailing non-init code.
85
86 * guile-snarf.in (modern_snarf): Remove everything following and
87 including "^:^" from the output.
88
dff98306
DH
892002-03-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
90
91 * eval.c (SCM_CEVAL), srcprop.h (SRCBRKP): Eliminated union 't'.
92
93 * eval.c (SCM_CEVAL): Exlined call to EVALCAR.
94
2287fb53
TTN
952002-03-13 Thien-Thi Nguyen <ttn@giblet.glug.org>
96
97 * guile-snarf.in: Update copyright.
98 Rewrite to internalize error handling.
99 Add "--compat=1.4" handling.
100 Add commentary.
101
102 * Makefile.am (libpath.h): Use @top_srcdir_absolute@.
103 (snarfcppopts): New var.
104 (.c.x): Use $(snarfcppopts). Rework guile-snarf usage.
105 (.c.doc): Use $(snarfcppopts).
106
822250a4
TTN
107 * alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
108 continuations.c, debug-malloc.c, debug.c, deprecation.c, dynl.c,
109 dynwind.c, environments.c, eq.c, error.c, eval.c, evalext.c,
110 extensions.c, feature.c, filesys.c, fluids.c, fports.c, gc.c,
111 goops.c, gsubr.c, guardians.c, hash.c, hashtab.c, hooks.c,
112 ioext.c, iselect.c, keywords.c, lang.c, list.c, load.c, macros.c,
113 modules.c, net_db.c, numbers.c, objects.c, objprop.c, options.c,
114 pairs.c, ports.c, posix.c, print.c, procprop.c, procs.c,
115 properties.c, ramap.c, random.c, rdelim.c, read.c, regex-posix.c,
116 root.c, rw.c, scmsigs.c, script.c, simpos.c, socket.c, sort.c,
117 srcprop.c, stackchk.c, stacks.c, stime.c, strings.c, strop.c,
118 strorder.c, strports.c, struct.c, symbols.c, threads.c, throw.c,
119 unif.c, values.c, variable.c, vectors.c, version.c, vports.c,
120 weaks.c: Retire inclusion guard macro SCM_MAGIC_SNARFER.
121
b7798e10
DH
1222002-03-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
123
124 * eval.c (SCM_CEVAL): Got rid of the last reference to t.lloc.
125 The next step will be to remove the union 't' and simplify the
126 code of SCM_CEVAL that way.
127
04a98cff
NJ
1282002-03-12 Neil Jerram <neil@ossau.uklinux.net>
129
130 * iselect.c (collisionp, gnfds, greadfds, gwritefds, gexceptfds,
131 rreadfds, rwritefds, rexceptfds): Made static.
132
133 * gc.c (terminating), fports.c (terminating): Renamed
134 scm_i_terminating.
135
16d98032
MV
1362002-03-11 Marius Vollmer <mvo@zagadka.ping.de>
137
5046250e
MV
138 * numbers.c (scm_divide): Adapt code from libstdc++/f2c to void
139 potential overflow problems. Thanks to John W Eaton!
140
8794207d
MV
141 * strop.c (string_capitalize_x): Treat characters as unsigned so
142 that 8-bit chars work. Thanks to David Pirotte!
16d98032 143
1d15ecd3
DH
1442002-03-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
145
146 * eval.c (SCM_CEVAL): Cleaned up the handling of 'slot-ref',
147 'slot-set!' and 'nil-cond'. Removed some uses of t.arg1, arg2 and
148 proc as temporary variables. Introduced temporary variables with
149 hopefully descriptive names for clarification. Replaced SCM_N?IMP
150 by a more explicit predicate in some places.
151
1522002-03-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
f12745b6
DH
153
154 * eval.c (SCM_CEVAL): Cleaned up the handling of #@dispatch.
155 Added lots of comments regarding the implementation of #@dispatch.
156 Changed intra-procedure communication to use t.arg1 instead of
157 arg2. Removed some uses of t.arg1, t.lloc and proc as temporary
158 variables. Introduced temporary variables with hopefully
159 descriptive names for clarification. Replaced SCM_N?IMP by a more
160 explicit predicate in some places. Use SCM_INSTANCE_HASH instead
161 of computing the expression explicitly. Eliminate now unused
162 label nontoplevel_cdrxbegin.
163
164 * goops.h (SCM_INSTANCE_HASH): New macro.
165
166 * objects.h (SCM_CMETHOD_FORMALS, SCM_CMETHOD_BODY): New macros.
167
1ebf1566
TTN
1682002-03-08 Thien-Thi Nguyen <ttn@giblet.glug.org>
169
170 * Makefile.am (bin_SCRIPTS): Revive this decl, w/ initial element
171 "guile-snarf" moved back from `noinst_SCRIPTS'.
172
020c890c
NJ
1732002-03-08 Neil Jerram <neil@ossau.uklinux.net>
174
58d233cc
NJ
175 * srcprop.c (scm_set_source_property_x): If SRCPROPS obj already
176 exists when adding a source property other than those that are
177 handled explicitly, add the new property to the SRCPROPS obj's
178 plist.
179
020c890c
NJ
180 * debug.h (SCM_MAX_FRAME_SIZE): Remove incorrect comment about use
181 of SCM_MAX_FRAME_SIZE as a bit mask; it isn't used like this.
182
183 * eval.c (SCM_CEVAL): Don't store scm_debug_eframe_size in
184 debug.status. It isn't needed, and it can overflow the bits
185 reserved for it (which may lead to a segv or a GC abort).
186
3f04400d
DH
1872002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de>
188
189 * eval.c (SCM_CEVAL): Cleaned up the handling of 'apply'. Removed
190 side-effecting operations from conditions and macro calls.
191 Replaced SCM_N?IMP by a more explicit predicate in some places.
192 Minimized the scope of some variables.
193
97820583
SJ
1942002-03-02 Stefan Jahn <stefan@lkcc.org>
195
196 * convert.i.c: Fixed int <-> long conversions which would have
197 failed if their sizes were different.
198
38ace99e
DH
1992002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de>
200
201 * eval.c (SCM_CEVAL): Cleaned up the handling of 'if', 'let',
202 'letrec' and 'set*': Removed some uses of t.arg1, t.lloc and proc
203 as temporary variables. Removed side-effecting operations from
204 conditions and macro calls. Introduced temporary variables with
205 hopefully descriptive names for clarification. Replaced SCM_N?IMP
206 by a more explicit predicate in some places. Removed code that
207 was conditionally compiled if SICP was defined - which it never
208 is.
209
e5cb71a0
DH
2102002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de>
211
212 * eval.c (SCM_CEVAL): Cleaned up the handling of 'cons' and 'do':
213 Removed some uses of t.arg1 and proc as temporary variables.
214 Removed side-effecting operations from conditions and macro calls.
215 Introduced temporary variables with hopefully descriptive names
216 for clarification. Replaced SCM_N?IMP by a more explicit
217 predicate in some places.
218
6a0f6ff3
DH
2192002-03-02 Dirk Herrmann <D.Herrmann@tu-bs.de>
220
221 * eval.c (scm_badargsp, SCM_CEVAL): Replaced SCM_N?IMP by a more
222 explicit predicate in some places.
223
224 (CHECK_EQVISH): Removed.
225
226 (SCM_CEVAL): Removed some uses of t.arg1 and proc as temporary
227 variables. Removed side-effecting operations from conditions and
228 macro calls. Introduced temporary variables for clarification.
229 Sorted if-else-if check for the type of the last form in a list by
230 frequency. Avoided some unnecessary tail-recursion calls.
231
228a24ef
DH
2322002-03-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
233
234 * gc.c (SCM_HEAP_SEG_SIZE, CELL_UP, CELL_DN, NEXT_DATA_CELL,
235 init_heap_seg, alloc_some_heap), gc.h (struct scm_cell, struct
236 scm_t_cell, SCM_CELLPTR, SCM_GC_CARD_SIZE,
237 SCM_GC_IN_CARD_HEADERP), tags.h (SCM_CELLP): Renamed the struct
238 scm_cell and all its uses to scm_t_cell in accordance to Guile's
239 naming scheme for types.
240
241 * alist.c (scm_acons), convert.i.c (CTYPES2UVECT,
242 CTYPES2UVECT_OPTIONAL), coop-threads.c (scm_call_with_new_thread,
243 scm_spawn_thread), debug.c (scm_make_debugobj), environments.c
244 (scm_make_environment), eval.c (scm_closure), fports.c
245 (scm_fdes_to_port), gc.c (scm_deprecated_newcell,
246 scm_deprecated_newcell2), inline.h (scm_alloc_cell, scm_cell),
247 list.c (SCM_I_CONS), numbers.c (scm_i_mkbig), pairs.c (scm_cons),
248 ports.c (scm_void_port), procs.c (scm_c_make_subr, scm_makcclo),
249 smob.c (scm_make_smob), smob.h (SCM_NEWSMOB), strings.c
250 (scm_take_str, scm_allocate_string), strports.c (scm_mkstrport),
251 unif.c (scm_make_uve), variable.c (make_variable), vectors.c
252 (scm_c_make_vector), vports.c (scm_make_soft_port): Renamed
253 scm_alloc_cell to scm_cell.
254
255 * environments.c (core_environments_observe), gc.c
256 (scm_deprecated_newcell2), goops.c (wrap_init, scm_wrap_object),
257 inline.h (scm_alloc_double_cell, scm_double_cell), num2float.i.c
258 (FLOAT2NUM), numbers.c (scm_make_real), procs.c
259 (scm_make_procedure_with_setter), smob.h (SCM_NEWSMOB2,
260 SCM_NEWSMOB3), struct.c (scm_make_struct, scm_make_vtable_vtable),
261 symbols.c (scm_mem2symbol, scm_mem2uninterned_symbol), weaks.c
262 (allocate_weak_vector): Renamed scm_alloc_double_cell to
263 scm_double_cell.
264
edb810bb
SJ
2652002-02-27 Stefan Jahn <stefan@lkcc.org>
266
267 * convert.i.c, convert.c: Better range checking.
268
269 * inet_aton.c, fports.c: Commented the inclusion of <winsock2.h>.
270
1ebf1566 271 * deprecation.c (vsnprintf): Define to `_vsnprintf' for
edb810bb
SJ
272 Windows (MinGW).
273
327d4dd3
TTN
2742002-02-26 Thien-Thi Nguyen <ttn@giblet.glug.org>
275
276 * Makefile.am: Update path to pre-inst-guile automake frag.
277
89d7a92c 2782002-02-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
646052c0
DH
279
280 * gc.c (scm_gc_sweep): Make it compile even when deprecated
281 features are excluded.
282
89d7a92c 2832002-02-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
bac0e232
DH
284
285 * num2integral.i.c (NUM2INTEGRAL): Fixed signedness problem.
286
4f2716b6
GH
2872002-02-25 Gary Houston <ghouston@arglist.com>
288
289 * convert.c: include <string.h> for convert_i.c.
290
46151112
RB
2912002-02-24 Rob Browning <rlb@defaultvalue.org>
292
293 * .cvsignore: add stamp-h1.
294
cd328b4f
NJ
2952002-02-21 Neil Jerram <neil@ossau.uklinux.net>
296
297 * unif.c (scm_array_to_list): Correct name, which had been
298 accidentally changed to scm_t_arrayo_list!
299
c709de7f
MD
3002002-02-20 Mikael Djurfeldt <mdj@linnaeus>
301
302 * gc.c (scm_gc_sweep): Print an error message when aborting due to
303 underflowing scm_mallocated.
304
c1965d31
MV
3052002-02-14 Marius Vollmer <marius.vollmer@uni-dortmund.de>
306
307 * gc.h, gc.c (scm_must_malloc, scm_must_realloc, scm_must_strdup,
308 scm_must_strndup, scm_done_malloc, scm_done_free, scm_must_free):
309 Reimplemented using the new scm_gc_malloc, etc., functions and
310 deprecated.
311
b606945b
TTN
3122002-02-11 Thien-Thi Nguyen <ttn@giblet.glug.org>
313
314 * Makefile.am (bin_PROGRAMS): Move `guile_filter_doc_snarfage'
315 to `noinst_PROGRAMS'.
316 (bin_SCRIPTS): Move all values to `noinst_SCRIPTS'; delete.
317 (noinst_PROGRAMS, noinst_SCRIPTS): New.
318
7c686ba8
MV
3192002-02-11 Marius Vollmer <marius.vollmer@uni-dortmund.de>
320
321 * gc.h, gc.c (scm_gc_sweep): Issue deprecation warning when
322 non-zero is returned from a port or smob free function.
323 (scm_malloc, scm_realloc, scm_strndup, scm_strdup,
324 scm_gc_register_collectable_memory,
325 scm_gc_unregister_collectable_memory, scm_gc_malloc,
326 scm_gc_realloc, scm_gc_free, scm_gc_strndup, scm_gc_strdup): New.
327
328 * backtrace.c, continuations.c, convert.i.c, coop-threads.c,
329 debug-malloc.c, dynl.c, environments.c, environments.h,
330 extensions.c, filesys.c, fports.c, gc.c, gc.h, gh_data.c, goops.c,
331 guardians.c, hooks.c, init.c, keywords.c, load.c, numbers.c,
332 ports.c, posix.c, procs.c, rdelim.c, regex-posix.c, root.c,
333 smob.c, stime.c, strings.c, struct.c, struct.h, symbols.c, unif.c,
334 vectors.c, weaks.c: Use scm_gc_malloc/scm_malloc and
335 scm_gc_free/free instead of scm_must_malloc and scm_must_free, as
336 appropriate. Return zero from smob and port free functions.
337
338 * debug-malloc.c (scm_malloc_reregister): Handle "old == NULL".
339
340 * deprecation.h, deprecation.c: Reimplemented to allow deprecation
341 messages while the GC is running.
342 (scm_c_issue_deprecation_warning_fmt): New.
343
344 * fports.c (scm_setvbuf): Reset read buffer to saved values when
345 it is pointing to the putback buffer.
346
66adc0a6
TTN
3472002-02-08 Thien-Thi Nguyen <ttn@giblet.glug.org>
348
349 * gsubr.c (create_gsubr): On "too many args" error,
350 also display arg count and name. Thanks to Bill Schottstaedt.
351
0187b4f4
TTN
3522002-02-05 Thien-Thi Nguyen <ttn@giblet.glug.org>
353
354 * Makefile.am: Include $(top_srcdir)/pre-inst-guile.am.
355
356 (bin_SCRIPTS): Remove guile-snarf-docs-texi.
357 (alldotdocfiles, snarf2checkedtexi, dotdoc2texi): New vars.
358 (guile.texi, guile-procedures.texi): Use $(dotdoc2texi).
359
360 * guile-snarf-docs-texi.in: Bye bye.
361
402e687c
MV
3622002-02-04 Marius Vollmer <marius.vollmer@uni-dortmund.de>
363
364 * symbols.c (scm_make_symbol): Fix typo in docstring.
365
366 * symbols.h (scm_mem2uninterned_symbol, scm_symbol_interned_p,
367 scm_make_symbol): New prototypes.
368
319b98ed
MV
3692002-02-03 Marius Vollmer <mvo@zagadka.ping.de>
370
371 * symbols.h (SCM_SET_SYMBOL_HASH): Removed.
372 (SCM_SYMBOL_INTERNED_P): New.
373 * symbols.c (scm_symbol_hash): Use scm_ulong2num instead of
374 SCM_MAKINUM since hash values can well be bignums.
375 (scm_mem2symbol): Only use hash values below SCM_T_BITS_MAX/2.
376 This signals a interned symbol.
377 (scm_mem2uninterned_symbol, scm_symbol_interned_p,
378 scm_make_symbol): New.
0187b4f4 379
319b98ed
MV
380 * print.c (scm_iprin1): Print uninterned symbols unreadably.
381
34472dfe
TTN
3822002-02-02 Thien-Thi Nguyen <ttn@giblet.glug.org>
383
384 * __scm.h (HAVE_UINTPTR_T): Only define if UINTPTR_T attributes
385 are defined: UINTPTR_MAX, INTPTR_MAX, INTPTR_MIN.
0187b4f4 386 Thanks to Dave Love.
34472dfe 387
1b39c2e3
MV
3882002-01-31 Marius Vollmer <mvo@zagadka.ping.de>
389
390 * symbols.c (scm_gensym): Use " g" as default prefix, not "g".
319b98ed 391 This might help to make unintended clashes less likely.
1b39c2e3
MV
392 (scm_string_to_symbol): Protect the string until the symbols is
393 created.
394
1fa86ca5
SJ
3952002-01-31 Stefan Jahn <stefan@lkcc.org>
396
397 * convert.c, convert.h, convert.i.c: New files containing C
34472dfe 398 array to Scheme conversion helpers meant to be replacement
1fa86ca5
SJ
399 functions for the deprecated gh interface.
400
401 * Makefile.am: Setup rules for new `convert.*' files.
402
af68e5e5
SJ
4032002-01-28 Stefan Jahn <stefan@lkcc.org>
404
405 * symbols.c (scm_c_symbol2str): New function, replacement for
406 `gh_scm2newsymbol()'.
407
34472dfe 408 * strings.c (scm_c_substring2str): New function. Proper
af68e5e5
SJ
409 replacement for `gh_get_substr()'.
410
411 * socket.c: Include `stdint.h' if available for the `uint32_t'
412 declaration.
413
34472dfe 414 * scmsigs.c (s_scm_sigaction): Initialize `chandler' (inhibits
af68e5e5
SJ
415 compiler warning).
416
417 * backtrace.c: Include `lang.h' for GUILE_DEBUG conditional.
418
c96d76b8 4192002-01-22 Neil Jerram <neil@ossau.uklinux.net>
34472dfe 420
c96d76b8 421 Other changes unrelated to Elisp...
34472dfe 422
c96d76b8
NJ
423 * eval.c (scm_m_if): Use s_if rather than repeating string literal
424 "if".
425 (comments): Fix a few typos.
426 (scm_for_each): Add parentheses around oddly unparenthesized
427 if/while conditions.
428
429 * read.c (scm_read_opts): Add full stop at end of doc for
430 `keywords' option.
431
432 * script.c (scm_compile_shell_switches): Use scm_str2symbol
433 instead of gh_symbol2scm.
434
435 * srcprop.h (SRCPROPBRK): Return C type rather than SCM.
436 (SRCBRKP): Use SRCPROPBRK rather than duplicating its logic.
437
438 * srcprop.c (scm_srcprops_to_plist, scm_source_property): Change
439 SRCPROPBRK (x) to SCM_BOOL (SRCPROPBRK (x)).
440
441 First batch of changes for Elisp support...
442
443 * alist.c, async.c, boolean.c, dynl.c, eval.c, filesys.c,
444 fluids.c, list.c, load.c, options.c, posix.c, print.c, sort.c,
445 throw.c, vectors.c, weaks.c: Add #include for lang.h.
446
447 * eval.c, eval.h, init.c, lang.c, lang.h: Use SCM_ENABLE_ELISP to
448 conditionalize compilation and initialization of Elisp support
449 function.
34472dfe 450
c96d76b8
NJ
451 * alist.c (scm_assq, scm_assv, scm_assoc), async.c
452 (scm_asyncs_pending, scm_run_asyncs, noop), backtrace.c
453 (scm_set_print_params_x), dynl.c (scm_make_argv_from_stringlist),
454 filesys.c (fill_select_type, retrieve_select_type), fluids.c
455 (scm_swap_fluids, scm_swap_fluids_reverse), list.c (scm_null_p,
456 scm_ilength, scm_append_x, scm_last_pair, scm_reverse,
457 scm_reverse_x, scm_list_ref, scm_list_set_x, scm_list_cdr_set_x,
bbd26b5a
NJ
458 scm_c_memq, scm_memv, scm_member), load.c (scm_search_path),
459 options.c (change_option_setting, scm_options), posix.c
460 (environ_list_to_c), print.c (scm_iprlist), throw.c
461 (scm_exit_status), vectors.c (scm_vector), weaks.c
462 (scm_weak_vector): Use SCM_NULL_OR_NIL_P instead of SCM_NULLP.
c96d76b8
NJ
463
464 * boolean.c (scm_not): Use `SCM_FALSEP || SCM_NILP' instead of
465 just SCM_FALSEP.
34472dfe 466
c96d76b8
NJ
467 * boolean.c (scm_boolean_p): Use `SCM_BOOLP || SCM_NILP' instead
468 of just SCM_BOOLP.
469
470 * eval.c (scm_lisp_nil, scm_lisp_t, s_nil_ify, scm_m_nil_ify,
471 s_t_ify, scm_m_t_ify, s_0_cond, scm_m_0_cond, s_0_ify,
472 scm_m_0_ify, s_1_ify, scm_m_1_ify): Removed.
473 (scm_m_atfop): Support function aliasing. Support both function
474 args, which need transformation, and macro args, which do not.
475 Add explanatory comments.
476 (SCM_CEVAL): In switch cases for SCM_IM_AND, SCM_IM_COND,
477 SCM_IM_DO, SCM_IM_IF and SCM_IM_OR, add `|| SCM_NILP' to existing
478 checks for SCM_FALSEP. In switch case for SCM_IM_NIL_COND, use
479 SCM_NULLP || SCM_NILP instead of checks against (removed)
480 scm_lisp_nil. Removed switch cases for SCM_IM_NIL_IFY,
481 SCM_IM_T_IFY, SCM_IM_0_COND, SCM_IM_0_IFY, SCM_IM_1_IFY.
482
483 * lang.c (scm_nil_cons, scm_nil_car, scm_nil_cdr, scm_null,
484 scm_m_while, scm_nil_eq): Commented out; I don't think we need
485 these, but I don't want to remove them yet, just in case.
486 (scm_init_lang): Define `%nil' variable on Scheme level to hold
487 Elisp nil value.
488
489 * lang.h (SCM_NILP): Test against Elisp nil value instead of
490 against (removed) scm_lisp_nil.
491 (SCM_NILNULLP, SCM_NIL2EOL, SCM_EOL2NIL): Commented out.
492 (SCM_NULL_OR_NIL_P): New.
493
494 * list.c (scm_append): Use SCM_VALIDATE_NULL_OR_NIL instead of
495 SCM_VALIDATE_NULL.
496
497 * print.c (scm_isymnames): Fix comment. Remove #@nil-ify,
498 #@t-ify, #@0-cond, #@0-ify, #@1-ify. Add #nil (for SCM_ELISP_NIL
499 value).
500
501 * sort.c (scm_sorted_p, scm_merge, scm_merge_list_x, scm_merge_x,
502 scm_sort_x, scm_sort, scm_stable_sort_x, scm_stable_sort): Use
503 SCM_NULL_OR_NIL_P instead of SCM_NULLP. In constructions like `if
504 (SCM_NULLP (x)) return SCM_EOL;', return x rather than SCM_EOL.
505
506 * tags.h (SCM_IM_NIL_IFY, SCM_IM_T_IFY, SCM_IM_0_COND,
507 SCM_IM_0_IFY, SCM_IM_1_IFY): Removed.
508 (SCM_IM_BIND, SCM_IM_DELAY, SCM_IM_CALL_WITH_VALUES, SCM_UNBOUND):
509 Numbering shifted down accordingly.
510 (SCM_ELISP_NIL): New IFLAG.
511
512 * validate.h (SCM_VALIDATE_NULL_OR_NIL): New.
34472dfe 513
a392ee15
DH
5142002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
515
516 * eval.c: Removed outdated references to "everr". Improved some
517 comments.
518
519 (scm_deval_args, deval_args): Renamed scm_deval_args to
520 deval_args, since it is not part of the interface.
521
522 (SCM_CEVAL): Added (maybe somewhat verbose) comment. Avoid to
523 use references to debug.vect[0] before it exists. Add parentheses
524 to switch statement.
525
526 * goops.h: Added local emacs variables.
527
24933780
DH
5282002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
529
530 * eval.[ch] (scm_deval_args): Made static.
531
532 * srcprop.c (scm_source_property): Remove redundant SCM_IMP
533 test.
534
535 * strings.c (scm_c_string2str): Clarified comment. Replaced
536 THINKME by FIXME for uniformness. Removed question about whether
537 arguments need to be protected from garbage collection: Arguments
538 must be protected as any other variable.
539
f9450cdb
DH
5402002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
541
542 * procs.h (SCM_CLOSURE_BODY): New Macro.
543
544 * debug.c (scm_procedure_name, scm_procedure_source), eval.c
545 (SCM_CEVAL, SCM_APPLY), goops.c (scm_sys_initialize_object,
546 get_slot_value, set_slot_value), procs.c
547 (scm_procedure_documentation), sort.c (closureless), stacks.c
548 (get_applybody): Replace SCM_CDR (SCM_CODE (...)) by
549 SCM_CLOSURE_BODY.
550
551 * sort.c (closureless): Prefer !SCM_FOOP over SCM_NFOOP.
552
5dc64f64
MV
5532001-12-26 Marius Vollmer <mvo@zagadka.ping.de>
554
555 * Makefile.am (guile-procedures.txt): When we don't have makeinfo,
556 use "cp" instead.
557
197ee3d3
MV
5582001-12-16 Marius Vollmer <mvo@zagadka.ping.de>
559
560 * stacks.c, stacks.h (scm_t_stackype): Renamed to scm_stack_type
561 everywhere.
562
563 * continuations.c (scm_make_continuation): Do not retain the
564 throw_value when the continuation is invoked.
565
4d4528e7
SJ
5662001-12-08 Stefan Jahn <stefan@lkcc.org>
567
568 * strings.c (scm_c_string2str): New function. Converts a
34472dfe 569 given Scheme string into a C string. Also put in two
4d4528e7
SJ
570 THINKME's regarding the malloc policy for the missing converter
571 routines.
572
98347362
NJ
5732001-12-01 Neil Jerram <neil@ossau.uklinux.net>
574
575 * gh_data.c (gh_module_lookup): Use scm_str2symbol rather than
576 gh_symbol2scm.
577
1fc8902f
DH
5782001-11-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
579
580 * gc.h (SCM_GC_CELL_WORD, SCM_GC_CELL_OBJECT,
581 SCM_GC_SET_CELL_WORD, SCM_GC_SET_CELL_OBJECT): New macros.
582
583 (SCM_GC_CELL_TYPE, SCM_CELL_WORD, SCM_CELL_OBJECT,
584 SCM_SET_CELL_WORD, SCM_SET_CELL_OBJECT, SCM_FREE_CELL_CDR,
585 SCM_GC_SET_CELL_OBJECT): Express in terms of SCM_GC_CELL_*
586 macros.
587
588 (SCM_FREE_CELL_P): Express in terms of SCM_GC_CELL_TYPE.
589
590 * inline.h (scm_alloc_cell, scm_alloc_double_cell): Use
591 SCM_GC_CELL_* macros when accessing free cells.
592
4878beec
MV
5932001-11-25 Marius Vollmer <mvo@zagadka.ping.de>
594
595 * vectors.h (SCM_MAKE_VECTOR_TAG): New.
34472dfe 596 * unif.h (SCM_MAKE_BITVECTOR_TAG, SCM_MAKE_UVECTOR_TAG): New.
4878beec
MV
597 * symbols.h (SCM_MAKE_SYMBOL_TAG): New.
598 * strings.h (SCM_MAKE_STRING_TAG): New.
599 * procs.h (SCM_MAKE_CCLO_TAG): New.
600 * numbers.h (SCM_MAKE_BIGNUM_TAG): New.
601
602 * goops.h: Replaced SCM_DEBUG_DEPRECATED with
603 !SCM_ENABLE_DEPRECATED.
604
605 * async.c, async.h (scm_system_async_mark_from_signal_handler):
606 New.
607
608 * scmsigs.c (scm_take_signal): Removed all code that assumes that
609 signal handlers are allowed to divert the flow of control. Call
610 scm_system_async_mark_from_signal_handler instead of
611 scm_system_async_mark.
612
613
614 Deprecated SCM_NEWCELL and SCM_NEWCELL2. Added scm_alloc_cell and
615 scm_alloc_double_cell in their place.
34472dfe 616
4878beec
MV
617 * gc.h (SCM_GC_SET_ALLOCATED, scm_debug_newcell,
618 scm_debug_newcell2, scm_tc16_allocated): Removed from header.
619 (scm_deprecated_newcell, scm_deprecated_newcell2): New.
620 (SCM_NEWCELL, SCM_NEWCELL2): Implement in terms of
621 scm_deprecated_newcell and scm_deprecated_newcell2.
622
623 gc.c (scm_tc16_allocated): Only define when including deprecated
624 features.
625 (scm_debug_newcell, scm_debug_newcell2): Removed.
626 (scm_init_storage): Do not initialize scm_tc16_allocated.
627 (scm_init_gc): Do it here.
628 (allocated_mark): New, from old code.
629 (scm_deprecated_newcell, scm_deprecated_newcell2): New.
34472dfe 630
4878beec 631 * inline.c, inline.h: New files.
34472dfe 632 * Makefile.am: Added them in all the right places.
4878beec 633
34472dfe 634 * _scm.h: Include "libguile/inline.h".
4878beec
MV
635
636 * alist.c, coop-threads.c, debug.c, environments.c, eval.c,
637 fports.c, gh_data.c, goops.c, guardians.c, lang.c, list.c,
638 num2float.i.c, numbers.c, pairs.c, ports.c, print.c, procs.c,
639 smob.c, smob.h, strings.c, strports.c, struct.c, symbols.c,
640 unif.c, variable.c, vectors.c, vports.c, weaks.c: Replaced
641 SCM_NEWCELL and SCM_NEWCELL2 with scm_alloc_cell and
642 scm_alloc_double_cell, respectively.
643
d2bc7fae
MV
6442001-11-23 Marius Vollmer <mvo@zagadka.ping.de>
645
646 * modules.c (scm_c_use_module): Adapt to changes to
647 `process-use-modules'.
648
5eec27e9
DH
6492001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
650
651 * numbers.c (scm_divide): Fix more division by zero errors.
652
8978878f
GH
6532001-11-21 Gary Houston <ghouston@arglist.com>
654
655 * Makefile.am (OMIT_DEPENDENCIES): removed, since it seems to be
656 obsolete. autogen.sh says:
657 invalid unused variable name: `OMIT_DEPENDENCIES'
658
164826d3
DH
6592001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
660
661 * numbers.c (scm_divide): Fix (/ 0). Thanks to Keith Wright for
662 reporting the bug.
663
84aff7a7
MV
6642001-11-21 Marius Vollmer <mvo@zagadka.ping.de>
665
666 * Makefile.am (install-exec-hook): Prepend $(DESTDIR) to filename.
667 Thanks to Eric Gillespie, Jr!
34472dfe 668
6063dc1d
SJ
6692001-11-21 Stefan Jahn <stefan@lkcc.org>
670
34472dfe
TTN
671 * win32-socket.c (getservent, setservent, endservent,
672 getprotoent, setprotoent, endprotoent): New functions.
6063dc1d
SJ
673 Appropriate replacements for M$-Windows.
674
675 * numbers.c (SIZE_MAX, PTRDIFF_MAX, PTRDIFF_MIN): Reintroduced
676 these definitions for GUILE_DEBUG.
677
678 * net_db.c: Include "win32-socket.h" if compiling with a native
34472dfe
TTN
679 M$-Windows compiler. Include some pieces of code (protoent and
680 servent interface) protected by HAVE_* macros when using a
6063dc1d
SJ
681 native M$-Windows compiler.
682
351982f6
MV
6832001-11-20 Marius Vollmer <mvo@zagadka.ping.de>
684
685 * modules.c (scm_c_export): Do nothing when the first argument is
686 already the terminating NULL. Thanks to Han-Wen Nienhuys!
687
849038b5
TTN
6882001-11-20 Thien-Thi Nguyen <ttn@glug.org>
689
690 * Makefile.am (libpath.h): In SCM_BUILD_INFO,
691 also include `buildstamp'.
692
5c790b44
RB
6932001-11-18 Rob Browning <rlb@defaultvalue.org>
694
695 * version.c
696 (s_scm_major_version): use SCM_MAJOR_VERSION.
697 (s_scm_minor_version): use SCM_MINOR_VERSION.
698 (s_scm_micro_version): use SCM_MICRO_VERSION.
699 (s_scm_version): use SCM_MAJOR_VERSION, SCM_MINOR_VERSION, and
700 SCM_MICRO_VERSION.
701
702 * version.h.in
703 (SCM_MAJOR_VERSION): renamed from SCM_GUILE_MAJOR_VERSION.
704 (SCM_MINOR_VERSION): renamed from SCM_GUILE_MINOR_VERSION.
705 (SCM_MICRO_VERSION): renamed from SCM_GUILE_MICRO_VERSION.
706
694a9bb3
NJ
7072001-11-18 Neil Jerram <neil@ossau.uklinux.net>
708
709 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
710 Rewrite docstrings without reference to substring-move-left/right,
711 since the latter no longer exist.
712
302c12b4
DH
7132001-11-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
714
715 * eval.c: Removed bogus comment about acros.
716
717 (scm_unmemocar): Use !SCM_CONSP instead of SCM_IMP.
718 Minimize scope of local variable. Eliminate dependency on
719 macro DEBUG_EXTENSIONS.
720
721 (s_splicing): New error message string.
722
723 (scm_m_body): Issue 'bad body' message rather than 'missing
724 expression' message.
725
726 (scm_m_quote): Eliminate unnecessary copying.
727
728 (scm_m_lambda, scm_m_letstar, scm_m_letrec, scm_m_let): Leave the
729 checking of the body to scm_m_body.
730
731 (scm_m_do): Move comment to function header. Rename arg1 to
732 binding. Made the code a bit easier to read.
733
734 (evalcar): Removed.
735
736 (iqq): Added a comment. Changed the depth parameter to
737 unsigned. Use size_t for vector lengths. Make sure vector object
738 is gc protected as long as its contents are read. Add some syntax
739 checks. Get rid of unnecessary SCM_IMP test. Clean up the
740 control structure a bit.
741
742 (scm_m_delay): Added comment about the implementation of
743 scm_m_delay.
744
745 (scm_m_define): Add comment about guile's currying define
746 syntax. Renamed 'proc' to 'name'. Eliminate dependency on macro
747 DEBUG_EXTENSIONS. Simplified code a bit. Eliminate SICP code.
748
749 (scm_m_letrec1): Removed. Part of the functionality is taken
750 over by the new function 'transform_bindings'.
751
752 (transform_bindings): New function. Takes over some of the
753 functionality of removed function 'scm_m_letrec1', namely to split
754 a list of bindings into a reversed list of variables and a list of
755 initializers.
756
757 (scm_m_letrec): Call 'transform_bindings'.
758
759 (scm_m_let): Minimized scope of local variables. Renamed 'proc'
760 to 'temp' and 'arg1' to 'binding'. Eliminated redundant SCM_NIMP
761 test. Use 'transform_bindings'. Fixed scoping error with named
762 let (Thanks to Aubrey Jaffer for reporting the bug and to Neil
763 Jerram for suggesting the fix). Cleaned up the control structure
764 a bit.
765
766 (scm_m_expand_body): Use 'transform_bindings'. Eliminated
767 unnecessary consing. Eliminated unnecessary
768 SCM_DEFER/ALLOW_INTS.
769
770 (SCM_CEVAL): Un-obfuscated some loops.
771
cecb4a5e
NJ
7722001-11-16 Neil Jerram <neil@ossau.uklinux.net>
773
8f85c0c6
NJ
774 * gc.h (scm_unhash_name): Old declaration removed.
775
776 * eval.c (s_scm_eval): Change @var{primitive-eval} to
777 @code{primitive-eval}.
778
779 * feature.c, vectors.c, net_db.c, unif.c, weaks.c, struct.c,
780 version.c, alist.c, ports.c, ramap.c, unif.c, strings.c, list.c:
781 Change @deffnx lines in docstrings to say {Scheme Procedure}
782 rather than primitive or procedure.
783
784 * posix.c (scm_execl), filesys.c (scm_close), unif.c
785 (scm_array_set_x, scm_array_contents, scm_uniform_array_read_x,
786 scm_bit_set_star_x, scm_bit_invert_x), ramap.c (scm_array_fill_x,
787 scm_array_for_each, scm_array_index_map_x), vectors.c (scm_vector,
788 scm_make_vector, scm_vector_to_list, scm_vector_fill_x), strop.c
789 (scm_string_split, scm_string_ci_to_symbol), strings.c
790 (scm_string_p), sort.c (scm_merge), print.c (scm_newline),
791 macros.c (scm_macro_type), alist.c (scm_acons, scm_assq):
792 Docstring fixes and improvements reflecting edits that have been
793 made in the reference manual source.
794
795 * objprop.c (scm_object_properties, scm_set_object_properties_x,
796 scm_object_property, scm_set_object_property_x): Remove invalid
797 @deffnx lines for corresponding procedure property primitives.
798
cecb4a5e
NJ
799 These changes add a @deffnx C function declaration and function
800 index entries for each Guile primitive to the copy of the doc
801 snarf output that is used for reference manual synchronization.
802 Online help is unchanged.
849038b5 803
cecb4a5e
NJ
804 * snarf.h (SCM_SNARF_DOCS): Output primitive's C function name.
805 (SCM_DEFINE, SCM_DEFINE1, SCM_REGISTER_PROC): Supply to C function
806 name to SCM_SNARF_DOCS.
849038b5 807
cecb4a5e
NJ
808 * guile-snarf-docs-texi.in: Pass the shell script's arguments into
809 snarf-check-and-output-texi.
810
811 * Makefile.am (guile-procedures.texi): New rule.
812 (BUILT_SOURCES, guile.texi, guile-procedures.txt, CLEANFILES):
813 Changed so that the last stage of doc snarfing is now performed
814 twice, once to produce guile-procedures.txt for online help, and
815 once to produce guile.texi for reference manual synchronization.
816
ddea3325
DH
8172001-11-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
818
819 * eval.c (RETURN): Wrap in do{}while(0) in order to make it
820 safely usable as a single statement followed by a ';', for example
821 in an if statement.
822
823 (SCM_CEVAL, SCM_APPLY): Clean up code using 'RETURN'.
824
72dd0a03
NJ
8252001-11-13 Neil Jerram <neil@ossau.uklinux.net>
826
827 * random.c (scm_random_solid_sphere_x,
828 scm_random_hollow_sphere_x): Correct "shere" typos.
829
830 * hashtab.c (scm_hash_fold): Add missing apostrophe to docstring.
831
832 * version.c (scm_version): Update docstring to include
833 `micro-version'.
834
6558eda6
MV
8352001-11-13 Marius Vollmer <mvo@zagadka.ping.de>
836
409b8588
MV
837 * modules.c (scm_c_export): Call va_end after collecting the
838 symbols.
839
adb8c0f2
MV
840 * strop.h, strop.c (scm_substring_move_left_x,
841 scm_substring_move_right_x): Removed.
842
6558eda6
MV
843 * __scm.h (HAVE_UINTPTR_T, HAVE_PTRDIFF_T, HAVE_LONG_LONG,
844 HAVE_LONG_LONGS): Define to "1" when defining them, to mirror what
845 configure does.
846
5d8fc640
MV
8472001-11-12 Marius Vollmer <mvo@zagadka.ping.de>
848
849 * numbers.c: Document macros to define when including
850 num2integral.i.c. MAX_VALUE and MIN_VALU are no longer used, we
851 now rely on SIZEOF_ macros that have been figured out at
852 configure time.
853
854 * num2integral.i.c: Adapt to new interface.
855 (NUM2INTEGRAL): Test whether a fixnum can be represented in the
856 target type by casting it and checking whether it is still the
857 same. Do not try to handle bignums for integral types that are
858 smaller than fixnums. When handling bignums, collect the
859 magnituse first into a unsigned type, and correctly check for
860 overflow.
861 (INTEGRAL2BIG): Do not use MIN_VALUE explicitely by observing that
862 only -MIN_VALUE can still be negative of all negative numbers (in
863 twos-complement).
864
849038b5 865 * tags.h (SIZEOF_SCM_T_BITS): Define it appropriately.
5d8fc640
MV
866
867 * __scm.h: Define HAVE_UINTPTR_T, HAVE_PTRDIFF_T and
868 HAVE_LONG_LONG depending on whether their size is non-zero.
869
d6b8cf11
TTN
8702001-11-11 Thien-Thi Nguyen <ttn@glug.org>
871
872 * strop.c (scm_string_null_p): Docfix; nfc.
873 Thanks to Scott Lenser.
874
9401323e
NJ
8752001-11-07 Neil Jerram <neil@ossau.uklinux.net>
876
877 * extensions.c (scm_load_extension): Canonicalize docstring
878 whitespace.
879
880 * unif.c (scm_uniform_array_write), ports.c
881 (scm_current_output_port, scm_force_output), dynwind.c
882 (scm_dynamic_wind), scmsigs.c (scm_setitimer, scm_getitimer),
883 filesys.c (scm_open, scm_lstat), struct.c
884 (scm_make_struct_layout), random.c (scm_random,
885 scm_random_solid_sphere_x, scm_random_hollow_sphere_x, strop.c
886 (scm_i_index): Remove superfluous whitespace from end of docstring
887 lines.
888
889 * filesys.c (scm_select), guardians.c (scm_guardian_greedy_p),
890 strings.c (scm_make_string), variable.c (scm_make_variable,
891 scm_make_undefined_variable, scm_variable_p, scm_variable_set_x,
892 scm_variable_bound_p), scmsigs.c (scm_setitimer, scm_getitimer),
893 posix.c (scm_crypt), struct.c (scm_make_vtable_vtable), hashtab.c
894 (scm_hash_fold), ports.c (scm_port_for_each): Remove superfluous
895 newline at end of docstrings.
896
897 * modules.c (scm_set_current_module): Add missing newline to
898 docstring.
899
b4e15479
SJ
9002001-11-07 Stefan Jahn <stefan@lkcc.org>
901
902 * win32-socket.[ch]: New files. Defines Winsock-API error codes
903 and makes them available through Guile. That is because the
904 Winsock-API does not store its errors in `errno' and thus cannot
905 return error messages via `strerror (errno)'.
906
907 * socket.c (scm_init_socket): Initialize `win32-socket' part
908 here under M$-Windows.
909
d6b8cf11 910 * numbers.h: Added missing declaration of
b4e15479
SJ
911 `scm_sys_check_number_conversions()'.
912
913 * error.c: Local definition of SCM_I_STRERROR and SCM_I_ERRNO
914 and use in `(strerror)' and `(system-error)'.
915
d6b8cf11 916 * Makefile.am (EXTRA_libguile_la_SOURCES): Added
b4e15479
SJ
917 `win32-socket.[ch]' to extra source and header files.
918
7ab89df1
MV
9192001-11-06 Marius Vollmer <mvo@zagadka.ping.de>
920
921 * script.c (scm_shell_usage, scm_compile_shell_switches): Prepend
922 a call to turn-on-debugging when --debug has been given instead of
923 turning it on directly. Also, handle new `--no-debug' option,
924 which might suppress the call to turn-on-debugging.
925
0233bfc1
SJ
9262001-11-05 Stefan Jahn <stefan@lkcc.org>
927
928 * struct.c (s_scm_struct_vtable_p): Corrected docstring.
929
8f99e3f3
SJ
9302001-11-04 Stefan Jahn <stefan@lkcc.org>
931
932 * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL)
d6b8cf11 933 here (was at guile_LDADD) which describes the dependency
8f99e3f3
SJ
934 correctly and allows a clean build on Win32.
935
d6b8cf11 936 * __scm.h (SCM_API): Follow-up patch. Renamed __FOO__ macros
8f99e3f3
SJ
937 into FOO.
938
939 * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL
940 import macros for external libraries (libcrypt, libqthreads,
941 libreadline and libregex).
942
943 * coop-defs.h: Include <winsock2.h> for `struct timeval'.
944
945 * posix.c (flock): Added support for flock() in M$-Windows.
946
947 * guile.c (SCM_IMPORT): Follow-up patch. Use SCM_IMPORT instead
948 of __SCM_IMPORT__.
949
950 * fports.c (getflags): Differentiate reading and writing pipes
951 descriptors.
952
953 * filesys.c (S_IS*): Redefine all of the S_IS*() macros for
954 M$-Windows.
955
956 * coop.c (coop_condition_variable_timed_wait_mutex): Use
957 conditionalized error code if `ETIMEDOUT' is not available.
958 (scm_thread_usleep): Remove bogus declaration of `struct timeval
959 timeout'.
960
961 * numbers.c (PTRDIFF_MIN): Moved this definition where it actually
962 belongs. That is because NO_PREPRO_MAGIC gets undefined after
963 each inclusion of `num2integral.i.c'.
964 (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined.
965
4e21fa60
MV
9662001-11-03 Marius Vollmer <mvo@zagadka.ping.de>
967
968 * eval.c (scm_m_begin): Allow `(begin)`, with no subforms.
969 (SCM_CEVAL): Evaluate an empty `begin' to SCM_UNSPECIFIED.
970
08112c95
MD
9712001-11-02 Mikael Djurfeldt <mdj@linnaeus>
972
7663c008
MD
973 * print.c (scm_iprin1): Mark print state as revealed when
974 dispatching to generic write or display.
975
08112c95
MD
976 * unif.c (scm_ra2contig): Fixed memory overwrite bug.
977
f712d833
MV
9782001-11-02 Marius Vollmer <mvo@zagadka.ping.de>
979
980 Support for native Win32. Thanks to Stefan Jahn!
d6b8cf11 981
f712d833
MV
982 * Makefile.am: Add win32-uname.c, win32-uname.h, win32-dirent.c
983 and win32-dirent.h to extra source and header files. These
984 include the uname() and the POSIX dirent interface implementation
985 for M$-Windows. Put `-no-undefined' into LDFLAGS to support
986 linkers which do not allow unresolved symbols inside shared
987 libraries. Corrected `guile_filter_doc_snarfage$(EXEEXT)'
988 dependency.
989
d6b8cf11
TTN
990 * __scm.h: Defined SCM_API. This macro gets prepended to all
991 function and data definitions which should be exported or imported
f712d833
MV
992 in the resulting dynamic link library in the Win32 port.
993
994 * __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h,
d6b8cf11 995 chars.h, continuations.h, coop-defs.h, coop-threads.h,
f712d833
MV
996 debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h,
997 environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h,
998 feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h,
999 gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h,
1000 hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h,
d6b8cf11 1001 load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h,
f712d833
MV
1002 objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h,
1003 procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h,
1004 read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h,
1005 smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h,
1006 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
1007 tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h,
1008 vports.h, weaks.h:
1009 Prefixed each each exported symbol with SCM_API.
1010
d6b8cf11 1011 * continuations.c: Added comment about the use of the extern
f712d833
MV
1012 declarations of {get,set}context() functions used in the ia64 port.
1013
1014 * continuations.h, gc.c: `__libc_ia64_register_backing_store_base'
1015 is meant to be a `unsigned long *'.
1016
1017 * filesys.c: Include `direct.h' if possible. Use local
1018 `win32-dirent.h' for the native M$-Windows port. Define S_IS*()
1019 macros for M$-Windows. Implementation of `fstat_Win32()' which is
1020 able to differentiate between sockets and other file descriptors.
1021 Use this function as wrapper in `scm_fstat()'. Fixed typo in
1022 `scm_dirname()'.
1023
1024 * fports.c: Include `io.h' is possible. Put `*fp' into referring
1025 statement block in `scm_fport_buffer_add()'.
1026 Some corrections in `getflags()'.
d6b8cf11 1027
f712d833
MV
1028 * gdb_interface.h (GDB_INTERFACE): Also support __CYGWIN__.
1029
1030 * guile.c: Make sure to define __SCM_IMPORT__ for shared library
1031 build on Win32. Disable preloaded symbols on Win2 platforms.
1032
1033 * ioext.c, ports.c: Include `io.h' is possible.
1034
1035 * mkstemp.c: Include `process.h' is possible.
1036
1037 * net_db.c: Disable extern declaration of `h_errno' for __CYGWIN__,
1038 too.
1039 Put `scm_return_entry()' into HAVE_GETSERVENT conditional.
1040
1041 * posix.c: Remove unnecessary dirent includes and defines. Include
1042 local `win32-uname.h' for MinGW. Extern declaration of
1043 `mkstemp()' for systems where it does not exists. Make
1044 `getlogin()' available on M$-Windows.
1045
1046 * scmsigs.c: Made `usleep()' avalable on MinGW.
1047
1048 * stime.c: On M$-Windows `tzname[]' is known to be `_tzname[]'.
1049
1050 * win32-dirent.c: Include "win32-dirent.h", not "dirent.h".
1051
1052 * win32-uname.c: Include "win32-uname.h", not "uname.h".
1053
d245ce23
MD
10542001-10-28 Mikael Djurfeldt <mdj@linnaeus>
1055
1056 * unif.c (scm_uniform_array_read_x, scm_uniform_array_write):
1057 Don't apply scm_uniform_vector_length on arrays.
1058
8ea46249
DH
10592001-10-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
1060
1061 * eval.c (scm_lookupcar, scm_m_letstar, scm_m_do, iqq,
1062 scm_m_define, scm_m_letrec1, scm_m_let, scm_m_expand_body,
1063 scm_macroexp, unmemocopy, scm_eval_args, scm_deval_args,
1064 SCM_CEVAL, scm_map, scm_init_eval): When building lists, prefer
1065 scm_list_<n> over scm_cons[2]?.
1066
1067 (scm_unmemocar, scm_m_cond, scm_m_letstar, scm_m_letrec1,
1068 scm_m_let, scm_m_atbind, unmemocopy, SCM_CEVAL, SCM_APPLY): Use
1069 SCM_C[AD][AD]R instead of explicit form.
1070
1071 (scm_m_set_x, scm_m_cond, scm_m_letstar, scm_m_do): Reordered
1072 comparison parameters.
1073
1074 (scm_m_case, scm_m_cond, scm_m_letstar, scm_m_do, SCM_CEVAL): Use
1075 !SCM_NULLP instead of SCM_NIMP.
1076
1077 (scm_m_case): Don't copy the form. Renamed proc to clause and
1078 minimized its scope. Renamed x to clauses. Removed side
1079 effecting operation from macro call.
1080
1081 (scm_m_cond): Don't copy the form. Renamed arg1 to clause and
1082 minimized its scope. Renamed x to clauses. Minimized the scope
1083 of variable 'len'. Make sure the else clause is treated specially
1084 even in case of '=>' occurences. Don't change the else to #t in
1085 order to be able to distinguish this case in the evaluator. Leave
1086 type checking of the recipient to the evaluator.
1087
1088 (scm_c_improper_memq): Made the comment somewhat clearer.
1089
1090 (scm_m_lambda): Renamed proc to formals. Removed unnecessary
1091 test for SCM_IM_LET at the place of the formal parameters.
1092 Simplified the formal parameter checking.
1093
1094 (scm_m_letstar): Added Comment. Renamed proc to bindings.
1095 Renamed arg1 to binding and minimized its scope. Eliminated
1096 unnecessary consing.
1097
1098 (scm_m_do): Renamed proc to bindings. Minimized the scope of
1099 variable 'len'.
1100
1101 (build_binding_list): New static function.
1102
1103 (unmemocopy): Don't use SCM_TYP7 on pairs (it's unclean).
1104 Further, split up the 'letrec' unmemoizing code to the
1105 corresponding parts for 'do', 'let' and 'letrec', adding comments
1106 to each form. Cleanup the handling of the do form (This removes
1107 some *real* code :-).
1108
1109 (SCM_CEVAL): Removed side effecting operation from macro call.
1110 Handle the 'else clause of the 'cond form specially - the symbol
1111 'else is not replaced with #t any more.
1112
8186c4f5
GH
11132001-10-14 Gary Houston <ghouston@arglist.com>
1114
1115 * version.c (scm_version): use sprintf instead of snprintf,
1116 for portability. thanks to Bill Schottstaedt.
1117
89759084
MD
11182001-10-14 Mikael Djurfeldt <mdj@linnaeus>
1119
1120 * read.c (scm_lreadr): When user-defined hash procedure returns
1121 SCM_UNSPECIFIED: Fall back to standard handling instead of raising
1122 an exception. (This prevents parsing of uniform vectors from
1123 interfering with parsing of numbers.)
1124
9c7ce563
MV
11252001-10-13 Marius Vollmer <mvo@zagadka.ping.de>
1126
1127 * numbers.c: Set NO_PREPRO_MAGIC when defining our version of
1128 PTRDIFF_MIN. Thanks to Ken Raeburn.
1129
11302001-10-07 Marius Vollmer <mvo@zagadka.ping.de>
1131
1132 * Makefile.am (EXTRA_libguile_la_SOURCES): Added "mkstemp.c".
1133
1134 * eval.c (scm_m_atbind): First try to find the variable without
1135 defining it locally; when it has not been found, define it
1136 locally.
1137
1138 * modules.c (module_variable): Pass over variables that exist but
1139 are unbound.
1140
11412001-10-06 Marius Vollmer <mvo@zagadka.ping.de>
1142
1143 * backtrace.c (display_backtrace_file_and_line): Only use
1144 scm_basename when POSIX support is compiled in. Thanks to Chris
1145 Cramer.
1146
1fe5e088
DH
11472001-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1148
1149 * numbers.c (mem2uinteger): Return number read so far when coming
1150 across a hexdigit after having read a # or if not reading a hex
1151 value. This will enable the calling code to correctly handle
1152 forms like 1e2. (The background is, that the exponent markers d,
1153 e and f are also hexdigits.) Thanks to Mikael Djurfeldt for
1154 providing this patch.
1155
1156 (mem2complex): Fix erroneous double-negation. Now, numbers like
1157 1-i will be read correctly.
1158
68665a97
MD
11592001-10-12 Mikael Djurfeldt <mdj@linnaeus>
1160
1161 * debug.c (scm_mem_to_proc): Fixed typo in previous change.
1162
1163 * validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro.
1164
d5cf5324
DH
11652001-10-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
1166
1167 * print.c (scm_print_state_vtable, print_state_pool):
1168 Initialize. These variables are now registered as gc roots.
1169
1170 (scm_current_pstate): Update documentation.
1171
1172 (scm_current_pstate, scm_make_print_state, scm_free_print_state,
1173 scm_prin1, scm_init_print): print_state_pool is registered as a
1174 gc root and thus does not need to be protected by a surrounding
1175 pair any more.
1176
1177 (make_print_state): The car of print_state_pool no longer holds
1178 the scm_print_state_vtable.
1179
1180 (scm_current_pstate, scm_make_print_state, print_circref,
1181 scm_iprin1, scm_prin1, scm_iprlist): Prefer !SCM_<foo> over
1182 SCM_N<foo>.
1183
1184 (scm_prin1): When building lists, prefer scm_list_<n> over
1185 scm_cons[2]?.
1186
1187 (scm_iprlist): Removed a redundant SCM_IMP test.
1188
1189 (scm_simple_format): Use SCM_EQ_P to compare SCM values.
1190
37c56aec
DH
11912001-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
1192
1193 * debug.c (scm_make_iloc): Prefer !SCM_<foo> over SCM_N<foo>.
1194
1195 (scm_memcons, scm_mem_to_proc): When building lists, prefer
1196 scm_list_<n> over scm_cons[2]?.
1197
1198 (scm_mem_to_proc): Prefer SCM_CONSP over SCM_NIMP.
1199
1200 (scm_procedure_name): Use SCM_CADR instead of explicit form.
1201
1202 (debugobj_print): Coerce scm_intprint arg 1 to long, not int.
1203 Thanks to Rob Browning for the patch (see log entry 2001-09-21) -
1204 for some reason his patch didn't make it into the cvs.
1205
79d34f68
DH
12062001-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
1207
1208 * numbers.c (mem2decimal_from_point): Cleaned up the parsing a
1209 little bit - should even be somewhat more accurate now.
1210
5e137c65
RB
12112001-10-08 Rob Browning <rlb@defaultvalue.org>
1212
1213 * gc.c: support ia64 register backing store.
1214 (SCM_MARK_BACKING_STORE): new macro.
1215
1216 * continuations.h: support ia64 register backing store.
1217 (struct scm_t_contregs): add ia64 register backing store.
1218
1219 * continuations.c: support ia64 register backing store.
1220 (continuation_mark): mark ia64 register backing store.
1221 (continuation_free): free ia64 register backing store.
1222 (scm_make_continuation): capture ia64 register backing store.
1223 (copy_stack_and_call): copy ia64 register backing store.
1224
ee083ac2
DH
12252001-10-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
1226
1227 * hashtab.c (scm_hash_fn_create_handle_x): The result of assoc_fn
1228 is known to be #f if no entry is found. Thus, use !SCM_FALSEP
1229 instead of SCM_NIMP to test for that case.
1230
1231 * strings.h (SCM_SET_STRING_LENGTH): Cast the length to
1232 scm_t_bits instead of long.
1233
71dcdbf9
MV
12342001-10-06 Marius Vollmer <mvo@zagadka.ping.de>
1235
1236 * tags.h (SCM_T_BITS_MAX, SCM_T_SIGNED_BITS_MAX,
1237 SCM_T_SIGNED_BITS_MIN): New.
1238 * numbers.h (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM):
1239 Use them to make these macros computable by the preprocessor.
1240
1241 * num2integral.i.c (INTEGRAL2NUM): Let the preprocessor test
1242 whether the integral type fits in a fixnum, not the compiler.
1243 This removes a spurious compiler warning. Also, honor the
1244 NO_PREPRO_MAGIC flag to suppress any preprocessor tests. This is
1245 needed for `long long's.
1246
1247 * numbers.c: Define NO_PREPRO_MAGOC when including
1248 num2integral.c.i for `long long' and `signed long long'.
1249
152812c0
MD
12502001-10-06 Mikael Djurfeldt <mdj@linnaeus>
1251
1252 These changes fixes a race condition in the Guile coop - pthread
1253 compatibility code.
d6b8cf11 1254
152812c0
MD
1255 * coop.c (mother_awake_p): New variable.
1256 (coop_create): Set mother_awake_p before creating or signalling
1257 mother; wait until mother is going to sleep before returning.
1258 (mother): Reset mother_awake_p before going to sleep.
1259
11d49f54
DH
12602001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
1261
1262 * options.c (protected_objects, scm_init_options): The content of
1263 protected_objects is now protected from garbage collection using
1264 scm_gc_register_root instead of scm_permanent_object.
1265
1266 (get_option_setting): New static function that computes an option
1267 setting as it was formerly done in the function scm_options.
1268
1269 (get_documented_option_setting): New static function that
1270 returns option documentation as it was formerly done in the
1271 function scm_options. Note that documentation C strings are no
1272 longer precomputed into SCM objects. Instead, they are converted
1273 into SCM strings every time get_documented_option_setting is
1274 called.
1275
1276 (change_option_setting): New static functions that modifies the
1277 option setting as it was formerly done in the function
1278 scm_options. The function is now exception safe, i. e. won't
1279 cause a memory leak when interrupted. Further, only non-immediate
1280 option values are added to the protection list.
1281
1282 (scm_options): This function now has only the purpose to dispatch
1283 to to get_option_setting, get_documented_option_setting or
1284 change_option_setting, depending on the arguments given to
1285 scm_options.
1286
1287 (scm_init_opts): Don't convert documentation C strings into SCM
1288 strings. Further, don't protect any object values: They _must_
1289 be immediate values, otherwise there is no guarantee that they
1290 have not been collected before anyway.
1291
1292 * options.[ch] (scm_t_option): Made type unsigned, name into a
1293 constant char* and val into a scm_t_bits type.
1294
1295 (scm_options, scm_init_opts): The number of options is guaranteed
1296 to be larger or equal to zero. Thus, the type is changed to
1297 unsigned.
1298
3dbacabc
DH
12992001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
1300
1301 * num2integral.i.c (NUM2INTEGRAL): Eliminated some warnings about
1302 testing an unsigned value for being >= 0.
1303
14282d0f
DH
13042001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
1305
1306 * numbers.h: Removed old comment about using SCM_CAR to access
1307 non-pair cells.
1308
1309 (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM): Make sure
1310 the return value is signed. Thanks to Brian Crowder for the bug
1311 report.
1312
1313 (SCM_SRS): Avoid unnecessary casting and don't unpack input
1314 values. With this patch, SCM_SRS can be safely used for other
1315 types than scm_t_signed_bits. However, it should still better be
1316 an internal macro and thus be renamed to SCM_I_SRS.
1317
1318 (SCM_MAKINUM, SCM_INUM): Use proper casting.
1319
2dbec7b5
GH
13202001-10-03 Gary Houston <ghouston@arglist.com>
1321
1322 * continuations.h, unif.h: in the descriptions of the bit patterns
1323 of the heap cells, make bit 0 the least significant.
1324
cf4ee841
TTN
13252001-09-25 Thien-Thi Nguyen <ttn@glug.org>
1326
1327 * chars.h (SCM_MAKE_CHAR): Use `scm_t_bits' instead of `intptr_t'.
1328 Thanks to Golubev I. N.
1329
4a151b3d
GH
13302001-09-25 Gary Houston <ghouston@arglist.com>
1331
1332 * ports.c (scm_drain_input): extended the docstring. thanks to
1333 Alex Schroeder and Thien-Thi Nguyen.
1334
581ded70
MD
13352001-09-23 Mikael Djurfeldt <mdj@linnaeus>
1336
1337 * validate.h (SCM_NUM2FLOAT, SCM_NUM2DOUBLE,
1338 SCM_VALIDATE_FLOAT_COPY, SCM_VALIDATE_DOUBLE_COPY): New
1339 macros. (The NUM names might soon change.)
1340
1341 * numbers.h: Added missing declarations.
1342
5437598b
MD
13432001-09-22 Mikael Djurfeldt <mdj@linnaeus>
1344
1345 * Makefile.am: Distribute num2float.i.c.
1346
1347 * num2float.i.c: New file, multiply included by numbers.c, used
1348 to "templatize" the float <-> num conversion routines.
1349
1350 * numbers.c: New functions: scm_num2float, scm_float2num,
1351 scm_num2double, scm_double2num.
1352
0b073f0f
RB
13532001-09-21 Rob Browning <rlb@defaultvalue.org>
1354
1355 * .cvsignore: really add version.h
1356
1357 * strings.h (SCM_SET_STRING_LENGTH): coerce "l" to a long.
1358 Otherwise it fails on the alpha. However, we might rather choose
1359 this size conditionally.
1360
1361 * numbers.c (scm_gcd): change "k" to a long from an int.
1362 Otherwise it fails on the alpha. However, we might rather choose
1363 this size conditionally.
1364
1365 * error.c (scm_wta): coerce char* to intptr_t before int
1366 assignment.
1367
1368 * debug.c (debugobj_print): coerce scm_intprint arg 1 to long, not
1369 int.
1370
1371 * chars.h (SCM_MAKE_CHAR): coerce value to intptr_t.
1372
2830fd91
MD
13732001-09-20 Mikael Djurfeldt <mdj@linnaeus>
1374
1375 * numbers.c (scm_integer_expt): Accept inexact integer in second
1376 argument. (Thanks to Bill Schottstaedt.)
1377
c13f0a90
RB
13782001-09-20 Rob Browning <rlb@defaultvalue.org>
1379
1380 * .cvsignore: add version.h
1381
1382 * versiondat.h.in: removed (obsolete).
1383
1384 * version.h.in: renamed from version.h.
1385 (SCM_GUILE_MAJOR_VERSION): new public macro.
1386 (SCM_GUILE_MINOR_VERSION): new public macro.
1387 (SCM_GUILE_MICRO_VERSION): new public macro.
1388
1389 * version.h: renamed to version.h.in.
1390
1391 * version.c
1392 (scm_major_version): support integer *_VERSION macros.
1393 (scm_minor_version): support integer *_VERSION macros.
1394 (scm_micro_version): support integer *_VERSION macros.
1395 (scm_version): support integer *_VERSION macros.
1396
147c18a0
MD
13972001-09-20 Mikael Djurfeldt <mdj@linnaeus>
1398
1399 * error.c, error.h: Made error keys globally accessible.
1400 Applications might want to test for these or use them in a direct
1401 call to scm_error.
1402
1403 * num2integral.i.c (NUM2INTEGRAL): Report an error when these
1404 routines are passed an inexact. This change in behavior is
1405 motivated by concordance with R5RS: It is more common that a
1406 primitive doesn't want to accept an inexact for an exact.
1407
662c5539
DH
14082001-09-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
1409
1410 The following patch partially undoes my patch from 2001-06-30,
1411 where I added the function scm_gc_mark_cell_conservatively. The
1412 function is buggy, since it breaks guile during conservative
1413 marking if a pointer on the stack points directly into the list of
1414 free cells on the heap: With conservative cell marking this will
1415 cause the whole free list to be scanned and marked - boom!
1416
1417 * gc.c (allocated_mark, MARK, heap_segment,
1418 scm_gc_mark_cell_conservatively, scm_init_storage), gc.h
cf4ee841 1419 (scm_gc_mark_cell_conservatively): Remove function
662c5539
DH
1420 scm_gc_mark_cell_conservatively and update the corresponding
1421 comments and uses accordingly. Thanks to Christopher Cramer for
1422 the patch. (Minor corrections by me.)
1423
6c1b7628
GH
14242001-09-15 Gary Houston <ghouston@arglist.com>
1425
1426 * root.h (scm_root_state): removed the continuation_stack and
1427 continuation_stack_ptr members, which have no apparent purpose.
1428 (scm_continuation_stack, scm_continuation_stack_ptr): #defines
1429 removed.
662c5539 1430
6c1b7628
GH
1431 * root.c (root_mark), init.c (restart_stack, start_stack), gc
1432 (scm_igc): remove all references to contination_stack and
1433 continuation_stack_ptr, avoiding allocation of a vector and
1434 useless processing during gc.
1435
455c0ac8
DH
14362001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1437
1438 * guardians.c (tconc_t, t_tconc): Renamed tconc_t to t_tconc.
1439
1440 (TCONC_IN): Make sure that the cell word 0 is initialized last.
1441
1442 (guardians_t, t_guardians): Renamed guardians_t to t_guardians.
1443
1444 (GUARDIAN, GUARDIAN_DATA): Renamed GUARDIAN to GUARDIAN_DATA.
1445
1446 (guardian_apply, scm_get_one_zombie, scm_make_guardian,
1447 mark_and_zombify): Prefer !SCM_<foo> over SCM_N<foo>.
1448
22ba637b
DH
14492001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1450
1451 * guardians.c (mark_dependencies_in_tconc,
1452 whine_about_self_centered_zombies, scm_init_guardians): Register
1453 the static global variable `self_centered_zombies' via
1454 scm_gc_register_root, to make some cdr-ing unnecessary.
1455
c3c4d801
DH
14562001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1457
1458 * backtrace.c (display_backtrace_file,
1459 display_backtrace_file_and_line): Use SCM_EQ_P when comparing SCM
1460 values, use SCM_FALSEP when comparing SCM values against #f.
1461 Thanks to Rob Browning for the bug report.
1462
b00418df
DH
14632001-09-12 Martin Baulig <martin@home-of-linux.org>
1464
1465 * strings.[ch] (scm_str2string): New function.
1466
a0d34a0b
MV
14672001-09-06 Marius Vollmer <mvo@zagadka.ping.de>
1468
1469 * gc.c (scm_done_free): Always subtract size from scm_mallocated
1470 when computing nm, even if it's negative.
1471 (scm_must_malloc): Abort on overflow of scm_mtrigger.
1472 (scm_must_realloc): Likewise.
1473
b10586f0
ML
14742001-09-01 Michael Livshin <mlivshin@bigfoot.com>
1475
1476 * numbers.c (scm_sys_check_number_conversions): new function,
1477 defined if Guile is compiled in debugging mode. currently checks
1478 `scm_num2ulong', should check much much more.
1479
1480 * num2integral.i.c (NUM2INTEGRAL): when converting a bignum to
1481 unsigned, ensure that it's positive. thanks to Martin Baulig!
cf4ee841 1482
8c494e99
DH
14832001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
1484
1485 * __scm.h: Added new section about compile time selectable
1486 features.
1487
1488 (long_long, ulong_long, scm_sizet, SCM_WNA, SCM_OUTOFRANGE,
1489 SCM_NALLOC, SCM_HUP_SIGNAL, SCM_INT_SIGNAL, SCM_FPE_SIGNAL,
1490 SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL, SCM_ALRM_SIGNAL, SCM_GC_SIGNAL,
1491 SCM_TICK_SIGNAL, SCM_SIG_ORD, SCM_ORD_SIG, SCM_NUM_SIGS):
1492 Removed.
1493
1494 * deprecation.c (scm_include_deprecated_features): Simplified.
1495
1496 * eval.c (EVALCAR, unmemocopy), eval.h (SCM_XEVALCAR): Use
1497