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