1 2002-02-11 Marius Vollmer <marius.vollmer@uni-dortmund.de>
3 * gc.h, gc.c (scm_gc_sweep): Issue deprecation warning when
4 non-zero is returned from a port or smob free function.
5 (scm_malloc, scm_realloc, scm_strndup, scm_strdup,
6 scm_gc_register_collectable_memory,
7 scm_gc_unregister_collectable_memory, scm_gc_malloc,
8 scm_gc_realloc, scm_gc_free, scm_gc_strndup, scm_gc_strdup): New.
10 * backtrace.c, continuations.c, convert.i.c, coop-threads.c,
11 debug-malloc.c, dynl.c, environments.c, environments.h,
12 extensions.c, filesys.c, fports.c, gc.c, gc.h, gh_data.c, goops.c,
13 guardians.c, hooks.c, init.c, keywords.c, load.c, numbers.c,
14 ports.c, posix.c, procs.c, rdelim.c, regex-posix.c, root.c,
15 smob.c, stime.c, strings.c, struct.c, struct.h, symbols.c, unif.c,
16 vectors.c, weaks.c: Use scm_gc_malloc/scm_malloc and
17 scm_gc_free/free instead of scm_must_malloc and scm_must_free, as
18 appropriate. Return zero from smob and port free functions.
20 * debug-malloc.c (scm_malloc_reregister): Handle "old == NULL".
22 * deprecation.h, deprecation.c: Reimplemented to allow deprecation
23 messages while the GC is running.
24 (scm_c_issue_deprecation_warning_fmt): New.
26 * fports.c (scm_setvbuf): Reset read buffer to saved values when
27 it is pointing to the putback buffer.
29 2002-02-08 Thien-Thi Nguyen <ttn@giblet.glug.org>
31 * gsubr.c (create_gsubr): On "too many args" error,
32 also display arg count and name. Thanks to Bill Schottstaedt.
34 2002-02-05 Thien-Thi Nguyen <ttn@giblet.glug.org>
36 * Makefile.am: Include $(top_srcdir)/pre-inst-guile.am.
38 (bin_SCRIPTS): Remove guile-snarf-docs-texi.
39 (alldotdocfiles, snarf2checkedtexi, dotdoc2texi): New vars.
40 (guile.texi, guile-procedures.texi): Use $(dotdoc2texi).
42 * guile-snarf-docs-texi.in: Bye bye.
44 2002-02-04 Marius Vollmer <marius.vollmer@uni-dortmund.de>
46 * symbols.c (scm_make_symbol): Fix typo in docstring.
48 * symbols.h (scm_mem2uninterned_symbol, scm_symbol_interned_p,
49 scm_make_symbol): New prototypes.
51 2002-02-03 Marius Vollmer <mvo@zagadka.ping.de>
53 * symbols.h (SCM_SET_SYMBOL_HASH): Removed.
54 (SCM_SYMBOL_INTERNED_P): New.
55 * symbols.c (scm_symbol_hash): Use scm_ulong2num instead of
56 SCM_MAKINUM since hash values can well be bignums.
57 (scm_mem2symbol): Only use hash values below SCM_T_BITS_MAX/2.
58 This signals a interned symbol.
59 (scm_mem2uninterned_symbol, scm_symbol_interned_p,
60 scm_make_symbol): New.
62 * print.c (scm_iprin1): Print uninterned symbols unreadably.
64 2002-02-02 Thien-Thi Nguyen <ttn@giblet.glug.org>
66 * __scm.h (HAVE_UINTPTR_T): Only define if UINTPTR_T attributes
67 are defined: UINTPTR_MAX, INTPTR_MAX, INTPTR_MIN.
70 2002-01-31 Marius Vollmer <mvo@zagadka.ping.de>
72 * symbols.c (scm_gensym): Use " g" as default prefix, not "g".
73 This might help to make unintended clashes less likely.
74 (scm_string_to_symbol): Protect the string until the symbols is
77 2002-01-31 Stefan Jahn <stefan@lkcc.org>
79 * convert.c, convert.h, convert.i.c: New files containing C
80 array to Scheme conversion helpers meant to be replacement
81 functions for the deprecated gh interface.
83 * Makefile.am: Setup rules for new `convert.*' files.
85 2002-01-28 Stefan Jahn <stefan@lkcc.org>
87 * symbols.c (scm_c_symbol2str): New function, replacement for
90 * strings.c (scm_c_substring2str): New function. Proper
91 replacement for `gh_get_substr()'.
93 * socket.c: Include `stdint.h' if available for the `uint32_t'
96 * scmsigs.c (s_scm_sigaction): Initialize `chandler' (inhibits
99 * backtrace.c: Include `lang.h' for GUILE_DEBUG conditional.
101 2002-01-22 Neil Jerram <neil@ossau.uklinux.net>
103 Other changes unrelated to Elisp...
105 * eval.c (scm_m_if): Use s_if rather than repeating string literal
107 (comments): Fix a few typos.
108 (scm_for_each): Add parentheses around oddly unparenthesized
111 * read.c (scm_read_opts): Add full stop at end of doc for
114 * script.c (scm_compile_shell_switches): Use scm_str2symbol
115 instead of gh_symbol2scm.
117 * srcprop.h (SRCPROPBRK): Return C type rather than SCM.
118 (SRCBRKP): Use SRCPROPBRK rather than duplicating its logic.
120 * srcprop.c (scm_srcprops_to_plist, scm_source_property): Change
121 SRCPROPBRK (x) to SCM_BOOL (SRCPROPBRK (x)).
123 First batch of changes for Elisp support...
125 * alist.c, async.c, boolean.c, dynl.c, eval.c, filesys.c,
126 fluids.c, list.c, load.c, options.c, posix.c, print.c, sort.c,
127 throw.c, vectors.c, weaks.c: Add #include for lang.h.
129 * eval.c, eval.h, init.c, lang.c, lang.h: Use SCM_ENABLE_ELISP to
130 conditionalize compilation and initialization of Elisp support
133 * alist.c (scm_assq, scm_assv, scm_assoc), async.c
134 (scm_asyncs_pending, scm_run_asyncs, noop), backtrace.c
135 (scm_set_print_params_x), dynl.c (scm_make_argv_from_stringlist),
136 filesys.c (fill_select_type, retrieve_select_type), fluids.c
137 (scm_swap_fluids, scm_swap_fluids_reverse), list.c (scm_null_p,
138 scm_ilength, scm_append_x, scm_last_pair, scm_reverse,
139 scm_reverse_x, scm_list_ref, scm_list_set_x, scm_list_cdr_set_x,
140 scm_c_memq, scm_memv, scm_member), load.c (scm_search_path),
141 options.c (change_option_setting, scm_options), posix.c
142 (environ_list_to_c), print.c (scm_iprlist), throw.c
143 (scm_exit_status), vectors.c (scm_vector), weaks.c
144 (scm_weak_vector): Use SCM_NULL_OR_NIL_P instead of SCM_NULLP.
146 * boolean.c (scm_not): Use `SCM_FALSEP || SCM_NILP' instead of
149 * boolean.c (scm_boolean_p): Use `SCM_BOOLP || SCM_NILP' instead
152 * eval.c (scm_lisp_nil, scm_lisp_t, s_nil_ify, scm_m_nil_ify,
153 s_t_ify, scm_m_t_ify, s_0_cond, scm_m_0_cond, s_0_ify,
154 scm_m_0_ify, s_1_ify, scm_m_1_ify): Removed.
155 (scm_m_atfop): Support function aliasing. Support both function
156 args, which need transformation, and macro args, which do not.
157 Add explanatory comments.
158 (SCM_CEVAL): In switch cases for SCM_IM_AND, SCM_IM_COND,
159 SCM_IM_DO, SCM_IM_IF and SCM_IM_OR, add `|| SCM_NILP' to existing
160 checks for SCM_FALSEP. In switch case for SCM_IM_NIL_COND, use
161 SCM_NULLP || SCM_NILP instead of checks against (removed)
162 scm_lisp_nil. Removed switch cases for SCM_IM_NIL_IFY,
163 SCM_IM_T_IFY, SCM_IM_0_COND, SCM_IM_0_IFY, SCM_IM_1_IFY.
165 * lang.c (scm_nil_cons, scm_nil_car, scm_nil_cdr, scm_null,
166 scm_m_while, scm_nil_eq): Commented out; I don't think we need
167 these, but I don't want to remove them yet, just in case.
168 (scm_init_lang): Define `%nil' variable on Scheme level to hold
171 * lang.h (SCM_NILP): Test against Elisp nil value instead of
172 against (removed) scm_lisp_nil.
173 (SCM_NILNULLP, SCM_NIL2EOL, SCM_EOL2NIL): Commented out.
174 (SCM_NULL_OR_NIL_P): New.
176 * list.c (scm_append): Use SCM_VALIDATE_NULL_OR_NIL instead of
179 * print.c (scm_isymnames): Fix comment. Remove #@nil-ify,
180 #@t-ify, #@0-cond, #@0-ify, #@1-ify. Add #nil (for SCM_ELISP_NIL
183 * sort.c (scm_sorted_p, scm_merge, scm_merge_list_x, scm_merge_x,
184 scm_sort_x, scm_sort, scm_stable_sort_x, scm_stable_sort): Use
185 SCM_NULL_OR_NIL_P instead of SCM_NULLP. In constructions like `if
186 (SCM_NULLP (x)) return SCM_EOL;', return x rather than SCM_EOL.
188 * tags.h (SCM_IM_NIL_IFY, SCM_IM_T_IFY, SCM_IM_0_COND,
189 SCM_IM_0_IFY, SCM_IM_1_IFY): Removed.
190 (SCM_IM_BIND, SCM_IM_DELAY, SCM_IM_CALL_WITH_VALUES, SCM_UNBOUND):
191 Numbering shifted down accordingly.
192 (SCM_ELISP_NIL): New IFLAG.
194 * validate.h (SCM_VALIDATE_NULL_OR_NIL): New.
196 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
198 * eval.c: Removed outdated references to "everr". Improved some
201 (scm_deval_args, deval_args): Renamed scm_deval_args to
202 deval_args, since it is not part of the interface.
204 (SCM_CEVAL): Added (maybe somewhat verbose) comment. Avoid to
205 use references to debug.vect[0] before it exists. Add parentheses
208 * goops.h: Added local emacs variables.
210 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
212 * eval.[ch] (scm_deval_args): Made static.
214 * srcprop.c (scm_source_property): Remove redundant SCM_IMP
217 * strings.c (scm_c_string2str): Clarified comment. Replaced
218 THINKME by FIXME for uniformness. Removed question about whether
219 arguments need to be protected from garbage collection: Arguments
220 must be protected as any other variable.
222 2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
224 * procs.h (SCM_CLOSURE_BODY): New Macro.
226 * debug.c (scm_procedure_name, scm_procedure_source), eval.c
227 (SCM_CEVAL, SCM_APPLY), goops.c (scm_sys_initialize_object,
228 get_slot_value, set_slot_value), procs.c
229 (scm_procedure_documentation), sort.c (closureless), stacks.c
230 (get_applybody): Replace SCM_CDR (SCM_CODE (...)) by
233 * sort.c (closureless): Prefer !SCM_FOOP over SCM_NFOOP.
235 2001-12-26 Marius Vollmer <mvo@zagadka.ping.de>
237 * Makefile.am (guile-procedures.txt): When we don't have makeinfo,
240 2001-12-16 Marius Vollmer <mvo@zagadka.ping.de>
242 * stacks.c, stacks.h (scm_t_stackype): Renamed to scm_stack_type
245 * continuations.c (scm_make_continuation): Do not retain the
246 throw_value when the continuation is invoked.
248 2001-12-08 Stefan Jahn <stefan@lkcc.org>
250 * strings.c (scm_c_string2str): New function. Converts a
251 given Scheme string into a C string. Also put in two
252 THINKME's regarding the malloc policy for the missing converter
255 2001-12-01 Neil Jerram <neil@ossau.uklinux.net>
257 * gh_data.c (gh_module_lookup): Use scm_str2symbol rather than
260 2001-11-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
262 * gc.h (SCM_GC_CELL_WORD, SCM_GC_CELL_OBJECT,
263 SCM_GC_SET_CELL_WORD, SCM_GC_SET_CELL_OBJECT): New macros.
265 (SCM_GC_CELL_TYPE, SCM_CELL_WORD, SCM_CELL_OBJECT,
266 SCM_SET_CELL_WORD, SCM_SET_CELL_OBJECT, SCM_FREE_CELL_CDR,
267 SCM_GC_SET_CELL_OBJECT): Express in terms of SCM_GC_CELL_*
270 (SCM_FREE_CELL_P): Express in terms of SCM_GC_CELL_TYPE.
272 * inline.h (scm_alloc_cell, scm_alloc_double_cell): Use
273 SCM_GC_CELL_* macros when accessing free cells.
275 2001-11-25 Marius Vollmer <mvo@zagadka.ping.de>
277 * vectors.h (SCM_MAKE_VECTOR_TAG): New.
278 * unif.h (SCM_MAKE_BITVECTOR_TAG, SCM_MAKE_UVECTOR_TAG): New.
279 * symbols.h (SCM_MAKE_SYMBOL_TAG): New.
280 * strings.h (SCM_MAKE_STRING_TAG): New.
281 * procs.h (SCM_MAKE_CCLO_TAG): New.
282 * numbers.h (SCM_MAKE_BIGNUM_TAG): New.
284 * goops.h: Replaced SCM_DEBUG_DEPRECATED with
285 !SCM_ENABLE_DEPRECATED.
287 * async.c, async.h (scm_system_async_mark_from_signal_handler):
290 * scmsigs.c (scm_take_signal): Removed all code that assumes that
291 signal handlers are allowed to divert the flow of control. Call
292 scm_system_async_mark_from_signal_handler instead of
293 scm_system_async_mark.
296 Deprecated SCM_NEWCELL and SCM_NEWCELL2. Added scm_alloc_cell and
297 scm_alloc_double_cell in their place.
299 * gc.h (SCM_GC_SET_ALLOCATED, scm_debug_newcell,
300 scm_debug_newcell2, scm_tc16_allocated): Removed from header.
301 (scm_deprecated_newcell, scm_deprecated_newcell2): New.
302 (SCM_NEWCELL, SCM_NEWCELL2): Implement in terms of
303 scm_deprecated_newcell and scm_deprecated_newcell2.
305 gc.c (scm_tc16_allocated): Only define when including deprecated
307 (scm_debug_newcell, scm_debug_newcell2): Removed.
308 (scm_init_storage): Do not initialize scm_tc16_allocated.
309 (scm_init_gc): Do it here.
310 (allocated_mark): New, from old code.
311 (scm_deprecated_newcell, scm_deprecated_newcell2): New.
313 * inline.c, inline.h: New files.
314 * Makefile.am: Added them in all the right places.
316 * _scm.h: Include "libguile/inline.h".
318 * alist.c, coop-threads.c, debug.c, environments.c, eval.c,
319 fports.c, gh_data.c, goops.c, guardians.c, lang.c, list.c,
320 num2float.i.c, numbers.c, pairs.c, ports.c, print.c, procs.c,
321 smob.c, smob.h, strings.c, strports.c, struct.c, symbols.c,
322 unif.c, variable.c, vectors.c, vports.c, weaks.c: Replaced
323 SCM_NEWCELL and SCM_NEWCELL2 with scm_alloc_cell and
324 scm_alloc_double_cell, respectively.
326 2001-11-23 Marius Vollmer <mvo@zagadka.ping.de>
328 * modules.c (scm_c_use_module): Adapt to changes to
329 `process-use-modules'.
331 2001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
333 * numbers.c (scm_divide): Fix more division by zero errors.
335 2001-11-21 Gary Houston <ghouston@arglist.com>
337 * Makefile.am (OMIT_DEPENDENCIES): removed, since it seems to be
338 obsolete. autogen.sh says:
339 invalid unused variable name: `OMIT_DEPENDENCIES'
341 2001-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
343 * numbers.c (scm_divide): Fix (/ 0). Thanks to Keith Wright for
346 2001-11-21 Marius Vollmer <mvo@zagadka.ping.de>
348 * Makefile.am (install-exec-hook): Prepend $(DESTDIR) to filename.
349 Thanks to Eric Gillespie, Jr!
351 2001-11-21 Stefan Jahn <stefan@lkcc.org>
353 * win32-socket.c (getservent, setservent, endservent,
354 getprotoent, setprotoent, endprotoent): New functions.
355 Appropriate replacements for M$-Windows.
357 * numbers.c (SIZE_MAX, PTRDIFF_MAX, PTRDIFF_MIN): Reintroduced
358 these definitions for GUILE_DEBUG.
360 * net_db.c: Include "win32-socket.h" if compiling with a native
361 M$-Windows compiler. Include some pieces of code (protoent and
362 servent interface) protected by HAVE_* macros when using a
363 native M$-Windows compiler.
365 2001-11-20 Marius Vollmer <mvo@zagadka.ping.de>
367 * modules.c (scm_c_export): Do nothing when the first argument is
368 already the terminating NULL. Thanks to Han-Wen Nienhuys!
370 2001-11-20 Thien-Thi Nguyen <ttn@glug.org>
372 * Makefile.am (libpath.h): In SCM_BUILD_INFO,
373 also include `buildstamp'.
375 2001-11-18 Rob Browning <rlb@defaultvalue.org>
378 (s_scm_major_version): use SCM_MAJOR_VERSION.
379 (s_scm_minor_version): use SCM_MINOR_VERSION.
380 (s_scm_micro_version): use SCM_MICRO_VERSION.
381 (s_scm_version): use SCM_MAJOR_VERSION, SCM_MINOR_VERSION, and
385 (SCM_MAJOR_VERSION): renamed from SCM_GUILE_MAJOR_VERSION.
386 (SCM_MINOR_VERSION): renamed from SCM_GUILE_MINOR_VERSION.
387 (SCM_MICRO_VERSION): renamed from SCM_GUILE_MICRO_VERSION.
389 2001-11-18 Neil Jerram <neil@ossau.uklinux.net>
391 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
392 Rewrite docstrings without reference to substring-move-left/right,
393 since the latter no longer exist.
395 2001-11-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
397 * eval.c: Removed bogus comment about acros.
399 (scm_unmemocar): Use !SCM_CONSP instead of SCM_IMP.
400 Minimize scope of local variable. Eliminate dependency on
401 macro DEBUG_EXTENSIONS.
403 (s_splicing): New error message string.
405 (scm_m_body): Issue 'bad body' message rather than 'missing
408 (scm_m_quote): Eliminate unnecessary copying.
410 (scm_m_lambda, scm_m_letstar, scm_m_letrec, scm_m_let): Leave the
411 checking of the body to scm_m_body.
413 (scm_m_do): Move comment to function header. Rename arg1 to
414 binding. Made the code a bit easier to read.
418 (iqq): Added a comment. Changed the depth parameter to
419 unsigned. Use size_t for vector lengths. Make sure vector object
420 is gc protected as long as its contents are read. Add some syntax
421 checks. Get rid of unnecessary SCM_IMP test. Clean up the
422 control structure a bit.
424 (scm_m_delay): Added comment about the implementation of
427 (scm_m_define): Add comment about guile's currying define
428 syntax. Renamed 'proc' to 'name'. Eliminate dependency on macro
429 DEBUG_EXTENSIONS. Simplified code a bit. Eliminate SICP code.
431 (scm_m_letrec1): Removed. Part of the functionality is taken
432 over by the new function 'transform_bindings'.
434 (transform_bindings): New function. Takes over some of the
435 functionality of removed function 'scm_m_letrec1', namely to split
436 a list of bindings into a reversed list of variables and a list of
439 (scm_m_letrec): Call 'transform_bindings'.
441 (scm_m_let): Minimized scope of local variables. Renamed 'proc'
442 to 'temp' and 'arg1' to 'binding'. Eliminated redundant SCM_NIMP
443 test. Use 'transform_bindings'. Fixed scoping error with named
444 let (Thanks to Aubrey Jaffer for reporting the bug and to Neil
445 Jerram for suggesting the fix). Cleaned up the control structure
448 (scm_m_expand_body): Use 'transform_bindings'. Eliminated
449 unnecessary consing. Eliminated unnecessary
450 SCM_DEFER/ALLOW_INTS.
452 (SCM_CEVAL): Un-obfuscated some loops.
454 2001-11-16 Neil Jerram <neil@ossau.uklinux.net>
456 * gc.h (scm_unhash_name): Old declaration removed.
458 * eval.c (s_scm_eval): Change @var{primitive-eval} to
459 @code{primitive-eval}.
461 * feature.c, vectors.c, net_db.c, unif.c, weaks.c, struct.c,
462 version.c, alist.c, ports.c, ramap.c, unif.c, strings.c, list.c:
463 Change @deffnx lines in docstrings to say {Scheme Procedure}
464 rather than primitive or procedure.
466 * posix.c (scm_execl), filesys.c (scm_close), unif.c
467 (scm_array_set_x, scm_array_contents, scm_uniform_array_read_x,
468 scm_bit_set_star_x, scm_bit_invert_x), ramap.c (scm_array_fill_x,
469 scm_array_for_each, scm_array_index_map_x), vectors.c (scm_vector,
470 scm_make_vector, scm_vector_to_list, scm_vector_fill_x), strop.c
471 (scm_string_split, scm_string_ci_to_symbol), strings.c
472 (scm_string_p), sort.c (scm_merge), print.c (scm_newline),
473 macros.c (scm_macro_type), alist.c (scm_acons, scm_assq):
474 Docstring fixes and improvements reflecting edits that have been
475 made in the reference manual source.
477 * objprop.c (scm_object_properties, scm_set_object_properties_x,
478 scm_object_property, scm_set_object_property_x): Remove invalid
479 @deffnx lines for corresponding procedure property primitives.
481 These changes add a @deffnx C function declaration and function
482 index entries for each Guile primitive to the copy of the doc
483 snarf output that is used for reference manual synchronization.
484 Online help is unchanged.
486 * snarf.h (SCM_SNARF_DOCS): Output primitive's C function name.
487 (SCM_DEFINE, SCM_DEFINE1, SCM_REGISTER_PROC): Supply to C function
488 name to SCM_SNARF_DOCS.
490 * guile-snarf-docs-texi.in: Pass the shell script's arguments into
491 snarf-check-and-output-texi.
493 * Makefile.am (guile-procedures.texi): New rule.
494 (BUILT_SOURCES, guile.texi, guile-procedures.txt, CLEANFILES):
495 Changed so that the last stage of doc snarfing is now performed
496 twice, once to produce guile-procedures.txt for online help, and
497 once to produce guile.texi for reference manual synchronization.
499 2001-11-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
501 * eval.c (RETURN): Wrap in do{}while(0) in order to make it
502 safely usable as a single statement followed by a ';', for example
505 (SCM_CEVAL, SCM_APPLY): Clean up code using 'RETURN'.
507 2001-11-13 Neil Jerram <neil@ossau.uklinux.net>
509 * random.c (scm_random_solid_sphere_x,
510 scm_random_hollow_sphere_x): Correct "shere" typos.
512 * hashtab.c (scm_hash_fold): Add missing apostrophe to docstring.
514 * version.c (scm_version): Update docstring to include
517 2001-11-13 Marius Vollmer <mvo@zagadka.ping.de>
519 * modules.c (scm_c_export): Call va_end after collecting the
522 * strop.h, strop.c (scm_substring_move_left_x,
523 scm_substring_move_right_x): Removed.
525 * __scm.h (HAVE_UINTPTR_T, HAVE_PTRDIFF_T, HAVE_LONG_LONG,
526 HAVE_LONG_LONGS): Define to "1" when defining them, to mirror what
529 2001-11-12 Marius Vollmer <mvo@zagadka.ping.de>
531 * numbers.c: Document macros to define when including
532 num2integral.i.c. MAX_VALUE and MIN_VALU are no longer used, we
533 now rely on SIZEOF_ macros that have been figured out at
536 * num2integral.i.c: Adapt to new interface.
537 (NUM2INTEGRAL): Test whether a fixnum can be represented in the
538 target type by casting it and checking whether it is still the
539 same. Do not try to handle bignums for integral types that are
540 smaller than fixnums. When handling bignums, collect the
541 magnituse first into a unsigned type, and correctly check for
543 (INTEGRAL2BIG): Do not use MIN_VALUE explicitely by observing that
544 only -MIN_VALUE can still be negative of all negative numbers (in
547 * tags.h (SIZEOF_SCM_T_BITS): Define it appropriately.
549 * __scm.h: Define HAVE_UINTPTR_T, HAVE_PTRDIFF_T and
550 HAVE_LONG_LONG depending on whether their size is non-zero.
552 2001-11-11 Thien-Thi Nguyen <ttn@glug.org>
554 * strop.c (scm_string_null_p): Docfix; nfc.
555 Thanks to Scott Lenser.
557 2001-11-07 Neil Jerram <neil@ossau.uklinux.net>
559 * extensions.c (scm_load_extension): Canonicalize docstring
562 * unif.c (scm_uniform_array_write), ports.c
563 (scm_current_output_port, scm_force_output), dynwind.c
564 (scm_dynamic_wind), scmsigs.c (scm_setitimer, scm_getitimer),
565 filesys.c (scm_open, scm_lstat), struct.c
566 (scm_make_struct_layout), random.c (scm_random,
567 scm_random_solid_sphere_x, scm_random_hollow_sphere_x, strop.c
568 (scm_i_index): Remove superfluous whitespace from end of docstring
571 * filesys.c (scm_select), guardians.c (scm_guardian_greedy_p),
572 strings.c (scm_make_string), variable.c (scm_make_variable,
573 scm_make_undefined_variable, scm_variable_p, scm_variable_set_x,
574 scm_variable_bound_p), scmsigs.c (scm_setitimer, scm_getitimer),
575 posix.c (scm_crypt), struct.c (scm_make_vtable_vtable), hashtab.c
576 (scm_hash_fold), ports.c (scm_port_for_each): Remove superfluous
577 newline at end of docstrings.
579 * modules.c (scm_set_current_module): Add missing newline to
582 2001-11-07 Stefan Jahn <stefan@lkcc.org>
584 * win32-socket.[ch]: New files. Defines Winsock-API error codes
585 and makes them available through Guile. That is because the
586 Winsock-API does not store its errors in `errno' and thus cannot
587 return error messages via `strerror (errno)'.
589 * socket.c (scm_init_socket): Initialize `win32-socket' part
590 here under M$-Windows.
592 * numbers.h: Added missing declaration of
593 `scm_sys_check_number_conversions()'.
595 * error.c: Local definition of SCM_I_STRERROR and SCM_I_ERRNO
596 and use in `(strerror)' and `(system-error)'.
598 * Makefile.am (EXTRA_libguile_la_SOURCES): Added
599 `win32-socket.[ch]' to extra source and header files.
601 2001-11-06 Marius Vollmer <mvo@zagadka.ping.de>
603 * script.c (scm_shell_usage, scm_compile_shell_switches): Prepend
604 a call to turn-on-debugging when --debug has been given instead of
605 turning it on directly. Also, handle new `--no-debug' option,
606 which might suppress the call to turn-on-debugging.
608 2001-11-05 Stefan Jahn <stefan@lkcc.org>
610 * struct.c (s_scm_struct_vtable_p): Corrected docstring.
612 2001-11-04 Stefan Jahn <stefan@lkcc.org>
614 * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL)
615 here (was at guile_LDADD) which describes the dependency
616 correctly and allows a clean build on Win32.
618 * __scm.h (SCM_API): Follow-up patch. Renamed __FOO__ macros
621 * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL
622 import macros for external libraries (libcrypt, libqthreads,
623 libreadline and libregex).
625 * coop-defs.h: Include <winsock2.h> for `struct timeval'.
627 * posix.c (flock): Added support for flock() in M$-Windows.
629 * guile.c (SCM_IMPORT): Follow-up patch. Use SCM_IMPORT instead
632 * fports.c (getflags): Differentiate reading and writing pipes
635 * filesys.c (S_IS*): Redefine all of the S_IS*() macros for
638 * coop.c (coop_condition_variable_timed_wait_mutex): Use
639 conditionalized error code if `ETIMEDOUT' is not available.
640 (scm_thread_usleep): Remove bogus declaration of `struct timeval
643 * numbers.c (PTRDIFF_MIN): Moved this definition where it actually
644 belongs. That is because NO_PREPRO_MAGIC gets undefined after
645 each inclusion of `num2integral.i.c'.
646 (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined.
648 2001-11-03 Marius Vollmer <mvo@zagadka.ping.de>
650 * eval.c (scm_m_begin): Allow `(begin)`, with no subforms.
651 (SCM_CEVAL): Evaluate an empty `begin' to SCM_UNSPECIFIED.
653 2001-11-02 Mikael Djurfeldt <mdj@linnaeus>
655 * print.c (scm_iprin1): Mark print state as revealed when
656 dispatching to generic write or display.
658 * unif.c (scm_ra2contig): Fixed memory overwrite bug.
660 2001-11-02 Marius Vollmer <mvo@zagadka.ping.de>
662 Support for native Win32. Thanks to Stefan Jahn!
664 * Makefile.am: Add win32-uname.c, win32-uname.h, win32-dirent.c
665 and win32-dirent.h to extra source and header files. These
666 include the uname() and the POSIX dirent interface implementation
667 for M$-Windows. Put `-no-undefined' into LDFLAGS to support
668 linkers which do not allow unresolved symbols inside shared
669 libraries. Corrected `guile_filter_doc_snarfage$(EXEEXT)'
672 * __scm.h: Defined SCM_API. This macro gets prepended to all
673 function and data definitions which should be exported or imported
674 in the resulting dynamic link library in the Win32 port.
676 * __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h,
677 chars.h, continuations.h, coop-defs.h, coop-threads.h,
678 debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h,
679 environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h,
680 feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h,
681 gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h,
682 hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h,
683 load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h,
684 objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h,
685 procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h,
686 read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h,
687 smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h,
688 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
689 tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h,
691 Prefixed each each exported symbol with SCM_API.
693 * continuations.c: Added comment about the use of the extern
694 declarations of {get,set}context() functions used in the ia64 port.
696 * continuations.h, gc.c: `__libc_ia64_register_backing_store_base'
697 is meant to be a `unsigned long *'.
699 * filesys.c: Include `direct.h' if possible. Use local
700 `win32-dirent.h' for the native M$-Windows port. Define S_IS*()
701 macros for M$-Windows. Implementation of `fstat_Win32()' which is
702 able to differentiate between sockets and other file descriptors.
703 Use this function as wrapper in `scm_fstat()'. Fixed typo in
706 * fports.c: Include `io.h' is possible. Put `*fp' into referring
707 statement block in `scm_fport_buffer_add()'.
708 Some corrections in `getflags()'.
710 * gdb_interface.h (GDB_INTERFACE): Also support __CYGWIN__.
712 * guile.c: Make sure to define __SCM_IMPORT__ for shared library
713 build on Win32. Disable preloaded symbols on Win2 platforms.
715 * ioext.c, ports.c: Include `io.h' is possible.
717 * mkstemp.c: Include `process.h' is possible.
719 * net_db.c: Disable extern declaration of `h_errno' for __CYGWIN__,
721 Put `scm_return_entry()' into HAVE_GETSERVENT conditional.
723 * posix.c: Remove unnecessary dirent includes and defines. Include
724 local `win32-uname.h' for MinGW. Extern declaration of
725 `mkstemp()' for systems where it does not exists. Make
726 `getlogin()' available on M$-Windows.
728 * scmsigs.c: Made `usleep()' avalable on MinGW.
730 * stime.c: On M$-Windows `tzname[]' is known to be `_tzname[]'.
732 * win32-dirent.c: Include "win32-dirent.h", not "dirent.h".
734 * win32-uname.c: Include "win32-uname.h", not "uname.h".
736 2001-10-28 Mikael Djurfeldt <mdj@linnaeus>
738 * unif.c (scm_uniform_array_read_x, scm_uniform_array_write):
739 Don't apply scm_uniform_vector_length on arrays.
741 2001-10-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
743 * eval.c (scm_lookupcar, scm_m_letstar, scm_m_do, iqq,
744 scm_m_define, scm_m_letrec1, scm_m_let, scm_m_expand_body,
745 scm_macroexp, unmemocopy, scm_eval_args, scm_deval_args,
746 SCM_CEVAL, scm_map, scm_init_eval): When building lists, prefer
747 scm_list_<n> over scm_cons[2]?.
749 (scm_unmemocar, scm_m_cond, scm_m_letstar, scm_m_letrec1,
750 scm_m_let, scm_m_atbind, unmemocopy, SCM_CEVAL, SCM_APPLY): Use
751 SCM_C[AD][AD]R instead of explicit form.
753 (scm_m_set_x, scm_m_cond, scm_m_letstar, scm_m_do): Reordered
754 comparison parameters.
756 (scm_m_case, scm_m_cond, scm_m_letstar, scm_m_do, SCM_CEVAL): Use
757 !SCM_NULLP instead of SCM_NIMP.
759 (scm_m_case): Don't copy the form. Renamed proc to clause and
760 minimized its scope. Renamed x to clauses. Removed side
761 effecting operation from macro call.
763 (scm_m_cond): Don't copy the form. Renamed arg1 to clause and
764 minimized its scope. Renamed x to clauses. Minimized the scope
765 of variable 'len'. Make sure the else clause is treated specially
766 even in case of '=>' occurences. Don't change the else to #t in
767 order to be able to distinguish this case in the evaluator. Leave
768 type checking of the recipient to the evaluator.
770 (scm_c_improper_memq): Made the comment somewhat clearer.
772 (scm_m_lambda): Renamed proc to formals. Removed unnecessary
773 test for SCM_IM_LET at the place of the formal parameters.
774 Simplified the formal parameter checking.
776 (scm_m_letstar): Added Comment. Renamed proc to bindings.
777 Renamed arg1 to binding and minimized its scope. Eliminated
780 (scm_m_do): Renamed proc to bindings. Minimized the scope of
783 (build_binding_list): New static function.
785 (unmemocopy): Don't use SCM_TYP7 on pairs (it's unclean).
786 Further, split up the 'letrec' unmemoizing code to the
787 corresponding parts for 'do', 'let' and 'letrec', adding comments
788 to each form. Cleanup the handling of the do form (This removes
789 some *real* code :-).
791 (SCM_CEVAL): Removed side effecting operation from macro call.
792 Handle the 'else clause of the 'cond form specially - the symbol
793 'else is not replaced with #t any more.
795 2001-10-14 Gary Houston <ghouston@arglist.com>
797 * version.c (scm_version): use sprintf instead of snprintf,
798 for portability. thanks to Bill Schottstaedt.
800 2001-10-14 Mikael Djurfeldt <mdj@linnaeus>
802 * read.c (scm_lreadr): When user-defined hash procedure returns
803 SCM_UNSPECIFIED: Fall back to standard handling instead of raising
804 an exception. (This prevents parsing of uniform vectors from
805 interfering with parsing of numbers.)
807 2001-10-13 Marius Vollmer <mvo@zagadka.ping.de>
809 * numbers.c: Set NO_PREPRO_MAGIC when defining our version of
810 PTRDIFF_MIN. Thanks to Ken Raeburn.
812 2001-10-07 Marius Vollmer <mvo@zagadka.ping.de>
814 * Makefile.am (EXTRA_libguile_la_SOURCES): Added "mkstemp.c".
816 * eval.c (scm_m_atbind): First try to find the variable without
817 defining it locally; when it has not been found, define it
820 * modules.c (module_variable): Pass over variables that exist but
823 2001-10-06 Marius Vollmer <mvo@zagadka.ping.de>
825 * backtrace.c (display_backtrace_file_and_line): Only use
826 scm_basename when POSIX support is compiled in. Thanks to Chris
829 2001-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
831 * numbers.c (mem2uinteger): Return number read so far when coming
832 across a hexdigit after having read a # or if not reading a hex
833 value. This will enable the calling code to correctly handle
834 forms like 1e2. (The background is, that the exponent markers d,
835 e and f are also hexdigits.) Thanks to Mikael Djurfeldt for
836 providing this patch.
838 (mem2complex): Fix erroneous double-negation. Now, numbers like
839 1-i will be read correctly.
841 2001-10-12 Mikael Djurfeldt <mdj@linnaeus>
843 * debug.c (scm_mem_to_proc): Fixed typo in previous change.
845 * validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro.
847 2001-10-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
849 * print.c (scm_print_state_vtable, print_state_pool):
850 Initialize. These variables are now registered as gc roots.
852 (scm_current_pstate): Update documentation.
854 (scm_current_pstate, scm_make_print_state, scm_free_print_state,
855 scm_prin1, scm_init_print): print_state_pool is registered as a
856 gc root and thus does not need to be protected by a surrounding
859 (make_print_state): The car of print_state_pool no longer holds
860 the scm_print_state_vtable.
862 (scm_current_pstate, scm_make_print_state, print_circref,
863 scm_iprin1, scm_prin1, scm_iprlist): Prefer !SCM_<foo> over
866 (scm_prin1): When building lists, prefer scm_list_<n> over
869 (scm_iprlist): Removed a redundant SCM_IMP test.
871 (scm_simple_format): Use SCM_EQ_P to compare SCM values.
873 2001-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
875 * debug.c (scm_make_iloc): Prefer !SCM_<foo> over SCM_N<foo>.
877 (scm_memcons, scm_mem_to_proc): When building lists, prefer
878 scm_list_<n> over scm_cons[2]?.
880 (scm_mem_to_proc): Prefer SCM_CONSP over SCM_NIMP.
882 (scm_procedure_name): Use SCM_CADR instead of explicit form.
884 (debugobj_print): Coerce scm_intprint arg 1 to long, not int.
885 Thanks to Rob Browning for the patch (see log entry 2001-09-21) -
886 for some reason his patch didn't make it into the cvs.
888 2001-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
890 * numbers.c (mem2decimal_from_point): Cleaned up the parsing a
891 little bit - should even be somewhat more accurate now.
893 2001-10-08 Rob Browning <rlb@defaultvalue.org>
895 * gc.c: support ia64 register backing store.
896 (SCM_MARK_BACKING_STORE): new macro.
898 * continuations.h: support ia64 register backing store.
899 (struct scm_t_contregs): add ia64 register backing store.
901 * continuations.c: support ia64 register backing store.
902 (continuation_mark): mark ia64 register backing store.
903 (continuation_free): free ia64 register backing store.
904 (scm_make_continuation): capture ia64 register backing store.
905 (copy_stack_and_call): copy ia64 register backing store.
907 2001-10-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
909 * hashtab.c (scm_hash_fn_create_handle_x): The result of assoc_fn
910 is known to be #f if no entry is found. Thus, use !SCM_FALSEP
911 instead of SCM_NIMP to test for that case.
913 * strings.h (SCM_SET_STRING_LENGTH): Cast the length to
914 scm_t_bits instead of long.
916 2001-10-06 Marius Vollmer <mvo@zagadka.ping.de>
918 * tags.h (SCM_T_BITS_MAX, SCM_T_SIGNED_BITS_MAX,
919 SCM_T_SIGNED_BITS_MIN): New.
920 * numbers.h (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM):
921 Use them to make these macros computable by the preprocessor.
923 * num2integral.i.c (INTEGRAL2NUM): Let the preprocessor test
924 whether the integral type fits in a fixnum, not the compiler.
925 This removes a spurious compiler warning. Also, honor the
926 NO_PREPRO_MAGIC flag to suppress any preprocessor tests. This is
927 needed for `long long's.
929 * numbers.c: Define NO_PREPRO_MAGOC when including
930 num2integral.c.i for `long long' and `signed long long'.
932 2001-10-06 Mikael Djurfeldt <mdj@linnaeus>
934 These changes fixes a race condition in the Guile coop - pthread
937 * coop.c (mother_awake_p): New variable.
938 (coop_create): Set mother_awake_p before creating or signalling
939 mother; wait until mother is going to sleep before returning.
940 (mother): Reset mother_awake_p before going to sleep.
942 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
944 * options.c (protected_objects, scm_init_options): The content of
945 protected_objects is now protected from garbage collection using
946 scm_gc_register_root instead of scm_permanent_object.
948 (get_option_setting): New static function that computes an option
949 setting as it was formerly done in the function scm_options.
951 (get_documented_option_setting): New static function that
952 returns option documentation as it was formerly done in the
953 function scm_options. Note that documentation C strings are no
954 longer precomputed into SCM objects. Instead, they are converted
955 into SCM strings every time get_documented_option_setting is
958 (change_option_setting): New static functions that modifies the
959 option setting as it was formerly done in the function
960 scm_options. The function is now exception safe, i. e. won't
961 cause a memory leak when interrupted. Further, only non-immediate
962 option values are added to the protection list.
964 (scm_options): This function now has only the purpose to dispatch
965 to to get_option_setting, get_documented_option_setting or
966 change_option_setting, depending on the arguments given to
969 (scm_init_opts): Don't convert documentation C strings into SCM
970 strings. Further, don't protect any object values: They _must_
971 be immediate values, otherwise there is no guarantee that they
972 have not been collected before anyway.
974 * options.[ch] (scm_t_option): Made type unsigned, name into a
975 constant char* and val into a scm_t_bits type.
977 (scm_options, scm_init_opts): The number of options is guaranteed
978 to be larger or equal to zero. Thus, the type is changed to
981 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
983 * num2integral.i.c (NUM2INTEGRAL): Eliminated some warnings about
984 testing an unsigned value for being >= 0.
986 2001-10-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
988 * numbers.h: Removed old comment about using SCM_CAR to access
991 (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM): Make sure
992 the return value is signed. Thanks to Brian Crowder for the bug
995 (SCM_SRS): Avoid unnecessary casting and don't unpack input
996 values. With this patch, SCM_SRS can be safely used for other
997 types than scm_t_signed_bits. However, it should still better be
998 an internal macro and thus be renamed to SCM_I_SRS.
1000 (SCM_MAKINUM, SCM_INUM): Use proper casting.
1002 2001-10-03 Gary Houston <ghouston@arglist.com>
1004 * continuations.h, unif.h: in the descriptions of the bit patterns
1005 of the heap cells, make bit 0 the least significant.
1007 2001-09-25 Thien-Thi Nguyen <ttn@glug.org>
1009 * chars.h (SCM_MAKE_CHAR): Use `scm_t_bits' instead of `intptr_t'.
1010 Thanks to Golubev I. N.
1012 2001-09-25 Gary Houston <ghouston@arglist.com>
1014 * ports.c (scm_drain_input): extended the docstring. thanks to
1015 Alex Schroeder and Thien-Thi Nguyen.
1017 2001-09-23 Mikael Djurfeldt <mdj@linnaeus>
1019 * validate.h (SCM_NUM2FLOAT, SCM_NUM2DOUBLE,
1020 SCM_VALIDATE_FLOAT_COPY, SCM_VALIDATE_DOUBLE_COPY): New
1021 macros. (The NUM names might soon change.)
1023 * numbers.h: Added missing declarations.
1025 2001-09-22 Mikael Djurfeldt <mdj@linnaeus>
1027 * Makefile.am: Distribute num2float.i.c.
1029 * num2float.i.c: New file, multiply included by numbers.c, used
1030 to "templatize" the float <-> num conversion routines.
1032 * numbers.c: New functions: scm_num2float, scm_float2num,
1033 scm_num2double, scm_double2num.
1035 2001-09-21 Rob Browning <rlb@defaultvalue.org>
1037 * .cvsignore: really add version.h
1039 * strings.h (SCM_SET_STRING_LENGTH): coerce "l" to a long.
1040 Otherwise it fails on the alpha. However, we might rather choose
1041 this size conditionally.
1043 * numbers.c (scm_gcd): change "k" to a long from an int.
1044 Otherwise it fails on the alpha. However, we might rather choose
1045 this size conditionally.
1047 * error.c (scm_wta): coerce char* to intptr_t before int
1050 * debug.c (debugobj_print): coerce scm_intprint arg 1 to long, not
1053 * chars.h (SCM_MAKE_CHAR): coerce value to intptr_t.
1055 2001-09-20 Mikael Djurfeldt <mdj@linnaeus>
1057 * numbers.c (scm_integer_expt): Accept inexact integer in second
1058 argument. (Thanks to Bill Schottstaedt.)
1060 2001-09-20 Rob Browning <rlb@defaultvalue.org>
1062 * .cvsignore: add version.h
1064 * versiondat.h.in: removed (obsolete).
1066 * version.h.in: renamed from version.h.
1067 (SCM_GUILE_MAJOR_VERSION): new public macro.
1068 (SCM_GUILE_MINOR_VERSION): new public macro.
1069 (SCM_GUILE_MICRO_VERSION): new public macro.
1071 * version.h: renamed to version.h.in.
1074 (scm_major_version): support integer *_VERSION macros.
1075 (scm_minor_version): support integer *_VERSION macros.
1076 (scm_micro_version): support integer *_VERSION macros.
1077 (scm_version): support integer *_VERSION macros.
1079 2001-09-20 Mikael Djurfeldt <mdj@linnaeus>
1081 * error.c, error.h: Made error keys globally accessible.
1082 Applications might want to test for these or use them in a direct
1085 * num2integral.i.c (NUM2INTEGRAL): Report an error when these
1086 routines are passed an inexact. This change in behavior is
1087 motivated by concordance with R5RS: It is more common that a
1088 primitive doesn't want to accept an inexact for an exact.
1090 2001-09-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
1092 The following patch partially undoes my patch from 2001-06-30,
1093 where I added the function scm_gc_mark_cell_conservatively. The
1094 function is buggy, since it breaks guile during conservative
1095 marking if a pointer on the stack points directly into the list of
1096 free cells on the heap: With conservative cell marking this will
1097 cause the whole free list to be scanned and marked - boom!
1099 * gc.c (allocated_mark, MARK, heap_segment,
1100 scm_gc_mark_cell_conservatively, scm_init_storage), gc.h
1101 (scm_gc_mark_cell_conservatively): Remove function
1102 scm_gc_mark_cell_conservatively and update the corresponding
1103 comments and uses accordingly. Thanks to Christopher Cramer for
1104 the patch. (Minor corrections by me.)
1106 2001-09-15 Gary Houston <ghouston@arglist.com>
1108 * root.h (scm_root_state): removed the continuation_stack and
1109 continuation_stack_ptr members, which have no apparent purpose.
1110 (scm_continuation_stack, scm_continuation_stack_ptr): #defines
1113 * root.c (root_mark), init.c (restart_stack, start_stack), gc
1114 (scm_igc): remove all references to contination_stack and
1115 continuation_stack_ptr, avoiding allocation of a vector and
1116 useless processing during gc.
1118 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1120 * guardians.c (tconc_t, t_tconc): Renamed tconc_t to t_tconc.
1122 (TCONC_IN): Make sure that the cell word 0 is initialized last.
1124 (guardians_t, t_guardians): Renamed guardians_t to t_guardians.
1126 (GUARDIAN, GUARDIAN_DATA): Renamed GUARDIAN to GUARDIAN_DATA.
1128 (guardian_apply, scm_get_one_zombie, scm_make_guardian,
1129 mark_and_zombify): Prefer !SCM_<foo> over SCM_N<foo>.
1131 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1133 * guardians.c (mark_dependencies_in_tconc,
1134 whine_about_self_centered_zombies, scm_init_guardians): Register
1135 the static global variable `self_centered_zombies' via
1136 scm_gc_register_root, to make some cdr-ing unnecessary.
1138 2001-09-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
1140 * backtrace.c (display_backtrace_file,
1141 display_backtrace_file_and_line): Use SCM_EQ_P when comparing SCM
1142 values, use SCM_FALSEP when comparing SCM values against #f.
1143 Thanks to Rob Browning for the bug report.
1145 2001-09-12 Martin Baulig <martin@home-of-linux.org>
1147 * strings.[ch] (scm_str2string): New function.
1149 2001-09-06 Marius Vollmer <mvo@zagadka.ping.de>
1151 * gc.c (scm_done_free): Always subtract size from scm_mallocated
1152 when computing nm, even if it's negative.
1153 (scm_must_malloc): Abort on overflow of scm_mtrigger.
1154 (scm_must_realloc): Likewise.
1156 2001-09-01 Michael Livshin <mlivshin@bigfoot.com>
1158 * numbers.c (scm_sys_check_number_conversions): new function,
1159 defined if Guile is compiled in debugging mode. currently checks
1160 `scm_num2ulong', should check much much more.
1162 * num2integral.i.c (NUM2INTEGRAL): when converting a bignum to
1163 unsigned, ensure that it's positive. thanks to Martin Baulig!
1165 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
1167 * __scm.h: Added new section about compile time selectable
1170 (long_long, ulong_long, scm_sizet, SCM_WNA, SCM_OUTOFRANGE,
1171 SCM_NALLOC, SCM_HUP_SIGNAL, SCM_INT_SIGNAL, SCM_FPE_SIGNAL,
1172 SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL, SCM_ALRM_SIGNAL, SCM_GC_SIGNAL,
1173 SCM_TICK_SIGNAL, SCM_SIG_ORD, SCM_ORD_SIG, SCM_NUM_SIGS):
1176 * deprecation.c (scm_include_deprecated_features): Simplified.
1178 * eval.c (EVALCAR, unmemocopy), eval.h (SCM_XEVALCAR): Use
1179 `SCM_IMP´ instead of `!SCM_CELLP´.
1181 * eval.c (unmemocopy): Eliminate redundant SCM_CELLP tests.
1182 Extract side-effecting operations from macros.
1184 (scm_init_eval): Don't initialize *top-level-lookup-closure*,
1185 scm_top_level_lookup_closure_var and scm_system_transformer.
1187 * gc.c (CELL_P): New local definition to replace SCM_CELLP.
1189 (heap_segment): Use CELL_P instead of SCM_CELLP.
1191 * init.c (start_stack): Don't initialize
1192 scm_top_level_lookup_closure_var and scm_system_transformer.
1194 * modules.c (scm_set_current_module): Don't access
1195 scm_top_level_lookup_closure_var and scm_system_transformer.
1197 (scm_sym2var): Don't call scm_variable_set_name_hint.
1199 (scm_post_boot_init_modules): Removed deprecated initializations.
1201 * print.c (scm_ipruk): Don't access cell contents of non cells.
1203 * strings.c (scm_string_set_x): All strings are writable.
1205 * strings.h (SCM_STRINGP): Use SCM_TYP7 to determine the string
1206 type. There is only one string type now.
1208 (SCM_STRING_COERCE_0TERMINATION_X): Deprecated.
1210 * tags.h: Remove comments about two different string types.
1212 (SCM_CELLP, SCM_NCELLP): Deprecated.
1214 * variable.c (make_variable): Remove code variant for vcells.
1216 * variable.h (SCM_VARIABLE_REF, SCM_VARIABLE_SET,
1217 SCM_VARIABLE_LOC): Remove code variant for vcells.
1219 * __scm.h, deprecation.[ch]: Renamed SCM_DEBUG_DEPRECATED to
1220 SCM_ENABLE_DEPRECATED with the logic reversed.
1222 * dynl.c (moddata, registered_mods), dynl.[ch]
1223 (scm_register_module_xxx, scm_registered_modules,
1224 scm_clear_registered_modules), error.[ch] (scm_wta), eval.c
1225 (*top-level-lookup-closure*), eval.[ch]
1226 (scm_top_level_lookup_closure_var, scm_system_transformer,
1227 scm_eval_3, scm_eval2), gc.h (SCM_SETAND_CAR, SCM_SETOR_CAR,
1228 SCM_SETAND_CDR, SCM_SETOR_CDR, SCM_FREEP, SCM_NFREEP,
1229 SCM_GC8MARKP, SCM_SETGC8MARK, SCM_CLRGC8MARK, SCM_GCTYP16,
1230 SCM_GCCDR), gc.[ch] (scm_remember, scm_protect_object,
1231 scm_unprotect_object), modules.c (root_module_lookup_closure,
1232 scm_sym_app, scm_sym_modules, module_prefix, make_modules_in_var,
1233 beautify_user_module_x_var, try_module_autoload_var,
1234 scm_module_full_name), modules.[ch] (scm_the_root_module,
1235 scm_make_module, scm_ensure_user_module, scm_load_scheme_module),
1236 ports.h (scm_port, scm_ptob_descriptor, scm_port_rw_active),
1237 ports.[ch] (scm_close_all_ports_except), random.h (scm_rstate,
1238 scm_rng, scm_i_rstate), strings.h (SCM_SLOPPY_STRINGP,
1239 SCM_RWSTRINGP, SCM_STRING_UCHARS, SCM_STRING_CHARS), strings.[ch]
1240 (scm_read_only_string_p, scm_makstr, scm_makfromstr,
1241 scm_make_shared_substring), tags.h (scm_tc7_substring,
1242 SCM_SLOPPY_CONSP, SCM_SLOPPY_NCONSP, scm_tc7_ssymbol,
1243 scm_tc7_msymbol, scm_tcs_symbols), variable.c (sym_huh),
1244 variable.[ch] (scm_variable_set_name_hint, scm_builtin_variable),
1245 variable.h (SCM_VARVCELL, SCM_UDVARIABLEP, SCM_DEFVARIABLEP):
1248 * dynl.c (scm_dynamic_link, scm_dynamic_func), error.c
1249 (scm_error_scm), filesys.c (scm_chown, scm_chmod, scm_open_fdes,
1250 scm_stat, scm_link, scm_rename, scm_delete_file, scm_mkdir,
1251 scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink,
1252 scm_lstat, scm_copy_file), fports.c (scm_open_file), ioext.c
1253 (scm_fdopen), net_db.c (scm_gethost, scm_getnet, scm_getproto,
1254 scm_getserv), ports.c (scm_truncate_file, scm_sys_make_void_port),
1255 posix.c (scm_getpwuid, scm_getgrgid, scm_execl, scm_execlp,
1256 scm_execle, scm_mkstemp, scm_utime, scm_access, scm_setlocale,
1257 scm_mknod, scm_crypt, scm_chroot, scm_getpass, scm_sethostname),
1258 regex-posix.c (scm_make_regexp, scm_regexp_exec), simpos.c
1259 (scm_system, scm_getenv), socket.c (scm_inet_aton), stime.c
1260 (setzone, scm_strftime, scm_strptime), vports.c
1261 (scm_make_soft_port): Remove calls to
1262 SCM_STRING_COERCE_0TERMINATION_X. Since the substring type is
1263 gone, all strings are 0-terminated anyway.
1265 * dynl.h (LIBGUILE_DYNL_H, SCM_DYNL_H), random.h (RANDOMH,
1266 SCM_RANDOM_H): Renamed the macros that are defined to inhibit
1267 double inclusion of the same headers to the SCM_<filename>_H
1270 * eval.c (SCM_CEVAL), gc.c (MARK, scm_gc_sweep), gh_data.c
1271 (gh_scm2chars), hash.c (scm_hasher), objects.c (scm_class_of),
1272 print.c (scm_iprin1): The type scm_tc7_substring does not exist
1275 * ports.h (SCM_PORTP, SCM_OPPORTP, SCM_OPINPORTP, SCM_OPOUTPORTP,
1276 SCM_INPUT_PORT_P, SCM_OUTPUT_PORT_P, SCM_OPENP), tags.h
1277 (SCM_TYP16_PREDICATE), variable.h (SCM_VARIABLEP): Prefer
1278 !SCM_<foo> over SCM_N<foo>.
1280 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
1282 * Makefile.am: Remove references to symbols-deprecated.c.
1284 * symbols.c (scm_init_symbols): Don't initialize deprecated
1287 * symbols-deprecated.c: Removed.
1289 * fluids.[ch] (scm_internal_with_fluids), gsubr.[ch]
1290 (scm_make_gsubr, scm_make_gsubr_with_generic), hooks.[ch]
1291 (scm_create_hook), list.c (list*), list.h (SCM_LIST[0-9],
1292 scm_listify), list.[ch] (scm_sloppy_memq, scm_sloppy_memv,
1293 scm_sloppy_member), load.c (scm_end_of_file_key), load.[ch]
1294 (scm_read_and_eval_x), numbers.[ch] (scm_mkbig, scm_big2inum,
1295 scm_adjbig, scm_normbig, scm_copybig, scm_2ulong2big, scm_dbl2big,
1296 scm_big2dbl), numbers.h (SCM_FIXNUM_BIT), procs.h
1297 (scm_subr_entry, SCM_SUBR_DOC), procs.[ch] (scm_make_subr_opt,
1298 scm_make_subr, scm_make_subr_with_generic), root.c (setjmp_type,
1299 setjmp_type), root.[ch] (scm_call_catching_errors), smob.[ch]
1300 (scm_make_smob_type_mfpe, scm_set_smob_mfpe), strports.[ch]
1301 (scm_strprint_obj, scm_read_0str, scm_eval_0str), symbols.h
1302 (SCM_CHARS, SCM_UCHARS, SCM_SETCHARS, SCM_SLOPPY_SUBSTRP,
1303 SCM_SUBSTR_STR, SCM_SUBSTR_OFFSET, SCM_LENGTH_MAX, SCM_LENGTH,
1304 SCM_SETLENGTH, SCM_ROSTRINGP, SCM_ROLENGTH, SCM_ROCHARS,
1305 SCM_ROUCHARS, SCM_SUBSTRP, SCM_COERCE_SUBSTR, scm_strhash,
1306 scm_sym2vcell, scm_sym2ovcell_soft, scm_sym2ovcell,
1307 scm_intern_obarray_soft, scm_intern_obarray, scm_intern,
1308 scm_intern0, scm_sysintern, scm_sysintern0,
1309 scm_sysintern0_no_module_lookup, scm_symbol_value0,
1310 scm_string_to_obarray_symbol, scm_intern_symbol,
1311 scm_unintern_symbol, scm_symbol_binding, scm_symbol_interned_p,
1312 scm_symbol_bound_p, scm_symbol_set_x, scm_gentemp,
1313 scm_init_symbols_deprecated), vectors.c (s_vector_set_length_x),
1314 vectors.[ch] (scm_vector_set_length_x): Removed.
1316 * fluids.h (FLUIDSH, SCM_FLUIDS_H), gsubr.c (GSUBRH, SCM_GSUBR_H),
1317 list.h (LISTH, SCM_LIST_H), load.h (LOADH, SCM_LOAD_H), root.h
1318 (ROOTH, SCM_ROOT_H), strports.h (STRPORTSH, SCM_STRPORTS_H):
1319 Renamed the macros that are defined to inhibit double inclusion of
1320 the same headers to the SCM_<filename>_H format.
1322 * procs.h (SCM_CLOSUREP, SCM_PROCEDURE_WITH_SETTER_P), symbols.h
1323 (SCM_SYMBOLP), vectors.h (SCM_VECTORP): Prefer !SCM_<foo> over
1326 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
1328 * continuations.h (scm_contregs), debug.h (scm_debug_info,
1329 scm_debug_frame, SCM_DSIDEVAL), filesys.h (SCM_OPDIRP), fports.h
1330 (scm_fport), options.h (scm_option), snarf.h (SCM_CONST_LONG,
1331 SCM_VCELL, SCM_GLOBAL_VCELL, SCM_VCELL_INIT,
1332 SCM_GLOBAL_VCELL_INIT), srcprop.h (scm_srcprops,
1333 scm_srcprops_chunk), stacks.h (scm_info_frame, scm_stack), unif.h
1334 (scm_array, scm_array_dim, SCM_ARRAY_CONTIGUOUS, SCM_HUGE_LENGTH),
1335 validate.h (SCM_FUNC_NAME, SCM_WTA, RETURN_SCM_WTA,
1336 SCM_VALIDATE_NUMBER_COPY, SCM_VALIDATE_NUMBER_DEF_COPY,
1337 SCM_VALIDATE_STRINGORSUBSTR, SCM_VALIDATE_ROSTRING,
1338 SCM_VALIDATE_ROSTRING_COPY, SCM_VALIDATE_NULLORROSTRING_COPY,
1339 SCM_VALIDATE_RWSTRING, SCM_VALIDATE_OPDIR): Removed.
1341 * continuations.h (CONTINUATIONSH, SCM_CONTINUATIONS_H), filesys.h
1342 (FILESYSH, SCM_FILESYS_H), fports.h (FPORTSH, SCM_FPORTS_H),
1343 options.h (OPTIONSH, SCM_OPTIONS_H), regex-posix.h (REGEXPOSIXH,
1344 SCM_REGEX_POSIX_H), snarf.h (LIBGUILE_SNARF_H, SCM_SNARF_H),
1345 srcprop.h (SCM_SOURCE_PROPERTIES_H, SCM_SRCPROP_H), unif.h
1346 (SCM_UNIFORM_VECTORS_H, SCM_UNIF_H), validate.h (SCM_VALIDATE_H__,
1347 SCM_VALIDATE_H): Renamed the macros that are defined to inhibit
1348 double inclusion of the same headers to the SCM_<filename>_H
1351 * debug.h (SCM_RESET_DEBUG_MODE), regex-posix.h (SCM_RGXP),
1352 srcprop.h (SRCBRKP, PROCTRACEP), struct.h (SCM_STRUCTP),
1353 validate.h (SCM_VALIDATE_THUNK, SCM_VALIDATE_ARRAY,
1354 SCM_VALIDATE_VECTOR_OR_DVECTOR, SCM_VALIDATE_VTABLE): Prefer
1355 !SCM_<foo> over SCM_N<foo>.
1357 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
1359 * _scm.h (_SCMH, SCM__SCM_H), alist.h (ALISTH, SCM_ALIST_H),
1360 arbiters.h (ARBITERSH, SCM_ARBITERS_H), backtrace.h (BACKTRACEH,
1361 SCM_BACKTRACE_H), boolean.h (BOOLEANH, SCM_BOOLEAN_H), chars.h
1362 (SCM_CHARSH, SCM_CHARS_H), coop-defs.h (COOP_DEFSH,
1363 SCM_COOP_DEFS_H), coop-threads.h (COOP_THREADSH,
1364 SCM_COOP_THREADS_H), debug-malloc.h (DEBUGMALLOCH,
1365 SCM_DEBUG_MALLOC_H), dynwind.h (DYNWINDH, SCM_DYNWIND_H),
1366 environments.h (ENVIRONMENTS_H, SCM_ENVIRONMENTS_H), eq.h (EQH,
1367 SCM_EQ_H), evalext.h (EVALEXTH, SCM_EVALEXT_H), extensions.h
1368 (LIBGUILE_EXTENSIONS_H, SCM_EXTENSIONS_H), feature.h (FEATUREH,
1369 SCM_FEATURE_H), gdbint.h (GDBINTH, SCM_GDBINT_H), guardians.h
1370 (SCM_GUARDIANH, SCM_GUARDIANS_H), hash.h (HASHH, SCM_HASH_H),
1371 hashtab.h (HASHTABH, SCM_HASHTAB_H), init.h (INITH, SCM_INIT_H),
1372 ioext.h (IOEXTH, SCM_IOEXT_H), iselect.h (ISELECTH,
1373 SCM_ISELECT_H), keywords.h (KEYWORDSH, SCM_KEYWORDS_H), lang.h
1374 (LANGH, SCM_LANG_H), mallocs.h (MALLOCSH, SCM_MALLOCS_H), net_db.h
1375 (SCM_NETDBH, SCM_NET_DB_H), objprop.h (OBJPROPH, SCM_OBJPROP_H),
1376 posix.h (POSIXH, SCM_POSIX_H), procprop.h (PROCPROPH,
1377 SCM_PROCPROP_H), properties.h (PROPERTIES_H, SCM_PROPERTIES_H),
1378 ramap.h (RAMAPH, SCM_RAMAP_H), rdelim.h (SCM_RDELIM,
1379 SCM_RDELIM_H), read.h (READH, SCM_READ_H), rw.h (SCM_RW,
1380 SCM_RW_H), scmsigs.h (SCMSIGSH, SCM_SCMSIGS_H), script.h (SCRIPTH,
1381 SCM_SCRIPT_H), simpos.h (SIMPOSH, SCM_SIMPOS_H), socket.h
1382 (SCM_SOCKETH, SCM_SOCKET_H), sort.h (SORTH, SCM_SORT_H),
1383 stackchk.h (STACKCHKH, SCM_STACKCHK_H), stime.h (STIMEH,
1384 SCM_STIME_H), strop.h (STROPH, SCM_STROP_H), strorder.h
1385 (STRORDERH, SCM_STRORDER_H), threads.h (THREADSH, SCM_THREADS_H),
1386 throw.h (THROWH, SCM_THROW_H), version.h (VERSIONH,
1387 SCM_VERSION_H), vports.h (VPORTSH, SCM_VPORTS_H): Renamed
1388 the macros that are defined to inhibit double inclusion of the
1389 same headers to the SCM_<filename>_H format.
1391 2001-08-27 Marius Vollmer <mvo@zagadka.ping.de>
1393 * ports.c, ports.h, fprots.c, gc.c, ioext.c: Replaced
1394 "scm_t_portable" with "scm_port_table" which was an artifact from
1395 the great "scm_*_t -> scm_t_" renaming.
1397 2001-08-25 Thien-Thi Nguyen <ttn@revel.glug.org>
1399 * gc_os_dep.c (GC_noop1): Move before `GC_find_limit' where it is
1400 used; nfc. Thanks to Bill Schottstaedt.
1402 * validate.h (SCM_VALIDATE_USHORT_COPY, SCM_VALIDATE_SHORT_COPY,
1403 SCM_VALIDATE_UINT_COPY, SCM_VALIDATE_INT_COPY): New macros.
1404 Thanks to Chris Cramer.
1406 2001-08-25 Marius Vollmer <mvo@zagadka.ping.de>
1408 * Makefile.am (AUTOMAKE_OPTIONS): Change "foreign" to "gnu".
1410 * eval.c (scm_m_atbind): Redesigned to behvae like `let', but with
1412 * dynwind.h (scm_swap_bindings): Declare.
1413 * dynwind.c (scm_swap_bindings): Make non-static.
1415 2001-08-25 Michael Livshin <mlivshin@bigfoot.com>
1417 * gc.c (scm_gc_sweep): now can sweep unreachable variables (by
1418 doing exactly nothing about them). thanks Neil!
1420 2001-08-18 Neil Jerram <neil@ossau.uklinux.net>
1422 * __scm.h (SCM_ENABLE_VCELLS): Fix spelling mistake in comment.
1424 2001-08-17 Thien-Thi Nguyen <ttn@revel.glug.org>
1426 * gc.c: Fix omission bug: Add `heap_segment' forward decl
1427 (proto) in the case when either `GUILE_DEBUG' or
1428 `GUILE_DEBUG_FREELIST' preprocessor symbols are defined.
1430 (map_free_list): Fix typo: Ref `f' correctly.
1432 Thanks to Chris Cramer.
1434 2001-08-15 Rob Browning <rlb@defaultvalue.org>
1436 * Makefile.am (libguile_la_LDFLAGS): use libtool interface version
1438 (libpath.h): change libguileversion to libguileinterface.
1440 2001-08-07 Marius Vollmer <mvo@zagadka.ping.de>
1442 * Makefile.am (EXTRA_DIST): Distribute ChangeLog-1996-1999 and
1443 ChangeLog-2000. Thanks to Daniel Skarda!
1445 2001-08-07 Michael Livshin <mlivshin@bigfoot.com>
1447 * guile-snarf-docs-texi.in: don't call the tokenizer here, we now
1448 do it from the Makefile.
1450 * Makefile.am: rearrange the snarfing slightly, so that .doc files
1451 are of a reasonable size.
1453 2001-08-02 Neil Jerram <neil@ossau.uklinux.net>
1455 * stacks.c (scm_make_stack): Improve docstring by explaining use
1458 2001-08-01 Marius Vollmer <mvo@zagadka.ping.de>
1460 * chars.c (scm_char_alphabetic_p, scm_char_numeric_p,
1461 scm_char_whitespace_p, scm_char_upper_case_p,
1462 scm_char_lower_case_p, scm_char_is_both_p): Do not require
1463 characters to fulfill isascii in addition to the primary
1466 2001-07-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
1468 * numbers.c (DIGITS, scm_small_istr2int, scm_istr2int,
1469 scm_istr2flo, scm_istring2number): Removed.
1471 (iflo2str, scm_real_p, scm_integer_p): Use SCM_<foo> instead of
1474 (t_exactness, t_radix, DIGIT2UINT, XDIGIT2UINT, mem2uinteger,
1475 mem2decimal_from_point, mem2ureal, mem2complex, scm_i_mem2number):
1478 (scm_string_to_number): Use new number parser.
1480 (scm_exact_to_inexact): Replace dummy by a GPROC, which also
1481 handles complex numbers.
1483 * numbers.h (NUMBERSH, SCM_NUMBERS_H): Rename <foo>H to
1486 (SCM_INEXACTP, SCM_REALP, SCM_COMPLEXP): Prefer !SCM_<pred> over
1489 (scm_istr2int, scm_istr2flo, scm_istring2number): Removed.
1491 (scm_i_mem2number): Added.
1493 (scm_exact_to_inexact): Changed signature.
1495 * read.c (scm_lreadr): Perform the shortcut test for '+ and '-
1496 here instead of within scm_i_mem2number. Call scm_i_mem2number
1497 instead of scm_istr2int and scm_istring2number.
1499 2001-07-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
1501 * eval.c (scm_lookupcar, scm_m_body, scm_m_lambda, unmemocopy,
1502 scm_unmemocopy, scm_badargsp, scm_eval_body, CHECK_EQVISH,
1503 SCM_CEVAL, scm_nconc2last, SCM_APPLY, scm_copy_tree): Prefer
1504 !SCM_<pred> over SCM_N<pred>.
1506 (scm_eval_body): Remove side effecting code from macro call.
1508 (SCM_CEVAL, SCM_APPLY): Remove goto statement and redundant
1511 2001-07-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
1513 * pairs.h (SCM_VALIDATE_PAIR): Use SCM_CONSP, not SCM_ECONSP.
1515 2001-07-29 Marius Vollmer <mvo@zagadka.ping.de>
1517 Removed vcell slot from structs.
1519 * struct.h (scm_vtable_index_vcell): Removed. Renumbered
1522 * struct.c (scm_struct_vtable_p): Do not check vcell slot for
1523 zero. Use scm_vtable_index_layout instead of "0" when accessing
1525 (scm_init_struct): Remove vcell slot layout code from
1526 required_vtable_fields.
1528 * objects.h (scm_si_redefined, scm_si_hashsets): Renumbered.
1530 * goops.c (build_class_class_slots): Removed vcell slot
1533 * goops.h: Renumbered slot indices. (SCM_CLASS_CLASS_LAYOUT):
1534 Removed vcell slot layout code.
1535 (scm_si_vcell): Removed.
1537 2001-07-26 Marius Vollmer <mvo@zagadka.ping.de>
1539 "Glocs" have been removed.
1541 * tags.h: Update tag system docs.
1542 (scm_tc3_cons_gloc): Renamed to scm_tc3_struct. Changed all uses.
1543 (scm_tcs_cons_gloc): Renamed to scm_tcs_struct. Changed all uses.
1544 (SCM_ECONSP, SCM_NECONSP): Removed. Changed all uses to SCM_CONSP
1545 or SCM_NCONSP, respectively.
1547 * struct.c, struct.h, srcprop.c, procs.c, procprop.c, print.c,
1548 objects.c. modules.c, goops.c, eval.c, debug.c: Changed all uses
1549 of scm_tc3_cond_gloc and scm_tcs_cons_gloc. See above.
1551 * print.c (scm_iprin1): Remove printing of glocs. Do not try to
1552 tell glocs from structs.
1554 * gc.c (scm_gc_mark, scm_gc_sweep): Remove handling of glocs.
1556 * eval.c (scm_m_atbind): Make a list of variables, not glocs.
1557 (scm_ceval, scm_deval): For SCM_IM_BIND, fiddle with variables
1558 instead of with glocs.
1559 (EVALCAR): Do not test for glocs.
1560 (scm_lookupcar, scm_lookupcar1): Do not handle glocs in race
1562 (scm_unmemocar): Do not handle glocs.
1563 (scm_m_atfop): Memoize as a variable, not as a gloc.
1564 (scm_eval_args, scm_deval_args): Do not handle glocs.
1565 (scm_ceval, scm_deval): Likewise.
1567 * eval.h (SCM_XEVALCAR): Do not test for glocs.
1568 (SCM_GLOC_VAR, SCM_GLOC_VAL, SCM_GLOC_SET_VAL, SCM_GLOC_VAL_LOC):
1571 * debug.h, debug.c (scm_make_gloc, scm_gloc_p): Removed.
1573 * dynwind.c (scm_swap_bindings): Likewise.
1574 (scm_dowinds): Updated to recognize lists of variables instead of
1577 * __scm.h (SCM_CAUTIOS, SCM_RECKLESS): Update comments.
1580 * gc_os_dep.c (GC_noop1): Moved into the same #if/#endif context
1583 2001-07-25 Gary Houston <ghouston@arglist.com>
1585 * numbers.c (scm_logand, scm_logior, scm_logxor): adjusted the
1586 docstrings to reflect the n-ary implementation.
1588 2001-07-26 Marius Vollmer <mvo@zagadka.ping.de>
1590 * eval.c (scm_ceval, scm_deval): Use "RETURN" macro when returning
1591 value of a variable, not the plain "return" statement.
1593 2001-07-25 Marius Vollmer <mvo@zagadka.ping.de>
1595 * eval.c: Allow variables in memoized code (in addition to glocs).
1596 (scm_lookupcar): Handle variables in lost races. Replace symbol
1597 with variable directly, do not make a gloc.
1598 (scm_unmemocar): Rewrite variables using a reverse lookup, just
1600 (scm_ceval, scm_deval): Deal with variables in SCM_IM_SET and in
1603 2001-07-25 Marius Vollmer <marius.vollmer@uni-dortmund.de>
1605 * variable.c (scm_i_variable_print): Use "value" instead of
1606 "binding" since a binding is the mapping between symbols and
1607 variables, not between variables and their values.
1609 * tags.h (scm_tc7_variable): New.
1610 * gc.c (scm_gc_mark): Handle scm_tc7_variable objects.
1611 * print.c (scm_iprin1): Likewise.
1613 * variable.h (scm_tc16_variable): Removed.
1614 (SCM_VARIABLEP): Test for new tc7 code.
1615 (scm_i_variable_print): New.
1616 * variable.c (scm_tc16_variable): Removed.
1617 (variable_print): Renamed to scm_i_variable_print and made
1619 (variable_equal_p): Removed.
1620 (make_variable): Construct a tc7 object instead of a smob.
1621 (scm_init_variable): Do not register smob.
1623 2001-07-22 Marius Vollmer <mvo@zagadka.ping.de>
1625 * tags.h: Include inttypes.h when we have it.
1627 2001-07-13 Marius Vollmer <mvo@zagadka.ping.de>
1629 * tags.h (SCM_UNBOUND): Make it the 34th isym/iflag, the 33th slot
1630 is taken by the new SCM_IM_CALL_WITH_VALUES.
1631 * print.c (scm_isymnames): Update table accordingly.
1633 2001-07-22 Gary Houston <ghouston@arglist.com>
1635 * regex-posix.c (s_scm_regexp_exec): use scm_long2num not
1636 SCM_MAKINUM to convert regoff_t value to SCM.
1638 2001-07-21 Gary Houston <ghouston@arglist.com>
1640 * scmsigs.c: include sys/time.h for itimer stuff.
1642 2001-07-19 Rob Browning <rlb@defaultvalue.org>
1644 * gc_os_dep.c (GC_noop1): ifdef out (unused) to quiet warning.
1646 * c-tokenize.lex: add option %nounput to quiet warning.
1647 Add prototype for yylex to quiet warning.
1649 * scmconfig.h.in: add flags for setitimer and getitimer.
1651 * scmsigs.h (scm_init_scmsigs): new prototype.
1652 (scm_init_scmsigs): new prototype.
1654 * scmsigs.c (s_scm_setitimer): new function.
1655 (s_scm_setitimer): new function.
1657 2001-07-18 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
1659 * alist.c, arbiters.c, async.h, backtrace.h, boolean.c, chars.c,
1660 chars.h, continuations.h, debug-malloc.h, dynl.c, feature.c,
1661 feature.h, filesys.h, fluids.h, fports.h, gc_os_dep.c,
1662 gdb_interface.h, gh_eval.c, gh_funcs.c, gh_io.c, gh_list.c,
1663 gh_predicates.c, gsubr.c, gsubr.h, guardians.h,
1664 guile-func-name-check.in, guile-snarf-docs-texi.in,
1665 guile-snarf-docs.in, guile-snarf.awk.in, guile-snarf.in,
1666 hashtab.h, iselect.h, keywords.h, lang.c, list.h, load.h,
1667 objprop.c, objprop.h, options.c, options.h, random.h,
1668 regex-posix.h, root.c, root.h, script.c, snarf.h, stackchk.c,
1669 strerror.c, strop.h, strports.h, threads.h, values.c, values.h,
1670 version.c, version.h: Updated copyright notice.
1672 2001-07-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
1674 * goops.c (sym_layout, sym_vcell, sym_vtable, sym_print,
1675 sym_procedure, sym_setter, sym_redefined, sym_h0, sym_h1, sym_h2,
1676 sym_h3, sym_h4, sym_h5, sym_h6, sym_h7, sym_name,
1677 sym_direct_supers, sym_direct_slots, sym_direct_subclasses,
1678 sym_direct_methods, sym_cpl, sym_default_slot_definition_class,
1679 sym_slots, sym_getters_n_setters, sym_keyword_access, sym_nfields,
1680 sym_environment, scm_sym_change_class): New static variables to
1681 hold predefined symbols.
1683 (build_class_class_slots): Build the list using scm_list_n
1684 instead of cons. Also, slots are already created as lists, thus
1685 making a call to maplist unnecessary.
1687 (scm_class_name, scm_class_direct_supers, scm_class_direct_slots,
1688 scm_class_direct_subclasses, scm_class_direct_methods,
1689 scm_class_precedence_list, scm_class_slots, scm_class_environment,
1690 scm_method_procedure, create_standard_classes, purgatory): Use
1693 (build_slots_list, compute_getters_n_setters,
1694 scm_sys_initialize_object, scm_sys_inherit_magic_x,
1695 get_slot_value_using_name, set_slot_value_using_name,
1696 scm_sys_invalidate_method_cache_x, scm_generic_capability_p,
1697 scm_compute_applicable_methods, scm_sys_method_more_specific_p,
1698 make_struct_class): Prefer !SCM_<pred> over SCM_N<pred>.
1700 (scm_sys_prep_layout_x): Minimize variable scopes.
1702 (scm_sys_prep_layout_x, scm_sys_fast_slot_ref,
1703 scm_sys_fast_slot_set_x): Fix signedness.
1705 (go_to_hell, go_to_heaven, purgatory, scm_change_object_class,
1706 lock_cache_mutex, unlock_cache_mutex, call_memoize_method,
1707 scm_memoize_method, scm_wrap_object): Use packing and unpacking
1708 when converting to and from SCM values.
1710 (scm_enable_primitive_generic_x): Add rest argument checking.
1712 (map, filter_cpl, maplist, scm_sys_initialize_object,
1713 scm_sys_prep_layout_x, slot_definition_using_name,
1714 scm_enable_primitive_generic_x, scm_compute_applicable_methods,
1715 call_memoize_method, scm_make, scm_make_class): Prefer explicit
1716 predicates over SCM_N?IMP tests.
1718 (scm_sys_prep_layout_x): Fix typo in error message. Fix type
1721 (burnin, go_to_hell): Use SCM_STRUCT_DATA instead of the SCM_INST
1724 2001-07-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
1726 * fports.c (fport_print): Don't use SCM_C[AD]R for non pairs.
1728 * num2integral.i.c (INTEGRAL2NUM, INTEGRAL2BIG): Fix signedness.
1730 * symbols-deprecated.c (scm_gentemp): Simplify vector test.
1732 * vectors.c (scm_vector_p): Eliminate redundant IMP test.
1734 2001-07-12 Michael Livshin <mlivshin@bigfoot.com>
1736 * strings.c (s_scm_string): fix arg position in assert.
1738 2001-07-11 Gary Houston <ghouston@arglist.com>
1740 * strports.c (st_write): use memcpy, not strncpy. thanks to
1743 2001-07-09 Thien-Thi Nguyen <ttn@revel.glug.org>
1745 * alist.c, alloca.c, arbiters.c, async.c, async.h, backtrace.c,
1746 boolean.c, chars.c, continuations.c, coop-defs.h, coop-threads.c,
1747 debug-malloc.h, debug.c, debug.h, dynl.c, dynwind.c, eq.c,
1748 error.c, eval.c, evalext.c, feature.c, feature.h, filesys.c,
1749 filesys.h, fluids.c, fluids.h, fports.c, fports.h, gc.c, gc.h,
1750 gdbint.c, gsubr.c, guardians.c, hash.c, hashtab.c, hooks.c,
1751 hooks.h, inet_aton.c, init.c, ioext.c, keywords.c, keywords.h,
1752 lang.c, list.c, load.c, macros.c, mallocs.c, memmove.c, modules.c,
1753 net_db.c, numbers.c, numbers.h, objects.c, objprop.c, options.c,
1754 pairs.c, pairs.h, ports.c, ports.h, posix.c, print.c, print.h,
1755 procprop.c, procs.c, procs.h, properties.c, putenv.c, ramap.c,
1756 random.c, random.h, read.c, regex-posix.c, regex-posix.h, root.c,
1757 root.h, scmsigs.c, script.c, simpos.c, smob.c, snarf.h, socket.c,
1758 sort.c, srcprop.c, srcprop.h, stackchk.c, stacks.c, stacks.h,
1759 stime.c, strerror.c, strings.c, strings.h, strop.c, strorder.c,
1760 strports.c, struct.c, struct.h, symbols-deprecated.c, symbols.c,
1761 symbols.h, tags.h, threads.c, threads.h, throw.c, unif.c, unif.h,
1762 variable.c, variable.h, vectors.c, vectors.h, version.c, vports.c,
1763 weaks.c, weaks.h: Remove "face-lift" comment.
1765 2001-07-08 Rob Browning <rlb@defaultvalue.org>
1767 * .cvsignore: add stamp-h.in.
1769 2001-07-04 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
1771 * hooks.c (scm_make_hook, scm_add_hook_x),
1772 (scm_remove_hook_x, scm_reset_hook_x, scm_run_hook): Added return
1773 value info to the docstrings.
1775 2001-07-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
1777 Some more compatibility patches for Windows.
1779 * posix.c (getlogin): getlogin() implementation for Windows.
1781 * backtrace.c, ioext.c: Include <stdio.h>.
1783 * unif.c, script.c, rw.c, error.c: Include <io.h>, if it does
1786 * cpp_sig_symbols.in: Added SIGBREAK.
1788 2001-07-01 Marius Vollmer <mvo@zagadka.ping.de>
1790 * strports.c (scm_read_0str, scm_eval_0str): Call
1791 scm_c_read_string and scm_c_eval_string respectively, not
1792 themselves. Thanks to Dale P. Smith!
1794 2001-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
1796 * unif.c (scm_array_set_x): The variable args does not
1797 necessarily have to be a list. Further, got rid of a redundant
1800 2001-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
1802 * list.c (SCM_I_CONS): Make sure the cell type is initialized
1805 * gc.c (s_scm_map_free_list, scm_igc, scm_gc_sweep,
1806 init_heap_seg): Fixed signedness.
1808 (init_heap_seg): Replaced strange for-loop with a while loop.
1810 * weaks.h (WEAKSH, SCM_WEAKS_H): Rename <foo>H to SCM_<foo>_H.
1812 (SCM_WVECTP): Prefer !SCM_<pred> over SCM_N<pred>.
1814 The following patch adds conservative marking for the elements of
1815 free or allocated cells.
1817 * gc.c (allocated_mark, heap_segment): New static functions.
1819 (which_seg): Deleted, since the functionality is now provided by
1820 function heap_segment.
1822 (map_free_list): Use heap_segment instead of which_seg.
1824 (MARK): If cell debugging is disabled, mark free cells
1827 (scm_mark_locations, scm_cellp): Extracted the search for the
1828 heap segment of a SCM value into function heap_segment.
1830 (scm_init_storage): Allocated cells must be marked
1833 * gc.[ch] (scm_gc_mark_cell_conservatively): New function.
1835 The following patch changes the representation of weak vectors to
1836 double cells instead of using an extension of the vector's
1839 * gc.c (MARK): Use SCM_SET_WVECT_GC_CHAIN instead of assigning to
1840 the result of SCM_WVECT_GC_CHAIN.
1842 (scm_gc_sweep): Weak vectors don't have extra fields any more.
1844 * weaks.c (allocate_weak_vector): New static function. It does
1845 not patch any previously created vector object during the
1846 construction of a weak vector, and thus doesn't need to switch
1847 off interrupts during vector creation.
1849 (scm_make_weak_vector, scm_make_weak_key_hash_table,
1850 scm_make_weak_value_hash_table, scm_make_doubly_weak_hash_table):
1851 Use allocate_weak_vector to provide the new weak vector object.
1853 * weaks.h (SCM_WVECT_TYPE, SCM_SET_WVECT_TYPE,
1854 SCM_SET_WVECT_GC_CHAIN): New macros. The weak vector subtype is
1855 now stored in the double cell.
1857 (SCM_IS_WHVEC, SCM_IS_WHVEC_V, SCM_IS_WHVEC_B, SCM_IS_WHVEC_ANY):
1860 (SCM_WVECT_GC_CHAIN): The weak objects are now chained together
1861 using an entry of the double cell.
1863 2001-06-30 Thien-Thi Nguyen <ttn@revel.glug.org>
1865 * stamp-h.in: bye bye
1867 2001-06-30 Marius Vollmer <mvo@zagadka.ping.de>
1869 * gh_eval.c (gh_eval_str): Use scm_c_eval_string instead of
1872 * load.c, load.h (scm_c_primitive_load,
1873 scm_c_primitive_load_path): New.
1875 * strports.c, strports.h (scm_c_read_string): Renamed from
1876 scm_read_0str. Also, added "const" qualifier to argument.
1877 (scm_c_eval_string): Renamed from scm_eval_0str.
1878 (scm_read_0str, scm_eval_0str): Deprecated.
1880 2001-06-28 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
1882 * fluids.c (scm_c_with_fluid): Use scm_list_1() instead of
1885 2001-06-28 Keisuke Nishida <kxn30@po.cwru.edu>
1887 * list.h (scm_list_1, scm_list_2, scm_list_3, scm_list_4, scm_list_5,
1888 scm_list_n): New functions.
1889 (SCM_LIST0, SCM_LIST1, SCM_LIST2, SCM_LIST3, SCM_LIST4, SCM_LIST5,
1890 SCM_LIST6, SCM_LIST7, SCM_LIST8, SCM_LIST9, scm_listify): Deprecated.
1891 (lots of files): Use the new functions.
1893 * goops.c (CALL_GF1, CALL_GF2, CALL_GF3, CALL_GF4): Use scm_call_N.
1895 * strings.c: #include "libguile/deprecation.h".
1897 2001-06-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
1899 * read.c (scm_lreadr): When reading a hash token, check for a
1900 user-defined hash procedure first, so that overriding the builtin
1901 hash characters is possible (this was needed for implementing
1902 SRFI-4's read synax `f32(...)').
1904 * num2integral.i.c: Use scm_t_signed_bits instead of scm_t_bits,
1905 because the latter is unsigned now and breaks comparisons like
1906 (n < (scm_t_signed_bits)MIN_VALUE).
1908 2001-06-26 Neil Jerram <neil@ossau.uklinux.net>
1910 * eval.h, eval.c (scm_call_4): New function.
1912 * eval.c (SCM_APPLY, SCM_CEVAL, ENTER_APPLY): Call trap handlers
1913 directly rather than dispatching to them via scm_ithrow and a lazy
1916 * eval.c (scm_evaluator_trap_table), eval.h (SCM_ENTER_FRAME_HDLR,
1917 SCM_APPLY_FRAME_HDLR, SCM_EXIT_FRAME_HDLR): Add three new options
1918 for trap handler procedures.
1920 * debug.h (SCM_RESET_DEBUG_MODE): Add checks for trap handler
1921 procedures not being #f.
1923 2001-06-27 Michael Livshin <mlivshin@bigfoot.com>
1925 * Makefile.am (c-tokenize.c): add rule to generate it.
1926 (EXTRA_DIST): add c-tokenize.lex, so it gets distributed.
1928 filter-doc-snarfage.c: remove.
1930 2001-06-26 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
1932 * ports.c (scm_output_port_p): Use result of SCM_COERCE_OUTPORT.
1934 The following set of changes makes compiling Guile under various
1935 Windows compilers easier. Compilation under GNU systems should
1936 not be affected at all.
1938 Thanks to Stefan Jahn for all necessary information, patches and
1941 * posix.c: Conditialize getpwent, getgrent, kill, getppid, getuid,
1942 getpgrp, ttyname, primitive-fork and some header inclusion for
1945 * random.c: Define M_PI, if not predefined and use __int64 for
1946 LONG64 under Windows.
1948 * scmsigs.c: Emulate some functions (alarm, sleep, kill) under
1949 Windows and conditionalize some signal names.
1951 * socket.c (scm_getsockopt): Added missing comma.
1952 Include socket library header under Windows.
1954 * stime.c (CLKTCK): Add cast to int, to make it compile under
1957 * ports.c (truncate): New function, compiled only under Windows.
1959 * net_db.c: Do not declare errno under Windows.
1961 * iselect.h, inet_aton.c: Include socket library headers under
1964 * guile.c (inner_main): Under Windows, initialize socket library
1965 and initialize gdb_interface data structures.
1967 * gdb_interface.h: Under Windows, gdb_interface cannot be
1968 initialized statically. Initialize at runtime instead.
1970 * fports.c (write_all): ssize_t -> size_t.
1971 (fport_print): Conditionalize call to ttyname().
1972 (getflags): New function, compiled only under Windows.
1974 * filesys.c: Conditionalize inclusion of <pwd.h>. Conditionalize
1975 primitives chown, link, fcntl.
1976 (scm_basename, scm_dirname): Under Windows, handle \ as well as /
1979 * backtrace.c: Include <io.h> under Windows.
1981 * async.h (ASYNCH, SCM_ASYNC_H): Rename <foo>H to SCM_<foo>_H.
1983 * _scm.h: Added preprocessor conditional for __MINGW32__ for errno
1986 2001-06-27 Keisuke Nishida <kxn30@po.cwru.edu>
1988 * eval.c (scm_call_0, scm_call_1, scm_call_2, scm_call_3,
1989 scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): New functions.
1990 * eval.h (scm_call_0, scm_call_1, scm_call_2, scm_call_3,
1991 scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): Declared.
1992 * async.c (scm_run_asyncs), coop-threads.c (scheme_body_bootstrip,
1993 scheme_handler_bootstrip), debug.c (with_traps_inner), dynwind.c
1994 (scm_dynamic_wind, scm_dowinds), environments.c
1995 (import_environment_conflict), eval.c (scm_macroexp, scm_force,
1996 scm_primitive_eval_x, scm_primitive_eval), fluids.c (apply_thunk),
1997 goops.c (GETVAR, purgatory, make_class_from_template,
1998 scm_ensure_accessor), hashtab.c (scm_ihashx, scm_sloppy_assx,
1999 scm_delx_x, fold_proc), hooks.c (scm_c_run_hook), load.c
2000 (scm_primitive_load), modules.c (scm_resolve_module,
2001 scm_c_define_module, scm_c_use_module, scm_c_export,
2002 module_variable, scm_eval_closure_lookup, scm_sym2var,
2003 scm_make_module, scm_ensure_user_module, scm_load_scheme_module),
2004 ports.c (scm_port_for_each), print.c (scm_printer_apply),
2005 properties.c (scm_primitive_property_ref), ramap.c (ramap,
2006 ramap_cxr, rafe, scm_array_index_map_x, read.c (scm_lreadr),
2007 scmsigs.c (sys_deliver_signals), sort.c (applyless), strports.c
2008 (scm_object_to_string, scm_call_with_output_string,
2009 scm_call_with_input_string), throw.c (scm_body_thunk,
2010 scm_handle_by_proc, hbpca_body), unif.c (scm_make_shared_array,
2011 scm_make_shared_array), vports.c (sf_flush, sf_write,
2012 sf_fill_input, sf_close): Use one of the above functions.
2013 * goops.c, hashtab.c, scmsigs.c, sort.c: #include "libguile/root.h".
2015 2001-06-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
2017 * filesys.c (scm_close), ports.c (scm_close_port,
2018 scm_port_closed_p), strop.c (scm_string_null_p): Use SCM_BOOL
2019 instead of SCM_NEGATE_BOOL.
2021 * filesys.c (scm_stat): Clean up type dispatch.
2023 * filesys.c (scm_stat), ports.c (scm_input_port_p,
2024 scm_output_port_p): Get rid of redundant IM type check.
2026 * filesys.c (scm_readdir, scm_getcwd, scm_readlink), gh_data.c
2027 (gh_str2scm), load.c (scm_primitive_load, scm_internal_parse_path,
2028 scm_search_path), net_db.c (scm_gethost, scm_getnet, scm_getproto,
2029 scm_return_entry), numbers.c (scm_number_to_string), objects.c
2030 (scm_make_subclass_object), ports.c (scm_port_mode), read.c
2031 (scm_lreadr), simpos.c (scm_getenv), socket.c (scm_inet_ntoa,
2032 scm_addr_vector), stime.c (scm_strftime), strings.c
2033 (scm_makfromstrs, scm_makfrom0str, scm_substring), strings.h
2034 (SCM_STRING_COERCE_0TERMINATION_X), strop.c (string_copy,
2035 scm_string_split), strports.c (scm_strport_to_string), symbols.c
2036 (scm_symbol_to_string), vports.c (sf_write): Use scm_mem2string
2037 instead of scm_makfromstr.
2039 * net_db.c (scm_sethost, scm_setnet, scm_setproto, scm_setserv),
2040 ports.c (scm_close_all_ports_except), read.c (scm_lreadr,
2041 scm_read_hash_extend), stime.c (scm_strftime), strings.c
2042 (scm_string_append, scm_string), strings.h (SCM_STRINGP,
2043 SCM_STRING_COERCE_0TERMINATION_X, SCM_RWSTRINGP), strop.c
2044 (string_capitalize_x): Prefer explicit type check over SCM_N?IMP,
2045 !SCM_<pred> over SCM_N<pred>.
2047 * strings.[ch] (scm_makfromstr): Deprecated.
2049 (scm_mem2string): New function, replaces scm_makfromstr.
2051 * strings.c (scm_substring), strop.c (string_copy,
2052 scm_string_split), strports.c (scm_strport_to_string), symbols.c
2053 (scm_symbol_to_string): Fix gc problem.
2055 * strings.h (STRINGSH, SCM_STRINGS_H): Rename <foo>H to
2058 * validate.h (SCM_VALIDATE_SUBSTRING_SPEC_COPY): Eliminate
2059 warning about comparing signed and unsigned values. This fix is
2060 not optimal, since it won't work reliably if sizeof (c_start) >
2061 sizeof (size_t) or sizeof (c_end) > sizeof (size_t). A better
2062 solution is to define this macro as an inline function, thus
2063 allowing to specifiy the types of c_start and c_end.
2065 2001-06-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
2067 * debug.h (SCM_DEBUGOBJ_FRAME): Deliver result as a
2070 * debug.h (DEBUGH, SCM_DEBUG_H), stacks.h (STACKSH, SCM_STACKSH):
2071 Rename <foo>H to SCM_<foo>_H.
2073 * stacks.c (NEXT_FRAME, narrow_stack): Prefer explicit type check
2074 over SCM_N?IMP, !SCM_<pred> over SCM_N<pred>.
2076 (narrow_stack): Make i unsigned. Don't use side-effecting
2077 operations in conditions.
2079 (narrow_stack, scm_make_stack, scm_stack_id,
2080 scm_last_stack_frame): Get rid of redundant SCM_N?IMP checks.
2082 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Clean up
2083 type dispatch. No need to cast result of SCM_DEBUGOBJ_FRAME any
2086 (scm_stack_ref, scm_frame_previous, scm_frame_next): Fix
2089 (scm_last_stack_frame): Remove bogus `;´.
2091 * stacks.h (SCM_FRAMEP): Fix type check.
2093 2001-06-25 Michael Livshin <mlivshin@bigfoot.com>
2095 * Makefile.am (MAINTAINERCLEANFILES): be sure to remove
2096 c-tokenize.c when doing maintainer-clean.
2098 * snarf.h (SCM_SNARF_DOCS): change the "grammar" slightly.
2100 * guile-snarf-docs.in, guile-snarf-docs-texi.in: rewrite &
2103 * eval.c: all hash signs are in column 0.
2105 * Makefile.am (guile_filter_doc_snarfage): build using
2106 c-tokenize.c, not filter-doc-snarfage.c.
2107 rearrange snarfing dependencies a bit.
2109 * c-tokenize.lex: new file.
2111 2001-06-25 Marius Vollmer <mvo@zagadka.ping.de>
2113 * srcprop.h, srcprop.c (scm_srcprops_to_plist): Renamed from
2114 scm_t_srcpropso_plist. See the big type renaming.
2115 * coop-defs.h (scm_mutex_trylock, scm_cond_timedwait): Likewise.
2116 Thanks to Seth Alves!
2118 * numbers.c (SIZE_MAX, PTRDIFF_MIN, PTRDIFF_MAX): Only define when
2119 they aren't defined already.
2121 2001-06-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
2123 * backtrace.c (display_backtrace_body): Use SCM_VALIDATE_STACK
2124 and SCM_VALIDATE_OPOUTPORT instead of SCM_ASSERT. Fix signedness
2127 * backtrace.c (display_expression, scm_set_print_params_x,
2128 display_application, display_frame, scm_backtrace), numbers.c
2129 (scm_istring2number), objects.c (scm_class_of,
2130 scm_mcache_lookup_cmethod, scm_mcache_compute_cmethod): Prefer
2131 explicit type check over SCM_N?IMP, !SCM_<pred> over SCM_N<pred>.
2133 * fluids.c (scm_fluid_ref, scm_fluid_set_x): Fluid numbers are
2136 * numbers.c (scm_i_mkbig): Remove unnecessary casts, remove
2137 unnecessary SCM_DEFER_INTS, SCM_ALLOW_INTS.
2139 * objects.c (scm_class_of): Type fix.
2141 (scm_mcache_lookup_cmethod): Improved comment, simplified,
2144 * pairs.h (scm_error_pair_access): The function can return if
2147 2001-06-20 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
2149 * init.c (scm_init_guile_1): Removed initialization of tag.c.
2151 * gdbint.c, init.c: Removed inclusion of tag.h.
2153 * tag.h, tag.c: Removed files.
2155 * Makefile.am: Removed tag.{h,c,doc,x} in various places.
2157 2001-06-20 Gary Houston <ghouston@arglist.com>
2159 * deprecation.c, extensions.c, rw.c: include string.h.
2161 2001-06-19 Gary Houston <ghouston@arglist.com>
2163 * filter-doc-snarfage.c (process): added ungetc in
2164 MULTILINE_COOKIE case since otherwise it fails when there's no
2165 space between the '(' and the quote of the following string
2168 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
2170 Throughout: replace "scm_*_t" with "scm_t_*", except "scm_lisp_t".
2172 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
2174 * unif.h (SCM_ARRAY_NDIM): Shift then cast so that no sign
2175 extension takes place.
2176 * strings.h (SCM_STRING_LENGTH): Likewise.
2177 (SCM_STRING_MAX_LENGTH): Use unsigned numbers.
2179 * __scm.h (ptrdiff_t): Typedef to long when configure didn't find
2182 * tags.h: Include <stdint.h> when we have it.
2183 (scm_bits_t): Changed to be a unsigned type. Use uintptr_t when
2184 available. Else use "unsigned long".
2185 (scm_signed_bits_t): New.
2187 * numbers.h (SCM_SRS): Cast shiftee to scm_signed_bits_t.
2188 (SCM_INUM): Cast result to scm_signed_bits_t.
2190 2001-06-13 Thien-Thi Nguyen <ttn@revel.glug.org>
2192 * mkstemp.c: Update path to #include file scmconfig.h.
2193 Thanks to Golubev I. N.
2195 2001-06-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
2197 * struct.h (SCM_STRUCT_VTABLE_FLAGS): New macro.
2199 * goops.h (SCM_NUMBER_OF_SLOTS): Removed bogus `\´ at the end of
2200 the macro definition.
2202 (SCM_CLASSP, SCM_INSTANCEP, SCM_PUREGENERICP, SCM_ACCESSORP,
2203 SCM_SIMPLEMETHODP, SCM_FASTMETHODP): Use SCM_STRUCT_VTABLE_FLAGS
2204 instead of SCM_INST_TYPE.
2206 (SCM_ACCESSORP, SCM_SIMPLEMETHODP, SCM_FASTMETHODP): Make sure
2207 the object is a struct before accessing its struct flags.
2209 (SCM_INST_TYPE, SCM_SIMPLEMETHODP, SCM_FASTMETHODP): Deprecated.
2211 2001-06-10 Gary Houston <ghouston@arglist.com>
2213 * rdelim.c (scm_init_rdelim_builtins): don't try to activate the
2214 (ice-9 rdelim) module in (guile) and (guile-user). it didn't
2215 work reliably anymore. try it from boot-9.scm instead.
2217 2001-06-09 Marius Vollmer <mvo@zagadka.ping.de>
2219 * ports.c (scm_lfwrite): Maintain columnd and row count in port.
2220 Thanks to Matthias Köppe!
2222 2001-06-08 Michael Livshin <mlivshin@bigfoot.com>
2224 * snarf.h, filter-doc-snarfage.c: more changes to cope with
2225 space-happy C preprocessors.
2227 * filter-doc-snarfage.c, guile-snarf.in: try to cope with spaces
2228 inside cookies. thanks to Matthias Köppe!
2230 2001-06-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
2232 * keywords.c (keyword_print): Don't use SCM_C[AD]R to access
2233 keywords. Fix gc protection.
2235 * objects.c (scm_mcache_lookup_cmethod): Don't use side effecting
2236 operations in macro calls.
2238 * pairs.c (scm_error_pair_access): Avoid recursion.
2240 Thanks to Matthias Koeppe for reporting the bugs that correspond
2241 to the following set of patches.
2243 * unif.c (scm_bit_set_star_x, scm_bit_invert_x), vectors.h
2244 (SCM_BITVEC_REF, SCM_BITVEC_SET, SCM_BITVEC_CLR): Obtain the
2245 bitvector base address using SCM_BITVECTOR_BASE.
2247 * unif.h (SCM_BITVECTOR_BASE): Return the base address as an
2250 2001-06-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
2252 * goops.c (SCM_CLASS_REDEF): Removed.
2254 * vectors.h (VECTORSH, SCM_VECTORS_H): Renamed <foo>H to
2257 Thanks to Matthias Koeppe for reporting the bugs that correspond
2258 to the following set of patches.
2260 * goops.c (scm_sys_prep_layout_x, scm_basic_basic_make_class,
2261 create_basic_classes, scm_sys_fast_slot_set_x, set_slot_value,
2262 scm_sys_allocate_instance, clear_method_cache,
2263 scm_sys_invalidate_method_cache_x, scm_make,
2264 create_standard_classes, scm_make_port_classes, scm_make_class,
2265 scm_add_slot): Use SCM_SET_SLOT to set slot values.
2267 (prep_hashsets): Use SCM_SET_HASHSET to set class hash values.
2269 * goops.h (SCM_SET_SLOT, SCM_SET_HASHSET): New macros.
2271 * ramap.c (BINARY_ELTS_CODE, BINARY_PAIR_ELTS_CODE,
2272 UNARY_ELTS_CODE): Remove bogus break statement.
2274 * vectors.h (SCM_BITVEC_REF, SCM_BITVEC_SET, SCM_BITVEC_CLR):
2275 Don't access bit vectors elements as SCM objects.
2277 * weaks.c (scm_make_weak_vector, scm_make_weak_key_hash_table,
2278 scm_make_weak_value_hash_table, scm_make_doubly_weak_hash_table):
2279 Don't assign to an unpacked value.
2281 2001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
2283 * __scm.h (SCM_NORETURN): Moved here from error.h.
2285 (SCM_UNUSED): New macro.
2287 (SCM_DEBUG_PAIR_ACCESSES): New macro.
2289 * backtrace.c (display_error_handler), continuations.c
2290 (continuation_print), debug.c (debugobj_print), dynwind.c
2291 (guards_print), environments.c (observer_print,
2292 core_environments_finalize, leaf_environment_cell,
2293 leaf_environment_print, eval_environment_print,
2294 eval_environment_observer, import_environment_define,
2295 import_environment_undefine, import_environment_print,
2296 import_environment_observer, export_environment_define,
2297 export_environment_undefine, export_environment_print,
2298 export_environment_observer), eval.c (scm_m_quote, scm_m_begin,
2299 scm_m_if, scm_m_set_x, scm_m_and, scm_m_or, scm_m_case,
2300 scm_m_cond, scm_m_lambda, scm_m_letstar, scm_m_do, scm_m_delay,
2301 scm_m_letrec1, scm_m_apply, scm_m_cont, scm_m_nil_cond,
2302 scm_m_nil_ify, scm_m_t_ify, scm_m_0_cond, scm_m_0_ify,
2303 scm_m_1_ify, scm_m_atfop, scm_m_at_call_with_values), evalext.c
2304 (scm_m_generalized_set_x), fluids.c (fluid_print), fports.c
2305 (fport_print), gc.c (gc_start_stats, scm_remember_upto_here_1,
2306 scm_remember_upto_here_2, scm_remember_upto_here, mark_gc_async),
2307 gh_init.c (gh_standard_handler), goops.c (get_slot_value,
2308 set_slot_value, test_slot_existence, scm_change_object_class,
2309 scm_m_atslot_ref, scm_m_atslot_set_x, make_struct_class,
2310 default_setter), guardians.c (guardian_print, guardian_gc_init,
2311 guardian_zombify, whine_about_self_centered_zombies), guile.c
2312 (inner_main), init.c (stream_handler), keywords.c (keyword_print),
2313 mallocs.c (malloc_print), numbers.c (scm_print_real,
2314 scm_print_complex, scm_bigprint), ports.c (flush_port_default,
2315 end_input_default, scm_port_print, fill_input_void_port,
2316 write_void_port), root.c (root_print), smob.c (scm_mark0,
2317 scm_free0, scm_smob_print, scm_smob_apply_1_error,
2318 scm_smob_apply_2_error, scm_smob_apply_3_error, free_print),
2319 stime.c (restorezone), strings.c (scm_makfromstr), struct.c
2320 (scm_struct_free_0, scm_struct_free_standard,
2321 scm_struct_free_entity, scm_struct_gc_init, scm_free_structs),
2322 throw.c (jmpbuffer_print, lazy_catch_print, ss_handler,
2323 scm_handle_by_throw, scm_ithrow), weaks.c
2324 (scm_weak_vector_gc_init, scm_mark_weak_vector_spines,
2325 scm_scan_weak_vectors), ramap.c (scm_array_fill_int), filesys.c
2326 (scm_dir_print): Mark unused parameters with SCM_UNUSED.
2328 * error.h (SCM_NORETURN): Moved to __scm.h.
2330 * error.h (ERRORH, SCM_ERROR_H), pairs.h (PAIRSH, SCM_PAIRS_H):
2331 Renamed <foo>H to SCM_<foo>_H.
2333 * gc.c (debug_cells_gc_interval): New static variable.
2335 (scm_assert_cell_valid): If selected by the user, perform
2336 additional garbage collections.
2338 (scm_set_debug_cell_accesses_x): Extended to let the user specify
2339 if additional garbage collections are desired.
2341 (mark_gc_async): If additional garbage collections are selected
2342 by the user, don't call the after-gc-hook. Instead require the
2343 user to run the hook manually.
2345 * pairs.c (scm_error_pair_access): New function. Only compiled
2346 if SCM_DEBUG_PAIR_ACCESSES is set to 1.
2348 * pairs.h (SCM_VALIDATE_PAIR): New macro.
2350 (SCM_CAR, SCM_CDR, SCM_SETCAR, SCM_SETCDR): If
2351 SCM_DEBUG_PAIR_ACCESSES is set to 1, make sure that the argument
2352 is a real pair object. (Glocs are also accepted, but that may
2353 change.) If not, abort with an error message.
2355 2001-06-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
2357 * eval.c (SCM_VALIDATE_NON_EMPTY_COMBINATION): New macro.
2359 (SCM_CEVAL, SCM_APPLY): Replace calls to SCM_EVALIM2 with calls
2360 to SCM_VALIDATE_NON_EMPTY_COMBINATION.
2362 2001-06-05 Marius Vollmer <mvo@zagadka.ping.de>
2364 * extensions.c (scm_c_register_extension): Allow NULL as library
2366 (load_extension): Ignore NULL library names when comparing.
2368 * hash.c (scm_hasher): Use SCM_UNPACK in the case labels so that
2369 non-pointers are being compared. Thanks to Alexander Klimov!
2371 2001-06-04 Gary Houston <ghouston@arglist.com>
2373 * rw.c (scm_write_string_partial): new procedure implementing
2374 write-string/partial in (ice-9 rw).
2375 * rw.h: declare scm_write_string_partial.
2377 2001-06-04 Marius Vollmer <mvo@zagadka.ping.de>
2379 * keywords.c (keyword_print): Substract 1 from length of symbol
2380 name, accounting for the silly dash.
2382 * dynl.c (scm_registered_modules, scm_clear_registered_modules):
2383 Do not emit deprecation warning.
2385 Added exception notice to all files.
2387 * dynl.c: Include "deprecation.h".
2389 2001-06-03 Marius Vollmer <mvo@zagadka.ping.de>
2391 * dynl.c (scm_register_module_xxx, scm_registered_modules,
2392 scm_clear_registered_modules): Deprecated.
2394 2001-06-02 Rob Browning <rlb@cs.utexas.edu>
2396 * .cvsignore: add guile_filter_doc_snarfage guile-snarf-docs
2397 guile-snarf-docs-texi.
2399 * fports.c: HAVE_ST_BLKSIZE changed to
2400 HAVE_STRUCT_STAT_ST_BLKSIZE.
2401 (scm_fport_buffer_add): HAVE_ST_BLKSIZE changed to
2402 HAVE_STRUCT_STAT_ST_BLKSIZE.
2404 * filesys.c (scm_stat2scm): HAVE_ST_RDEV changed to
2405 HAVE_STRUCT_STAT_ST_RDEV.
2406 (scm_stat2scm): HAVE_ST_BLKSIZE changed to
2407 HAVE_STRUCT_STAT_ST_BLKSIZE.
2408 (scm_stat2scm): HAVE_ST_BLOCKS changed to
2409 HAVE_STRUCT_STAT_ST_BLOCKS.
2411 2001-06-02 Marius Vollmer <mvo@zagadka.ping.de>
2413 * strports.c (scm_eval_string): Use scm_primitive_eval_x instead
2414 of scm_eval_x to allow module changes between the forms in the
2415 string. Set/restore module using scm_c_call_with_current_module.
2417 * mkstemp.c: New file, slightly modified from libiberties
2420 2001-05-31 Michael Livshin <mlivshin@bigfoot.com>
2422 * guile-snarf-docs.in, guile-snarf-docs-texi.in,
2423 filter-doc-snarfage.c: new files.
2425 * Makefile.am: add stuff to [build,] use and distribute
2426 guile-snarf-docs, guile-snarf-docs-texi, guile_filter_doc_snarfage.
2428 * guile-snarf.in: grok the new snarf output.
2430 * snarf.h: make the output both texttools- and `read'-friendly.
2432 * guile-doc-snarf.in: reimplement in terms of guile-snarf and
2433 guile-snarf-docs. (should also deprecate, I guess. maybe not).
2435 2001-05-31 Marius Vollmer <mvo@zagadka.ping.de>
2437 * print.c (scm_simple_format): Support "~~" and "~%". Signal
2438 error for unsupported format controls and for superflous
2439 arguments. Thanks to Daniel Skarda!
2441 * print.h, print.c (scm_print_symbol_name): Factored out of
2443 (scm_iprin1): Call it.
2445 * keywords.c (keyword_print): Use scm_print_symbol_name so that
2446 weird names are printed correctly.
2448 * print.c (scm_print_symbol_name): Symbols whose name starts with
2449 `#' or `:' or ends with `:' are considered weird.
2451 2001-05-30 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
2453 * numbers.c (scm_difference, scm_divide): Clarified comments for -
2456 2001-05-29 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
2458 * debug.h: Removed prototype for scm_eval_string.
2460 2001-05-28 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
2462 * symbols.c (scm_gensym): Fix buffer overrun (try `(gensym
2463 (make-string 2000 #\!))' in an older version).
2465 Change strncpy to memcpy to allow embedded NUL characters in
2468 2001-05-28 Michael Livshin <mlivshin@bigfoot.com>
2470 * hooks.c (scm_create_hook): deprecated.
2471 (make_hook): deleted.
2472 (scm_make_hook): all the hook creation code is now here.
2474 * gc.c (scm_init_gc): don't call `scm_create_hook'. instead make
2475 a hook, make it permanent, and do a `scm_c_define' on it.
2477 * strop.c (s_scm_string_capitalize_x): fix docstring quoting.
2479 * socket.c (s_scm_inet_pton): fix docstring quoting.
2480 (s_scm_inet_ntop): ditto.
2482 * num2integral.i.c (INTEGRAL2NUM): cast to fix a warning.
2484 * hashtab.c (scm_internal_hash_fold): fix argument position in
2487 * environments.c (s_scm_import_environment_set_imports_x): fix
2488 argument position in SCM_ASSERT.
2490 * debug.c (s_scm_make_gloc): fix SCM packing/unpacking.
2491 (s_scm_make_iloc): ditto.
2493 2001-05-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
2495 * __scm.h (SCM_DEBUG_TYPING_STRICTNESS): Make 1 the default.
2497 * eval.c (promise_print): Read the promise's value as an object.
2499 (SCM_CEVAL): Don't perform side-effecting operations in macro
2502 * eval.h (SCM_EVALIM2): Fix the typing strictness of the
2503 conditional expression.
2505 * gc.c (scm_master_freelist, scm_master_freelist2): Added missing
2508 * gh_data.c (gh_set_substr): Removed redundant unsigned >= 0
2509 text, removed redundant computation of effective_length and fixed
2512 * goops.c (test_slot_existence): Use SCM_EQ_P to compare SCM
2515 (wrap_init): Don't use SCM_C[AD]R for non pairs.
2517 (hell): Make it a scm_bits_t pointer rather than a SCM pointer.
2519 * goops.c (scm_sys_modify_class), strports.c (st_resize_port),
2520 struct.h (SCM_SET_STRUCT_PRINTER): Store unpacked values.
2522 * goops.h (SCM_ACCESSORS_OF, SCM_SLOT): Return a SCM value.
2524 * goops.h (GOOPSH, SCM_GOOPS_H), modules.h (MODULESH,
2525 SCM_MODULES_H), objects.h (OBJECTSH, SCM_OBJECTS_H), struct.h
2526 (STRUCTH, SCM_STRUCT_H), symbols.h (SYMBOLSH, SCM_SYMBOLS_H),
2527 __scm.h (__SCMH, SCM___SCM_H): Change <foo>H to SCM_<foo>_H.
2529 * modules.[ch] (scm_module_tag): Make it a scm_bits_t value.
2531 * objects.h (SCM_SET_CLASS_INSTANCE_SIZE): Fixed typing.
2533 * ramap.c (ramap_rp): Removed bogus `;´.
2535 * sort.c (scm_restricted_vector_sort_x): Fixed signedness
2538 * symbols.h (SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS, SCM_SYMBOL_FUNC,
2539 SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS):
2540 Read SCM objects rather than scm_bits_t values.
2542 * tags.h (SCM_VOIDP_TEST): Removed.
2544 (SCM_DEBUG_TYPING_STRICTNESS): Now takes values 0, 1, 2. The
2545 value of 2 now corresponds to the former 1, the current 1
2546 corresponds to the former situation that SCM_VOIDP_TEST was
2549 (SCM): Now defined as typedef struct scm_unused_struct * SCM;
2550 If this appears to be not ANSI compliant, we will change it to
2551 typedef struct scm_unused_struct { } * SCM;
2552 Thanks to Han-Wen Nienhuys for the suggestion.
2554 * unif.c (scm_array_set_x): Fix typing problem, and use
2555 SCM_UVECTOR_BASE instead of SCM_VELTS or SCM_CELL_WORD_1 when
2556 dealing with uniform vectors.
2558 2001-05-27 Michael Livshin <mlivshin@bigfoot.com>
2560 * gc.c (scm_init_storage): init `scm_gc_registered_roots'.
2561 (scm_igc): mark from them, too (precisely, not conservatively!).
2563 * root.h (scm_gc_registered_roots): new object in
2566 * hooks.c (scm_create_hook): call `scm_gc_protect_object' instead
2567 `scm_protect_object'. shouldn't call it at all, though, it seems.
2569 * gc.c (scm_[un]protect_object): deprecated.
2570 (scm_gc_[un]protect_object): new names for scm_[un]protect_object.
2571 (scm_gc_[un]register_root[s]): new.
2573 * gc.h: add prototypes for scm_gc_[un]protect_object,
2574 scm_gc_[un]register_root[s].
2576 2001-05-26 Michael Livshin <mlivshin@bigfoot.com>
2578 revert the controversial part of the 2001-05-24 changes.
2580 2001-05-25 Marius Vollmer <mvo@zagadka.ping.de>
2582 * modules.c (scm_env_module): Exported to Scheme.
2584 * eval.c (scm_debug_opts): New option `show-file-name'.
2586 * debug.h (SCM_SHOW_FILE_NAME): New.
2588 * backtrace.c: Include "libguile/filesys.h".
2589 (sym_base, display_backtrace_get_file_line,
2590 display_backtrace_file, display_backtrace_file_and_line): New.
2591 (display_frame): Call display_backtrace_file_and_line if that is
2593 (display_backtrace_body): Call scm_display_backtrace_file if
2596 * debug.h (scm_lookup_cstr, scm_lookup_soft, scm_evstr):
2597 Prototypes removed since there's no definition for these
2600 2001-05-24 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
2602 * unif.c (scm_make_ra, array_free), unif.h (SCM_ARRAY_DIMS):
2603 Changed use of scm_array->scm_array_t and
2604 scm_array_dim->scm_array_dim_t to enable build with
2605 --disable-deprecated.
2607 2001-05-24 Michael Livshin <mlivshin@bigfoot.com>
2609 The purpose of this set of changes is to regularize Guile's usage
2610 of ANSI C integral types, with the following ideas in mind:
2612 - SCM does not nesessarily have to be long.
2613 - long is not nesessarily enough to store pointers.
2614 - long is not nesessarily the same size as int.
2616 The changes are incomplete and possibly buggy. Please test on
2620 (SCM_NUM2{SIZE,PTRDIFF,SHORT,USHORT,BITS,UBITS,INT,UINT}[_DEF]):
2623 * unif.h: type renaming:
2624 scm_array -> scm_array_t
2625 scm_array_dim -> scm_array_dim_t
2626 the old names are deprecated, all in-Guile uses changed.
2628 * tags.h (scm_ubits_t): new typedef, representing unsigned
2631 * stacks.h: type renaming:
2632 scm_info_frame -> scm_info_frame_t
2633 scm_stack -> scm_stack_t
2634 the old names are deprecated, all in-Guile uses changed.
2636 * srcprop.h: type renaming:
2637 scm_srcprops -> scm_srcprops_t
2638 scm_srcprops_chunk -> scm_srcprops_chunk_t
2639 the old names are deprecated, all in-Guile uses changed.
2641 * gsubr.c, procs.c, print.c, ports.c, read.c, rdelim.c, ramap.c,
2642 rw.c, smob.c, sort.c, srcprop.c, stacks.c, strings.c, strop.c,
2643 strorder.c, strports.c, struct.c, symbols.c, unif.c, values.c,
2644 vectors.c, vports.c, weaks.c:
2645 various int/size_t -> size_t/scm_bits_t changes.
2647 * random.h: type renaming:
2648 scm_rstate -> scm_rstate_t
2649 scm_rng -> scm_rng_t
2650 scm_i_rstate -> scm_i_rstate_t
2651 the old names are deprecated, all in-Guile uses changed.
2653 * procs.h: type renaming:
2654 scm_subr_entry -> scm_subr_entry_t
2655 the old name is deprecated, all in-Guile uses changed.
2657 * options.h (scm_option_t.val): unsigned long -> scm_bits_t.
2659 scm_option -> scm_option_t
2660 the old name is deprecated, all in-Guile uses changed.
2662 * objects.c: various long -> scm_bits_t changes.
2663 (scm_i_make_class_object): flags: unsigned long -> scm_ubits_t
2665 * numbers.h (SCM_FIXNUM_BIT): deprecated, renamed to
2668 * num2integral.i.c: new file, multiply included by numbers.c, used
2669 to "templatize" the various integral <-> num conversion routines.
2671 * numbers.c (scm_mkbig, scm_big2num, scm_adjbig, scm_normbig,
2672 scm_copybig, scm_2ulong2big, scm_dbl2big, scm_big2dbl):
2674 (scm_i_mkbig, scm_i_big2inum, scm_i_adjbig, scm_i_normbig,
2675 scm_i_copybig, scm_i_short2big, scm_i_ushort2big, scm_i_int2big,
2676 scm_i_uint2big, scm_i_long2big, scm_i_ulong2big, scm_i_bits2big,
2677 scm_i_ubits2big, scm_i_size2big, scm_i_ptrdiff2big,
2678 scm_i_long_long2big, scm_i_ulong_long2big, scm_i_dbl2big,
2679 scm_i_big2dbl, scm_short2num, scm_ushort2num, scm_int2num,
2680 scm_uint2num, scm_bits2num, scm_ubits2num, scm_size2num,
2681 scm_ptrdiff2num, scm_num2short, scm_num2ushort, scm_num2int,
2682 scm_num2uint, scm_num2bits, scm_num2ubits, scm_num2ptrdiff,
2683 scm_num2size): new functions.
2685 * modules.c (scm_module_reverse_lookup): i, n: int -> scm_bits_t.
2687 * load.c: change int -> size_t in various places (where the
2688 variable is used to store a string length).
2689 (search-path): call scm_done_free, not scm_done_malloc.
2691 * list.c (scm_ilength): return a scm_bits_t, not long.
2692 some other {int,long} -> scm_bits_t changes.
2694 * hashtab.c: various [u]int -> scm_bits_t changes.
2695 scm_ihashx_closure -> scm_ihashx_closure_t (and made a typedef).
2696 (scm_ihashx): n: uint -> scm_bits_t
2697 use scm_bits2num instead of scm_ulong2num.
2699 * gsubr.c: various int -> scm_bits_t changes.
2701 * goops.[hc]: various {int,long} -> scm_bits_t changes.
2703 * gh_data.c (gh_num2int): no loss of precision any more.
2705 * gh.h (gh_str2scm): len: int -> size_t
2706 (gh_{get,set}_substr): start: int -> scm_bits_t,
2708 (gh_<num>2scm): n: int -> scm_bits_t
2709 (gh_*vector_length): return scm_[u]size_t, not unsigned long.
2710 (gh_length): return scm_bits_t, not unsigned long.
2712 * gc.[hc]: various small changes relating to many things stopping
2713 being long and starting being scm_[u]bits_t instead.
2714 scm_mallocated should no longer wrap around.
2716 * fports.h: type renaming:
2717 scm_fport -> scm_fport_t
2718 the old name is deprecated, all in-Guile uses changed.
2720 * fports.c (fport_fill_input): count: int -> scm_bits_t
2721 (fport_flush): init_size, remaining, count: int -> scm_bits_t
2723 * debug.h (scm_lookup_cstr, scm_lookup_soft, scm_evstr): removed
2724 those prototypes, as the functions they prototype don't exist.
2726 * fports.c (default_buffer_size): int -> size_t
2727 (scm_fport_buffer_add): read_size, write_size: int -> scm_bits_t
2728 default_size: int -> size_t
2729 (scm_setvbuf): csize: int -> scm_bits_t
2731 * fluids.c (n_fluids): int -> scm_bits_t
2732 (grow_fluids): old_length, i: int -> scm_bits_t
2733 (next_fluid_num, scm_fluid_ref, scm_fluid_set_x): n: int ->
2735 (scm_c_with_fluids): flen, vlen: int -> scm_bits_t
2737 * filesys.c (s_scm_open_fdes): changed calls to SCM_NUM2LONG to
2738 the new and shiny SCM_NUM2INT.
2740 * extensions.c: extension -> extension_t (and made a typedef).
2742 * eval.h (SCM_IFRAME): cast to scm_bits_t, not int. just so
2743 there are no nasty surprises if/when the various deeply magic tag
2744 bits move somewhere else.
2746 * eval.c: changed the locals used to store results of SCM_IFRAME,
2747 scm_ilength and such to be of type scm_bits_t (and not int/long).
2748 (iqq): depth, edepth: int -> scm_bits_t
2749 (scm_eval_stack): int -> scm_bits_t
2750 (SCM_CEVAL): various vars are not scm_bits_t instead of int.
2751 (check_map_args, scm_map, scm_for_each): len: long -> scm_bits_t
2752 i: int -> scm_bits_t
2754 * environments.c: changed the many calls to scm_ulong2num to
2756 (import_environment_fold): proc_as_ul: ulong -> scm_ubits_t
2758 * dynwind.c (scm_dowinds): delta: long -> scm_bits_t
2760 * debug.h: type renaming:
2761 scm_debug_info -> scm_debug_info_t
2762 scm_debug_frame -> scm_debug_frame_t
2763 the old names are deprecated, all in-Guile uses changed.
2764 (scm_debug_eframe_size): int -> scm_bits_t
2766 * debug.c (scm_init_debug): use scm_c_define instead of the
2767 deprecated scm_define.
2769 * continuations.h: type renaming:
2770 scm_contregs -> scm_contregs_t
2771 the old name is deprecated, all in-Guile uses changed.
2772 (scm_contregs_t.num_stack_items): size_t -> scm_bits_t
2773 (scm_contregs_t.num_stack_items): ulong -> scm_ubits_t
2775 * continuations.c (scm_make_continuation): change the type of
2776 stack_size from long to scm_bits_t.
2778 * ports.h: type renaming:
2779 scm_port_rw_active -> scm_port_rw_active_t (and made a typedef)
2780 scm_port -> scm_port_t
2781 scm_ptob_descriptor -> scm_ptob_descriptor_t
2782 the old names are deprecated, all in-Guile uses changed.
2783 (scm_port_t.entry): int -> scm_bits_t.
2784 (scm_port_t.line_number): int -> long.
2785 (scm_port_t.putback_buf_size): int -> size_t.
2787 * __scm.h (long_long, ulong_long): deprecated (they pollute the
2788 global namespace and have little value beside that).
2789 (SCM_BITS_LENGTH): new, is the bit size of scm_bits_t (i.e. of an
2791 (ifdef spaghetti): include sys/types.h and sys/stdtypes.h, if they
2792 exist (for size_t & ptrdiff_t).
2793 (scm_sizet): deprecated.
2795 * Makefile.am (noinst_HEADERS): add num2integral.i.c
2797 2001-05-23 Marius Vollmer <mvo@zagadka.ping.de>
2799 * snarf.h (SCM_CONST_LONG): Use SCM_VCELL_INIT instead of
2800 SCM_VARIABLE_INIT since that it what it used to be.
2802 * deprecation.c (scm_include_deprecated_features): Make docstring
2803 ANSIsh. Thanks to Matthias Köppe!
2805 2001-05-21 Marius Vollmer <mvo@zagadka.ping.de>
2807 * symbols.c (scm_mem2symbol): Re-introduce indirect cell. It is
2808 needed for weak-key hashtables.
2810 * procs.c (scm_make_subr_with_generic): Add missing last argument
2811 in call to scm_c_define_gsubr_with_generic. Thanks to Ariel Rios.
2813 * eval.c: Use SCM_EQ_P instead of `==' or `!=' in certain
2814 places. (scm_c_improper_memq): Return 1 instead of SCM_BOOL_T.
2816 * eval.h (SCM_EVALIM2): Use SCM_EQ_P instead of `=='.
2818 2001-05-20 Marius Vollmer <mvo@zagadka.ping.de>
2820 * symbols.c (scm_mem2symbol): Call `scm_must_strndup' instead of
2821 `duplicate_string'. Do not use an indirect cell, store symbol
2822 directly in collision list of hash table.
2823 (duplicate_string): Removed.
2825 * init.c (scm_init_guile_1): Call scm_init_extensions.
2827 * Makefile.am: Add "extensions.c" and related files in all the
2830 * extensions.h, extension.c: New files.
2832 * gc.h, gc.c (scm_must_strdup, scm_must_strndup): New.
2834 * modules.h (scm_system_module_env_p): Move out of deprecated
2837 * rw.h (scm_init_rw): Added prototype.
2839 * gsubr.h, gsubr.c (scm_c_make_gsubr, scm_c_define_gsubr,
2840 scm_c_make_gsubr_with_generic, scm_c_define_gsubr_with_generic):
2841 New functions. They replace scm_make_gsubr and
2842 scm_make_gsubr_with_generic. The `make' variants only create the
2843 gsubr object, while the `define' variants also put it into the
2844 current module. Changed all callers.
2845 (scm_make_gsubr, scm_make_gsubr_with_generic): Deprecated.
2847 * procs.h, procs.c (scm_c_make_subr, scm_c_define_subr,
2848 scm_c_make_subr_with_generic, scm_c_define_subr_with_generic): New
2849 functions. They replace scm_make_subr, scm_make_subr_opt and
2850 scm_make_subr_with_generic. The `make' variants only create the
2851 subr object, while the `define' variants also put it into the
2852 current module. Changed all callers.
2853 (scm_make_subr, scm_make_subr_opt, scm_make_subr_with_generic):
2856 * eval.c, gc.c, gh_funcs.c, goops.c, macros.c, pairs.c, ramap.c,
2857 rdelim.c, rw.c, scmsigs.c, snarf.h, values.c: Changed according to
2860 2001-05-19 Neil Jerram <neil@ossau.uklinux.net>
2862 * throw.c (scm_lazy_catch): Slight docstring clarification.
2864 2001-05-19 Marius Vollmer <mvo@zagadka.ping.de>
2866 * throw.c: Lazy-catch handlers are no longer allowed to return.
2867 Fixed comments throughout.
2868 (scm_ithrow): Signal an error when a lazy-catch handler returns.
2869 Moved actual jump to jmpbuf into if-branch where the jmpbuf is
2872 * version.c (s_scm_micro_version): Fix typo in FUNC_NAME, it
2873 refered to s_scm_minor_version previously.
2875 * modules.h, modules.c: Moved around a lot of code so that
2876 deprecated features appear at the bottom.
2877 (root_module_lookup_closure, scm_sym_app, scm_sym_modules,
2878 module_prefix, make_modules_in_var, beautify_user_module_x_var,
2879 scm_the_root_module, scm_make_module, scm_ensure_user_module,
2880 scm_load_scheme_module): Deprecated.
2881 (scm_system_module_env_p): Return SCM_BOOL_T directly for
2882 environments corresponding to the root module.
2883 (convert_module_name, scm_c_resolve_module,
2884 scm_c_call_with_current_module, scm_c_define_module,
2885 scm_c_use_module, scm_c_export): New.
2886 (the_root_module): New static variant of scm_the_root_module. Use
2887 it everywhere instead of scm_the_root_module.
2889 * fluids.h, fluids.c (scm_internal_with_fluids): Deprecated.
2890 (scm_c_with_fluids): Renamed from scm_internal_with_fluids.
2891 (scm_c_with_fluid): New.
2892 (scm_with_fluids): Use scm_c_with_fluids instead of
2893 scm_internal_with_fluids.
2895 * goops.h, goops.c (scm_init_goops_builtins): Renamed from
2896 `scm_init_goops'. Do not explicitly create/switch modules.
2897 Return SCM_UNSPECIFIED.
2898 (scm_init_goops): Only register `%init-goops-builtins' procedure.
2899 (scm_load_goops): Use scm_c_resolve_module instead of
2902 * init.c (scm_init_guile_1): Call `scm_init_goops' instead of
2903 `scm_init_oop_goops_goopscore_module'. Call `scm_init_rdelim' and
2904 `scm_init_rw' prior to loading the startup files.
2906 * rdelim.h, rdelim.c: (scm_init_rdelim_builtins): Renamed from
2907 scm_init_rdelim. Do not explicitly create/switch modules.
2908 Return SCM_UNSPECIFIED.
2909 (scm_init_rdelim): Only register `%init-rdelim-builtins'
2912 * rw.c (scm_init_rw_builtins): Renamed from scm_init_rw. Do not
2913 explicitly create/switch modules. Return SCM_UNSPECIFIED.
2914 (scm_init_rw): Only register `%init-rw-builtins' procedure.
2916 * script.c (scm_shell): Evaluate the compiled switches in the
2917 current module, not in the root module.
2919 2001-05-18 Marius Vollmer <mvo@zagadka.ping.de>
2921 * fluids.c (scm_c_with_fluids): Rename from
2922 scm_internal_with_fluids.
2923 (scm_internal_with_fluids): Deprecated.
2924 (scm_c_with_fluid): New.
2926 2001-05-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
2928 * print.h (PRINTH, SCM_PRINT_H): Renamed PRINTH to SCM_PRINT_H.
2930 (SCM_PORT_WITH_PS_PORT, SCM_PORT_WITH_PS_PS): Only pairs may be
2931 accessed with SCM_C[AD]R.
2933 (SCM_COERCE_OUTPORT): Removed redundant SCM_NIMP test.
2935 2001-05-16 Rob Browning <rlb@cs.utexas.edu>
2937 * version.c (s_scm_major_version): doc fixes.
2938 (s_scm_minor_version): doc fixes.
2939 (s_scm_minor_version): new function.
2941 * version.h (scm_init_version): new function.
2943 * versiondat.h.in: add GUILE_MICRO_VERSION.
2945 2001-05-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
2947 * deprecation.c (scm_init_deprecation): Renamed
2948 GUILE_WARN_DEPRECATED_DEFAULT to SCM_WARN_DEPRECATED_DEFAULT.
2950 2001-05-16 Marius Vollmer <mvo@zagadka.ping.de>
2952 * Makefile.am (cpp_sig_symbols.c, cpp_err_symbols.c): Make
2953 dependent on cpp_cnvt.awk
2955 2001-05-15 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
2957 * script.c (scm_compile_shell_switches): New command line option
2958 `--use-srfi' for loading a list of SRFIs on startup.
2959 (scm_shell_usage): Added `--use-srfi' to help message.
2961 2001-05-10 Marius Vollmer <mvo@zagadka.ping.de>
2963 Merged from mvo-vcell-cleanup-1-branch.
2965 The concept of vcells has been removed from Guile. With it,
2966 explicit obarrays and associated operations are gone. Use
2967 hashtables instead of obarrays.
2969 Throughout: use scm_sym2var instead of scm_sym2vcell and treat
2970 result as variable instead of vcell. Glocs no longer point to a
2971 vcell but to a variable. Use scm_c_define instead of
2972 scm_sysintern and treat the result as a variable (which it is),
2975 * variable.c, variable.h (SCM_VARVCELL, SCM_UDVARIABLEP,
2976 SCM_DEFVARIABLEP): Deprecated.
2977 (SCM_VARIABLE_REF, SCM_VARIABLE_SET, SCM_VARIABLE_LOC): New.
2978 (variable_print): Do not print name of variable.
2979 (variable_equalp): Compare values, not vcells.
2980 (anonymous_variable_sym): Removed.
2981 (make_vcell_variable): Removed.
2982 (make_variable): New, as replacement.
2983 (scm_make_variable, scm_make_undefined_variable): Do not take name
2985 (scm_variable_ref): Check for SCM_UNDEFINED and throw "unbound"
2987 (scm_builtin_variable): Deprecated.
2989 * symbols.c, symbols.h (scm_sym2vcell, scm_sym2ovcell_soft,
2990 scm_sym2ovcell, scm_intern_obarray_soft, scm_intern_obarray,
2991 scm_intern, scm_intern0, scm_sysintern0_no_module_lookup,
2992 scm_sysintern, scm_sysintern0, scm_symbol_value0,
2993 scm_string_to_obarray_symbol, scm_intern_symbol,
2994 scm_unintern_symbol, scm_symbol_binding, scm_symbol_interned,
2995 scm_symbol_bound_p, scm_symbol_set_x, scm_gentmp, gentmp_counter):
2996 Deprecated and moved to "symbols-deprecated.c".
2997 (copy_and_prune_obarray, scm_builtin_bindings): Removed.
2998 (scm_init_symbols): Call scm_init_symbols_deprecated.
2999 * symbols-deprecated.c: New file.
3000 * Makefile.am: Added symbols-deprecated.c and related files in all
3003 * snarf.h (SCM_VCELL, SCM_GLOBAL_VCELL, SCM_VCELL_INIT,
3004 SCM_GLOBAL_VCELL_INIT): Deprecated.
3005 (SCM_VARIABLE, SCM_GLOBAL_VARIABLE, SCM_VARIABLE_INIT,
3006 SCM_GLOBAL_VARIABLE_INIT): New, as replacement. Changed all uses.
3008 * print.c (scm_iprin1): Use scm_module_reverse_lookup instead of
3011 * evalext.c, filesys.c, fports.c, gdbint.c, gh_data.c, gsubr.c,
3012 hooks.c, load.c, numbers.c, objects.c, ports.c, posix.c, procs.c,
3013 ramap.c, random.c, read.c, regex-posix.c, scmsigs.c, script.c,
3014 socket.c, srcprop.c, stacks.c, stime.c, struct.c, tag.c, throw.c:
3015 Changed according to the `throughout' comments.
3017 * modules.h, modules.c (scm_module_system_booted_p): Changed type
3019 (scm_module_type): Removed.
3020 (the_root_module): Renamed to the_root_module_var. Now points to
3021 a variable instead of a vcell. Updated all uses.
3022 (scm_the_root_module): Return SCM_BOOL_F when module systems
3023 hasn't been booted yet.
3024 (SCM_VALIDATE_STRUCT_TYPE): Removed.
3025 (scm_post_boot_init_modules): Made static.
3026 (scm_set_current_module): Call scm_post_boot_init_modules on first
3028 (make_modules_in, beautify_user_module_x, resolve_module,
3029 try_module_autoload, module_make_local_var_x): Tacked on "_var"
3030 suffix. Now point to variables instead of vcells. Updated all
3032 (scm_module_lookup_closure): Deal with the module being SCM_BOOL_F
3033 and return SCM_BOOL_F in that case.
3034 (scm_module_transformer): Likewise.
3035 (sym_module, scm_lookup_closure_module, scm_env_module): New.
3036 (SCM_F_EVAL_CLOSURE_INTERFACE, SCM_EVAL_CLOSURE_INTERFACE_P): New.
3037 (scm_eval_closure_lookup): Do not allow new definitions when
3038 `interface' flag is set.
3039 (scm_standard_interface_eval_closure): New.
3040 (scm_pre_modules_obarray, scm_sym2var, scm_module_lookup,
3041 scm_lookup, scm_module_define, scm_define, scm_c_module_lookup,
3042 scm_c_lookup, scm_c_module_define, scm_c_define,
3043 scm_module_reverse_lookup, scm_get_pre_modules_obarray,
3044 scm_modules_prehistory): New.
3045 (scm_post_boot_init_modules): Use scm_c_define and scm_c_lookup
3046 instead of scm_intern0.
3048 * macros.c (scm_make_synt): Return SCM_UNSPECIFIED instead of the
3051 * keywords.c (s_scm_make_keyword_from_dash_symbol): Use a regular
3052 hashtable operations to maintain the keywords, not obarray ones.
3054 * init.c (scm_load_startup_files): Do not call
3055 scm_post_boot_init_modules. This is done by
3056 scm_set_current_module now.
3057 (scm_init_guile_1): Call scm_modules_prehistory. Call
3058 scm_init_variable early on.
3060 * goops.c (s_scm_sys_goops_loaded): Get
3061 var_compute_applicable_methods from scm_sym2var, not from a direct
3062 invocation of scm_goops_lookup_closure.
3064 * gh_funcs.c (gh_define): Return SCM_UNSPECIFIED instead of vcell.
3066 * gc.c: Added simple debugging hack to mark phase of GC: When
3067 activated, do not tail-call scm_gc_mark. This gives nice
3069 (scm_unhash_name): Removed.
3071 * feature.c (features): Renamed to features_var. Now points to a
3072 variable instead of a vcell. Updated all uses.
3074 * eval.h (SCM_TOP_LEVEL_LOOKUP_CLOSURE): Use
3075 `scm_current_module_lookup_closure' which will do the right thing
3076 when the module system hasn't been booted yet.
3077 (SCM_GLOC_SYM): Removed.
3078 (SCM_GLOC_VAR, SCM_GLOC_SET_VAL): New.
3079 (SCM_GLOC_VAL, SCM_GLOC_LOC): Reimplemented in terms of variables.
3081 * eval.c (scm_lookupcar, scm_lookupcar1): Deal with variables
3082 instead of with vcells. Do not overwrite `var' with the result of
3083 the lookup, use the new `real_var' instead. Remove `var2' in
3084 exchange (which was only used with threads).
3085 (sym_three_question_marks): New.
3086 (scm_unmemocar): Use `scm_module_reverse_lookup' instead of
3088 (scm_lisp_nil, scm_lisp_t): Directly define as symbols.
3089 (scm_m_atfop): Expect the function definition to be a variable
3091 (scm_macroexp): Do not use `unmemocar', explicitely remember the
3093 (scm_unmemocopy): Removed thoughts about anti-macro interface.
3094 (scm_eval_args): Use more explicit code in the gloc branch of the
3095 atrocious struct ambiguity test. The optimizer will sort this
3097 (scm_deval_args): Likewise.
3098 (SCM_CEVAL): Likewise. Also, do not use unmemocar, explicitely
3099 remember the symbol instead. Added some comments where
3100 scm_tc3_cons_gloc really exclusively refers to structs.
3101 (scm_init_eval): Use scm_define to initialize "nil" and "t" to
3102 scm_lisp_nil and scm_lisp_t, respectively. Use scm_define instead
3103 of scm_sysintern in general.
3105 * dynwind.c (scm_swap_bindings): Use SCM_GLOC_SET_VAL instead of
3108 * debug.c (s_scm_make_gloc): Only allow proper variables, no
3109 pairs. Put the variable directly in the gloc.
3110 (s_scm_gloc_p): Use `scm_tc3_cons_gloc' instead of the magic `1'.
3111 (scm_init_debug): Use scm_c_define instead scm_sysintern.
3113 * cpp_cnvt.awk: Emit "scm_c_define" instead of "scm_sysintern".
3115 * backtrace.h, backtrace.c (scm_the_last_stack_fluid): Renamed to
3116 scm_the_last_stack_fluid_var. It now points to a variable instead
3117 of a vcell. Updated all uses.
3118 (scm_has_shown_backtrace_hint_p_var): Now points to a variable
3119 instead of a vcell. Updated all uses.
3121 * _scm.h: Include "variables.h" and "modules.h" since almost
3122 everybody needs them now.
3124 * root.h (scm_symhash, scm_symhash_vars): Removed.
3125 * gc.c (scm_init_storage): Do not initialize them.
3127 2001-05-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
3129 * eval.c (scm_init_eval): Initialize scm_undefineds and
3132 * gc.c (scm_debug_newcell, scm_debug_newcell2): Fixed to behave
3133 like the SCM_NEWCELL macro counterparts.
3135 (scm_init_storage, scm_init_gc): Moved initialization of
3136 scm_tc16_allocated from scm_init_gc to scm_init_storage.
3138 (scm_init_storage): Moved initialization of scm_undefineds and
3139 scm_listofnull to eval.c, initializion of scm_nullstr to
3140 strings.c, initializion of scm_nullvect to vectors.c.
3142 * gc.h (SCM_NEWCELL, SCM_NEWCELL2): Prefer SCM_NULLP over
3143 SCM_IMP, as in scm_debug_newcell and scm_debug_newcell2.
3145 * init.c (scm_init_guile_1): Reordered some initializations and
3146 added dependcy information comments.
3148 * load.c (scm_init_load): Use scm_nullstr.
3150 * strings.c (scm_init_strings): Initialize scm_nullstr.
3152 * vectors.c (scm_init_vectors): Initialize scm_nullvect.
3154 2001-05-15 Marius Vollmer <mvo@zagadka.ping.de>
3156 * values.c (print_values): Print as a unreadable object, not as
3157 multiple lines. Thanks to Matthias Köppe!
3159 2001-05-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
3161 * deprecation.c: Fixed copyright date.
3163 * deprecation.h (DEPRECATION_H, SCM_DEPRECATION_H): Renamed
3164 DEPRECATION_H to SCM_DEPRECATION_H.
3166 2001-05-10 Thien-Thi Nguyen <ttn@revel.glug.org>
3168 * guile-doc-snarf.in: Update copyright.
3169 Fix relative path bug. Thanks to Sergey Poznyakoff.
3171 2001-05-10 Marius Vollmer <mvo@zagadka.ping.de>
3173 * ports.c (scm_port_revealed, scm_set_port_revealed_x): Only
3174 accept open ports. Thanks to Quetzalcoatl Bradley!
3176 2001-05-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
3178 * procs.c: Increased `scm_subr_table_room' to 800 because Guile now
3179 has 779 primitives on startup.
3181 2001-05-09 Marius Vollmer <mvo@zagadka.ping.de>
3183 * eval.c (scm_i_eval): Copy expression before passing it to
3184 SCM_XEVAL. The copy operation was removed unintendedly during my
3185 change on 2001-03-25.
3187 2001-05-09 Michael Livshin <mlivshin@bigfoot.com>
3189 from Matthias Köppe (thanks!):
3191 * ports.c (scm_c_read): pointer arithmetic on void pointers isn't
3194 * deprecation.c (s_scm_include_deprecated_features): ANSI'fied the
3197 2001-04-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
3199 * gc.c (scm_init_gc): Added FIXME comment.
3201 * hooks.c: Since hooks don't have a name any more, it is not
3202 necessary to include objprop.h.
3204 (hook_print, scm_add_hook_x): Replace SCM_NFALSEP by !SCM_FALSEP.
3206 (symbol_name, scm_make_hook_with_name): Removed.
3208 (scm_create_hook): Don't set the hook's name property.
3210 * hooks.h (HOOKSH, SCM_HOOKS_H): Renamed HOOKSH to SCM_HOOKS_H.
3212 (SCM_HOOK_NAME, scm_make_hook_with_name): Removed.
3214 * init.c (scm_init_guile_1): Hooks don't use objprops any more.
3216 * numbers.c (SCM_FLOBUFLEN, FLOBUFLEN, scm_number_to_string,
3217 scm_print_real, scm_print_complex): Renamed SCM_FLOBUFLEN to
3218 FLOBUFLEN and define it unconditionally.
3220 2001-05-07 Marius Vollmer <mvo@zagadka.ping.de>
3222 * gh_data.c (gh_lookup): Call gh_module_lookup with
3223 `scm_current_module ()', not `#f'.
3224 (gh_module_lookup): Expect a module instead of an obarray as first
3225 argument and do lookup in that module.
3227 * ramap.c (raeql_1): Do not call scm_uniform_vector_length on
3228 arrays. The length of array is already determined differently and
3229 scm_uniform_vector_length does not work on arrays.
3231 2001-05-06 Marius Vollmer <mvo@zagadka.ping.de>
3233 * snarf.h (SCM_FUNC_CAST_ARBITRARY_ARGS): Use "SCM (*)()" for C++
3234 as well. "SCM (*)(...)" does not work on RedHat 7.1.
3236 * __scm.h (SCM_WTA_DISPATCH_0): Removed ARG and POS parameters,
3237 they are not used. Changed `wrong type' error into `wrong num
3238 args' error. Changed all callers.
3240 * numbers.c (scm_difference): Call SCM_WTA_DISPATCH_0 when zero
3241 arguments are supplied.
3243 2001-05-05 Thien-Thi Nguyen <ttn@revel.glug.org>
3245 * regex-posix.c (scm_regexp_exec): Expand docstring to briefly
3246 describe `regexp/notbol' and `regexp/noteol' execution flags.
3248 * strop.c (scm_substring_move_x): Doc fix; nfc.
3250 2001-05-05 Marius Vollmer <mvo@zagadka.ping.de>
3252 * objects.c, objects.h (scm_valid_object_procedure_p): New.
3253 (scm_set_object_procedure_x): Use it to check argument. Fix
3256 * evalext.c (scm_definedp): Fix docstring.
3258 2001-05-05 Gary Houston <ghouston@arglist.com>
3260 * socket.c: use HAVE_IPV6 instead of AF_INET6 to enable IPv6
3263 2001-05-04 Neil Jerram <neil@ossau.uklinux.net>
3265 * eval.c (scm_promise_p), list.c (scm_append_x, scm_reverse_x),
3266 symbols.c (scm_symbol_to_string), vports.c (scm_make_soft_port):
3267 Change R4RS references to R5RS.
3269 * guile-snarf.awk.in: Fixes so that (i) blank lines in the
3270 docstring source are correctly reproduced in the output (ii)
3271 we don't anymore get occasional trailing quotes. Also reorganized
3272 and commented the code a little.
3274 * scmsigs.c (scm_raise), throw.c (scm_throw): Docstring format
3277 2001-05-04 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
3279 * strop.c (scm_string_split): New procedure.
3281 * strop.h (scm_string_split): Added prototype.
3283 2001-05-04 Gary Houston <ghouston@arglist.com>
3285 * socket.c: define uint32_t if netdb.h doesn't. thanks to
3288 2001-05-02 Marius Vollmer <mvo@zagadka.ping.de>
3290 * rw.c: Include "modules.h" and "strports.h".
3292 * net_db.h (scm_gethost): Added prototype.
3294 * deprecation.h, deprecation.c: New.
3295 * Makefile.am (libguile_la_SOURCES): Added "deprecation.c".
3296 (DOT_X_FILES): Added "deprecation.x".
3297 (modinclude_HEADERS): Added "deprecation.h".
3299 * init.c: Include "deprecation.h".
3300 (scm_init_guile_1): Call scm_init_deprecation.
3302 2001-05-01 Marius Vollmer <mvo@zagadka.ping.de>
3304 * gh.h (gh_init_guile, gh_make_string, gh_string_length,
3305 gh_string_ref, gh_string_set_x, gh_substring, gh_string_append):
3308 2001-04-29 Gary Houston <ghouston@arglist.com>
3310 * rw.c: new file, implementing C part of module (ice-9 rw).
3311 (scm_read_string_x_partial): moved from ioext.c
3312 (scm_init_rw): new proc.
3314 init.c: include rw.h and call scm_init_rw.
3315 Makefile.am: include rw.c and rw.h.
3317 2001-04-28 Rob Browning <rlb@cs.utexas.edu>
3319 * numbers.c: enabled local definition of SCM_FLOBUFLEN until we
3320 know what's supposed to happen to it.
3322 * list.h (scm_list_star): deprecation expired - removed.
3324 * numbers.h (scm_dblproc): deprecation expired - removed.
3325 (SCM_UNEGFIXABLE): deprecation expired - removed.
3326 (SCM_FLOBUFLEN): deprecation expired - removed.
3327 (SCM_INEXP): deprecation expired - removed.
3328 (SCM_CPLXP): deprecation expired - removed.
3329 (SCM_REAL): deprecation expired - removed.
3330 (SCM_IMAG): deprecation expired - removed.
3331 (SCM_REALPART): deprecation expired - removed.
3332 (scm_makdbl): deprecation expired - removed.
3333 (SCM_SINGP): deprecation expired - removed.
3334 (SCM_NUM2DBL): deprecation expired - removed.
3335 (SCM_NO_BIGDIG): deprecation expired - removed.
3337 * tags.h (SCM_DOUBLE_CELLP): deprecation expired - removed.
3338 (scm_tc_dblr): deprecation expired - removed.
3339 (scm_tc_dblc): deprecation expired - removed.
3340 (scm_tc16_flo): deprecation expired - removed.
3341 (scm_tc_flo): deprecation expired - removed.
3343 * tag.h (scm_tag): deprecation expired - removed.
3345 * tag.c: (scm_tag): deprecation expired - removed.
3347 * ioext.c: (scm_fseek): deprecation expired - removed.
3349 * ioext.h (scm_fseek): deprecation expired - removed.
3351 * gh_data.c (gh_int2scmb): deprecation expired - removed.
3353 * gh.h (gh_int2scmb): deprecation expired - removed.
3355 2001-04-28 Neil Jerram <neil@ossau.uklinux.net>
3357 * stacks.c (scm_make_stack): Fix typo in docstring.
3359 2001-04-27 Rob Browning <rlb@cs.utexas.edu>
3361 * error.c (scm_sysmissing): deprecation expired - removed.
3363 * error.h (scm_sysmissing): deprecation expired - removed.
3366 (scm_init_gc): gc-thunk deprecation expired - removed.
3367 (scm_gc_vcell): deprecation expired - removed.
3368 (gc_async_thunk): scm_gc_vcell related code removed.
3370 * vectors.h (SCM_NVECTORP): deprecation expired - removed.
3373 (SCM_NSTRINGP): deprecation expired - removed.
3374 (SCM_NRWSTRINGP): deprecation expired - removed.
3376 * continuations.h (SCM_SETJMPBUF): deprecation expired - removed.
3379 (SCM_ICHRP): deprecation expired - removed.
3380 (SCM_ICHR): deprecation expired - removed.
3381 (SCM_MAKICHR): deprecation expired - removed.
3384 (SCM_INPORTP): deprecation expired - removed.
3385 (SCM_OUTPORTP): deprecation expired - removed.
3387 2001-04-25 Marius Vollmer <mvo@zagadka.ping.de>
3389 * modules.c (scm_module_type): New.
3390 (scm_post_boot_init_modules): Initialize from Scheme value.
3391 (the_module, scm_current_module, scm_init_modules): the_module is
3393 (scm_current_module): Export to Scheme.
3394 (scm_set_current_module): Do not call out to Scheme, do all the
3395 work in C. Export procedure to Scheme. Only accept modules, `#f'
3396 is no longer valid as the current module. Only set
3397 scm_top_level_lookup_closure_var and scm_system_transformer when
3398 they are not deprecated.
3399 (scm_module_transformer, scm_current_module_transformer): New.
3401 * modules.h (scm_module_index_transformer, SCM_MODULE_TRANSFORMER,
3402 scm_current_module_transformer, scm_module_transformer): New.
3404 * gh_data.c: Removed FIXME comment about gh_lookup returning
3405 SCM_UNDEFINED. That's the right thing to do.
3407 * eval.h, eval.c (scm_system_transformer): Deprecated by moving it
3408 into the conditionally compiled sections.
3409 * eval.c (scm_primitive_eval_x, scm_primitive_eval): Use
3410 scm_current_module_transformer instead of scm_system_transformer.
3411 * init.c (start_stack): Move initialization of
3412 scm_system_transformer to the deprecated section.
3414 2001-04-22 Neil Jerram <neil@ossau.uklinux.net>
3416 * throw.c (scm_throw): Correct docstring.
3418 2001-04-22 Gary Houston <ghouston@arglist.com>
3420 * socket.c: attempted to improve the docstrings slightly.
3422 * net_db.c: remove bogus "close" declaration.
3423 (inet_aton declaration, scm_inet_aton, scm_inet_ntoa,
3424 scm_inet_netof, scm_lnaof, scm_inet_makeaddr, INADDR_ANY etc.):
3426 * net_db.h: declarations moved too.
3428 * socket.c (scm_htonl, scm_ntohl): use uint32_t instead of unsigned
3430 (ipv6_net_to_num, ipv6_num_to_net): new static procedures.
3431 (VALIDATE_INET6): new macro.
3432 (scm_inet_pton, scm_inet_ntop): new procedures, implementing
3433 inet-pton and inet-ntop.
3434 (scm_fill_sockaddr): use VALIDATE_INET6 and ipv6_num_to_net.
3435 (scm_addr_vector): use ipv6_net_to_num.
3437 2001-04-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
3439 * eq.c (scm_equal_p), ramap.c (scm_init_ramap): Don't compute the
3440 smob number explicitly. Use SCM_TC2SMOBNUM instead.
3442 * gc.c (MARK, scm_gc_sweep): Only check for illegal heap objects
3443 when compiled in debug mode.
3445 (scm_gc_sweep): Only call smob's free function if it is defined.
3447 * print.c (scm_iprin1): No need to check for validity of smob
3448 type or existence of print function.
3450 * smob.[ch] (scm_smobs): Made into a fixed size global array.
3451 Resizing will not work well with preemptive threading.
3453 * smob.c (scm_smob_print): Don't use SCM_CDR to access smob data.
3455 (scm_make_smob_type): Extracted initialization of smob
3456 descriptors to scm_smob_prehistory. Don't use scm_numsmob outside
3457 of the critical section.
3459 (scm_smob_prehistory): Initialize all smob descriptors. By
3460 default, don't assign a smob free function: Most smob types don't
3463 * smob.h (SMOBH, SCM_SMOB_H): Renamed SMOBH to SCM_SMOB_H.
3465 2001-04-21 Gary Houston <ghouston@arglist.com>
3467 * socket.c (FLIP_NET_HOST_128): new macro.
3468 (scm_fill_sockaddr): use new macro.
3469 (scm_addr_vector): completed IPv6 address support. added const
3470 to the address parameter.
3472 2001-04-20 Gary Houston <ghouston@arglist.com>
3474 * socket.c (scm_fill_sockaddr): call htons for sin6_port.
3475 Don't assign sin6_scope_id in structure unless HAVE_SIN6_SCOPE_ID
3477 (scm_addr_vector): use a switch instead of multiple if statements.
3478 Add support for IPv6 (incomplete) .
3479 MAX_ADDR_SIZE: increase to size of struct sockaddr_in6 if needed.
3481 2001-04-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
3483 * struct.c (scm_free_structs): Only pairs may be accessed with
3486 2001-04-19 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
3488 * unif.h (SCM_ARRAY_CONTIGUOUS): Reintroduced as deprecated.
3490 * __scm.h (SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
3491 SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n): Inserted required
3492 parentheses in order to get the correct associativity.
3494 2001-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
3496 * unif.c (scm_array_to_list): Added missing handling of arrays of
3497 bytes. Thanks to Masao Uebayashi for the bug report.
3499 2001-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
3501 * debug.c (scm_procedure_source): Use SCM_CLOSURE_FORMALS more
3504 2001-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
3506 * procs.h (SCM_CLOSURE_FORMALS): New macro.
3508 * debug.c (scm_procedure_source), eval.c (scm_badformalsp,
3509 SCM_CEVAL, SCM_APPLY), goops.c (get_slot_value, set_slot_value),
3510 procprop.c (scm_i_procedure_arity), sort.c (closureless): Use
3511 SCM_CLOSURE_FORMALS.
3513 * eval.c (scm_badformalsp, SCM_CEVAL), procprop.c
3514 (scm_i_procedure_arity): Prefer stronger predicates like
3515 SCM_NULLP or SCM_FALSEP over SCM_IMP.
3517 * macros.c (macro_print): Extracted macro printing code from
3518 print.c and simplified it.
3520 (scm_macro_type): Use SCM_MACRO_TYPE;
3522 (scm_init_macros): Use macro_print for printing macros.
3524 * print.c (scm_print_opts): Improved option documentation.
3526 (scm_iprin1): Extracted printing of macros to macros.c.
3527 Simplified printing of ordinary closures.
3529 * procs.c (scm_thunk_p): Fixed handling of closures. Thanks to
3530 Martin Grabmueller for the bug report.
3532 2001-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
3534 This patch eliminates some further applications of SCM_C[AD]R to
3537 * gc.h (SCM_SETAND_CAR, SCM_SETOR_CAR): Deprecated. These have
3538 never been applied to real pairs.
3540 * srcprop.h (SCM_SOURCE_PROPERTY_FLAG_BREAK): Added.
3542 (SRCPROPBRK): Use SCM_SOURCE_PROPERTY_FLAG_BREAK.
3544 * unif.h (SCM_ARRAY_CONTIGUOUS, SCM_ARRAY_FLAG_CONTIGUOUS,
3545 SCM_ARRAY_CONTP): Renamed SCM_ARRAY_CONTIGUOUS to
3546 SCM_ARRAY_FLAG_CONTIGUOUS and use it.
3548 (SCM_SET_ARRAY_CONTIGUOUS_FLAG, SCM_CLR_ARRAY_CONTIGUOUS_FLAG):
3551 * srcprop.h (SRCPROPH), unif.h (UNIFH): Renamed to
3552 SCM_SOURCE_PROPERTIES_H and SCM_UNIFORM_VECTORS_H, respectively.
3554 * srcprop.h (SETSRCPROPBRK, CLEARSRCPROPBRK), unif.c
3555 (scm_dimensions_to_uniform_array, scm_ra_set_contp): Don't use
3556 SCM_SET{AND,OR}_CAR.
3558 2001-04-17 Gary Houston <ghouston@arglist.com>
3560 * some initial support for IPv6:
3562 * socket.c (scm_fill_sockaddr): improve the argument validation.
3563 don't allocate memory until all args are checked. instead of
3564 unconditional memset of soka, try setting sin_len to 0 if
3565 SIN_LEN is defined. add support for AF_INET6. define FUNC_NAME.
3566 (scm_socket, scm_connect): extend docstrings for IPv6.
3567 (scm_init_socket): intern AF_INET6 and PF_INET6.
3569 2001-04-17 Niibe Yutaka <gniibe@m17n.org>
3571 * srcprop.c (scm_make_srcprops): Added SCM_ALLOW_INTS which
3572 matches SCM_DEFER_INTS at the beginning of the function.
3574 * mallocs.c (scm_malloc_obj): Remove un-matched SCM_ALLOW_INTS.
3576 * gc.c (scm_igc): Unconditionally call
3577 SCM_CRITICAL_SECTION_START/END.
3579 * fluids.c (next_fluid_num): Unconditionally call
3580 SCM_CRITICAL_SECTION_START/END.
3581 (s_scm_make_fluid): Remove un-matched SCM_DEFER_INTS.
3583 * coop-defs.h (SCM_THREAD_DEFER, SCM_THREAD_ALLOW,
3584 SCM_THREAD_REDEFER, SCM_THREAD_REALLOW_1, SCM_THREAD_REALLOW_2):
3587 * __scm.h (SCM_CRITICAL_SECTION_START, SCM_CRITICAL_SECTION_END):
3588 Defined as nothing for the case of !defined(USE_THREADS).
3589 (SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER):
3591 (<stdio.h>): Include when (SCM_DEBUG_INTERRUPTS == 1).
3592 (SCM_CHECK_NOT_DISABLED, SCM_CHECK_NOT_ENABLED): Print FILE and
3594 (SCM_DEFER_INTS, SCM_ALLOW_INTS_ONLY, SCM_ALLOW_INTS,
3595 SCM_REDEFER_INTS, SCM_REALLOW_INTS): Don't use
3596 SCM_THREAD_DEFER/SCM_THREAD_ALLOW. Instead, use
3597 SCM_CRITICAL_SECTION_START/END.
3598 (SCM_REALLOW_INTS: Bug fix. Don't call
3599 SCM_THREAD_SWITCHING_CODE.
3600 (SCM_TICK): Don't use SCM_DEFER_INTS/SCM_ALLOW_INTS. Instead, use
3601 SCM_THREAD_SWITCHING_CODE directly.
3602 (SCM_ENTER_A_SECTION): Unconditionally use
3603 SCM_CRITICAL_SECTION_START/END. (was:
3604 SCM_DEFER_INTS/SCM_ALLOW_INTS when SCM_POSIX_THREADS defined).
3606 2001-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
3608 * __scm.h (SCM_CAREFUL_INTS, SCM_DEBUG_INTERRUPTS): Replaced the
3609 macro SCM_CAREFUL_INTS by the macro SCM_DEBUG_INTERRUPTS and
3610 allowed to explicitly set this macro via the CFLAGS variable
3613 * fluids.c (next_fluid_num), gc.c (scm_igc), coop-defs.h
3614 (SCM_THREAD_CRITICAL_SECTION_START,
3615 SCM_THREAD_CRITICAL_SECTION_END): Renamed
3616 SCM_THREAD_CRITICAL_SECTION_START/END to
3617 SCM_CRITICAL_SECTION_START/END.
3619 2001-04-11 Keisuke Nishida <kxn30@po.cwru.edu>
3621 * debug-malloc.c (grow, scm_debug_malloc_prehistory): Use memset
3624 * coop.c, iselect.c (FD_ZERO_N): Unconditionally use memset.
3625 (MISSING_BZERO_DECL): Remove the declaration.
3627 Thanks to NIIBE Yutaka.
3629 2001-04-10 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
3631 * init.c, goops.c, goops.h: Reverted change of 2001-03-29. (The
3632 goops module should be registered in order to work for an
3633 application which uses libguile statically linked.)
3635 2001-04-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
3637 * numbers.[ch] (scm_num2long, scm_num2long_long,
3638 scm_num2ulong_long, scm_num2ulong): Argument position is an
3641 * environments.c (eval_environment_folder,
3642 import_environment_folder), gh_data.c (gh_scm2longs,
3643 gh_scm2floats, gh_scm2doubles): Distinguish between 0 and NULL
3644 for integers and pointers, respectively.
3646 * gh_data.c (gh_scm2ulong, gh_scm2long, gh_scm2int), socket.c
3647 (scm_fill_sockaddr), unif.c (scm_array_set_x), validate.h
3648 (SCM_NUM2ULONG, SCM_NUM2LONG, SCM_NUM2LONG_DEF,
3649 SCM_NUM2LONG_LONG): Don't pass argument positions as pointers.
3651 * filesys.c (scm_open_fdes, scm_open), net_db (scm_inet_ntoa,
3652 scm_inet_netof, scm_lnaof, scm_gethost, scm_getproto), posix.c
3653 (scm_utime), ramap.c (scm_array_fill_int), scmsigs.c
3654 (scm_sigaction), socket.c (scm_htonl, scm_ntohl, scm_sendto),
3655 stime.c (scm_localtime, scm_gmtime), struct.c (scm_struct_set_x),
3656 validate.h (SCM_VALIDATE_LONG_COPY): Whitespace fixes.
3658 2001-04-09 Neil Jerram <neil@ossau.uklinux.net>
3660 * strings.c (scm_read_only_string_p): Update docstring to reflect
3661 current (non-)usage of "read only" strings.
3662 (scm_make_shared_substring): Clarify docstring by changing
3663 "semantics" to "arguments".
3665 2001-04-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
3667 * hooks.c (scm_make_hook, scm_make_hook_with_name),
3668 (scm_hook_p, scm_hook_empty_p, scm_run_hook): Docstring
3671 2001-04-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
3673 The following changes make the documentation more consistent.
3675 * rdelim.c (scm_write_line), posix.c (scm_utime), ports.c
3676 (scm_seek), net_db.c (scm_inet_aton, scm_inet_ntoa),
3677 (scm_inet_netof, scm_lnaof, scm_inet_makeaddr), ioext.c
3678 (scm_ftell): Changed @smalllisp ... @end smalllisp to @lisp
3681 * vports.c (scm_make_soft_port), version.c (scm_version), unif.c
3682 (scm_array_dimensions, scm_make_shared_array),
3683 (scm_transpose_array, scm_enclose_array, scm_bit_count_star),
3684 throw.c (scm_catch), struct.c (scm_make_vtable_vtable), strop.c
3685 (scm_string_rindex, scm_string_index, scm_substring_fill_x),
3686 (scm_string_null_p), strings.c (scm_read_only_string_p), root.c
3687 (scm_call_with_dynamic_root), ramap.c (scm_array_index_map_x),
3688 posix.c (scm_mknod), numbers.c (scm_logtest, scm_logbit_p),
3689 macros.c (scm_makmmacro), list.c (scm_append), environments.c
3690 (scm_environment_fold), dynwind.c (s_scm_dynamic_wind): Changed
3691 @example ... @end example to @lisp ... @end lisp.
3693 * weaks.c (scm_weak_vector): Corrected docstring.
3695 * hashtab.c (scm_hashq_ref, scm_hashq_set_x, scm_hashq_remove_x),
3696 (scm_hashv_ref, scm_hashv_set_x, scm_hashv_remove_x),
3697 (scm_hash_ref, scm_hash_set_x, scm_hash_remove_x, scm_hashx_ref),
3698 (scm_hashx_set_x, scm_hashx_get_handle),
3699 (scm_hashx_create_handle_x), regex-posix.c (scm_make_regexp),
3700 (scm_regexp_exec, scm_regexp_p), numbers.c (scm_logtest),
3701 vectors.c (scm_vector_fill_x), strings.c
3702 (scm_make_shared_substring), symbols.c (scm_string_to_symbol),
3703 objprop.c (scm_set_object_properties_x):
3704 (scm_set_object_property_x), throw.c (scm_catch, scm_lazy_catch),
3705 strports.c (scm_call_with_input_string), ports.c
3706 (scm_truncate_file), ioext.c (scm_ftell), ports.c (scm_seek),
3707 list.c (scm_append_x), dynwind.c (scm_dynamic_wind), error.c
3708 (scm_error_scm), vports.c (scm_make_soft_port), weaks.c
3709 (scm_make_weak_vector,scm_weak_vector_p),
3710 (scm_make_weak_key_hash_table, scm_make_weak_value_hash_table),
3711 (scm_make_doubly_weak_hash_table, scm_weak_key_hash_table_p),
3712 (scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
3713 macros.c (scm_macro_type), dynl.c (scm_dynamic_link),
3714 (scm_dynamic_unlink, scm_dynamic_call, scm_dynamic_args_call):
3715 Made parameter names match documentation by renaming parameters
3716 and/or fixing docstrings.
3718 * numbers.c (scm_ash): Corrected Texinfo markup.
3720 * strop.c (scm_string_index, scm_string_rindex),
3721 (scm_substring_fill_x, scm_string_null_p): Removed `qdocs'.
3723 * vports.c (scm_make_soft_port), unif.c
3724 (scm_uniform_vector_length, scm_array_p, scm_array_rank),
3725 (scm_dimensions_to_uniform_array, scm_transpose_array),
3726 (scm_array_in_bounds_p, scm_uniform_vector_ref),
3727 (scm_bit_count, scm_bit_position, scm_bit_count_star),
3728 (scm_array_to_list, scm_list_to_uniform_array),
3729 (scm_array_prototype, symbols.c (scm_string_to_symbol), strports.c
3730 (scm_open_input_string, scm_open_output_string),
3731 (scm_get_output_string), strop.c (scm_string_copy),
3732 (scm_string_fill_x), strings.c (scm_string_p, scm_string), stime.c
3733 (scm_get_internal_real_time, scm_times),
3734 (scm_get_internal_run_time, scm_current_time, scm_gettimeofday),
3735 (scm_localtime, scm_gmtime), socket.c (scm_htons, scm_ntohs),
3736 (scm_htonl, scm_ntohl, scm_socket, scm_socketpair),
3737 (scm_getsockopt, scm_getsockname, scm_getpeername, scm_recvfrom),
3738 simpos.c (scm_system), random.c (scm_random_uniform),
3739 (scm_random_normal, scm_random_exp), ramap.c
3740 (scm_array_equal_p), posix.c (scm_pipe, scm_getgroups),
3741 (scm_status_exit_val, scm_status_term_sig, scm_status_stop_sig),
3742 (scm_getppid, scm_getuid, scm_getgid, scm_geteuid, scm_getegid),
3743 (scm_getpgrp, scm_ttyname, scm_ctermid, scm_tcgetpgrp, scm_uname),
3744 (scm_environ, scm_tmpnam, scm_mkstemp, scm_access, scm_getpid),
3745 (scm_setlocale), ports.c (scm_char_ready_p, scm_drain_input),
3746 (scm_pt_size, scm_pt_member, scm_port_revealed, scm_port_mode),
3747 (scm_close_port, scm_input_port_p, scm_output_port_p, scm_port_p),
3748 (scm_port_closed_p, scm_eof_object_p, scm_read_char),
3749 (scm_peek_char), pairs.c (scm_pair_p, scm_cons), numbers.c
3750 (scm_logand, scm_logior, scm_logxor, scm_lognot),
3751 (scm_integer_expt, scm_bit_extract, scm_logcount),
3752 (scm_integer_length, scm_string_to_number, scm_inexact_to_exact),
3753 net_db.c (scm_inet_netof, scm_lnaof), modules.c
3754 (scm_interaction_environment), macros.c (scm_makacro),
3755 (scm_makmacro, scm_makmmacro), keywords.c (scm_keyword_p), ioext.c
3756 (scm_ftell, scm_dup_to_fdes, scm_fileno, scm_isatty_p),
3757 (scm_fdopen, scm_fdes_to_ports), gc.c (scm_gc_stats), fluids.c
3758 (scm_fluid_ref), filesys.c (scm_open_fdes),
3759 (scm_stat, scm_directory_stream_p, scm_getcwd, scm_readlink):
3760 Docstring correction: `Returns' -> `Return'
3762 * gc.c (scm_set_debug_cell_accesses_x):
3763 (s_scm_gc_set_debug_check_freelist_x):
3764 * fluids.c (scm_fluid_p): Added texinfo markup.
3766 * error.c (scm_strerror): Made docstring more precise.
3768 * vectors.c (scm_vector_p, scm_vector, scm_make_vector),
3769 (scm_vector_to_list, _scm_vector_fill_x), symbols.c
3770 (scm_symbol_p, scm_symbol_to_string), strorder.c
3771 (scm_string_equal_p, scm_string_ci_equal_p, scm_string_less_p),
3772 (scm_string_leq_p, scm_string_gr_p, scm_string_geq_p),
3773 (scm_string_ci_less_p, scm_string_ci_leq_p, scm_string_ci_gr_p):
3774 (scm_string_ci_geq_p), strop.c (scm_string_copy),
3775 (scm_string_fill_x): Removed `(r5rs)' from docstrings.
3777 2001-04-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
3779 * gc.c (MARK): Re-introduce a cheap sanity test for non debug
3780 mode, as suggested by Michael Livshin.
3782 2001-03-31 Michael Livshin <mlivshin@bigfoot.com>
3784 * backtrace.c (display_backtrace_body): since the `print_state'
3785 variable is not used (instead its data field is used directly as
3786 `pstate'), protect it from the hungry compiler optimizations.
3787 thanks to Bill Schottstaedt for the report.
3789 2001-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
3791 * gc.[ch] (scm_tc16_allocated): New type tag for allocated cells.
3792 It is only defined and used if guile is compiled with
3793 SCM_DEBUG_CELL_ACCESSES set to true. It's purpose is, to never
3794 let cells with a free_cell type tag be visible outside of the
3795 garbage collector when in debug mode.
3797 * gc.c (scm_debug_cell_accesses_p): Set to true as default.
3799 (scm_assert_cell_valid): Use a local static variable to avoid
3802 (MARK): Only check for rogue cell pointers in debug mode. Use
3803 scm_cellp for this purpose and place all checks for rogue pointers
3804 into that function. Further, since due to conservative scanning
3805 we may encounter free cells during marking, don't use the standard
3806 cell type accessor macro to determine the cell type.
3808 (scm_cellp): Check if the cell pointer actually points into a
3811 (scm_init_gc): Initalize scm_tc16_allocated.
3813 * gc.h (GCH): Renamed to SCM_GC_H.
3815 (SCM_VALIDATE_CELL): Enclose the expression in brackets. This
3816 might be unnecessary, but I feel better this way :-)
3818 (SCM_GC_CELL_TYPE): New macro.
3820 (SCM_SETAND_CDR, SCM_SETOR_CDR): Deprecated. These are not used
3821 in guile, and it is unlikely that they will be applied to real
3824 (SCM_SET_FREE_CELL_TYPE): Removed. It was not used.
3826 (SCM_GC_SET_ALLOCATED): New macro. Only non-empty if guile is
3827 compiled with SCM_DEBUG_CELL_ACCESSES set to true.
3829 (SCM_NEWCELL, SCM_NEWCELL2): Use of SCM_GC_SET_ALLOCATED will
3830 make sure that in debug mode no free cell will ever be visible
3831 outside of the garbage collector.
3833 2001-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
3835 * async.c (scm_asyncs_pending): Don't use != to compare SCM
3838 * async.c (scm_system_async), variable.c (scm_make_variable,
3839 scm_make_undefined_variable): Use scm_cons to create a pair.
3841 * debug.c (scm_reverse_lookup): Perform proper type checking.
3842 Remove suspicious use of SCM_SLOPPY_CONSP.
3844 * eq.c (scm_equal_p), tags.h (SCM_ECONSP): Use SCM_CONSP instead
3845 of SCM_SLOPPY_CONSP. A sane compiler should be able to perform
3846 the corresponding optimization.
3848 * eval.c (iqq): Use proper type check.
3850 (scm_m_expand_body): Remove redundant type checks.
3852 (promise_print): Don't access promise cells as pairs.
3854 * eval.c (EVALCAR, iqq, scm_m_expand_body, scm_eval_args,
3855 scm_deval_args SCM_CEVAL), guardians.c (scm_guard), hashtab.c
3856 (scm_internal_hash_fold), print.c (scm_iprlist): Use !SCM_CELLP
3857 for SCM_NCELLP, !SCM_CONSP for SCM_NCONSP, !SCM_IMP for SCM_NIMP,
3858 !SCM_FALSEP for SCM_NFALSEP, !SCM_NULLP for SCM_NNULLP
3860 * eval.c (scm_m_define, scm_macroexp, SCM_CEVAL), print.c
3861 (scm_iprin1): Use new macro predicate and accessors.
3863 * eval.h (scm_tc16_macro): Removed declaration. It is declared
3866 * eval.h (EVALH), macros.h (MACROSH), ports.h (PORTSH), procs.h
3867 (PROCSH), tags.h (TAGSH), variable.h (VARIABLEH): Renamed to
3868 SCM_EVAL_H, SCM_MACROS_H, SCM_PORTS_H, SCM_PROCS_H, SCM_TAGS_H and
3869 SCM_VARIABLE_H. Even the macros that are used to inhibit
3870 including a header file twice should be in the SCM_ namespace.
3872 * fluids.c (scm_swap_fluids, scm_swap_fluids_reverse),
3873 properties.c (scm_primitive_property_ref,
3874 scm_primitive_property_del_x): Prefer stronger predicates like
3875 SCM_NULLP or SCM_FALSEP over SCM_IMP.
3877 * gc.c (MARK): Use proper macros to access procedure-with-setter
3878 cell elements and closure cell elements.
3880 (gc_sweep_freelist_finish, scm_gc_sweep, init_heap_seg): Don't
3881 access free cells as pairs.
3883 (scm_unprotect_object): scm_hashq_get_handle returns #f if
3884 no hashtab entry is found.
3886 * gc.c (scm_gc_sweep), ports.c (scm_close_port): Use new macro
3887 SCM_CLR_PORT_OPEN_FLAG.
3889 * guardians.c (TCONC_IN), print.c (scm_free_print_state): Don't
3890 use SCM_SET_C[AD]R for uninitialized cells.
3892 * hashtab.c (scm_hash_fn_get_handle): Use SCM_VALIDATE_VECTOR.
3893 If the hashtable has no slots, return #f instead of '(). This
3894 unifies the return value with most assoc-functions.
3896 (scm_hash_fn_ref): Use proper type check.
3898 (scm_hashq_get_handle, scm_hashv_get_handle, scm_hash_get_handle):
3899 Removed references to non-existing functions from documentation.
3901 * keywords.c (scm_keyword_dash_symbol): Use proper macros to
3902 access keyword cell elements.
3904 * macros.h (SCM_MACROP, SCM_MACRO_TYPE, SCM_MACRO_CODE): New
3907 * ports.h (SCM_CLR_PORT_OPEN_FLAG): New macro.
3909 * print.c (scm_iprlist): Added comment. Improved loop
3912 * procs.h (SCM_ENV, SCM_SETENV): Don't access closure cells as
3915 * smob.c (scm_markcdr): Don't access smob cells as pairs.
3917 * tags.h (SCM_SLOPPY_CONSP, SCM_SLOPPY_NCONSP): Deprecated.
3919 * throw.c (ACTIVATEJB, DEACTIVATEJB): Don't access jump buffer
3922 * variable.c (variable_print, variable_equalp, scm_variable_ref,
3923 scm_variable_set_x): Use proper macros to access variable cell
3926 (scm_variable_bound_p): Don't use SCM_NEGATE_BOOL.
3928 * variable.h (SCM_VARVCELL): Don't access variable cells as
3931 * vectors.c (scm_vector), weaks.c (scm_weak_vector): Simplified,
3932 added FIXME comment, removed register specifier.
3934 2001-03-29 Keisuke Nishida <kxn30@po.cwru.edu>
3936 * goops.c, goops.h (scm_init_oop_goops_goopscore_module): Deprecated.
3937 * init.c (scm_init_guile_1): Don't init goopscore module.
3939 2001-03-27 Marius Vollmer <mvo@zagadka.ping.de>
3941 * eval.c (SCM_APPLY): Check that arg1 is bound for scm_tc7_cxr.
3943 2001-03-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
3945 * strop.c (scm_string_to_list): Fixed docstring markup.
3946 (scm_string_upcase_x, scm_string_upcase, scm_string_downcase_x),
3947 (scm_string_downcase, scm_string_capitalize_x),
3948 (scm_string_capitalize): Rewrote and corrected docstrings.
3949 (scm_string_ci_to_symbol): Made docstring more explicit.
3951 2001-03-27 Marius Vollmer <mvo@zagadka.ping.de>
3953 * values.h (scm_values_vtable, SCM_VALUESP): Moved here so that
3955 (scm_call_with_values): Removed.
3956 * values.c (values_vtable, scm_values_vtable): Added "scm_" prefix
3957 so that it can be exported.
3958 (scm_call_with_values): Removed.
3960 * tags.h (SCM_IM_CALL_WITH_VALUES): New isym.
3961 * eval.c: Include "libguile/values.h"
3962 (scm_m_at_call_with_values, scm_sym_at_call_with_values):
3964 (unmemocopy, scm_ceval, scm_deval): Handle new isym.
3965 * eval.h (scm_sym_at_call_with_values, scm_m_at_call_with_values):
3966 New delcarations to support above change.
3968 * eval.c (scm_primitive_eval_x, scm_primitive_eval): Fix syntax
3969 errors with last change.
3971 2001-03-25 Marius Vollmer <mvo@zagadka.ping.de>
3973 * eval.c (scm_primitive_eval_x, scm_primitive_eval, scm_i_eval_x,
3974 scm_i_eval): Moved the application of the system transformer from
3975 scm_i_eval to scm_primitive_eval.
3977 2001-03-23 Neil Jerram <neil@ossau.uklinux.net>
3979 * guile-snarf.awk.in: Substitute "\\" with "\" in .doc output.
3981 * strop.c (scm_string_index): Fix docstring line break
3984 * list.c (scm_cons_star): Fix docstring typo.
3986 2001-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
3988 * gc.c (scm_init_storage), gdbint.c (scm_init_gdbint), numbers.c
3989 (big2str), ports.c (scm_drain_input), read.c (scm_read,
3990 scm_grow_tok_buf), strings.c (scm_string, scm_makfromstr,
3991 scm_make_string, scm_string_append), strports.c (st_resize_port,
3992 scm_object_to_string), unif.c (scm_make_uve): Replace calls to
3993 scm_makstr with calls to scm_allocate_string.
3995 * strings.[ch] (scm_allocate_string): New function.
3997 * strings.[ch] (scm_makstr): Deprecated.
3999 2001-03-18 Gary Houston <ghouston@arglist.com>
4001 * posix.c (scm_tmpnam): check that return value from tmpnam is not
4002 NULL. rewrote the docstring.
4003 (scm_mkstemp): new procedure implementing "mkstemp!".
4004 * posix.h: declare scm_mkstemp.
4006 * net_db.c: declare h_errno if configure didn't define HAVE_H_ERRNO.
4007 normally it would be found in netdb.h.
4009 2001-03-17 Gary Houston <ghouston@arglist.com>
4011 * sort.c (scm_sort): move sortvec variable to avoid a compiler
4012 warning when HAVE_ARRAYS is not defined. move len too.
4014 * Makefile.am (DOT_X_FILES): remove net_db.x, posix.x, socket.x.
4015 (EXTRA_DOT_X_FILES): let configure set the value.
4016 (DOT_DOC_FILES): remove net_db.doc, posix.doc, socket.doc.
4018 * gc.c (scm_must_malloc): changed the comment explaining when
4019 scm_must variants of malloc/free etc., should be used, based on
4020 explanation from Dirk Herrmann.
4021 * fports.c (scm_fport_buffer_add): use FUNC_NAME instead of a local
4022 string with procedure name. use scm_must_malloc instead of malloc.
4023 (scm_setvbuf, scm_fdes_to_port, fport_close): use scm_must variants
4025 * ports.c (scm_add_to_port_table, scm_remove_from_port_table,
4026 scm_ungetc): use scm_must variants of malloc/realloc/free.
4027 (scm_add_to_port_table, scm_ungetc): define FUNC_NAME.
4029 2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
4031 * __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
4032 SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n): Don't call scm_wta, call
4033 scm_wrong_type_arg instead.
4035 (SCM_WNA): Deprecated.
4037 * error.[ch] (scm_wta): Deprecated.
4039 * numbers.c (s_i_log): Minor comment fix.
4041 * read.c (scm_lreadr), unif.c (scm_aind, scm_shap2ra,
4042 scm_make_shared_array, scm_transpose_array, scm_enclose_array,
4043 scm_array_in_bounds_p): Don't use SCM_ASSERT to check for
4044 wrong-num-args or misc errors.
4046 * unif.c (scm_make_shared_array, scm_transpose_array,
4047 scm_enclose_array, scm_array_in_bounds_p, scm_array_set_x):
4048 Validate the rest argument (note: this is only done when guile is
4049 built with SCM_DEBUG_REST_ARGUMENT=1)
4051 (scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x):
4052 Replace calls to scm_wrong_num_args by SCM_WRONG_NUM_ARGS.
4054 * validate.h (SCM_FUNC_NAME, SCM_VALIDATE_NUMBER_COPY,
4055 SCM_VALIDATE_NUMBER_DEF_COPY): Deprecated.
4057 2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
4059 * validate.h (SCM_WRONG_NUM_ARGS): Call scm_error_num_args_subr
4060 instead of scm_wrong_num_args.
4062 * coop-threads.c: Don't include libguile/strings.h. (Was only
4063 needed for former implementation of SCM_WRONG_NUM_ARGS.)
4065 * debug.c (scm_m_start_stack): Don't use SCM_ASSERT to check for
4066 wrong-num-args errors.
4068 2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
4070 * error.[ch] (scm_error_num_args_subr): New function.
4072 2001-03-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4074 * list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),
4075 (scm_length, scm_append, scm_reverse, scm_list_ref),
4076 (scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x),
4077 (scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x),
4078 (scm_delete1_x), gc.c (scm_map_free_list),
4079 (scm_free_list_length), hash.c (scm_hashq, scm_hashv),
4080 (scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x),
4081 (scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x),
4082 (scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x),
4083 (scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c
4084 (scm_current_pstate), scmsigs.c (scm_usleep), goops.c
4085 (scm_get_keyword, scm_sys_compute_slots): Added texinfo markup.
4087 * weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p),
4088 (scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
4089 rdelim.c (scm_read_delimited_x), strop.c (scm_string_index),
4090 symbols.c (scm_symbol_interned_p), numbers.c
4091 (scm_string_to_number), ports.c (scm_port_p): Corrected texinfo
4094 2001-03-16 Keisuke Nishida <kxn30@po.cwru.edu>
4096 * snarf.h (SCM_CONST_LONG): Deprecated.
4097 * tag.c (CONST_INUM): New macro. Use it to define scm_utag_*.
4099 2001-03-15 Marius Vollmer <marius.vollmer@uni-dortmund.de>
4101 * numbers.c (scm_num2ulong): Check that a bignum is positive
4102 before looking at the magnitude. Correctly check for overflow
4104 (scm_num2long_long): Likewise.
4105 (scm_num2ulong_long): New.
4106 (ULONG_LONG_MAX): Define if not already defined.
4107 * numbers.h: (scm_num2ulong_long): New prototype.
4109 2001-03-15 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4111 * validate.h (SCM_VALIDATE_OPOUTSTRPORT): New macro.
4113 * strports.h (SCM_STRPORTP, SCM_OPSTRPORTP, SCM_OPINSTRPORTP),
4114 (SCM_OPOUTSTRPORTP): New predicate macros.
4115 (scm_open_input_string, scm_open_output_string),
4116 (scm_get_output_string): New prototypes.
4118 * strports.c (scm_open_input_string, scm_open_output_string),
4119 (scm_get_output_string): New procedures (SRFI-6 compliant).
4120 Made scm_tc16_strport non-static.
4122 2001-03-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
4124 * macros.h (SCM_ASSYNT): Removed unused object argument from
4127 * eval.c (scm_m_body, scm_m_quote, scm_m_begin, scm_m_if,
4128 scm_m_set_x, scm_m_and, scm_m_or, scm_m_case, scm_m_cond,
4129 scm_m_letstar, scm_m_do, scm_m_quasiquote, scm_m_delay,
4130 scm_m_define, scm_m_letrec1, scm_m_letrec, scm_m_let, scm_m_apply,
4131 scm_m_cont, scm_m_nil_cond, scm_m_nil_ify, scm_m_t_ify,
4132 scm_m_0_cond, scm_m_0_ify, scm_m_1_ify, scm_m_atfop, scm_m_atbind,
4133 scm_m_expand_body), evalext.c (scm_m_generalized_set_x,
4134 scm_m_undefine), goops.c (scm_m_atslot_ref, scm_m_atslot_set_x,
4135 scm_m_atdispatch): Removed unused object argument from call to
4138 2001-03-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
4140 * gh.h/gh_data.c (gh_ints2scm): Changed the signature to use a
4141 const int* to reflect that the input array of integers remains
4142 unchanged. Thanks to Brett Viren for the hint.
4144 2001-03-14 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4146 * gh_data.c (gh_scm2chars, gh_scm2shorts, gh_scm2longs),
4147 (gh_scm2floats, gh_scm2doubles): Check for malloc() returning NULL
4149 (gh_scm2newstr, gh_symbol2newstr): Change call to
4150 scm_must_malloc() to malloc(), because user-free()able memory is
4153 * gc.c: Added declaration of `scm_debug_check_freelist'.
4155 2001-03-13 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4157 * ports.c (scm_port_mode): Changed `mode' array size to 4.
4159 2001-03-12 Keisuke Nishida <kxn30@po.cwru.edu>
4161 * strports.c (scm_object_to_string): New procedure.
4162 (scm_strprint_obj): Deprecated.
4163 * strports.h: Reflect the changes.
4165 2001-03-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
4167 * goops.h (SCM_VALIDATE_PUREGENERIC): New macro.
4169 * goops.c (scm_m_atslot_ref, scm_m_atslot_set_x,
4170 scm_m_atdispatch): Provide definitions for FUNC_NAME. Don't use
4171 SCM_ASSYNT to check for correct argument types. Either use some
4172 SCM_VALIDATE_* macro or an explicit test.
4174 (scm_make_foreign_object): Don't use SCM_ASSERT to check for
4177 * macros.h (SCM_ASSYNT): On assertion failure, issue a misc-error
4178 instead of calling scm_wta.
4180 2001-03-12 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4182 * load.c (scm_primitive_load, scm_primitive_load_path),
4183 (scm_sys_search_load_path): Corrected docstrings (file ->
4186 * eval.c (scm_force): Added texinfo markup to docstring.
4187 (scm_promise_p): Renamed parameter to `obj' to match docstring.
4189 * debug-malloc.c: Reinserted #include <stdio.h>.
4191 2001-03-11 Keisuke Nishida <kxn30@po.cwru.edu>
4193 * list.c (s_scm_reverse_x): Use SCM_VALIDATE_LIST.
4195 * environments.c, error.c, eval.c, filesys.c, hashtab.c, load.c,
4196 net_db.c, procprop.c, read.c, scmsigs.c, socket.c, struct.c:
4197 Use SCM_LISTn instead of scm_listify.
4199 2001-03-10 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4201 * _scm.h: Removed #include <errno.h>.
4203 * error.c, net_db.c, putenv.c, stime.c: Removed declaration of
4204 errno variable (can be a macro on some systems, for example when
4205 using linux libc with threads).
4207 * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
4208 posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
4209 socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
4210 #include <errno.h> in these 20 out of 100 files.
4212 2001-03-10 Gary Houston <ghouston@arglist.com>
4214 * socket.c: add a definition of SUN_LEN (from glibc) for when it's
4215 not already defined.
4217 2001-03-09 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4219 * coop.c: Inserted #include <stdio.h>.
4221 * iselect.c: Reinserted #include <stdio.h>.
4223 2001-03-10 Marius Vollmer <mvo@zagadka.ping.de>
4225 * posix.c: Replaced `#define' of __USE_XOPEN right before
4226 including unistd.h with a define of _GNU_SOURCE at the very top of
4229 2001-03-09 Keisuke Nishida <kxn30@po.cwru.edu>
4231 * alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
4232 continuations.c, debug-malloc.c, debug.c, dynwind.c, eq.c, eval.c,
4233 feature.c, filesys.h, gc_os_dep.c, gh_data.c, gh_eval.c,
4234 gh_funcs.c, gh_io.c, gh_list.c, gh_predicates.c, hash.c,
4235 hashtab.c, iselect.c, keywords.c, list.c, load.c, mallocs.c,
4236 net_db.c, numbers.c, objprop.c, objprop.h, options.c, pairs.c,
4237 print.c, procprop.c, procs.c, properties.c, ramap.c,
4238 regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c, srcprop.c,
4239 stackchk.c, stacks.c, strings.c, strop.c, strorder.c, struct.c,
4240 symbols.c, tag.c, threads.c, variable.c, vectors.c, weaks.c:
4241 Remove #include <stdio.h>
4242 * gc.c, gdbint.c, root.c, sort.c, unif.c: Add #include <string.h>.
4244 * procs.c (scm_make_subr_opt): Init symcell to avoid warning.
4246 2001-03-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4248 * posix.c (scm_gethostname): Set initial name length to 256 for
4251 2001-03-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4253 * posix.h (scm_crypt, scm_chroot, scm_getlogin, scm_cuserid),
4254 (scm_getpriority, scm_setpriority, scm_getpass, scm_flock),
4255 (scm_sethostname, scm_gethostname): New prototypes.
4257 * posix.c: Added inclusion of <crypt.h>, <sys/resource.h> and
4258 <sys/file.h>, if present.
4259 (scm_init_posix): [PRIO_PROCESS, PRIO_PGRP, PRIO_USER, LOCK_SH,
4260 LOCK_EX, LOCK_UN, LOCK_NB]: New variables.
4261 (scm_crypt, scm_chroot, scm_getlogin, scm_cuserid),
4262 (scm_getpriority, scm_setpriority, scm_getpass, scm_flock),
4263 (scm_sethostname, scm_gethostname): New procedures.
4265 2001-03-08 Neil Jerram <neil@ossau.uklinux.net>
4267 * ports.c (scm_port_column): Docstring fixes: (i) port-line arg is
4268 not optional (ii) "recommend" spelling correction.
4270 2001-03-08 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4272 * ramap.c (racp): Removed optimization which caused array copying
4273 to fail if the two arrays shared storage. Re-inserted the IVDEP
4274 macros removed in the change of 2000-03-09. (Don't really have a
4275 complete grasp of what they are for, but they seem to be necessary
4276 on Crays. This needs testing!) Thanks to Miroslav Silovic.
4278 * hash.c (scm_string_hash): Don't downcase characters.
4280 2001-03-07 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4282 * symbols.c (scm_symbols_prehistory): Changed symbol hash table
4283 size from 277 --> 1009.
4285 * symbols.c, symbols.h (scm_sys_symbols): New function GUILE_DEBUG
4288 * coop-threads.c: Fixed change of 2001-03-06.
4290 * validate.h: Code formatting.
4292 2001-03-07 Keisuke Nishida <kxn30@po.cwru.edu>
4294 * Makefile.am (*.x): Add dependency on snarf.h and guile-doc-snarf.in.
4295 (*.doc): Add dependency on guile-snarf.awk.in.
4297 * guile-snarf.awk.in: Neglect spaces at the end of
4298 SCM_SNARF_DOCSTRING_END. Skip lines "# NN ..." in the
4299 middle of docstrings. (To avoid the problem with gcc-2.96.)
4301 2001-03-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
4303 * coop-threads.c (scm_call_with_new_thread), load.c
4304 (scm_primitive_load, scm_sys_search_load_path), random.c
4305 (scm_c_default_rstate), struct.c (scm_make_struct_layout,
4306 scm_struct_ref, scm_struct_set_x): Don't use SCM_ASSERT to
4307 (potentially) issue a scm-misc-error or wrong-num-args error
4310 * load.c (scm_search_path): Use SCM_ASSERT_TYPE to give details
4311 about the expected type with the wrong-type-arg error message.
4313 * smob.c (scm_make_smob): Abort on misuse of smob - it indicates
4314 a C level bug that can't be fixed from scheme anyway.
4316 2001-03-05 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4318 * eval.c (scm_m_letstar): Removed check for duplicate bindings.
4319 Duplicate bindings are OK in a let* since a let* is semantically
4320 equivalent to a nested set of let:s.
4322 2001-03-05 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4324 * print.c (scm_print_options): Fixed texinfo in docstring.
4326 * net_db.c (scm_getserv, scm_getproto, scm_getnet): Return #f if
4327 the underlying functions getservent, getprotoent or getnetent
4328 return NULL instead of signalling an error.
4330 2001-03-04 Gary Houston <ghouston@arglist.com>
4332 * socket.c (scm_fill_sockaddr): don't allow buffer overflows when
4333 taking an unexpectedly large filename for an AF_UNIX socket from
4334 bind/connect/sendto (thanks to Martin Grabmueller).
4336 * socket.c (scm_sock_fd_to_port, SCM_SOCK_FD_TO_PORT): removed the
4337 former and adjusted the latter.
4338 (scm_socket, scm_socketpair): cosmetic changes.
4339 (scm_getsockopt, scm_setsockopt): declare optlen as int, not
4340 size_t as socklen_t substitute. don't restrict args/return values
4341 to INUM: allow full range of int or size_t.
4342 (scm_fill_sockaddr): check arguments before allocating memory, to
4343 avoid leakage. use malloc, not scm_must_malloc.
4344 (scm_connect, scm_bind, scm_sendto): use int, not size_t as socklen_t
4345 substitute. free the sockaddr structure before throwing an error.
4346 (scm_init_add_buffer): procedure removed, together with its static
4347 buffer scm_addr_buffer, which wouldn't be thread safe. instead,
4348 define a macro MAX_ADDR_SIZE and declare the buffer where needed.
4349 (scm_accept, scm_getpeername, scm_getsockname, scm_recvfrom,
4350 scm_sendto): use a local buffer instead of scm_addr_buffer.
4351 adjust for new SCM_SOCK_FD_TO_PORT. use int for address size,
4353 (scm_recvfrom): set addr->sa_family to AF_UNSPEC before the recvfrom
4354 call to detect whether recvfrom could be bothered to set the address.
4355 (scm_init_socket): don't call scm_init_addr_buffer.
4357 2001-03-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
4359 * debug.c (scm_procedure_source, scm_procedure_environment),
4360 print.c (scm_get_print_state), ramap.c (scm_array_fill_int,
4361 scm_array_index_map_x), sort.c (scm_sort_x, scm_sort,
4362 scm_stable_sort_x, scm_stable_sort), stacks.c (scm_make_stack,
4363 scm_last_stack_frame), symbols.c (scm_sym2vcell, scm_sym2ovcell),
4364 unif.c (scm_list_to_uniform_array, scm_uniform_vector_length,
4365 scm_transpose_array, scm_enclose_array, scm_array_in_bounds_p,
4366 scm_uniform_vector_ref, scm_array_set_x, scm_uniform_array_read_x,
4367 scm_uniform_array_write, scm_bit_set_star_x, scm_bit_count_star,
4368 scm_array_to_list, scm_array_prototype), validate.h
4369 (SCM_VALIDATE_NUMBER_COPY): Don't call function scm_wta, call
4370 scm_misc_error or scm_wrong_type_arg instead.
4372 * validate.h (SCM_WTA, RETURN_SCM_WTA): Deprecated.
4374 2001-03-04 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4376 * goops.c, goops.h (scm_sys_pre_expand_closure_x): Removed.
4377 (scm_sys_tag_body): Added.
4379 2001-03-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
4381 * continuations.c (continuation_apply), eval.c (scm_m_lambda,
4382 scm_m_letstar, scm_m_letrec1, scm_m_let, SCM_APPLY), eval.h
4383 (SCM_EVALIM2), evalext.c (scm_m_generalized_set_x), gc.c
4384 (get_bvec, MARK), goops.c (scm_primitive_generic_generic),
4385 options.c (scm_options), ports.c (scm_remove_from_port_table),
4386 ramap.c (scm_ramapc), read.c (skip_scsh_block_comment, scm_lreadr,
4387 scm_lreadparen, scm_lreadrecparen), script.c (script_get_octal,
4388 script_get_backslash, script_read_arg), unif.c (scm_cvref): Don't
4389 call function scm_wta, call scm_misc_error or scm_wrong_type_arg
4392 2001-03-04 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4394 * goops.c (scm_sys_pre_expand_closure_x): New procedure.
4396 2001-03-04 Marius Vollmer <mvo@zagadka.ping.de>
4398 * eval.c (scm_s_duplicate_bindings): New error message.
4399 (scm_m_letrec1, scm_m_letstar): Check for duplicate bindings.
4401 2001-03-03 Marius Vollmer <mvo@zagadka.ping.de>
4403 * eval.h (SCM_EVALIM2): New macro. Use it when a
4404 immediate, literal constant should be evaluated.
4405 * eval.c (scm_s_duplicate_formals): New error message string.
4406 (scm_c_improper_memq): New function.
4407 (scm_m_lambda): Check for duplicate arguments.
4408 (scm_ceval, scm_deval): When executing a body: only cons a new
4409 toplevel environment frame when it is different from the
4410 existing one; use EVALCAR instead of SIDEVAL so that we can properly
4411 check for empty combinations; use SCM_EVALIM2 for the same reason
4412 in the non-toplevel loop.
4413 (nontoplevel_cdrxnoap, nontoplevel_cdrxbegin, nontoplevel_begin):
4414 New labels with the meaning of their non-"nontoplevel" partners,
4415 but they are used when it is known that the body is not evaluated at
4417 (scm_apply, scm_dapply): use SCM_EVALIM2 to get proper error
4418 reporting for empty combinations.
4420 2001-03-02 Keisuke Nishida <kxn30@po.cwru.edu>
4422 * Remove dump facilities.
4423 * dump.c, dump.h: Removed.
4424 * Makefile.am: Remove dump.c, dump.h, dump.x, dump.doc.
4425 * init.c: Remove #include "libguile/dump.h".
4426 (scm_init_guile_1): Remove scm_init_dump.
4427 * smob.h (scm_smob_descriptor): Remove slots: dump, undump.
4428 (scm_set_smob_dump, scm_set_smob_undump): Remove declaration.
4429 * smob.c (scm_make_smob_type): Remove initialization: dump, undump.
4430 (scm_set_smob_dump, scm_set_smob_undump): Removed.
4432 * keywords.c: Remove #include "libguile/dump.h".
4433 (keyword_dump, keyword_undump): Removed.
4434 (scm_init_keywords): Remove scm_set_smob_dump and scm_set_smob_undump.
4436 2001-03-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4438 * vectors.c (s_scm_vector_p, list->vector, scm_vector)
4439 (scm_vector_ref, scm_vector_set_x, scm_vector_to_list)
4440 (scm_vector_fill_x), strorder.c (scm_string_equal_p)
4441 (scm_string_ci_equal_p, scm_string_less_p, scm_string_leq_p)
4442 (scm_string_gr_p, scm_string_geq_p, scm_string_ci_less_p)
4443 (scm_string_ci_geq_p), symbols.c (scm_symbol_p)
4444 (scm_symbol_to_string, scm_string_to_symbol): Changed use of @t{}
4445 to @code{} as the texinfo manual recommends, converted the
4446 examples to use a @lisp{}-environment.
4448 * strports.c (scm_eval_string): Cleaned up the docstring.
4450 * struct.c (scm_struct_p, scm_struct_vtable_p): Added texinfo
4453 * numbers.c (scm_exact_p, scm_odd_p, scm_even_p)
4454 (scm_number_to_string, scm_string_to_number, scm_number_p)
4455 (scm_real_p, scm_integer_p, scm_inexact_p, scm_make_rectangular)
4456 (scm_make_polar, scm_inexact_to_exact): Added texinfo markup.
4457 (scm_ash): Added texinfo markup and removed obsolete @refill.
4458 (scm_gr_p): Corrected comment.
4459 (scm_gr_p, scm_leq_p, scm_geq_p): Added texinfo markup to (future
4460 docstring) comments.
4461 (scm_positive_p, scm_less_p, scm_num_eq_p, scm_real_p)
4462 (scm_number_p, scm_negative_p, scm_max, scm_min, scm_sum)
4463 (scm_difference, scm_product, scm_divide, scm_asinh, scm_acosh)
4464 (scm_atanh, scm_truncate, scm_round, scm_exact_to_inexact)
4465 (floor, ceiling, $sqrt, $abs, $exp, $log, $sin, $cos, $tan, $asin)
4466 ($acos, $atan, $sinh, $cosh, $tanh, scm_real_part, scm_imag_part)
4467 (scm_magnitude, scm_angle, scm_abs, scm_quotient, scm_remainder)
4468 (scm_modulo, scm_gcd, scm_lcm): Added (future docstring) comments.
4470 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
4472 * __scm.h (SCM_ASSERT_TYPE): Add missing macro parameter.
4473 (Obviously nobody compiles with SCM_RECKLESS defined...)
4475 * validate.h (SCM_ASSERT_RANGE): Use the argument number.
4477 2001-02-23 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4479 * ports.c, ports.h (scm_c_read, scm_c_write): New functions.
4481 * ports.h (SCM_READ_BUFFER_EMPTY_P): New macro.
4483 2001-02-24 Neil Jerram <neil@ossau.uklinux.net>
4485 * numbers.c (scm_two_doubles, scm_sys_expt, scm_sys_atan2,
4486 scm_make_polar): Rename arguments `z1' and `z2' to `x' and `y',
4487 since use of `z' suggests that the arguments may be complex.
4489 * goops.c (scm_make), numbers.c (scm_sys_expt): Fix docstring
4492 2001-02-23 Neil Jerram <neil@ossau.uklinux.net>
4494 * dump.c (scm_binary_write, scm_binary_read), eval.c
4495 (scm_primitive_eval), guardians.c (scm_guardian_destroyed_p,
4496 scm_guardian_greedy_p, scm_make_guardian), fports.c
4497 (scm_file_port_p): Minor docstring fixes.
4499 2001-02-22 Marius Vollmer <mvo@zagadka.ping.de>
4501 * load.c (load): Use scm_primitive_eval_x instead of scm_i_eval_x.
4503 * goops.c (scm_add_method, DEFVAR): Use scm_eval instead of
4505 (make_class_from_template): Do not bother to set the current
4506 module around the call to DEFVAR, scm_eval takes care of that.
4507 (scm_init_goops): Make scm_module_goops and
4508 scm_goops_lookup_closure permanent objects.
4510 * eval.c (scm_ceval, scm_deval): When evaluating expressions on
4511 top level, create a fresh top-level environment for each
4512 expression instead of mutating the exisint frame. This is
4513 important when that frame is closed over.
4515 * numbers.c (s_scm_logior) [SCM_DIGSTOOBIG]: Also use
4516 SCM_DIGSPERLONG instead of DIGSPERLONG.
4518 2001-02-21 Marius Vollmer <mvo@zagadka.ping.de>
4520 * eval.c (scm_ceval, scm_deval): Check for wrong number of args
4521 before applying arrow procedure in `cond' and before applying
4522 receiver procedure in call-with-current-continuation.
4523 (scm_i_eval): Do not invoke scm_copy_tree in argument in SCM_XEVAL
4524 macro. The argument is expanded more than one time.
4526 * numbers.c (scm_logior) [SCM_DIGSTOOBIG]: Correctly use
4527 SCM_BIGDIG instead of BIGDIG. Thanks to Steven G. Johnson!
4529 2001-02-20 Marius Vollmer <mvo@zagadka.ping.de>
4531 * guile-doc-snarf.in, guile-func-name-check.in: Added copyright
4534 2001-02-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4536 * variable.c (scm_make_variable, scm_make_undefined_variable)
4537 (scm_variable_ref, scm_variable_set_x, scm_builtin_variable)
4538 (scm_variable_bound_p), values.c (scm_values)
4539 (scm_call_with_values), unif.c (scm_bit_count)
4540 (scm_bit_set_star_x), symbols.c (scm_gentemp)
4541 (scm_gensym), strings.c (scm_string_p, scm_make_string)
4542 (scm_read_only_string_p, scm_string_length, scm_string_ref)
4543 (scm_string_set_x, scm_substring, scm_string_append), stime.c
4544 (scm_strptime, scm_mktime), random.c (scm_seed_to_random_state)
4545 (scm_copy_random_state, scm_random), print.c (scm_newline)
4546 (scm_write_char, scm_simple_format), debug-malloc.c
4547 (scm_malloc_stats), environments.c (scm_environment_p)
4548 (scm_environment_bound_p, scm_environment_ref)
4549 (scm_environment_fold, scm_environment_define)
4550 (scm_environment_undefine, scm_environment_set_x)
4551 (scm_environment_cell, scm_environment_observe)
4552 (scm_environment_observe_weak, scm_environment_unobserve)
4553 (scm_make_eval_environment, scm_eval_environment_p)
4554 (scm_eval_environment_set_local_x, scm_eval_environment_local)
4555 (scm_eval_environment_imported)
4556 (scm_eval_environment_set_imported_x, scm_make_import_environment)
4557 (scm_import_environment_p, scm_import_environment_imports)
4558 (scm_import_environment_set_imports_x, scm_make_export_environment)
4559 (scm_export_environment_p, scm_export_environment_private)
4560 (scm_export_environment_set_private_x)
4561 (scm_export_environment_signature)
4562 (scm_export_environment_set_signature_x, scm_leaf_environment_p):
4563 Added texinfo markup.
4565 * ports.c (scm_drain_input): Lowercased argument to @var.
4566 (scm_current_input_port, scm_current_output_port): Filled in
4567 missing explanation.
4568 (scm_current_load_port, scm_set_current_output_port)
4569 (scm_set_current_error_port, scm_port_line, scm_set_port_line_x):
4570 Added texinfo markup.
4572 * arbiters.c (scm_make_arbiter, scm_try_arbiter)
4573 (scm_release_arbiter): Added texinfo markup to docstrings.
4574 Changed `Returns' to `Return'.
4575 (arbiter_print): Changed SCM_CDR to SCM_SMOB_DATA.
4577 2001-02-16 Neil Jerram <neil@ossau.uklinux.net>
4579 * guile-snarf.awk.in: Quote any `@'s that occur in Scheme names,
4580 by doubling them to `@@'.
4582 2001-02-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4584 * numbers.c (scm_lognot), random.c (scm_random,
4585 scm_random_normal, scm_random_solid_sphere_x,
4586 scm_random_hollow_sphere_x, scm_random_normal_vector_x,
4587 scm_random_exp), dynwind.c
4588 (scm_dynamic_wind): Removed unnecessary "" from docstrings.
4590 * goops.c (scm_sys_initialize_object, scm_instance_p,
4591 scm_class_name, scm_class_precedence_list, scm_class_slots,
4592 scm_class_environment, scm_generic_function_name,
4593 scm_generic_function_methods, scm_method_generic_function,
4594 scm_method_specializers, scm_method_procedure, scm_make_unbound,
4595 scm_unbound_p, scm_assert_bound, scm_at_assert_bound_ref,
4596 scm_sys_fast_slot_ref, scm_sys_fast_slot_set_x, scm_slot_ref,
4597 scm_slot_set_x, _scm_slot_bound_p, scm_slots_exists_p,
4598 scm_sys_allocate_instance, scm_make, scm_pure_generic_p,
4599 scm_class_direct_supers, scm_class_direct_slots,
4600 scm_class_direct_subclasses, scm_class_direct_methods,
4601 scm_accessor_method_slot_definition, scm_sys_goops_loaded),
4602 debug.c (scm_with_traps, scm_memoized_p, scm_make_gloc,
4603 scm_gloc_p, scm_make_iloc, scm_iloc_p, scm_memcons,
4604 scm_mem_to_proc, scm_proc_to_mem, scm_unmemoize,
4605 scm_memoized_environment, scm_procedure_name,
4606 scm_procedure_source, scm_procedure_environment, scm_debug_hang),
4608 (scm_class_of, scm_entity_p, scm_operator_p,
4609 scm_set_object_procedure_x, scm_object_procedure,
4610 scm_make_class_object), hooks.c (scm_make_hook_with_name,
4611 scm_make_hook, scm_hook_p, scm_hook_empty_p, scm_add_hook_x,
4612 scm_remove_hook_x, scm_reset_hook_x, scm_run_hook,
4613 scm_hook_to_list), lang.c
4614 (scm_nil_cons, scm_nil_car, scm_nil_cdr, scm_null, scm_nil_eq),
4615 numbers.c (scm_sys_expt, scm_sys_atan2), print.c
4616 (scm_print_options, scm_port_with_print_state,
4617 scm_get_print_state), procs.c (scm_make_cclo, scm_procedure_p,
4618 scm_closure_p, scm_thunk_p, scm_procedure_with_setter_p,
4619 scm_make_procedure_with_setter, scm_procedure), throw.c
4620 (scm_lazy_catch), modules.c (scm_standard_eval_closure), load.c
4621 (scm_parse_path, scm_search_path), stacks.c (scm_make_stack,
4622 scm_stack_ref, scm_stack_length, scm_frame_p,
4623 scm_last_stack_frame, scm_frame_number, scm_frame_source,
4624 scm_frame_procedure, scm_frame_arguments, scm_frame_previous,
4625 scm_frame_next, scm_frame_real_p, scm_frame_procedure_p,
4626 scm_frame_evaluating_args_p, scm_frame_overflow_p), filesys.c
4627 (scm_dirname, scm_basename), dynwind.c
4628 (scm_wind_chain), read.c (scm_read_options, scm_read,
4629 scm_read_hash_extend), gc.c
4630 (scm_unhash_name), eval.c (scm_eval_options_interface,
4631 scm_evaluator_traps, s_scm_nconc2last), backtrace.c
4632 (scm_display_error, scm_set_print_params_x,
4633 scm_display_application, scm_display_backtrace, scm_backtrace),
4634 async.c (scm_async, scm_system_async, scm_async_mark,
4635 scm_system_async_mark, scm_run_asyncs, scm_noop,
4636 scm_set_tick_rate, scm_set_switch_rate, scm_unmask_signals,
4637 scm_mask_signals): Added docstrings.
4639 2001-02-15 Keisuke Nishida <kxn30@po.cwru.edu>
4641 * dump.c (scm_undump): Use SCM_CARLOC/SCM_CDRLOC to obtain the
4642 address of car/cdr. (Thanks to Dirk Herrmann)
4643 Use scm_sizet to obtain the length of strings.
4644 (Thanks to Matthias Koeppe)
4646 2001-02-15 Marius Vollmer <mvo@zagadka.ping.de>
4648 * symbols.c (scm_mem2symbol): Put a empty statement after the
4649 next_symbol label. This is mandated by ANSI, appearantly.
4651 2001-02-13 Marius Vollmer <marius.vollmer@uni-dortmund.de>
4653 * gc_os_dep.c: Do not include <linux/version.h>. It makes no
4654 sense to compile for a specific kernel version. Do not include
4655 <asm/signal.h> while defining __KERNEL__. This hack should no
4656 longer be needed and caused problems.
4658 2001-02-13 Marius Vollmer <mvo@zagadka.ping.de>
4660 * eval.c (scm_ceval, scm_deval): use `SIDEVAL' instead of
4661 SCM_CEVAL when evaluating subforms of `begin' forms. SCM_CEVAL
4662 can not deal with immediates.
4664 2001-02-12 Keisuke Nishida <kxn30@po.cwru.edu>
4666 * list.c (scm_list_copy): Validate the first argument.
4668 2001-02-11 Marius Vollmer <mvo@zagadka.ping.de>
4670 Fix evaluator so that top-level expressions are correctly
4671 evaluated with respect to the module system.
4673 * modules.h. modules.c (scm_current_module_lookup_closure): New
4676 * eval.h (scm_primitive_eval, scm_primitive_eval_x): New
4678 (scm_i_eval, scm_i_eval_x, scm_eval, scm_eval_x): Changed argument
4679 names to better reflect their meaning.
4681 * eval.c (scm_ceval, scm_deval): Recognize when `begin' is being
4682 evaluated at top-level and synronize lookup closure before
4683 executing every subform.
4684 (scm_primitve_eval_x, scm_primitive_eval): New functions.
4685 (scm_eval_x, scm_eval): Reimplement in terms of
4686 scm_primitive_eval_x and scm_primitive_eval, respectively.
4688 2001-02-09 Marius Vollmer <mvo@zagadka.ping.de>
4690 * macros.c (scm_macro_name, scm_macro_transformer): Use
4691 SCM_SMOB_DATA instead of SCM_CDR. Provided by Martin Grabmueller.
4694 2001-02-10 Keisuke Nishida <kxn30@po.cwru.edu>
4696 * dump.c (scm_store_bytes): Store data size before data.
4697 (scm_restore_bytes): Restore data size. Takes a pointer to size.
4698 * dump.h (scm_restore_bytes): Updated.
4700 2001-02-09 Keisuke Nishida <kxn30@po.cwru.edu>
4702 * dump.c: Use double cells for update schedule.
4704 2001-02-08 Keisuke Nishida <kxn30@po.cwru.edu>
4706 * ports.c (scm_unread_char): Take an optional argument.
4708 2001-02-08 Marius Vollmer <marius.vollmer@uni-dortmund.de>
4710 * modules.h (scm_selected_module, scm_current_module): Renamed
4711 scm_selected_module to scm_current_module to synchronize Scheme
4713 (scm_select_module, scm_set_current_module): Likewise. Changed
4716 * ports.c (scm_port_for_each): Make a snapshot of the port table
4717 before iterating over it. The table might change while the user
4718 code is running. With the snapshot, the user can depend on the
4719 fact that each port that existed at the start of the iteration is
4720 encountered exactly once. (ice-9 popen) depends on this.
4722 2001-02-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
4724 * strings.h (SCM_STRING_MAX_LENGTH): New macro.
4726 * strings.c (scm_makstr, scm_take_str, scm_make_string): Added
4727 range checking for the size parameter. Thanks to Martin
4728 Grabmueller for the hint.
4730 (scm_makstr): Reordered string initialization to make interrupt
4731 deferring unnecessary.
4733 * vectors.c (scm_make_vector): Fixed range checking.
4735 2001-02-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
4737 * vectors.h (SCM_VECTOR_MAX_LENGTH): New macro.
4739 * vectors.c (scm_make_vector, scm_c_make_vector): Improved the
4740 checking of the size parameter for type correctness and valid
4741 range. Thanks to Rob Browning for reporting the problem. Instead
4742 of deferring interrupts, scm_remember_upto_here_1 is used.
4744 2001-02-05 Keisuke Nishida <kxn30@po.cwru.edu>
4746 * dump.c (scm_store_cell_object, scm_restore_cell_object): Removed.
4747 (scm_dump_cell_update): Removed.
4748 (scm_dump_update): Renamed from scm_dump_object_update.
4749 (scm_restore_string, scm_restore_bytes, scm_restore_word): Takes
4750 a pointer instead of returning a value.
4751 * keywords.c (keyword_undump): Updated.
4753 2001-02-05 Keisuke Nishida <kxn30@po.cwru.edu>
4755 * dump.c, dump.h: Modified a lot.
4756 (SCM_DUMP_COOKIE): Version 0.1
4757 (scm_dump_mark): Removed.
4758 (scm_restore_cell_object, scm_store_cell_object): New functions.
4760 * smob.h (scm_smob_descriptor): Removed slots: dump_mark,
4761 dump_dealloc, dump_store, undump_alloc, undump_restore, undump_init.
4762 New slots: dump, undump.
4763 * smob.c (scm_make_smob_type, scm_set_smob_dump, scm_set_smob_undump):
4766 * keywords.c (keyword_dump): Renamed from keyword_dealloc.
4767 (keyword_undump): Renamed from keyword_alloc.
4768 (scm_init_keywords): Set keyword_dump and keyword_undump.
4770 2001-02-03 Michael Livshin <mlivshin@bigfoot.com>
4772 * gc.c (DOUBLECELL_ALIGNED_P): new macro, a better-named analog of
4773 the deprecated SCM_DOUBLE_CELLP.
4775 * tags.h (SCM_DOUBLE_CELLP): deprecated.
4777 2001-02-02 Keisuke Nishida <kxn30@po.cwru.edu>
4779 * dump.c, dump.h: New files.
4780 * Makefile.am: Added dump.c, dump.h, dump.x, dump.doc.
4781 * init.c: #include "libguile/dump.h".
4782 (scm_init_guile_1): Call scm_init_dump.
4783 * smob.h (scm_smob_descriptor): New slots: dump_mark,
4784 dump_dealloc, dump_store, undump_alloc, undump_restore,
4786 * smob.c (scm_make_smob_type): Init the new slots.
4787 (scm_set_smob_dump, scm_set_smob_undump): New functions.
4788 * smob.h (scm_set_smob_dump, scm_set_smob_undump): Declared.
4790 * keywords.c: #include "libguile/dump.h".
4791 (keyword_dealloc, keyword_alloc): New functions.
4792 (scm_init_keywords): Set smob_dump and smob_undump.
4794 2001-02-01 Keisuke Nishida <kxn30@po.cwru.edu>
4796 * vectors.c (scm_c_make_vector): New function.
4797 * vectors.h (scm_c_make_vector): Declared.
4798 * eval.c (scm_copy_tree), filesys.c (scm_stat2scm), fluids.c
4799 (scm_make_initial_fluids, grow_fluids), gc.c (scm_init_storage),
4800 gh_data.c (gh_ints2scm, gh_doubles2scm): goops.c
4801 (scm_make_method_cache, scm_i_vector2list,
4802 scm_compute_applicable_methods, scm_sys_method_more_specific_p),
4803 init.c (start_stack), net_db.c (scm_gethost, scm_getnet,
4804 scm_getproto, scm_return_entry), posix.c (scm_getgroups,
4805 scm_getpwuid, scm_getgrgid, scm_uname), print.c (make_print_state,
4806 grow_ref_stack), regex-posix.c (scm_regexp_exec), scmsigs.c
4807 (scm_init_scmsigs), socket.c (scm_addr_vector, scm_addr_vector),
4808 stime.c (scm_times, filltime), unif.c (scm_make_uve), vectors.c
4809 (scm_vector, scm_make_vector): Use scm_c_make_vector.
4811 * hashtab.c (scm_c_make_hash_table): New function.
4812 * hashtab.h (scm_c_make_hash_table): Declared.
4813 * environments.c (scm_make_leaf_environment,
4814 scm_make_eval_environment), gc.c (scm_init_storage),
4815 keywords.c (scm_init_keywords), symbols.c (scm_builtin_bindings):
4816 Use scm_c_make_hash_table.
4818 2001-01-31 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4820 * unif.c (rapr1): Don't apply scm_uniform_vector_length on arrays.
4822 2001-01-29 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
4824 * struct.c (scm_make_vtable_vtable): Removed unnecessary "" from
4827 * struct.c (scm_struct_set_x, scm_struct_vtable_tag,
4828 scm_struct_vtable_name, scm_set_struct_vtable_name_x), weaks.c
4829 (scm_make_weak_value_hash_table, scm_make_doubly_weak_hash_table,
4830 scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
4831 srcprop.c (scm_source_properties, scm_set_source_properties_x,
4832 scm_source_property, scm_set_source_property_x), sort.c
4833 (scm_sort_list_x, scm_restricted_vector_sort_x, scm_sorted_p,
4834 scm_merge, scm_merge_x, scm_sort_x, scm_sort, scm_stable_sort_x,
4835 scm_stable_sort, scm_sort_list_x, scm_sort_list): Added
4838 2001-01-29 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4840 * eval.c (SCM_APPLY): Check that primitives which take 1 arg
4841 really get that arg.
4843 2001-01-26 Keisuke Nishida <kxn30@po.cwru.edu>
4845 * goops.c (s_scm_get_keyword): Bug fix.
4847 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
4849 The following patch was sent by Martin Grabmueller. It makes sure
4850 that in case of parameter errors the correct function name is
4851 shown, and that parameter types are only checked once.
4853 * strop.c (string_copy, string_upcase_x, string_downcase_x,
4854 string_capitalize_x): New functions. Each one performs the core
4855 functionality of the corresponding scm_* function.
4857 (scm_string_copy, scm_string_upcase_x, scm_string_upcase,
4858 scm_string_downcase_x, scm_string_downcase,
4859 scm_string_capitalize_x, scm_string_capitalize): Reduced to
4860 parameter checking wrappers of the above functions.
4862 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
4864 * continuations.c, dynl.c, keywords.c, load.c: Include
4865 strings.h. Thanks to Bill Schottstaedt for the bug report.
4867 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
4869 * backtrace.c (display_header): Make sure that line and column
4870 information is shown independent of whether the port the code was
4871 read from had an associated filename. Thanks to Martin
4872 Grabmueller for providing this patch.
4874 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
4876 * fports.[ch] (scm_file_port_p): New primitive.
4878 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
4880 * tags.h (scm_tc16_fport, scm_tc16_strport, scm_tc16_sfport):
4881 These are now defined in fports.c, strports.c and vports.c.
4883 * fports.[ch] (scm_tc16_fport), strports.c (scm_tc16_strport),
4884 vports.c (scm_tc16_sfport): Made variables (were macros defined in
4887 fports.c (scm_make_fptob), strports.c (scm_make_stptob), vports.c
4888 (scm_make_sfptob): Made static. These return a type code now.
4890 fports.c (scm_init_fports), strports.c (scm_init_strports),
4891 vports.c (scm_init_vports): Create the corresponding port types.
4893 * fports.h (SCM_FPORTP, SCM_OPFPORTP, SCM_OPINFPORTP,
4894 SCM_OPOUTFPORTP): Redefined in terms of scm_tc16_fport.
4896 * init.c (scm_init_guile_1): Make sure strports are initialized
4899 * ports.[ch] (scm_make_port_type): Changed the return type to
4902 * ports.c (scm_ports_prehistory): Don't create any port types
4905 * posix.c (scm_ttyname): Use SCM_FPORTP instead of comparing
4906 against scm_tc16_fport directly.
4908 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
4910 * srcprop.c (scm_set_source_property_x): Fix to handle
4911 (set-source-property! <obj> 'copy <datum>) correctly.
4913 2001-01-24 Gary Houston <ghouston@arglist.com>
4915 * filesys.c (scm_link): docstring fix.
4916 * fports.h (scm_setfileno): obsolete declaration removed.
4917 * posix.c: bogus popen declaration removed.
4919 * rdelim.c: new file, split from ioext.c.
4920 * rdelim.h: new file, split from ioext.h
4921 * Makefile.am: add rdelim.c and related files.
4922 * init.c: call scm_init_rdelim. include rdelim.h.
4924 2001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
4926 This patch was sent by Martin Grabmueller and makes sure that
4927 parameter errors are reported correctly by the lexicographic
4928 ordering predicates.
4930 * strorder.c (string_less_p, string_ci_less_p): New functions.
4932 (scm_string_less_p, scm_string_ci_less_p): Extracted the core
4933 functionality into string_less_p, string_ci_less_p respectively.
4934 The remaining code is just a wrapper to do the parameter
4937 (scm_string_leq_p, scm_string_gr_p, scm_string_geq_p): Check the
4938 parameters and call string_less_p instead of scm_string_less_p.
4940 (scm_string_ci_leq_p, scm_string_ci_gr_p, scm_string_ci_geq_p):
4941 Check the parameters and call string_less_ci_p instead of
4942 scm_string_ci_less_p.
4944 2001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
4946 This patch modifies scm_display_error to perform parameter
4947 checking. Thanks to Neil Jerram for the bug report.
4949 * backtrace.[ch] (scm_i_display_error): New function.
4951 * backtrace.c (scm_display_error): Added parameter check and
4952 extracted the core functionality into function
4953 scm_i_display_error.
4955 * throw.c (handler_message): Call scm_i_display_error to display
4958 2001-01-23 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
4960 * eval.c (SCM_APPLY): Added # args check for application of
4961 procedures with arity 3. (Thanks to Anders Holst.)
4963 2001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
4965 * filesys.h (SCM_DIR_FLAG_OPEN, SCM_DIR_OPEN_P): Added.
4967 (SCM_OPDIRP): Deprecated.
4969 * filesys.c (scm_opendir): Use SCM_DIR_FLAG_OPEN instead of
4972 (scm_readdir, scm_rewinddir): Don't use SCM_VALIDATE_OPDIR.
4973 Instead, give an explicit error message in case the directory is
4976 (scm_closedir, scm_dir_print): Rewritten to use SCM_DIR_OPEN_P
4977 instead of SCM_OPENP and SCM_CLOSEDP.
4979 * validate.h (SCM_VALIDATE_OPDIR): Deprecated.
4981 2001-01-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
4983 * eval.c (inner_eval, scm_eval): Move all real functionality into
4984 inner_eval. Avoid to copy the expression twice by inlining some
4985 code from scm_i_eval.
4987 2001-01-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
4989 * eval.c (scm_m_case): The 'else' clause of a 'case' statement
4990 now has to be the last clause, as required by R5RS. Thanks to
4991 Martin Grabmueller for the patch.
4993 2001-01-18 Gary Houston <ghouston@arglist.com>
4995 * ioext.c: further simplify scm_read_string_x_partial by defining
4998 2001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
5000 * gh_data.c (gh_ints2scm): Simplified using SCM_FIXABLE.
5002 2001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
5004 * __scm.h: Added comment about architecture and compiler
5005 properties that are required by guile.
5007 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
5008 SCM_MOST_NEGATIVE_FIXNUM): Moved to numbers.h.
5010 (SCM_CHAR_BIT, SCM_LONG_BIT): Moved here from numbers.h.
5012 * numbers.h (SCM_CHAR_BIT, SCM_LONG_BIT): Moved to __scm.h.
5014 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
5015 SCM_MOST_NEGATIVE_FIXNUM): Moved here from __scm.h.
5017 2001-01-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
5019 * __scm.h (SCM_FIXNUM_BIT): Added. The name is chosen in analogy
5020 to the names in limits.h.
5022 * numbers.c (abs_most_negative_fixnum): Added.
5024 (scm_quotient, scm_remainder): Fixed the fixnum-min / (abs
5025 fixnum-min) special case.
5027 (scm_big_and): Fix for negative first parameter.
5029 (scm_bit_extract): Fix for fixnum paramters.
5030 Thanks to Rob Browning for the bug report.
5032 (scm_init_numbers): Initialize abs_most_negative_fixnum.
5034 2001-01-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
5036 * symbols.c (scm_symbol_bound_p): Fixed comment.
5037 Thanks to Chris Cramer.
5039 2001-01-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
5041 * smob.[ch] (scm_make_smob_type): Return type is scm_bits_t now.
5042 Thanks to Bill Schottstaedt.
5044 2001-01-11 Michael Livshin <mlivshin@bigfoot.com>
5046 from Matthias Köppe:
5048 * objects.h (SCM_SET_ENTITY_SETTER): new macro. SCM_ENTITY_SETTER
5049 casts its result, so doesn't yield an lvalue per ANSI C.
5051 * goops.c (s_scm_sys_set_object_setter_x): use
5052 SCM_SET_ENTITY_SETTER.
5053 (clear_method_cache): use SCM_SET_ENTITY_PROCEDURE.
5055 * gc.h (SCM_GC_SET_CARD_BVEC): new macro. SCM_GC_CARD_BVEC casts
5056 its result, so doesn't yield an lvalue per ANSI C.
5057 (SCM_GC_SET_CARD_FLAGS): ditto for SCM_GC_GET_CARD_FLAGS.
5058 (SCM_GC_CLR_CARD_FLAGS): redefined in terms of
5059 SCM_GC_SET_CARD_FLAGS.
5060 (SCM_GC_SET_CARD_FLAG, SCM_GC_CLR_CARD_FLAGS): ditto.
5062 * gc.c (INIT_CARD): use the explicit setter macro to set the bvec.
5064 2001-01-08 Gary Houston <ghouston@arglist.com>
5066 * validate.h (SCM_VALIDATE_SUBSTRING_SPEC_COPY): new macro.
5067 * ioext.c (scm_read_string_x_partial, scm_read_delimited_x),
5068 socket.c (scm_recvfrom): use the new macro, plus minor docstring
5070 * ioext.c (scm_read_string_x_partial): don't crash if -1 is supplied
5071 for fdes. if current input port is used, check that it's a file
5074 2001-01-06 Gary Houston <ghouston@arglist.com>
5076 * ioext.c (scm_read_string_x_partial): new procedure, implements
5077 read-string!/partial.
5078 * ports.c (scm_take_from_input_buffers): new procedure used by
5079 scm_read_string_x_partial.
5080 (scm_drain_input): use scm_take_from_input_buffers.
5082 2001-01-06 Marius Vollmer <mvo@zagadka.ping.de>
5084 * validate.h (SCM_VALIDATE_NUMBER): New.
5086 2001-01-03 Michael Livshin <mlivshin@bigfoot.com>
5088 * guardians.c (F_GREEDY, F_LISTED, F_DESTROYED, GREEDY_P,
5089 SET_GREEDY, LISTED_P, SET_LISTED, CLR_LISTED, DESTROYED_P,
5090 SET_DESTROYED): new defines/macros.
5091 (GUARDIAN_LIVE, GUARDIAN_ZOMBIES, GUARDIAN_NEXT): deleted.
5092 (add_to_live_list): takes a `guardian_t *' now, not SCM.
5093 (guardian_print): print more info.
5094 (guardian_apply): check if the guardian is destroyed, and throw an
5095 error if so. take one more optional argument `throw_p'.
5096 (scm_guard): depending on the value of `throw_p', return a boolean
5098 (scm_get_one_zombie): remove redundant property test.
5099 (guardian_t): represent the various (currently 3, I hope nothing
5100 more gets added) boolean fields as bit flags.
5101 (scm_guardian_destroyed_p, scm_guardian_greedy_p): new predicates.
5102 (scm_destroy_guardian_x): new procedure.
5104 * guardians.h: added prototypes for `scm_guardian_greedy_p' and
5105 `scm_guardian_destroyed_p'. changed prototype for `scm_guard'.
5107 2001-01-01 Gary Houston <ghouston@arglist.com>
5109 * fports.c (fport_write): bugfix: handle short writes for
5110 unbuffered ports too. optimize the buffered case by minimizing
5111 the number of write/flush calls.
5112 (write_all): new helper procedure.
5114 The ChangeLog continues in the file: "ChangeLog-2000"