+2001-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ This patch eliminates some further applications of SCM_C[AD]R to
+ non pair cells.
+
+ * gc.h (SCM_SETAND_CAR, SCM_SETOR_CAR): Deprecated. These have
+ never been applied to real pairs.
+
+ * srcprop.h (SCM_SOURCE_PROPERTY_FLAG_BREAK): Added.
+
+ (SRCPROPBRK): Use SCM_SOURCE_PROPERTY_FLAG_BREAK.
+
+ * unif.h (SCM_ARRAY_CONTIGUOUS, SCM_ARRAY_FLAG_CONTIGUOUS,
+ SCM_ARRAY_CONTP): Renamed SCM_ARRAY_CONTIGUOUS to
+ SCM_ARRAY_FLAG_CONTIGUOUS and use it.
+
+ (SCM_SET_ARRAY_CONTIGUOUS_FLAG, SCM_CLR_ARRAY_CONTIGUOUS_FLAG):
+ Added.
+
+ * srcprop.h (SRCPROPH), unif.h (UNIFH): Renamed to
+ SCM_SOURCE_PROPERTIES_H and SCM_UNIFORM_VECTORS_H, respectively.
+
+ * srcprop.h (SETSRCPROPBRK, CLEARSRCPROPBRK), unif.c
+ (scm_dimensions_to_uniform_array, scm_ra_set_contp): Don't use
+ SCM_SET{AND,OR}_CAR.
+
+2001-04-17 Gary Houston <ghouston@arglist.com>
+
+ * some initial support for IPv6:
+
+ * socket.c (scm_fill_sockaddr): improve the argument validation.
+ don't allocate memory until all args are checked. instead of
+ unconditional memset of soka, try setting sin_len to 0 if
+ SIN_LEN is defined. add support for AF_INET6. define FUNC_NAME.
+ (scm_socket, scm_connect): extend docstrings for IPv6.
+ (scm_init_socket): intern AF_INET6 and PF_INET6.
+
+2001-04-17 Niibe Yutaka <gniibe@m17n.org>
+
+ * srcprop.c (scm_make_srcprops): Added SCM_ALLOW_INTS which
+ matches SCM_DEFER_INTS at the beginning of the function.
+
+ * mallocs.c (scm_malloc_obj): Remove un-matched SCM_ALLOW_INTS.
+
+ * gc.c (scm_igc): Unconditionally call
+ SCM_CRITICAL_SECTION_START/END.
+
+ * fluids.c (next_fluid_num): Unconditionally call
+ SCM_CRITICAL_SECTION_START/END.
+ (s_scm_make_fluid): Remove un-matched SCM_DEFER_INTS.
+
+ * coop-defs.h (SCM_THREAD_DEFER, SCM_THREAD_ALLOW,
+ SCM_THREAD_REDEFER, SCM_THREAD_REALLOW_1, SCM_THREAD_REALLOW_2):
+ Removed.
+
+ * __scm.h (SCM_CRITICAL_SECTION_START, SCM_CRITICAL_SECTION_END):
+ Defined as nothing for the case of !defined(USE_THREADS).
+ (SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER):
+ Removed.
+ (<stdio.h>): Include when (SCM_DEBUG_INTERRUPTS == 1).
+ (SCM_CHECK_NOT_DISABLED, SCM_CHECK_NOT_ENABLED): Print FILE and
+ LINE.
+ (SCM_DEFER_INTS, SCM_ALLOW_INTS_ONLY, SCM_ALLOW_INTS,
+ SCM_REDEFER_INTS, SCM_REALLOW_INTS): Don't use
+ SCM_THREAD_DEFER/SCM_THREAD_ALLOW. Instead, use
+ SCM_CRITICAL_SECTION_START/END.
+ (SCM_REALLOW_INTS: Bug fix. Don't call
+ SCM_THREAD_SWITCHING_CODE.
+ (SCM_TICK): Don't use SCM_DEFER_INTS/SCM_ALLOW_INTS. Instead, use
+ SCM_THREAD_SWITCHING_CODE directly.
+ (SCM_ENTER_A_SECTION): Unconditionally use
+ SCM_CRITICAL_SECTION_START/END. (was:
+ SCM_DEFER_INTS/SCM_ALLOW_INTS when SCM_POSIX_THREADS defined).
+
+2001-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * __scm.h (SCM_CAREFUL_INTS, SCM_DEBUG_INTERRUPTS): Replaced the
+ macro SCM_CAREFUL_INTS by the macro SCM_DEBUG_INTERRUPTS and
+ allowed to explicitly set this macro via the CFLAGS variable
+ during make.
+
+ * fluids.c (next_fluid_num), gc.c (scm_igc), coop-defs.h
+ (SCM_THREAD_CRITICAL_SECTION_START,
+ SCM_THREAD_CRITICAL_SECTION_END): Renamed
+ SCM_THREAD_CRITICAL_SECTION_START/END to
+ SCM_CRITICAL_SECTION_START/END.
+
+2001-04-11 Keisuke Nishida <kxn30@po.cwru.edu>
+
+ * debug-malloc.c (grow, scm_debug_malloc_prehistory): Use memset
+ instead of bzero.
+
+ * coop.c, iselect.c (FD_ZERO_N): Unconditionally use memset.
+ (MISSING_BZERO_DECL): Remove the declaration.
+
+ Thanks to NIIBE Yutaka.
+
+2001-04-10 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
+
+ * init.c, goops.c, goops.h: Reverted change of 2001-03-29. (The
+ goops module should be registered in order to work for an
+ application which uses libguile statically linked.)
+
+2001-04-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * numbers.[ch] (scm_num2long, scm_num2long_long,
+ scm_num2ulong_long, scm_num2ulong): Argument position is an
+ unsigned integer.
+
+ * environments.c (eval_environment_folder,
+ import_environment_folder), gh_data.c (gh_scm2longs,
+ gh_scm2floats, gh_scm2doubles): Distinguish between 0 and NULL
+ for integers and pointers, respectively.
+
+ * gh_data.c (gh_scm2ulong, gh_scm2long, gh_scm2int), socket.c
+ (scm_fill_sockaddr), unif.c (scm_array_set_x), validate.h
+ (SCM_NUM2ULONG, SCM_NUM2LONG, SCM_NUM2LONG_DEF,
+ SCM_NUM2LONG_LONG): Don't pass argument positions as pointers.
+
+ * filesys.c (scm_open_fdes, scm_open), net_db (scm_inet_ntoa,
+ scm_inet_netof, scm_lnaof, scm_gethost, scm_getproto), posix.c
+ (scm_utime), ramap.c (scm_array_fill_int), scmsigs.c
+ (scm_sigaction), socket.c (scm_htonl, scm_ntohl, scm_sendto),
+ stime.c (scm_localtime, scm_gmtime), struct.c (scm_struct_set_x),
+ validate.h (SCM_VALIDATE_LONG_COPY): Whitespace fixes.
+
+2001-04-09 Neil Jerram <neil@ossau.uklinux.net>
+
+ * strings.c (scm_read_only_string_p): Update docstring to reflect
+ current (non-)usage of "read only" strings.
+ (scm_make_shared_substring): Clarify docstring by changing
+ "semantics" to "arguments".
+
+2001-04-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
+
+ * hooks.c (scm_make_hook, scm_make_hook_with_name),
+ (scm_hook_p, scm_hook_empty_p, scm_run_hook): Docstring
+ improvements.
+
+2001-04-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
+
+ The following changes make the documentation more consistent.
+
+ * rdelim.c (scm_write_line), posix.c (scm_utime), ports.c
+ (scm_seek), net_db.c (scm_inet_aton, scm_inet_ntoa),
+ (scm_inet_netof, scm_lnaof, scm_inet_makeaddr), ioext.c
+ (scm_ftell): Changed @smalllisp ... @end smalllisp to @lisp
+ ... @end lisp.
+
+ * vports.c (scm_make_soft_port), version.c (scm_version), unif.c
+ (scm_array_dimensions, scm_make_shared_array),
+ (scm_transpose_array, scm_enclose_array, scm_bit_count_star),
+ throw.c (scm_catch), struct.c (scm_make_vtable_vtable), strop.c
+ (scm_string_rindex, scm_string_index, scm_substring_fill_x),
+ (scm_string_null_p), strings.c (scm_read_only_string_p), root.c
+ (scm_call_with_dynamic_root), ramap.c (scm_array_index_map_x),
+ posix.c (scm_mknod), numbers.c (scm_logtest, scm_logbit_p),
+ macros.c (scm_makmmacro), list.c (scm_append), environments.c
+ (scm_environment_fold), dynwind.c (s_scm_dynamic_wind): Changed
+ @example ... @end example to @lisp ... @end lisp.
+
+ * weaks.c (scm_weak_vector): Corrected docstring.
+
+ * hashtab.c (scm_hashq_ref, scm_hashq_set_x, scm_hashq_remove_x),
+ (scm_hashv_ref, scm_hashv_set_x, scm_hashv_remove_x),
+ (scm_hash_ref, scm_hash_set_x, scm_hash_remove_x, scm_hashx_ref),
+ (scm_hashx_set_x, scm_hashx_get_handle),
+ (scm_hashx_create_handle_x), regex-posix.c (scm_make_regexp),
+ (scm_regexp_exec, scm_regexp_p), numbers.c (scm_logtest),
+ vectors.c (scm_vector_fill_x), strings.c
+ (scm_make_shared_substring), symbols.c (scm_string_to_symbol),
+ objprop.c (scm_set_object_properties_x):
+ (scm_set_object_property_x), throw.c (scm_catch, scm_lazy_catch),
+ strports.c (scm_call_with_input_string), ports.c
+ (scm_truncate_file), ioext.c (scm_ftell), ports.c (scm_seek),
+ list.c (scm_append_x), dynwind.c (scm_dynamic_wind), error.c
+ (scm_error_scm), vports.c (scm_make_soft_port), weaks.c
+ (scm_make_weak_vector,scm_weak_vector_p),
+ (scm_make_weak_key_hash_table, scm_make_weak_value_hash_table),
+ (scm_make_doubly_weak_hash_table, scm_weak_key_hash_table_p),
+ (scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
+ macros.c (scm_macro_type), dynl.c (scm_dynamic_link),
+ (scm_dynamic_unlink, scm_dynamic_call, scm_dynamic_args_call):
+ Made parameter names match documentation by renaming parameters
+ and/or fixing docstrings.
+
+ * numbers.c (scm_ash): Corrected Texinfo markup.
+
+ * strop.c (scm_string_index, scm_string_rindex),
+ (scm_substring_fill_x, scm_string_null_p): Removed `qdocs'.
+
+ * vports.c (scm_make_soft_port), unif.c
+ (scm_uniform_vector_length, scm_array_p, scm_array_rank),
+ (scm_dimensions_to_uniform_array, scm_transpose_array),
+ (scm_array_in_bounds_p, scm_uniform_vector_ref),
+ (scm_bit_count, scm_bit_position, scm_bit_count_star),
+ (scm_array_to_list, scm_list_to_uniform_array),
+ (scm_array_prototype, symbols.c (scm_string_to_symbol), strports.c
+ (scm_open_input_string, scm_open_output_string),
+ (scm_get_output_string), strop.c (scm_string_copy),
+ (scm_string_fill_x), strings.c (scm_string_p, scm_string), stime.c
+ (scm_get_internal_real_time, scm_times),
+ (scm_get_internal_run_time, scm_current_time, scm_gettimeofday),
+ (scm_localtime, scm_gmtime), socket.c (scm_htons, scm_ntohs),
+ (scm_htonl, scm_ntohl, scm_socket, scm_socketpair),
+ (scm_getsockopt, scm_getsockname, scm_getpeername, scm_recvfrom),
+ simpos.c (scm_system), random.c (scm_random_uniform),
+ (scm_random_normal, scm_random_exp), ramap.c
+ (scm_array_equal_p), posix.c (scm_pipe, scm_getgroups),
+ (scm_status_exit_val, scm_status_term_sig, scm_status_stop_sig),
+ (scm_getppid, scm_getuid, scm_getgid, scm_geteuid, scm_getegid),
+ (scm_getpgrp, scm_ttyname, scm_ctermid, scm_tcgetpgrp, scm_uname),
+ (scm_environ, scm_tmpnam, scm_mkstemp, scm_access, scm_getpid),
+ (scm_setlocale), ports.c (scm_char_ready_p, scm_drain_input),
+ (scm_pt_size, scm_pt_member, scm_port_revealed, scm_port_mode),
+ (scm_close_port, scm_input_port_p, scm_output_port_p, scm_port_p),
+ (scm_port_closed_p, scm_eof_object_p, scm_read_char),
+ (scm_peek_char), pairs.c (scm_pair_p, scm_cons), numbers.c
+ (scm_logand, scm_logior, scm_logxor, scm_lognot),
+ (scm_integer_expt, scm_bit_extract, scm_logcount),
+ (scm_integer_length, scm_string_to_number, scm_inexact_to_exact),
+ net_db.c (scm_inet_netof, scm_lnaof), modules.c
+ (scm_interaction_environment), macros.c (scm_makacro),
+ (scm_makmacro, scm_makmmacro), keywords.c (scm_keyword_p), ioext.c
+ (scm_ftell, scm_dup_to_fdes, scm_fileno, scm_isatty_p),
+ (scm_fdopen, scm_fdes_to_ports), gc.c (scm_gc_stats), fluids.c
+ (scm_fluid_ref), filesys.c (scm_open_fdes),
+ (scm_stat, scm_directory_stream_p, scm_getcwd, scm_readlink):
+ Docstring correction: `Returns' -> `Return'
+
+ * gc.c (scm_set_debug_cell_accesses_x):
+ (s_scm_gc_set_debug_check_freelist_x):
+ * fluids.c (scm_fluid_p): Added texinfo markup.
+
+ * error.c (scm_strerror): Made docstring more precise.
+
+ * vectors.c (scm_vector_p, scm_vector, scm_make_vector),
+ (scm_vector_to_list, _scm_vector_fill_x), symbols.c
+ (scm_symbol_p, scm_symbol_to_string), strorder.c
+ (scm_string_equal_p, scm_string_ci_equal_p, scm_string_less_p),
+ (scm_string_leq_p, scm_string_gr_p, scm_string_geq_p),
+ (scm_string_ci_less_p, scm_string_ci_leq_p, scm_string_ci_gr_p):
+ (scm_string_ci_geq_p), strop.c (scm_string_copy),
+ (scm_string_fill_x): Removed `(r5rs)' from docstrings.
+
+2001-04-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * gc.c (MARK): Re-introduce a cheap sanity test for non debug
+ mode, as suggested by Michael Livshin.
+
+2001-03-31 Michael Livshin <mlivshin@bigfoot.com>
+
+ * backtrace.c (display_backtrace_body): since the `print_state'
+ variable is not used (instead its data field is used directly as
+ `pstate'), protect it from the hungry compiler optimizations.
+ thanks to Bill Schottstaedt for the report.
+
+2001-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * gc.[ch] (scm_tc16_allocated): New type tag for allocated cells.
+ It is only defined and used if guile is compiled with
+ SCM_DEBUG_CELL_ACCESSES set to true. It's purpose is, to never
+ let cells with a free_cell type tag be visible outside of the
+ garbage collector when in debug mode.
+
+ * gc.c (scm_debug_cell_accesses_p): Set to true as default.
+
+ (scm_assert_cell_valid): Use a local static variable to avoid
+ recursion.
+
+ (MARK): Only check for rogue cell pointers in debug mode. Use
+ scm_cellp for this purpose and place all checks for rogue pointers
+ into that function. Further, since due to conservative scanning
+ we may encounter free cells during marking, don't use the standard
+ cell type accessor macro to determine the cell type.
+
+ (scm_cellp): Check if the cell pointer actually points into a
+ card header.
+
+ (scm_init_gc): Initalize scm_tc16_allocated.
+
+ * gc.h (GCH): Renamed to SCM_GC_H.
+
+ (SCM_VALIDATE_CELL): Enclose the expression in brackets. This
+ might be unnecessary, but I feel better this way :-)
+
+ (SCM_GC_CELL_TYPE): New macro.
+
+ (SCM_SETAND_CDR, SCM_SETOR_CDR): Deprecated. These are not used
+ in guile, and it is unlikely that they will be applied to real
+ pairs anyway.
+
+ (SCM_SET_FREE_CELL_TYPE): Removed. It was not used.
+
+ (SCM_GC_SET_ALLOCATED): New macro. Only non-empty if guile is
+ compiled with SCM_DEBUG_CELL_ACCESSES set to true.
+
+ (SCM_NEWCELL, SCM_NEWCELL2): Use of SCM_GC_SET_ALLOCATED will
+ make sure that in debug mode no free cell will ever be visible
+ outside of the garbage collector.
+
+2001-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * async.c (scm_asyncs_pending): Don't use != to compare SCM
+ values.
+
+ * async.c (scm_system_async), variable.c (scm_make_variable,
+ scm_make_undefined_variable): Use scm_cons to create a pair.
+
+ * debug.c (scm_reverse_lookup): Perform proper type checking.
+ Remove suspicious use of SCM_SLOPPY_CONSP.
+
+ * eq.c (scm_equal_p), tags.h (SCM_ECONSP): Use SCM_CONSP instead
+ of SCM_SLOPPY_CONSP. A sane compiler should be able to perform
+ the corresponding optimization.
+
+ * eval.c (iqq): Use proper type check.
+
+ (scm_m_expand_body): Remove redundant type checks.
+
+ (promise_print): Don't access promise cells as pairs.
+
+ * eval.c (EVALCAR, iqq, scm_m_expand_body, scm_eval_args,
+ scm_deval_args SCM_CEVAL), guardians.c (scm_guard), hashtab.c
+ (scm_internal_hash_fold), print.c (scm_iprlist): Use !SCM_CELLP
+ for SCM_NCELLP, !SCM_CONSP for SCM_NCONSP, !SCM_IMP for SCM_NIMP,
+ !SCM_FALSEP for SCM_NFALSEP, !SCM_NULLP for SCM_NNULLP
+
+ * eval.c (scm_m_define, scm_macroexp, SCM_CEVAL), print.c
+ (scm_iprin1): Use new macro predicate and accessors.
+
+ * eval.h (scm_tc16_macro): Removed declaration. It is declared
+ in macros.h.
+
+ * eval.h (EVALH), macros.h (MACROSH), ports.h (PORTSH), procs.h
+ (PROCSH), tags.h (TAGSH), variable.h (VARIABLEH): Renamed to
+ SCM_EVAL_H, SCM_MACROS_H, SCM_PORTS_H, SCM_PROCS_H, SCM_TAGS_H and
+ SCM_VARIABLE_H. Even the macros that are used to inhibit
+ including a header file twice should be in the SCM_ namespace.
+
+ * fluids.c (scm_swap_fluids, scm_swap_fluids_reverse),
+ properties.c (scm_primitive_property_ref,
+ scm_primitive_property_del_x): Prefer stronger predicates like
+ SCM_NULLP or SCM_FALSEP over SCM_IMP.
+
+ * gc.c (MARK): Use proper macros to access procedure-with-setter
+ cell elements and closure cell elements.
+
+ (gc_sweep_freelist_finish, scm_gc_sweep, init_heap_seg): Don't
+ access free cells as pairs.
+
+ (scm_unprotect_object): scm_hashq_get_handle returns #f if
+ no hashtab entry is found.
+
+ * gc.c (scm_gc_sweep), ports.c (scm_close_port): Use new macro
+ SCM_CLR_PORT_OPEN_FLAG.
+
+ * guardians.c (TCONC_IN), print.c (scm_free_print_state): Don't
+ use SCM_SET_C[AD]R for uninitialized cells.
+
+ * hashtab.c (scm_hash_fn_get_handle): Use SCM_VALIDATE_VECTOR.
+ If the hashtable has no slots, return #f instead of '(). This
+ unifies the return value with most assoc-functions.
+
+ (scm_hash_fn_ref): Use proper type check.
+
+ (scm_hashq_get_handle, scm_hashv_get_handle, scm_hash_get_handle):
+ Removed references to non-existing functions from documentation.
+
+ * keywords.c (scm_keyword_dash_symbol): Use proper macros to
+ access keyword cell elements.
+
+ * macros.h (SCM_MACROP, SCM_MACRO_TYPE, SCM_MACRO_CODE): New
+ macros.
+
+ * ports.h (SCM_CLR_PORT_OPEN_FLAG): New macro.
+
+ * print.c (scm_iprlist): Added comment. Improved loop
+ conditions.
+
+ * procs.h (SCM_ENV, SCM_SETENV): Don't access closure cells as
+ pairs.
+
+ * smob.c (scm_markcdr): Don't access smob cells as pairs.
+
+ * tags.h (SCM_SLOPPY_CONSP, SCM_SLOPPY_NCONSP): Deprecated.
+
+ * throw.c (ACTIVATEJB, DEACTIVATEJB): Don't access jump buffer
+ cells as pairs.
+
+ * variable.c (variable_print, variable_equalp, scm_variable_ref,
+ scm_variable_set_x): Use proper macros to access variable cell
+ elements.
+
+ (scm_variable_bound_p): Don't use SCM_NEGATE_BOOL.
+
+ * variable.h (SCM_VARVCELL): Don't access variable cells as
+ pairs.
+
+ * vectors.c (scm_vector), weaks.c (scm_weak_vector): Simplified,
+ added FIXME comment, removed register specifier.
+
+2001-03-29 Keisuke Nishida <kxn30@po.cwru.edu>
+
+ * goops.c, goops.h (scm_init_oop_goops_goopscore_module): Deprecated.
+ * init.c (scm_init_guile_1): Don't init goopscore module.
+
+2001-03-27 Marius Vollmer <mvo@zagadka.ping.de>
+
+ * eval.c (SCM_APPLY): Check that arg1 is bound for scm_tc7_cxr.
+
+2001-03-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
+
+ * strop.c (scm_string_to_list): Fixed docstring markup.
+ (scm_string_upcase_x, scm_string_upcase, scm_string_downcase_x),
+ (scm_string_downcase, scm_string_capitalize_x),
+ (scm_string_capitalize): Rewrote and corrected docstrings.
+ (scm_string_ci_to_symbol): Made docstring more explicit.
+
+2001-03-27 Marius Vollmer <mvo@zagadka.ping.de>
+
+ * values.h (scm_values_vtable, SCM_VALUESP): Moved here so that
+ eval.c can use it.
+ (scm_call_with_values): Removed.
+ * values.c (values_vtable, scm_values_vtable): Added "scm_" prefix
+ so that it can be exported.
+ (scm_call_with_values): Removed.
+
+ * tags.h (SCM_IM_CALL_WITH_VALUES): New isym.
+ * eval.c: Include "libguile/values.h"
+ (scm_m_at_call_with_values, scm_sym_at_call_with_values):
+ New.
+ (unmemocopy, scm_ceval, scm_deval): Handle new isym.
+ * eval.h (scm_sym_at_call_with_values, scm_m_at_call_with_values):
+ New delcarations to support above change.
+
+ * eval.c (scm_primitive_eval_x, scm_primitive_eval): Fix syntax
+ errors with last change.
+
+2001-03-25 Marius Vollmer <mvo@zagadka.ping.de>
+
+ * eval.c (scm_primitive_eval_x, scm_primitive_eval, scm_i_eval_x,
+ scm_i_eval): Moved the application of the system transformer from
+ scm_i_eval to scm_primitive_eval.
+
+2001-03-23 Neil Jerram <neil@ossau.uklinux.net>
+
+ * guile-snarf.awk.in: Substitute "\\" with "\" in .doc output.
+
+ * strop.c (scm_string_index): Fix docstring line break
+ regression.
+
+ * list.c (scm_cons_star): Fix docstring typo.
+
+2001-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * gc.c (scm_init_storage), gdbint.c (scm_init_gdbint), numbers.c
+ (big2str), ports.c (scm_drain_input), read.c (scm_read,
+ scm_grow_tok_buf), strings.c (scm_string, scm_makfromstr,
+ scm_make_string, scm_string_append), strports.c (st_resize_port,
+ scm_object_to_string), unif.c (scm_make_uve): Replace calls to
+ scm_makstr with calls to scm_allocate_string.
+
+ * strings.[ch] (scm_allocate_string): New function.
+
+ * strings.[ch] (scm_makstr): Deprecated.
+
+2001-03-18 Gary Houston <ghouston@arglist.com>
+
+ * posix.c (scm_tmpnam): check that return value from tmpnam is not
+ NULL. rewrote the docstring.
+ (scm_mkstemp): new procedure implementing "mkstemp!".
+ * posix.h: declare scm_mkstemp.
+
+ * net_db.c: declare h_errno if configure didn't define HAVE_H_ERRNO.
+ normally it would be found in netdb.h.
+
+2001-03-17 Gary Houston <ghouston@arglist.com>
+
+ * sort.c (scm_sort): move sortvec variable to avoid a compiler
+ warning when HAVE_ARRAYS is not defined. move len too.
+
+ * Makefile.am (DOT_X_FILES): remove net_db.x, posix.x, socket.x.
+ (EXTRA_DOT_X_FILES): let configure set the value.
+ (DOT_DOC_FILES): remove net_db.doc, posix.doc, socket.doc.
+
+ * gc.c (scm_must_malloc): changed the comment explaining when
+ scm_must variants of malloc/free etc., should be used, based on
+ explanation from Dirk Herrmann.
+ * fports.c (scm_fport_buffer_add): use FUNC_NAME instead of a local
+ string with procedure name. use scm_must_malloc instead of malloc.
+ (scm_setvbuf, scm_fdes_to_port, fport_close): use scm_must variants
+ of malloc/free.
+ * ports.c (scm_add_to_port_table, scm_remove_from_port_table,
+ scm_ungetc): use scm_must variants of malloc/realloc/free.
+ (scm_add_to_port_table, scm_ungetc): define FUNC_NAME.
+
+2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
+ SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n): Don't call scm_wta, call
+ scm_wrong_type_arg instead.
+
+ (SCM_WNA): Deprecated.
+
+ * error.[ch] (scm_wta): Deprecated.
+
+ * numbers.c (s_i_log): Minor comment fix.
+
+ * read.c (scm_lreadr), unif.c (scm_aind, scm_shap2ra,
+ scm_make_shared_array, scm_transpose_array, scm_enclose_array,
+ scm_array_in_bounds_p): Don't use SCM_ASSERT to check for
+ wrong-num-args or misc errors.
+
+ * unif.c (scm_make_shared_array, scm_transpose_array,
+ scm_enclose_array, scm_array_in_bounds_p, scm_array_set_x):
+ Validate the rest argument (note: this is only done when guile is
+ built with SCM_DEBUG_REST_ARGUMENT=1)
+
+ (scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x):
+ Replace calls to scm_wrong_num_args by SCM_WRONG_NUM_ARGS.
+
+ * validate.h (SCM_FUNC_NAME, SCM_VALIDATE_NUMBER_COPY,
+ SCM_VALIDATE_NUMBER_DEF_COPY): Deprecated.
+
+2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * validate.h (SCM_WRONG_NUM_ARGS): Call scm_error_num_args_subr
+ instead of scm_wrong_num_args.
+
+ * coop-threads.c: Don't include libguile/strings.h. (Was only
+ needed for former implementation of SCM_WRONG_NUM_ARGS.)
+
+ * debug.c (scm_m_start_stack): Don't use SCM_ASSERT to check for
+ wrong-num-args errors.
+
+2001-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * error.[ch] (scm_error_num_args_subr): New function.
+
+2001-03-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
+
+ * list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),
+ (scm_length, scm_append, scm_reverse, scm_list_ref),
+ (scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x),
+ (scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x),
+ (scm_delete1_x), gc.c (scm_map_free_list),
+ (scm_free_list_length), hash.c (scm_hashq, scm_hashv),
+ (scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x),
+ (scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x),
+ (scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x),
+ (scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c
+ (scm_current_pstate), scmsigs.c (scm_usleep), goops.c
+ (scm_get_keyword, scm_sys_compute_slots): Added texinfo markup.
+
+ * weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p),
+ (scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
+ rdelim.c (scm_read_delimited_x), strop.c (scm_string_index),
+ symbols.c (scm_symbol_interned_p), numbers.c
+ (scm_string_to_number), ports.c (scm_port_p): Corrected texinfo
+ markup.
+
+2001-03-16 Keisuke Nishida <kxn30@po.cwru.edu>
+
+ * snarf.h (SCM_CONST_LONG): Deprecated.
+ * tag.c (CONST_INUM): New macro. Use it to define scm_utag_*.
+
+2001-03-15 Marius Vollmer <marius.vollmer@uni-dortmund.de>
+
+ * numbers.c (scm_num2ulong): Check that a bignum is positive
+ before looking at the magnitude. Correctly check for overflow
+ during conversion.
+ (scm_num2long_long): Likewise.
+ (scm_num2ulong_long): New.
+ (ULONG_LONG_MAX): Define if not already defined.
+ * numbers.h: (scm_num2ulong_long): New prototype.
+
+2001-03-15 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
+
+ * validate.h (SCM_VALIDATE_OPOUTSTRPORT): New macro.
+
+ * strports.h (SCM_STRPORTP, SCM_OPSTRPORTP, SCM_OPINSTRPORTP),
+ (SCM_OPOUTSTRPORTP): New predicate macros.
+ (scm_open_input_string, scm_open_output_string),
+ (scm_get_output_string): New prototypes.
+
+ * strports.c (scm_open_input_string, scm_open_output_string),
+ (scm_get_output_string): New procedures (SRFI-6 compliant).
+ Made scm_tc16_strport non-static.
+
2001-03-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
* macros.h (SCM_ASSYNT): Removed unused object argument from