* Clarify docstring for scm_make_shared_substring.
[bpt/guile.git] / libguile / ChangeLog
1 2001-04-09 Neil Jerram <neil@ossau.uklinux.net>
2
3 * strings.c (scm_read_only_string_p): Update docstring to reflect
4 current (non-)usage of "read only" strings.
5 (scm_make_shared_substring): Clarify docstring by changing
6 "semantics" to "arguments".
7
8 2001-04-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
9
10 * hooks.c (scm_make_hook, scm_make_hook_with_name),
11 (scm_hook_p, scm_hook_empty_p, scm_run_hook): Docstring
12 improvements.
13
14 2001-04-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
15
16 The following changes make the documentation more consistent.
17
18 * rdelim.c (scm_write_line), posix.c (scm_utime), ports.c
19 (scm_seek), net_db.c (scm_inet_aton, scm_inet_ntoa),
20 (scm_inet_netof, scm_lnaof, scm_inet_makeaddr), ioext.c
21 (scm_ftell): Changed @smalllisp ... @end smalllisp to @lisp
22 ... @end lisp.
23
24 * vports.c (scm_make_soft_port), version.c (scm_version), unif.c
25 (scm_array_dimensions, scm_make_shared_array),
26 (scm_transpose_array, scm_enclose_array, scm_bit_count_star),
27 throw.c (scm_catch), struct.c (scm_make_vtable_vtable), strop.c
28 (scm_string_rindex, scm_string_index, scm_substring_fill_x),
29 (scm_string_null_p), strings.c (scm_read_only_string_p), root.c
30 (scm_call_with_dynamic_root), ramap.c (scm_array_index_map_x),
31 posix.c (scm_mknod), numbers.c (scm_logtest, scm_logbit_p),
32 macros.c (scm_makmmacro), list.c (scm_append), environments.c
33 (scm_environment_fold), dynwind.c (s_scm_dynamic_wind): Changed
34 @example ... @end example to @lisp ... @end lisp.
35
36 * weaks.c (scm_weak_vector): Corrected docstring.
37
38 * hashtab.c (scm_hashq_ref, scm_hashq_set_x, scm_hashq_remove_x),
39 (scm_hashv_ref, scm_hashv_set_x, scm_hashv_remove_x),
40 (scm_hash_ref, scm_hash_set_x, scm_hash_remove_x, scm_hashx_ref),
41 (scm_hashx_set_x, scm_hashx_get_handle),
42 (scm_hashx_create_handle_x), regex-posix.c (scm_make_regexp),
43 (scm_regexp_exec, scm_regexp_p), numbers.c (scm_logtest),
44 vectors.c (scm_vector_fill_x), strings.c
45 (scm_make_shared_substring), symbols.c (scm_string_to_symbol),
46 objprop.c (scm_set_object_properties_x):
47 (scm_set_object_property_x), throw.c (scm_catch, scm_lazy_catch),
48 strports.c (scm_call_with_input_string), ports.c
49 (scm_truncate_file), ioext.c (scm_ftell), ports.c (scm_seek),
50 list.c (scm_append_x), dynwind.c (scm_dynamic_wind), error.c
51 (scm_error_scm), vports.c (scm_make_soft_port), weaks.c
52 (scm_make_weak_vector,scm_weak_vector_p),
53 (scm_make_weak_key_hash_table, scm_make_weak_value_hash_table),
54 (scm_make_doubly_weak_hash_table, scm_weak_key_hash_table_p),
55 (scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
56 macros.c (scm_macro_type), dynl.c (scm_dynamic_link),
57 (scm_dynamic_unlink, scm_dynamic_call, scm_dynamic_args_call):
58 Made parameter names match documentation by renaming parameters
59 and/or fixing docstrings.
60
61 * numbers.c (scm_ash): Corrected Texinfo markup.
62
63 * strop.c (scm_string_index, scm_string_rindex),
64 (scm_substring_fill_x, scm_string_null_p): Removed `qdocs'.
65
66 * vports.c (scm_make_soft_port), unif.c
67 (scm_uniform_vector_length, scm_array_p, scm_array_rank),
68 (scm_dimensions_to_uniform_array, scm_transpose_array),
69 (scm_array_in_bounds_p, scm_uniform_vector_ref),
70 (scm_bit_count, scm_bit_position, scm_bit_count_star),
71 (scm_array_to_list, scm_list_to_uniform_array),
72 (scm_array_prototype, symbols.c (scm_string_to_symbol), strports.c
73 (scm_open_input_string, scm_open_output_string),
74 (scm_get_output_string), strop.c (scm_string_copy),
75 (scm_string_fill_x), strings.c (scm_string_p, scm_string), stime.c
76 (scm_get_internal_real_time, scm_times),
77 (scm_get_internal_run_time, scm_current_time, scm_gettimeofday),
78 (scm_localtime, scm_gmtime), socket.c (scm_htons, scm_ntohs),
79 (scm_htonl, scm_ntohl, scm_socket, scm_socketpair),
80 (scm_getsockopt, scm_getsockname, scm_getpeername, scm_recvfrom),
81 simpos.c (scm_system), random.c (scm_random_uniform),
82 (scm_random_normal, scm_random_exp), ramap.c
83 (scm_array_equal_p), posix.c (scm_pipe, scm_getgroups),
84 (scm_status_exit_val, scm_status_term_sig, scm_status_stop_sig),
85 (scm_getppid, scm_getuid, scm_getgid, scm_geteuid, scm_getegid),
86 (scm_getpgrp, scm_ttyname, scm_ctermid, scm_tcgetpgrp, scm_uname),
87 (scm_environ, scm_tmpnam, scm_mkstemp, scm_access, scm_getpid),
88 (scm_setlocale), ports.c (scm_char_ready_p, scm_drain_input),
89 (scm_pt_size, scm_pt_member, scm_port_revealed, scm_port_mode),
90 (scm_close_port, scm_input_port_p, scm_output_port_p, scm_port_p),
91 (scm_port_closed_p, scm_eof_object_p, scm_read_char),
92 (scm_peek_char), pairs.c (scm_pair_p, scm_cons), numbers.c
93 (scm_logand, scm_logior, scm_logxor, scm_lognot),
94 (scm_integer_expt, scm_bit_extract, scm_logcount),
95 (scm_integer_length, scm_string_to_number, scm_inexact_to_exact),
96 net_db.c (scm_inet_netof, scm_lnaof), modules.c
97 (scm_interaction_environment), macros.c (scm_makacro),
98 (scm_makmacro, scm_makmmacro), keywords.c (scm_keyword_p), ioext.c
99 (scm_ftell, scm_dup_to_fdes, scm_fileno, scm_isatty_p),
100 (scm_fdopen, scm_fdes_to_ports), gc.c (scm_gc_stats), fluids.c
101 (scm_fluid_ref), filesys.c (scm_open_fdes),
102 (scm_stat, scm_directory_stream_p, scm_getcwd, scm_readlink):
103 Docstring correction: `Returns' -> `Return'
104
105 * gc.c (scm_set_debug_cell_accesses_x):
106 (s_scm_gc_set_debug_check_freelist_x):
107 * fluids.c (scm_fluid_p): Added texinfo markup.
108
109 * error.c (scm_strerror): Made docstring more precise.
110
111 * vectors.c (scm_vector_p, scm_vector, scm_make_vector),
112 (scm_vector_to_list, _scm_vector_fill_x), symbols.c
113 (scm_symbol_p, scm_symbol_to_string), strorder.c
114 (scm_string_equal_p, scm_string_ci_equal_p, scm_string_less_p),
115 (scm_string_leq_p, scm_string_gr_p, scm_string_geq_p),
116 (scm_string_ci_less_p, scm_string_ci_leq_p, scm_string_ci_gr_p):
117 (scm_string_ci_geq_p), strop.c (scm_string_copy),
118 (scm_string_fill_x): Removed `(r5rs)' from docstrings.
119
120 2001-04-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
121
122 * gc.c (MARK): Re-introduce a cheap sanity test for non debug
123 mode, as suggested by Michael Livshin.
124
125 2001-03-31 Michael Livshin <mlivshin@bigfoot.com>
126
127 * backtrace.c (display_backtrace_body): since the `print_state'
128 variable is not used (instead its data field is used directly as
129 `pstate'), protect it from the hungry compiler optimizations.
130 thanks to Bill Schottstaedt for the report.
131
132 2001-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
133
134 * gc.[ch] (scm_tc16_allocated): New type tag for allocated cells.
135 It is only defined and used if guile is compiled with
136 SCM_DEBUG_CELL_ACCESSES set to true. It's purpose is, to never
137 let cells with a free_cell type tag be visible outside of the
138 garbage collector when in debug mode.
139
140 * gc.c (scm_debug_cell_accesses_p): Set to true as default.
141
142 (scm_assert_cell_valid): Use a local static variable to avoid
143 recursion.
144
145 (MARK): Only check for rogue cell pointers in debug mode. Use
146 scm_cellp for this purpose and place all checks for rogue pointers
147 into that function. Further, since due to conservative scanning
148 we may encounter free cells during marking, don't use the standard
149 cell type accessor macro to determine the cell type.
150
151 (scm_cellp): Check if the cell pointer actually points into a
152 card header.
153
154 (scm_init_gc): Initalize scm_tc16_allocated.
155
156 * gc.h (GCH): Renamed to SCM_GC_H.
157
158 (SCM_VALIDATE_CELL): Enclose the expression in brackets. This
159 might be unnecessary, but I feel better this way :-)
160
161 (SCM_GC_CELL_TYPE): New macro.
162
163 (SCM_SETAND_CDR, SCM_SETOR_CDR): Deprecated. These are not used
164 in guile, and it is unlikely that they will be applied to real
165 pairs anyway.
166
167 (SCM_SET_FREE_CELL_TYPE): Removed. It was not used.
168
169 (SCM_GC_SET_ALLOCATED): New macro. Only non-empty if guile is
170 compiled with SCM_DEBUG_CELL_ACCESSES set to true.
171
172 (SCM_NEWCELL, SCM_NEWCELL2): Use of SCM_GC_SET_ALLOCATED will
173 make sure that in debug mode no free cell will ever be visible
174 outside of the garbage collector.
175
176 2001-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
177
178 * async.c (scm_asyncs_pending): Don't use != to compare SCM
179 values.
180
181 * async.c (scm_system_async), variable.c (scm_make_variable,
182 scm_make_undefined_variable): Use scm_cons to create a pair.
183
184 * debug.c (scm_reverse_lookup): Perform proper type checking.
185 Remove suspicious use of SCM_SLOPPY_CONSP.
186
187 * eq.c (scm_equal_p), tags.h (SCM_ECONSP): Use SCM_CONSP instead
188 of SCM_SLOPPY_CONSP. A sane compiler should be able to perform
189 the corresponding optimization.
190
191 * eval.c (iqq): Use proper type check.
192
193 (scm_m_expand_body): Remove redundant type checks.
194
195 (promise_print): Don't access promise cells as pairs.
196
197 * eval.c (EVALCAR, iqq, scm_m_expand_body, scm_eval_args,
198 scm_deval_args SCM_CEVAL), guardians.c (scm_guard), hashtab.c
199 (scm_internal_hash_fold), print.c (scm_iprlist): Use !SCM_CELLP
200 for SCM_NCELLP, !SCM_CONSP for SCM_NCONSP, !SCM_IMP for SCM_NIMP,
201 !SCM_FALSEP for SCM_NFALSEP, !SCM_NULLP for SCM_NNULLP
202
203 * eval.c (scm_m_define, scm_macroexp, SCM_CEVAL), print.c
204 (scm_iprin1): Use new macro predicate and accessors.
205
206 * eval.h (scm_tc16_macro): Removed declaration. It is declared
207 in macros.h.
208
209 * eval.h (EVALH), macros.h (MACROSH), ports.h (PORTSH), procs.h
210 (PROCSH), tags.h (TAGSH), variable.h (VARIABLEH): Renamed to
211 SCM_EVAL_H, SCM_MACROS_H, SCM_PORTS_H, SCM_PROCS_H, SCM_TAGS_H and
212 SCM_VARIABLE_H. Even the macros that are used to inhibit
213 including a header file twice should be in the SCM_ namespace.
214
215 * fluids.c (scm_swap_fluids, scm_swap_fluids_reverse),
216 properties.c (scm_primitive_property_ref,
217 scm_primitive_property_del_x): Prefer stronger predicates like
218 SCM_NULLP or SCM_FALSEP over SCM_IMP.
219
220 * gc.c (MARK): Use proper macros to access procedure-with-setter
221 cell elements and closure cell elements.
222
223 (gc_sweep_freelist_finish, scm_gc_sweep, init_heap_seg): Don't
224 access free cells as pairs.
225
226 (scm_unprotect_object): scm_hashq_get_handle returns #f if
227 no hashtab entry is found.
228
229 * gc.c (scm_gc_sweep), ports.c (scm_close_port): Use new macro
230 SCM_CLR_PORT_OPEN_FLAG.
231
232 * guardians.c (TCONC_IN), print.c (scm_free_print_state): Don't
233 use SCM_SET_C[AD]R for uninitialized cells.
234
235 * hashtab.c (scm_hash_fn_get_handle): Use SCM_VALIDATE_VECTOR.
236 If the hashtable has no slots, return #f instead of '(). This
237 unifies the return value with most assoc-functions.
238
239 (scm_hash_fn_ref): Use proper type check.
240
241 (scm_hashq_get_handle, scm_hashv_get_handle, scm_hash_get_handle):
242 Removed references to non-existing functions from documentation.
243
244 * keywords.c (scm_keyword_dash_symbol): Use proper macros to
245 access keyword cell elements.
246
247 * macros.h (SCM_MACROP, SCM_MACRO_TYPE, SCM_MACRO_CODE): New
248 macros.
249
250 * ports.h (SCM_CLR_PORT_OPEN_FLAG): New macro.
251
252 * print.c (scm_iprlist): Added comment. Improved loop
253 conditions.
254
255 * procs.h (SCM_ENV, SCM_SETENV): Don't access closure cells as
256 pairs.
257
258 * smob.c (scm_markcdr): Don't access smob cells as pairs.
259
260 * tags.h (SCM_SLOPPY_CONSP, SCM_SLOPPY_NCONSP): Deprecated.
261
262 * throw.c (ACTIVATEJB, DEACTIVATEJB): Don't access jump buffer
263 cells as pairs.
264
265 * variable.c (variable_print, variable_equalp, scm_variable_ref,
266 scm_variable_set_x): Use proper macros to access variable cell
267 elements.
268
269 (scm_variable_bound_p): Don't use SCM_NEGATE_BOOL.
270
271 * variable.h (SCM_VARVCELL): Don't access variable cells as
272 pairs.
273
274 * vectors.c (scm_vector), weaks.c (scm_weak_vector): Simplified,
275 added FIXME comment, removed register specifier.
276
277 2001-03-29 Keisuke Nishida <kxn30@po.cwru.edu>
278
279 * goops.c, goops.h (scm_init_oop_goops_goopscore_module): Deprecated.
280 * init.c (scm_init_guile_1): Don't init goopscore module.
281
282 2001-03-27 Marius Vollmer <mvo@zagadka.ping.de>
283
284 * eval.c (SCM_APPLY): Check that arg1 is bound for scm_tc7_cxr.
285
286 2001-03-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
287
288 * strop.c (scm_string_to_list): Fixed docstring markup.
289 (scm_string_upcase_x, scm_string_upcase, scm_string_downcase_x),
290 (scm_string_downcase, scm_string_capitalize_x),
291 (scm_string_capitalize): Rewrote and corrected docstrings.
292 (scm_string_ci_to_symbol): Made docstring more explicit.
293
294 2001-03-27 Marius Vollmer <mvo@zagadka.ping.de>
295
296 * values.h (scm_values_vtable, SCM_VALUESP): Moved here so that
297 eval.c can use it.
298 (scm_call_with_values): Removed.
299 * values.c (values_vtable, scm_values_vtable): Added "scm_" prefix
300 so that it can be exported.
301 (scm_call_with_values): Removed.
302
303 * tags.h (SCM_IM_CALL_WITH_VALUES): New isym.
304 * eval.c: Include "libguile/values.h"
305 (scm_m_at_call_with_values, scm_sym_at_call_with_values):
306 New.
307 (unmemocopy, scm_ceval, scm_deval): Handle new isym.
308 * eval.h (scm_sym_at_call_with_values, scm_m_at_call_with_values):
309 New delcarations to support above change.
310
311 * eval.c (scm_primitive_eval_x, scm_primitive_eval): Fix syntax
312 errors with last change.
313
314 2001-03-25 Marius Vollmer <mvo@zagadka.ping.de>
315
316 * eval.c (scm_primitive_eval_x, scm_primitive_eval, scm_i_eval_x,
317 scm_i_eval): Moved the application of the system transformer from
318 scm_i_eval to scm_primitive_eval.
319
320 2001-03-23 Neil Jerram <neil@ossau.uklinux.net>
321
322 * guile-snarf.awk.in: Substitute "\\" with "\" in .doc output.
323
324 * strop.c (scm_string_index): Fix docstring line break
325 regression.
326
327 * list.c (scm_cons_star): Fix docstring typo.
328
329 2001-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
330
331 * gc.c (scm_init_storage), gdbint.c (scm_init_gdbint), numbers.c
332 (big2str), ports.c (scm_drain_input), read.c (scm_read,
333 scm_grow_tok_buf), strings.c (scm_string, scm_makfromstr,
334 scm_make_string, scm_string_append), strports.c (st_resize_port,
335 scm_object_to_string), unif.c (scm_make_uve): Replace calls to
336 scm_makstr with calls to scm_allocate_string.
337
338 * strings.[ch] (scm_allocate_string): New function.
339
340 * strings.[ch] (scm_makstr): Deprecated.
341
342 2001-03-18 Gary Houston <ghouston@arglist.com>
343
344 * posix.c (scm_tmpnam): check that return value from tmpnam is not
345 NULL. rewrote the docstring.
346 (scm_mkstemp): new procedure implementing "mkstemp!".
347 * posix.h: declare scm_mkstemp.
348
349 * net_db.c: declare h_errno if configure didn't define HAVE_H_ERRNO.
350 normally it would be found in netdb.h.
351
352 2001-03-17 Gary Houston <ghouston@arglist.com>
353
354 * sort.c (scm_sort): move sortvec variable to avoid a compiler
355 warning when HAVE_ARRAYS is not defined. move len too.
356
357 * Makefile.am (DOT_X_FILES): remove net_db.x, posix.x, socket.x.
358 (EXTRA_DOT_X_FILES): let configure set the value.
359 (DOT_DOC_FILES): remove net_db.doc, posix.doc, socket.doc.
360
361 * gc.c (scm_must_malloc): changed the comment explaining when
362 scm_must variants of malloc/free etc., should be used, based on
363 explanation from Dirk Herrmann.
364 * fports.c (scm_fport_buffer_add): use FUNC_NAME instead of a local
365 string with procedure name. use scm_must_malloc instead of malloc.
366 (scm_setvbuf, scm_fdes_to_port, fport_close): use scm_must variants
367 of malloc/free.
368 * ports.c (scm_add_to_port_table, scm_remove_from_port_table,
369 scm_ungetc): use scm_must variants of malloc/realloc/free.
370 (scm_add_to_port_table, scm_ungetc): define FUNC_NAME.
371
372 2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
373
374 * __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
375 SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n): Don't call scm_wta, call
376 scm_wrong_type_arg instead.
377
378 (SCM_WNA): Deprecated.
379
380 * error.[ch] (scm_wta): Deprecated.
381
382 * numbers.c (s_i_log): Minor comment fix.
383
384 * read.c (scm_lreadr), unif.c (scm_aind, scm_shap2ra,
385 scm_make_shared_array, scm_transpose_array, scm_enclose_array,
386 scm_array_in_bounds_p): Don't use SCM_ASSERT to check for
387 wrong-num-args or misc errors.
388
389 * unif.c (scm_make_shared_array, scm_transpose_array,
390 scm_enclose_array, scm_array_in_bounds_p, scm_array_set_x):
391 Validate the rest argument (note: this is only done when guile is
392 built with SCM_DEBUG_REST_ARGUMENT=1)
393
394 (scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x):
395 Replace calls to scm_wrong_num_args by SCM_WRONG_NUM_ARGS.
396
397 * validate.h (SCM_FUNC_NAME, SCM_VALIDATE_NUMBER_COPY,
398 SCM_VALIDATE_NUMBER_DEF_COPY): Deprecated.
399
400 2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
401
402 * validate.h (SCM_WRONG_NUM_ARGS): Call scm_error_num_args_subr
403 instead of scm_wrong_num_args.
404
405 * coop-threads.c: Don't include libguile/strings.h. (Was only
406 needed for former implementation of SCM_WRONG_NUM_ARGS.)
407
408 * debug.c (scm_m_start_stack): Don't use SCM_ASSERT to check for
409 wrong-num-args errors.
410
411 2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
412
413 * error.[ch] (scm_error_num_args_subr): New function.
414
415 2001-03-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
416
417 * list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),
418 (scm_length, scm_append, scm_reverse, scm_list_ref),
419 (scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x),
420 (scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x),
421 (scm_delete1_x), gc.c (scm_map_free_list),
422 (scm_free_list_length), hash.c (scm_hashq, scm_hashv),
423 (scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x),
424 (scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x),
425 (scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x),
426 (scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c
427 (scm_current_pstate), scmsigs.c (scm_usleep), goops.c
428 (scm_get_keyword, scm_sys_compute_slots): Added texinfo markup.
429
430 * weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p),
431 (scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
432 rdelim.c (scm_read_delimited_x), strop.c (scm_string_index),
433 symbols.c (scm_symbol_interned_p), numbers.c
434 (scm_string_to_number), ports.c (scm_port_p): Corrected texinfo
435 markup.
436
437 2001-03-16 Keisuke Nishida <kxn30@po.cwru.edu>
438
439 * snarf.h (SCM_CONST_LONG): Deprecated.
440 * tag.c (CONST_INUM): New macro. Use it to define scm_utag_*.
441
442 2001-03-15 Marius Vollmer <marius.vollmer@uni-dortmund.de>
443
444 * numbers.c (scm_num2ulong): Check that a bignum is positive
445 before looking at the magnitude. Correctly check for overflow
446 during conversion.
447 (scm_num2long_long): Likewise.
448 (scm_num2ulong_long): New.
449 (ULONG_LONG_MAX): Define if not already defined.
450 * numbers.h: (scm_num2ulong_long): New prototype.
451
452 2001-03-15 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
453
454 * validate.h (SCM_VALIDATE_OPOUTSTRPORT): New macro.
455
456 * strports.h (SCM_STRPORTP, SCM_OPSTRPORTP, SCM_OPINSTRPORTP),
457 (SCM_OPOUTSTRPORTP): New predicate macros.
458 (scm_open_input_string, scm_open_output_string),
459 (scm_get_output_string): New prototypes.
460
461 * strports.c (scm_open_input_string, scm_open_output_string),
462 (scm_get_output_string): New procedures (SRFI-6 compliant).
463 Made scm_tc16_strport non-static.
464
465 2001-03-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
466
467 * macros.h (SCM_ASSYNT): Removed unused object argument from
468 signature.
469
470 * eval.c (scm_m_body, scm_m_quote, scm_m_begin, scm_m_if,
471 scm_m_set_x, scm_m_and, scm_m_or, scm_m_case, scm_m_cond,
472 scm_m_letstar, scm_m_do, scm_m_quasiquote, scm_m_delay,
473 scm_m_define, scm_m_letrec1, scm_m_letrec, scm_m_let, scm_m_apply,
474 scm_m_cont, scm_m_nil_cond, scm_m_nil_ify, scm_m_t_ify,
475 scm_m_0_cond, scm_m_0_ify, scm_m_1_ify, scm_m_atfop, scm_m_atbind,
476 scm_m_expand_body), evalext.c (scm_m_generalized_set_x,
477 scm_m_undefine), goops.c (scm_m_atslot_ref, scm_m_atslot_set_x,
478 scm_m_atdispatch): Removed unused object argument from call to
479 SCM_ASSYNT.
480
481 2001-03-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
482
483 * gh.h/gh_data.c (gh_ints2scm): Changed the signature to use a
484 const int* to reflect that the input array of integers remains
485 unchanged. Thanks to Brett Viren for the hint.
486
487 2001-03-14 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
488
489 * gh_data.c (gh_scm2chars, gh_scm2shorts, gh_scm2longs),
490 (gh_scm2floats, gh_scm2doubles): Check for malloc() returning NULL
491 in various places.
492 (gh_scm2newstr, gh_symbol2newstr): Change call to
493 scm_must_malloc() to malloc(), because user-free()able memory is
494 allocated.
495
496 * gc.c: Added declaration of `scm_debug_check_freelist'.
497
498 2001-03-13 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
499
500 * ports.c (scm_port_mode): Changed `mode' array size to 4.
501
502 2001-03-12 Keisuke Nishida <kxn30@po.cwru.edu>
503
504 * strports.c (scm_object_to_string): New procedure.
505 (scm_strprint_obj): Deprecated.
506 * strports.h: Reflect the changes.
507
508 2001-03-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
509
510 * goops.h (SCM_VALIDATE_PUREGENERIC): New macro.
511
512 * goops.c (scm_m_atslot_ref, scm_m_atslot_set_x,
513 scm_m_atdispatch): Provide definitions for FUNC_NAME. Don't use
514 SCM_ASSYNT to check for correct argument types. Either use some
515 SCM_VALIDATE_* macro or an explicit test.
516
517 (scm_make_foreign_object): Don't use SCM_ASSERT to check for
518 misc-errors.
519
520 * macros.h (SCM_ASSYNT): On assertion failure, issue a misc-error
521 instead of calling scm_wta.
522
523 2001-03-12 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
524
525 * load.c (scm_primitive_load, scm_primitive_load_path),
526 (scm_sys_search_load_path): Corrected docstrings (file ->
527 filename).
528
529 * eval.c (scm_force): Added texinfo markup to docstring.
530 (scm_promise_p): Renamed parameter to `obj' to match docstring.
531
532 * debug-malloc.c: Reinserted #include <stdio.h>.
533
534 2001-03-11 Keisuke Nishida <kxn30@po.cwru.edu>
535
536 * list.c (s_scm_reverse_x): Use SCM_VALIDATE_LIST.
537
538 * environments.c, error.c, eval.c, filesys.c, hashtab.c, load.c,
539 net_db.c, procprop.c, read.c, scmsigs.c, socket.c, struct.c:
540 Use SCM_LISTn instead of scm_listify.
541
542 2001-03-10 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
543
544 * _scm.h: Removed #include <errno.h>.
545
546 * error.c, net_db.c, putenv.c, stime.c: Removed declaration of
547 errno variable (can be a macro on some systems, for example when
548 using linux libc with threads).
549
550 * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
551 posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
552 socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
553 #include <errno.h> in these 20 out of 100 files.
554
555 2001-03-10 Gary Houston <ghouston@arglist.com>
556
557 * socket.c: add a definition of SUN_LEN (from glibc) for when it's
558 not already defined.
559
560 2001-03-09 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
561
562 * coop.c: Inserted #include <stdio.h>.
563
564 * iselect.c: Reinserted #include <stdio.h>.
565
566 2001-03-10 Marius Vollmer <mvo@zagadka.ping.de>
567
568 * posix.c: Replaced `#define' of __USE_XOPEN right before
569 including unistd.h with a define of _GNU_SOURCE at the very top of
570 the file.
571
572 2001-03-09 Keisuke Nishida <kxn30@po.cwru.edu>
573
574 * alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
575 continuations.c, debug-malloc.c, debug.c, dynwind.c, eq.c, eval.c,
576 feature.c, filesys.h, gc_os_dep.c, gh_data.c, gh_eval.c,
577 gh_funcs.c, gh_io.c, gh_list.c, gh_predicates.c, hash.c,
578 hashtab.c, iselect.c, keywords.c, list.c, load.c, mallocs.c,
579 net_db.c, numbers.c, objprop.c, objprop.h, options.c, pairs.c,
580 print.c, procprop.c, procs.c, properties.c, ramap.c,
581 regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c, srcprop.c,
582 stackchk.c, stacks.c, strings.c, strop.c, strorder.c, struct.c,
583 symbols.c, tag.c, threads.c, variable.c, vectors.c, weaks.c:
584 Remove #include <stdio.h>
585 * gc.c, gdbint.c, root.c, sort.c, unif.c: Add #include <string.h>.
586
587 * procs.c (scm_make_subr_opt): Init symcell to avoid warning.
588
589 2001-03-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
590
591 * posix.c (scm_gethostname): Set initial name length to 256 for
592 Solaris.
593
594 2001-03-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
595
596 * posix.h (scm_crypt, scm_chroot, scm_getlogin, scm_cuserid),
597 (scm_getpriority, scm_setpriority, scm_getpass, scm_flock),
598 (scm_sethostname, scm_gethostname): New prototypes.
599
600 * posix.c: Added inclusion of <crypt.h>, <sys/resource.h> and
601 <sys/file.h>, if present.
602 (scm_init_posix): [PRIO_PROCESS, PRIO_PGRP, PRIO_USER, LOCK_SH,
603 LOCK_EX, LOCK_UN, LOCK_NB]: New variables.
604 (scm_crypt, scm_chroot, scm_getlogin, scm_cuserid),
605 (scm_getpriority, scm_setpriority, scm_getpass, scm_flock),
606 (scm_sethostname, scm_gethostname): New procedures.
607
608 2001-03-08 Neil Jerram <neil@ossau.uklinux.net>
609
610 * ports.c (scm_port_column): Docstring fixes: (i) port-line arg is
611 not optional (ii) "recommend" spelling correction.
612
613 2001-03-08 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
614
615 * ramap.c (racp): Removed optimization which caused array copying
616 to fail if the two arrays shared storage. Re-inserted the IVDEP
617 macros removed in the change of 2000-03-09. (Don't really have a
618 complete grasp of what they are for, but they seem to be necessary
619 on Crays. This needs testing!) Thanks to Miroslav Silovic.
620
621 * hash.c (scm_string_hash): Don't downcase characters.
622
623 2001-03-07 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
624
625 * symbols.c (scm_symbols_prehistory): Changed symbol hash table
626 size from 277 --> 1009.
627
628 * symbols.c, symbols.h (scm_sys_symbols): New function GUILE_DEBUG
629 function.
630
631 * coop-threads.c: Fixed change of 2001-03-06.
632
633 * validate.h: Code formatting.
634
635 2001-03-07 Keisuke Nishida <kxn30@po.cwru.edu>
636
637 * Makefile.am (*.x): Add dependency on snarf.h and guile-doc-snarf.in.
638 (*.doc): Add dependency on guile-snarf.awk.in.
639
640 * guile-snarf.awk.in: Neglect spaces at the end of
641 SCM_SNARF_DOCSTRING_END. Skip lines "# NN ..." in the
642 middle of docstrings. (To avoid the problem with gcc-2.96.)
643
644 2001-03-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
645
646 * coop-threads.c (scm_call_with_new_thread), load.c
647 (scm_primitive_load, scm_sys_search_load_path), random.c
648 (scm_c_default_rstate), struct.c (scm_make_struct_layout,
649 scm_struct_ref, scm_struct_set_x): Don't use SCM_ASSERT to
650 (potentially) issue a scm-misc-error or wrong-num-args error
651 message.
652
653 * load.c (scm_search_path): Use SCM_ASSERT_TYPE to give details
654 about the expected type with the wrong-type-arg error message.
655
656 * smob.c (scm_make_smob): Abort on misuse of smob - it indicates
657 a C level bug that can't be fixed from scheme anyway.
658
659 2001-03-05 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
660
661 * eval.c (scm_m_letstar): Removed check for duplicate bindings.
662 Duplicate bindings are OK in a let* since a let* is semantically
663 equivalent to a nested set of let:s.
664
665 2001-03-05 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
666
667 * print.c (scm_print_options): Fixed texinfo in docstring.
668
669 * net_db.c (scm_getserv, scm_getproto, scm_getnet): Return #f if
670 the underlying functions getservent, getprotoent or getnetent
671 return NULL instead of signalling an error.
672
673 2001-03-04 Gary Houston <ghouston@arglist.com>
674
675 * socket.c (scm_fill_sockaddr): don't allow buffer overflows when
676 taking an unexpectedly large filename for an AF_UNIX socket from
677 bind/connect/sendto (thanks to Martin Grabmueller).
678
679 * socket.c (scm_sock_fd_to_port, SCM_SOCK_FD_TO_PORT): removed the
680 former and adjusted the latter.
681 (scm_socket, scm_socketpair): cosmetic changes.
682 (scm_getsockopt, scm_setsockopt): declare optlen as int, not
683 size_t as socklen_t substitute. don't restrict args/return values
684 to INUM: allow full range of int or size_t.
685 (scm_fill_sockaddr): check arguments before allocating memory, to
686 avoid leakage. use malloc, not scm_must_malloc.
687 (scm_connect, scm_bind, scm_sendto): use int, not size_t as socklen_t
688 substitute. free the sockaddr structure before throwing an error.
689 (scm_init_add_buffer): procedure removed, together with its static
690 buffer scm_addr_buffer, which wouldn't be thread safe. instead,
691 define a macro MAX_ADDR_SIZE and declare the buffer where needed.
692 (scm_accept, scm_getpeername, scm_getsockname, scm_recvfrom,
693 scm_sendto): use a local buffer instead of scm_addr_buffer.
694 adjust for new SCM_SOCK_FD_TO_PORT. use int for address size,
695 not size_t.
696 (scm_recvfrom): set addr->sa_family to AF_UNSPEC before the recvfrom
697 call to detect whether recvfrom could be bothered to set the address.
698 (scm_init_socket): don't call scm_init_addr_buffer.
699
700 2001-03-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
701
702 * debug.c (scm_procedure_source, scm_procedure_environment),
703 print.c (scm_get_print_state), ramap.c (scm_array_fill_int,
704 scm_array_index_map_x), sort.c (scm_sort_x, scm_sort,
705 scm_stable_sort_x, scm_stable_sort), stacks.c (scm_make_stack,
706 scm_last_stack_frame), symbols.c (scm_sym2vcell, scm_sym2ovcell),
707 unif.c (scm_list_to_uniform_array, scm_uniform_vector_length,
708 scm_transpose_array, scm_enclose_array, scm_array_in_bounds_p,
709 scm_uniform_vector_ref, scm_array_set_x, scm_uniform_array_read_x,
710 scm_uniform_array_write, scm_bit_set_star_x, scm_bit_count_star,
711 scm_array_to_list, scm_array_prototype), validate.h
712 (SCM_VALIDATE_NUMBER_COPY): Don't call function scm_wta, call
713 scm_misc_error or scm_wrong_type_arg instead.
714
715 * validate.h (SCM_WTA, RETURN_SCM_WTA): Deprecated.
716
717 2001-03-04 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
718
719 * goops.c, goops.h (scm_sys_pre_expand_closure_x): Removed.
720 (scm_sys_tag_body): Added.
721
722 2001-03-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
723
724 * continuations.c (continuation_apply), eval.c (scm_m_lambda,
725 scm_m_letstar, scm_m_letrec1, scm_m_let, SCM_APPLY), eval.h
726 (SCM_EVALIM2), evalext.c (scm_m_generalized_set_x), gc.c
727 (get_bvec, MARK), goops.c (scm_primitive_generic_generic),
728 options.c (scm_options), ports.c (scm_remove_from_port_table),
729 ramap.c (scm_ramapc), read.c (skip_scsh_block_comment, scm_lreadr,
730 scm_lreadparen, scm_lreadrecparen), script.c (script_get_octal,
731 script_get_backslash, script_read_arg), unif.c (scm_cvref): Don't
732 call function scm_wta, call scm_misc_error or scm_wrong_type_arg
733 instead.
734
735 2001-03-04 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
736
737 * goops.c (scm_sys_pre_expand_closure_x): New procedure.
738
739 2001-03-04 Marius Vollmer <mvo@zagadka.ping.de>
740
741 * eval.c (scm_s_duplicate_bindings): New error message.
742 (scm_m_letrec1, scm_m_letstar): Check for duplicate bindings.
743
744 2001-03-03 Marius Vollmer <mvo@zagadka.ping.de>
745
746 * eval.h (SCM_EVALIM2): New macro. Use it when a
747 immediate, literal constant should be evaluated.
748 * eval.c (scm_s_duplicate_formals): New error message string.
749 (scm_c_improper_memq): New function.
750 (scm_m_lambda): Check for duplicate arguments.
751 (scm_ceval, scm_deval): When executing a body: only cons a new
752 toplevel environment frame when it is different from the
753 existing one; use EVALCAR instead of SIDEVAL so that we can properly
754 check for empty combinations; use SCM_EVALIM2 for the same reason
755 in the non-toplevel loop.
756 (nontoplevel_cdrxnoap, nontoplevel_cdrxbegin, nontoplevel_begin):
757 New labels with the meaning of their non-"nontoplevel" partners,
758 but they are used when it is known that the body is not evaluated at
759 top-level.
760 (scm_apply, scm_dapply): use SCM_EVALIM2 to get proper error
761 reporting for empty combinations.
762
763 2001-03-02 Keisuke Nishida <kxn30@po.cwru.edu>
764
765 * Remove dump facilities.
766 * dump.c, dump.h: Removed.
767 * Makefile.am: Remove dump.c, dump.h, dump.x, dump.doc.
768 * init.c: Remove #include "libguile/dump.h".
769 (scm_init_guile_1): Remove scm_init_dump.
770 * smob.h (scm_smob_descriptor): Remove slots: dump, undump.
771 (scm_set_smob_dump, scm_set_smob_undump): Remove declaration.
772 * smob.c (scm_make_smob_type): Remove initialization: dump, undump.
773 (scm_set_smob_dump, scm_set_smob_undump): Removed.
774
775 * keywords.c: Remove #include "libguile/dump.h".
776 (keyword_dump, keyword_undump): Removed.
777 (scm_init_keywords): Remove scm_set_smob_dump and scm_set_smob_undump.
778
779 2001-03-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
780
781 * vectors.c (s_scm_vector_p, list->vector, scm_vector)
782 (scm_vector_ref, scm_vector_set_x, scm_vector_to_list)
783 (scm_vector_fill_x), strorder.c (scm_string_equal_p)
784 (scm_string_ci_equal_p, scm_string_less_p, scm_string_leq_p)
785 (scm_string_gr_p, scm_string_geq_p, scm_string_ci_less_p)
786 (scm_string_ci_geq_p), symbols.c (scm_symbol_p)
787 (scm_symbol_to_string, scm_string_to_symbol): Changed use of @t{}
788 to @code{} as the texinfo manual recommends, converted the
789 examples to use a @lisp{}-environment.
790
791 * strports.c (scm_eval_string): Cleaned up the docstring.
792
793 * struct.c (scm_struct_p, scm_struct_vtable_p): Added texinfo
794 markup.
795
796 * numbers.c (scm_exact_p, scm_odd_p, scm_even_p)
797 (scm_number_to_string, scm_string_to_number, scm_number_p)
798 (scm_real_p, scm_integer_p, scm_inexact_p, scm_make_rectangular)
799 (scm_make_polar, scm_inexact_to_exact): Added texinfo markup.
800 (scm_ash): Added texinfo markup and removed obsolete @refill.
801 (scm_gr_p): Corrected comment.
802 (scm_gr_p, scm_leq_p, scm_geq_p): Added texinfo markup to (future
803 docstring) comments.
804 (scm_positive_p, scm_less_p, scm_num_eq_p, scm_real_p)
805 (scm_number_p, scm_negative_p, scm_max, scm_min, scm_sum)
806 (scm_difference, scm_product, scm_divide, scm_asinh, scm_acosh)
807 (scm_atanh, scm_truncate, scm_round, scm_exact_to_inexact)
808 (floor, ceiling, $sqrt, $abs, $exp, $log, $sin, $cos, $tan, $asin)
809 ($acos, $atan, $sinh, $cosh, $tanh, scm_real_part, scm_imag_part)
810 (scm_magnitude, scm_angle, scm_abs, scm_quotient, scm_remainder)
811 (scm_modulo, scm_gcd, scm_lcm): Added (future docstring) comments.
812
813 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
814
815 * __scm.h (SCM_ASSERT_TYPE): Add missing macro parameter.
816 (Obviously nobody compiles with SCM_RECKLESS defined...)
817
818 * validate.h (SCM_ASSERT_RANGE): Use the argument number.
819
820 2001-02-23 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
821
822 * ports.c, ports.h (scm_c_read, scm_c_write): New functions.
823
824 * ports.h (SCM_READ_BUFFER_EMPTY_P): New macro.
825
826 2001-02-24 Neil Jerram <neil@ossau.uklinux.net>
827
828 * numbers.c (scm_two_doubles, scm_sys_expt, scm_sys_atan2,
829 scm_make_polar): Rename arguments `z1' and `z2' to `x' and `y',
830 since use of `z' suggests that the arguments may be complex.
831
832 * goops.c (scm_make), numbers.c (scm_sys_expt): Fix docstring
833 typos.
834
835 2001-02-23 Neil Jerram <neil@ossau.uklinux.net>
836
837 * dump.c (scm_binary_write, scm_binary_read), eval.c
838 (scm_primitive_eval), guardians.c (scm_guardian_destroyed_p,
839 scm_guardian_greedy_p, scm_make_guardian), fports.c
840 (scm_file_port_p): Minor docstring fixes.
841
842 2001-02-22 Marius Vollmer <mvo@zagadka.ping.de>
843
844 * load.c (load): Use scm_primitive_eval_x instead of scm_i_eval_x.
845
846 * goops.c (scm_add_method, DEFVAR): Use scm_eval instead of
847 scm_i_eval.
848 (make_class_from_template): Do not bother to set the current
849 module around the call to DEFVAR, scm_eval takes care of that.
850 (scm_init_goops): Make scm_module_goops and
851 scm_goops_lookup_closure permanent objects.
852
853 * eval.c (scm_ceval, scm_deval): When evaluating expressions on
854 top level, create a fresh top-level environment for each
855 expression instead of mutating the exisint frame. This is
856 important when that frame is closed over.
857
858 * numbers.c (s_scm_logior) [SCM_DIGSTOOBIG]: Also use
859 SCM_DIGSPERLONG instead of DIGSPERLONG.
860
861 2001-02-21 Marius Vollmer <mvo@zagadka.ping.de>
862
863 * eval.c (scm_ceval, scm_deval): Check for wrong number of args
864 before applying arrow procedure in `cond' and before applying
865 receiver procedure in call-with-current-continuation.
866 (scm_i_eval): Do not invoke scm_copy_tree in argument in SCM_XEVAL
867 macro. The argument is expanded more than one time.
868
869 * numbers.c (scm_logior) [SCM_DIGSTOOBIG]: Correctly use
870 SCM_BIGDIG instead of BIGDIG. Thanks to Steven G. Johnson!
871
872 2001-02-20 Marius Vollmer <mvo@zagadka.ping.de>
873
874 * guile-doc-snarf.in, guile-func-name-check.in: Added copyright
875 notice and license.
876
877 2001-02-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
878
879 * variable.c (scm_make_variable, scm_make_undefined_variable)
880 (scm_variable_ref, scm_variable_set_x, scm_builtin_variable)
881 (scm_variable_bound_p), values.c (scm_values)
882 (scm_call_with_values), unif.c (scm_bit_count)
883 (scm_bit_set_star_x), symbols.c (scm_gentemp)
884 (scm_gensym), strings.c (scm_string_p, scm_make_string)
885 (scm_read_only_string_p, scm_string_length, scm_string_ref)
886 (scm_string_set_x, scm_substring, scm_string_append), stime.c
887 (scm_strptime, scm_mktime), random.c (scm_seed_to_random_state)
888 (scm_copy_random_state, scm_random), print.c (scm_newline)
889 (scm_write_char, scm_simple_format), debug-malloc.c
890 (scm_malloc_stats), environments.c (scm_environment_p)
891 (scm_environment_bound_p, scm_environment_ref)
892 (scm_environment_fold, scm_environment_define)
893 (scm_environment_undefine, scm_environment_set_x)
894 (scm_environment_cell, scm_environment_observe)
895 (scm_environment_observe_weak, scm_environment_unobserve)
896 (scm_make_eval_environment, scm_eval_environment_p)
897 (scm_eval_environment_set_local_x, scm_eval_environment_local)
898 (scm_eval_environment_imported)
899 (scm_eval_environment_set_imported_x, scm_make_import_environment)
900 (scm_import_environment_p, scm_import_environment_imports)
901 (scm_import_environment_set_imports_x, scm_make_export_environment)
902 (scm_export_environment_p, scm_export_environment_private)
903 (scm_export_environment_set_private_x)
904 (scm_export_environment_signature)
905 (scm_export_environment_set_signature_x, scm_leaf_environment_p):
906 Added texinfo markup.
907
908 * ports.c (scm_drain_input): Lowercased argument to @var.
909 (scm_current_input_port, scm_current_output_port): Filled in
910 missing explanation.
911 (scm_current_load_port, scm_set_current_output_port)
912 (scm_set_current_error_port, scm_port_line, scm_set_port_line_x):
913 Added texinfo markup.
914
915 * arbiters.c (scm_make_arbiter, scm_try_arbiter)
916 (scm_release_arbiter): Added texinfo markup to docstrings.
917 Changed `Returns' to `Return'.
918 (arbiter_print): Changed SCM_CDR to SCM_SMOB_DATA.
919
920 2001-02-16 Neil Jerram <neil@ossau.uklinux.net>
921
922 * guile-snarf.awk.in: Quote any `@'s that occur in Scheme names,
923 by doubling them to `@@'.
924
925 2001-02-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
926
927 * numbers.c (scm_lognot), random.c (scm_random,
928 scm_random_normal, scm_random_solid_sphere_x,
929 scm_random_hollow_sphere_x, scm_random_normal_vector_x,
930 scm_random_exp), dynwind.c
931 (scm_dynamic_wind): Removed unnecessary "" from docstrings.
932
933 * goops.c (scm_sys_initialize_object, scm_instance_p,
934 scm_class_name, scm_class_precedence_list, scm_class_slots,
935 scm_class_environment, scm_generic_function_name,
936 scm_generic_function_methods, scm_method_generic_function,
937 scm_method_specializers, scm_method_procedure, scm_make_unbound,
938 scm_unbound_p, scm_assert_bound, scm_at_assert_bound_ref,
939 scm_sys_fast_slot_ref, scm_sys_fast_slot_set_x, scm_slot_ref,
940 scm_slot_set_x, _scm_slot_bound_p, scm_slots_exists_p,
941 scm_sys_allocate_instance, scm_make, scm_pure_generic_p,
942 scm_class_direct_supers, scm_class_direct_slots,
943 scm_class_direct_subclasses, scm_class_direct_methods,
944 scm_accessor_method_slot_definition, scm_sys_goops_loaded),
945 debug.c (scm_with_traps, scm_memoized_p, scm_make_gloc,
946 scm_gloc_p, scm_make_iloc, scm_iloc_p, scm_memcons,
947 scm_mem_to_proc, scm_proc_to_mem, scm_unmemoize,
948 scm_memoized_environment, scm_procedure_name,
949 scm_procedure_source, scm_procedure_environment, scm_debug_hang),
950 objects.c
951 (scm_class_of, scm_entity_p, scm_operator_p,
952 scm_set_object_procedure_x, scm_object_procedure,
953 scm_make_class_object), hooks.c (scm_make_hook_with_name,
954 scm_make_hook, scm_hook_p, scm_hook_empty_p, scm_add_hook_x,
955 scm_remove_hook_x, scm_reset_hook_x, scm_run_hook,
956 scm_hook_to_list), lang.c
957 (scm_nil_cons, scm_nil_car, scm_nil_cdr, scm_null, scm_nil_eq),
958 numbers.c (scm_sys_expt, scm_sys_atan2), print.c
959 (scm_print_options, scm_port_with_print_state,
960 scm_get_print_state), procs.c (scm_make_cclo, scm_procedure_p,
961 scm_closure_p, scm_thunk_p, scm_procedure_with_setter_p,
962 scm_make_procedure_with_setter, scm_procedure), throw.c
963 (scm_lazy_catch), modules.c (scm_standard_eval_closure), load.c
964 (scm_parse_path, scm_search_path), stacks.c (scm_make_stack,
965 scm_stack_ref, scm_stack_length, scm_frame_p,
966 scm_last_stack_frame, scm_frame_number, scm_frame_source,
967 scm_frame_procedure, scm_frame_arguments, scm_frame_previous,
968 scm_frame_next, scm_frame_real_p, scm_frame_procedure_p,
969 scm_frame_evaluating_args_p, scm_frame_overflow_p), filesys.c
970 (scm_dirname, scm_basename), dynwind.c
971 (scm_wind_chain), read.c (scm_read_options, scm_read,
972 scm_read_hash_extend), gc.c
973 (scm_unhash_name), eval.c (scm_eval_options_interface,
974 scm_evaluator_traps, s_scm_nconc2last), backtrace.c
975 (scm_display_error, scm_set_print_params_x,
976 scm_display_application, scm_display_backtrace, scm_backtrace),
977 async.c (scm_async, scm_system_async, scm_async_mark,
978 scm_system_async_mark, scm_run_asyncs, scm_noop,
979 scm_set_tick_rate, scm_set_switch_rate, scm_unmask_signals,
980 scm_mask_signals): Added docstrings.
981
982 2001-02-15 Keisuke Nishida <kxn30@po.cwru.edu>
983
984 * dump.c (scm_undump): Use SCM_CARLOC/SCM_CDRLOC to obtain the
985 address of car/cdr. (Thanks to Dirk Herrmann)
986 Use scm_sizet to obtain the length of strings.
987 (Thanks to Matthias Koeppe)
988
989 2001-02-15 Marius Vollmer <mvo@zagadka.ping.de>
990
991 * symbols.c (scm_mem2symbol): Put a empty statement after the
992 next_symbol label. This is mandated by ANSI, appearantly.
993
994 2001-02-13 Marius Vollmer <marius.vollmer@uni-dortmund.de>
995
996 * gc_os_dep.c: Do not include <linux/version.h>. It makes no
997 sense to compile for a specific kernel version. Do not include
998 <asm/signal.h> while defining __KERNEL__. This hack should no
999 longer be needed and caused problems.
1000
1001 2001-02-13 Marius Vollmer <mvo@zagadka.ping.de>
1002
1003 * eval.c (scm_ceval, scm_deval): use `SIDEVAL' instead of
1004 SCM_CEVAL when evaluating subforms of `begin' forms. SCM_CEVAL
1005 can not deal with immediates.
1006
1007 2001-02-12 Keisuke Nishida <kxn30@po.cwru.edu>
1008
1009 * list.c (scm_list_copy): Validate the first argument.
1010
1011 2001-02-11 Marius Vollmer <mvo@zagadka.ping.de>
1012
1013 Fix evaluator so that top-level expressions are correctly
1014 evaluated with respect to the module system.
1015
1016 * modules.h. modules.c (scm_current_module_lookup_closure): New
1017 function.
1018
1019 * eval.h (scm_primitive_eval, scm_primitive_eval_x): New
1020 prototypes.
1021 (scm_i_eval, scm_i_eval_x, scm_eval, scm_eval_x): Changed argument
1022 names to better reflect their meaning.
1023
1024 * eval.c (scm_ceval, scm_deval): Recognize when `begin' is being
1025 evaluated at top-level and synronize lookup closure before
1026 executing every subform.
1027 (scm_primitve_eval_x, scm_primitive_eval): New functions.
1028 (scm_eval_x, scm_eval): Reimplement in terms of
1029 scm_primitive_eval_x and scm_primitive_eval, respectively.
1030
1031 2001-02-09 Marius Vollmer <mvo@zagadka.ping.de>
1032
1033 * macros.c (scm_macro_name, scm_macro_transformer): Use
1034 SCM_SMOB_DATA instead of SCM_CDR. Provided by Martin Grabmueller.
1035 Thanks!
1036
1037 2001-02-10 Keisuke Nishida <kxn30@po.cwru.edu>
1038
1039 * dump.c (scm_store_bytes): Store data size before data.
1040 (scm_restore_bytes): Restore data size. Takes a pointer to size.
1041 * dump.h (scm_restore_bytes): Updated.
1042
1043 2001-02-09 Keisuke Nishida <kxn30@po.cwru.edu>
1044
1045 * dump.c: Use double cells for update schedule.
1046
1047 2001-02-08 Keisuke Nishida <kxn30@po.cwru.edu>
1048
1049 * ports.c (scm_unread_char): Take an optional argument.
1050
1051 2001-02-08 Marius Vollmer <marius.vollmer@uni-dortmund.de>
1052
1053 * modules.h (scm_selected_module, scm_current_module): Renamed
1054 scm_selected_module to scm_current_module to synchronize Scheme
1055 and C names.
1056 (scm_select_module, scm_set_current_module): Likewise. Changed
1057 all uses.
1058
1059 * ports.c (scm_port_for_each): Make a snapshot of the port table
1060 before iterating over it. The table might change while the user
1061 code is running. With the snapshot, the user can depend on the
1062 fact that each port that existed at the start of the iteration is
1063 encountered exactly once. (ice-9 popen) depends on this.
1064
1065 2001-02-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
1066
1067 * strings.h (SCM_STRING_MAX_LENGTH): New macro.
1068
1069 * strings.c (scm_makstr, scm_take_str, scm_make_string): Added
1070 range checking for the size parameter. Thanks to Martin
1071 Grabmueller for the hint.
1072
1073 (scm_makstr): Reordered string initialization to make interrupt
1074 deferring unnecessary.
1075
1076 * vectors.c (scm_make_vector): Fixed range checking.
1077
1078 2001-02-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
1079
1080 * vectors.h (SCM_VECTOR_MAX_LENGTH): New macro.
1081
1082 * vectors.c (scm_make_vector, scm_c_make_vector): Improved the
1083 checking of the size parameter for type correctness and valid
1084 range. Thanks to Rob Browning for reporting the problem. Instead
1085 of deferring interrupts, scm_remember_upto_here_1 is used.
1086
1087 2001-02-05 Keisuke Nishida <kxn30@po.cwru.edu>
1088
1089 * dump.c (scm_store_cell_object, scm_restore_cell_object): Removed.
1090 (scm_dump_cell_update): Removed.
1091 (scm_dump_update): Renamed from scm_dump_object_update.
1092 (scm_restore_string, scm_restore_bytes, scm_restore_word): Takes
1093 a pointer instead of returning a value.
1094 * keywords.c (keyword_undump): Updated.
1095
1096 2001-02-05 Keisuke Nishida <kxn30@po.cwru.edu>
1097
1098 * dump.c, dump.h: Modified a lot.
1099 (SCM_DUMP_COOKIE): Version 0.1
1100 (scm_dump_mark): Removed.
1101 (scm_restore_cell_object, scm_store_cell_object): New functions.
1102
1103 * smob.h (scm_smob_descriptor): Removed slots: dump_mark,
1104 dump_dealloc, dump_store, undump_alloc, undump_restore, undump_init.
1105 New slots: dump, undump.
1106 * smob.c (scm_make_smob_type, scm_set_smob_dump, scm_set_smob_undump):
1107 Updated.
1108
1109 * keywords.c (keyword_dump): Renamed from keyword_dealloc.
1110 (keyword_undump): Renamed from keyword_alloc.
1111 (scm_init_keywords): Set keyword_dump and keyword_undump.
1112
1113 2001-02-03 Michael Livshin <mlivshin@bigfoot.com>
1114
1115 * gc.c (DOUBLECELL_ALIGNED_P): new macro, a better-named analog of
1116 the deprecated SCM_DOUBLE_CELLP.
1117
1118 * tags.h (SCM_DOUBLE_CELLP): deprecated.
1119
1120 2001-02-02 Keisuke Nishida <kxn30@po.cwru.edu>
1121
1122 * dump.c, dump.h: New files.
1123 * Makefile.am: Added dump.c, dump.h, dump.x, dump.doc.
1124 * init.c: #include "libguile/dump.h".
1125 (scm_init_guile_1): Call scm_init_dump.
1126 * smob.h (scm_smob_descriptor): New slots: dump_mark,
1127 dump_dealloc, dump_store, undump_alloc, undump_restore,
1128 undump_init.
1129 * smob.c (scm_make_smob_type): Init the new slots.
1130 (scm_set_smob_dump, scm_set_smob_undump): New functions.
1131 * smob.h (scm_set_smob_dump, scm_set_smob_undump): Declared.
1132
1133 * keywords.c: #include "libguile/dump.h".
1134 (keyword_dealloc, keyword_alloc): New functions.
1135 (scm_init_keywords): Set smob_dump and smob_undump.
1136
1137 2001-02-01 Keisuke Nishida <kxn30@po.cwru.edu>
1138
1139 * vectors.c (scm_c_make_vector): New function.
1140 * vectors.h (scm_c_make_vector): Declared.
1141 * eval.c (scm_copy_tree), filesys.c (scm_stat2scm), fluids.c
1142 (scm_make_initial_fluids, grow_fluids), gc.c (scm_init_storage),
1143 gh_data.c (gh_ints2scm, gh_doubles2scm): goops.c
1144 (scm_make_method_cache, scm_i_vector2list,
1145 scm_compute_applicable_methods, scm_sys_method_more_specific_p),
1146 init.c (start_stack), net_db.c (scm_gethost, scm_getnet,
1147 scm_getproto, scm_return_entry), posix.c (scm_getgroups,
1148 scm_getpwuid, scm_getgrgid, scm_uname), print.c (make_print_state,
1149 grow_ref_stack), regex-posix.c (scm_regexp_exec), scmsigs.c
1150 (scm_init_scmsigs), socket.c (scm_addr_vector, scm_addr_vector),
1151 stime.c (scm_times, filltime), unif.c (scm_make_uve), vectors.c
1152 (scm_vector, scm_make_vector): Use scm_c_make_vector.
1153
1154 * hashtab.c (scm_c_make_hash_table): New function.
1155 * hashtab.h (scm_c_make_hash_table): Declared.
1156 * environments.c (scm_make_leaf_environment,
1157 scm_make_eval_environment), gc.c (scm_init_storage),
1158 keywords.c (scm_init_keywords), symbols.c (scm_builtin_bindings):
1159 Use scm_c_make_hash_table.
1160
1161 2001-01-31 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
1162
1163 * unif.c (rapr1): Don't apply scm_uniform_vector_length on arrays.
1164
1165 2001-01-29 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
1166
1167 * struct.c (scm_make_vtable_vtable): Removed unnecessary "" from
1168 end of docstring.
1169
1170 * struct.c (scm_struct_set_x, scm_struct_vtable_tag,
1171 scm_struct_vtable_name, scm_set_struct_vtable_name_x), weaks.c
1172 (scm_make_weak_value_hash_table, scm_make_doubly_weak_hash_table,
1173 scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
1174 srcprop.c (scm_source_properties, scm_set_source_properties_x,
1175 scm_source_property, scm_set_source_property_x), sort.c
1176 (scm_sort_list_x, scm_restricted_vector_sort_x, scm_sorted_p,
1177 scm_merge, scm_merge_x, scm_sort_x, scm_sort, scm_stable_sort_x,
1178 scm_stable_sort, scm_sort_list_x, scm_sort_list): Added
1179 docstrings.
1180
1181 2001-01-29 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
1182
1183 * eval.c (SCM_APPLY): Check that primitives which take 1 arg
1184 really get that arg.
1185
1186 2001-01-26 Keisuke Nishida <kxn30@po.cwru.edu>
1187
1188 * goops.c (s_scm_get_keyword): Bug fix.
1189
1190 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
1191
1192 The following patch was sent by Martin Grabmueller. It makes sure
1193 that in case of parameter errors the correct function name is
1194 shown, and that parameter types are only checked once.
1195
1196 * strop.c (string_copy, string_upcase_x, string_downcase_x,
1197 string_capitalize_x): New functions. Each one performs the core
1198 functionality of the corresponding scm_* function.
1199
1200 (scm_string_copy, scm_string_upcase_x, scm_string_upcase,
1201 scm_string_downcase_x, scm_string_downcase,
1202 scm_string_capitalize_x, scm_string_capitalize): Reduced to
1203 parameter checking wrappers of the above functions.
1204
1205 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
1206
1207 * continuations.c, dynl.c, keywords.c, load.c: Include
1208 strings.h. Thanks to Bill Schottstaedt for the bug report.
1209
1210 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
1211
1212 * backtrace.c (display_header): Make sure that line and column
1213 information is shown independent of whether the port the code was
1214 read from had an associated filename. Thanks to Martin
1215 Grabmueller for providing this patch.
1216
1217 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
1218
1219 * fports.[ch] (scm_file_port_p): New primitive.
1220
1221 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
1222
1223 * tags.h (scm_tc16_fport, scm_tc16_strport, scm_tc16_sfport):
1224 These are now defined in fports.c, strports.c and vports.c.
1225
1226 * fports.[ch] (scm_tc16_fport), strports.c (scm_tc16_strport),
1227 vports.c (scm_tc16_sfport): Made variables (were macros defined in
1228 tags.h).
1229
1230 fports.c (scm_make_fptob), strports.c (scm_make_stptob), vports.c
1231 (scm_make_sfptob): Made static. These return a type code now.
1232
1233 fports.c (scm_init_fports), strports.c (scm_init_strports),
1234 vports.c (scm_init_vports): Create the corresponding port types.
1235
1236 * fports.h (SCM_FPORTP, SCM_OPFPORTP, SCM_OPINFPORTP,
1237 SCM_OPOUTFPORTP): Redefined in terms of scm_tc16_fport.
1238
1239 * init.c (scm_init_guile_1): Make sure strports are initialized
1240 before gdbint.
1241
1242 * ports.[ch] (scm_make_port_type): Changed the return type to
1243 scm_bits_t.
1244
1245 * ports.c (scm_ports_prehistory): Don't create any port types
1246 here.
1247
1248 * posix.c (scm_ttyname): Use SCM_FPORTP instead of comparing
1249 against scm_tc16_fport directly.
1250
1251 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
1252
1253 * srcprop.c (scm_set_source_property_x): Fix to handle
1254 (set-source-property! <obj> 'copy <datum>) correctly.
1255
1256 2001-01-24 Gary Houston <ghouston@arglist.com>
1257
1258 * filesys.c (scm_link): docstring fix.
1259 * fports.h (scm_setfileno): obsolete declaration removed.
1260 * posix.c: bogus popen declaration removed.
1261
1262 * rdelim.c: new file, split from ioext.c.
1263 * rdelim.h: new file, split from ioext.h
1264 * Makefile.am: add rdelim.c and related files.
1265 * init.c: call scm_init_rdelim. include rdelim.h.
1266
1267 2001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
1268
1269 This patch was sent by Martin Grabmueller and makes sure that
1270 parameter errors are reported correctly by the lexicographic
1271 ordering predicates.
1272
1273 * strorder.c (string_less_p, string_ci_less_p): New functions.
1274
1275 (scm_string_less_p, scm_string_ci_less_p): Extracted the core
1276 functionality into string_less_p, string_ci_less_p respectively.
1277 The remaining code is just a wrapper to do the parameter
1278 checking.
1279
1280 (scm_string_leq_p, scm_string_gr_p, scm_string_geq_p): Check the
1281 parameters and call string_less_p instead of scm_string_less_p.
1282
1283 (scm_string_ci_leq_p, scm_string_ci_gr_p, scm_string_ci_geq_p):
1284 Check the parameters and call string_less_ci_p instead of
1285 scm_string_ci_less_p.
1286
1287 2001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
1288
1289 This patch modifies scm_display_error to perform parameter
1290 checking. Thanks to Neil Jerram for the bug report.
1291
1292 * backtrace.[ch] (scm_i_display_error): New function.
1293
1294 * backtrace.c (scm_display_error): Added parameter check and
1295 extracted the core functionality into function
1296 scm_i_display_error.
1297
1298 * throw.c (handler_message): Call scm_i_display_error to display
1299 the error message.
1300
1301 2001-01-23 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
1302
1303 * eval.c (SCM_APPLY): Added # args check for application of
1304 procedures with arity 3. (Thanks to Anders Holst.)
1305
1306 2001-01-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
1307
1308 * filesys.h (SCM_DIR_FLAG_OPEN, SCM_DIR_OPEN_P): Added.
1309
1310 (SCM_OPDIRP): Deprecated.
1311
1312 * filesys.c (scm_opendir): Use SCM_DIR_FLAG_OPEN instead of
1313 SCM_OPN.
1314
1315 (scm_readdir, scm_rewinddir): Don't use SCM_VALIDATE_OPDIR.
1316 Instead, give an explicit error message in case the directory is
1317 closed.
1318
1319 (scm_closedir, scm_dir_print): Rewritten to use SCM_DIR_OPEN_P
1320 instead of SCM_OPENP and SCM_CLOSEDP.
1321
1322 * validate.h (SCM_VALIDATE_OPDIR): Deprecated.
1323
1324 2001-01-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
1325
1326 * eval.c (inner_eval, scm_eval): Move all real functionality into
1327 inner_eval. Avoid to copy the expression twice by inlining some
1328 code from scm_i_eval.
1329
1330 2001-01-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
1331
1332 * eval.c (scm_m_case): The 'else' clause of a 'case' statement
1333 now has to be the last clause, as required by R5RS. Thanks to
1334 Martin Grabmueller for the patch.
1335
1336 2001-01-18 Gary Houston <ghouston@arglist.com>
1337
1338 * ioext.c: further simplify scm_read_string_x_partial by defining
1339 a macro SCM_EBLOCK.
1340
1341 2001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
1342
1343 * gh_data.c (gh_ints2scm): Simplified using SCM_FIXABLE.
1344
1345 2001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
1346
1347 * __scm.h: Added comment about architecture and compiler
1348 properties that are required by guile.
1349
1350 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
1351 SCM_MOST_NEGATIVE_FIXNUM): Moved to numbers.h.
1352
1353 (SCM_CHAR_BIT, SCM_LONG_BIT): Moved here from numbers.h.
1354
1355 * numbers.h (SCM_CHAR_BIT, SCM_LONG_BIT): Moved to __scm.h.
1356
1357 (SCM_FIXNUM_BIT, SCM_MOST_POSITIVE_FIXNUM,
1358 SCM_MOST_NEGATIVE_FIXNUM): Moved here from __scm.h.
1359
1360 2001-01-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
1361
1362 * __scm.h (SCM_FIXNUM_BIT): Added. The name is chosen in analogy
1363 to the names in limits.h.
1364
1365 * numbers.c (abs_most_negative_fixnum): Added.
1366
1367 (scm_quotient, scm_remainder): Fixed the fixnum-min / (abs
1368 fixnum-min) special case.
1369
1370 (scm_big_and): Fix for negative first parameter.
1371
1372 (scm_bit_extract): Fix for fixnum paramters.
1373 Thanks to Rob Browning for the bug report.
1374
1375 (scm_init_numbers): Initialize abs_most_negative_fixnum.
1376
1377 2001-01-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
1378
1379 * symbols.c (scm_symbol_bound_p): Fixed comment.
1380 Thanks to Chris Cramer.
1381
1382 2001-01-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
1383
1384 * smob.[ch] (scm_make_smob_type): Return type is scm_bits_t now.
1385 Thanks to Bill Schottstaedt.
1386
1387 2001-01-11 Michael Livshin <mlivshin@bigfoot.com>
1388
1389 from Matthias Köppe:
1390
1391 * objects.h (SCM_SET_ENTITY_SETTER): new macro. SCM_ENTITY_SETTER
1392 casts its result, so doesn't yield an lvalue per ANSI C.
1393
1394 * goops.c (s_scm_sys_set_object_setter_x): use
1395 SCM_SET_ENTITY_SETTER.
1396 (clear_method_cache): use SCM_SET_ENTITY_PROCEDURE.
1397
1398 * gc.h (SCM_GC_SET_CARD_BVEC): new macro. SCM_GC_CARD_BVEC casts
1399 its result, so doesn't yield an lvalue per ANSI C.
1400 (SCM_GC_SET_CARD_FLAGS): ditto for SCM_GC_GET_CARD_FLAGS.
1401 (SCM_GC_CLR_CARD_FLAGS): redefined in terms of
1402 SCM_GC_SET_CARD_FLAGS.
1403 (SCM_GC_SET_CARD_FLAG, SCM_GC_CLR_CARD_FLAGS): ditto.
1404
1405 * gc.c (INIT_CARD): use the explicit setter macro to set the bvec.
1406
1407 2001-01-08 Gary Houston <ghouston@arglist.com>
1408
1409 * validate.h (SCM_VALIDATE_SUBSTRING_SPEC_COPY): new macro.
1410 * ioext.c (scm_read_string_x_partial, scm_read_delimited_x),
1411 socket.c (scm_recvfrom): use the new macro, plus minor docstring
1412 changes.
1413 * ioext.c (scm_read_string_x_partial): don't crash if -1 is supplied
1414 for fdes. if current input port is used, check that it's a file
1415 port.
1416
1417 2001-01-06 Gary Houston <ghouston@arglist.com>
1418
1419 * ioext.c (scm_read_string_x_partial): new procedure, implements
1420 read-string!/partial.
1421 * ports.c (scm_take_from_input_buffers): new procedure used by
1422 scm_read_string_x_partial.
1423 (scm_drain_input): use scm_take_from_input_buffers.
1424
1425 2001-01-06 Marius Vollmer <mvo@zagadka.ping.de>
1426
1427 * validate.h (SCM_VALIDATE_NUMBER): New.
1428
1429 2001-01-03 Michael Livshin <mlivshin@bigfoot.com>
1430
1431 * guardians.c (F_GREEDY, F_LISTED, F_DESTROYED, GREEDY_P,
1432 SET_GREEDY, LISTED_P, SET_LISTED, CLR_LISTED, DESTROYED_P,
1433 SET_DESTROYED): new defines/macros.
1434 (GUARDIAN_LIVE, GUARDIAN_ZOMBIES, GUARDIAN_NEXT): deleted.
1435 (add_to_live_list): takes a `guardian_t *' now, not SCM.
1436 (guardian_print): print more info.
1437 (guardian_apply): check if the guardian is destroyed, and throw an
1438 error if so. take one more optional argument `throw_p'.
1439 (scm_guard): depending on the value of `throw_p', return a boolean
1440 result.
1441 (scm_get_one_zombie): remove redundant property test.
1442 (guardian_t): represent the various (currently 3, I hope nothing
1443 more gets added) boolean fields as bit flags.
1444 (scm_guardian_destroyed_p, scm_guardian_greedy_p): new predicates.
1445 (scm_destroy_guardian_x): new procedure.
1446
1447 * guardians.h: added prototypes for `scm_guardian_greedy_p' and
1448 `scm_guardian_destroyed_p'. changed prototype for `scm_guard'.
1449
1450 2001-01-01 Gary Houston <ghouston@arglist.com>
1451
1452 * fports.c (fport_write): bugfix: handle short writes for
1453 unbuffered ports too. optimize the buffered case by minimizing
1454 the number of write/flush calls.
1455 (write_all): new helper procedure.
1456
1457 The ChangeLog continues in the file: "ChangeLog-2000"