*** empty log message ***
[bpt/guile.git] / libguile / ChangeLog
index c04fe9f..eaa5248 100644 (file)
@@ -1,5 +1,260 @@
+1999-10-11  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
+
+       * ioext.c: Added #include "feature.h".
+
+       These changes turns `delay' into a memoizing macro.  This is
+       because it may be expanded before evaluation if it occurs at the
+       beginning of a body.  (Thanks to Lauri Alanko.)
+       
+       * eval.c, eval.h (scm_sym_delay): New global symbol.
+
+       * tags.h (SCM_IM_DELAY): New immediate symbol.
+
+       * print.c (scm_isymnames): Printed representation.
+
+       * eval.c (unmemocopy, SCM_CEVAL): Handle SCM_IM_DELAY.
+       (scm_m_delay): Turned into a memoizing macro.
+
+       * Makefile.am (libguile_la_LDFLAGS): Bumped libguile version.
+
+1999-10-11  Jim Blandy  <jimb@savonarola.red-bean.com>
+
+       * gh_data.c (gh_ints2scm, gh_doubles2scm): Make sure elements are
+       protected from GC while building the vector.  (Thanks to Bernard
+       Urban and Greg Harvey.)
+
+1999-10-08  Mikael Djurfeldt  <mdj@mdj.nada.kth.se>
+
+       * throw.c (handler_message): Display backtrace if backtraces
+       enabled.
+
+1999-10-05  Jim Blandy  <jimb@savonarola.red-bean.com>
+
+       * Makefile.in, scmconfig.h.in: Deleted from CVS repository.  Run
+       the autogen.sh script to create generated files like these.
+
+       * numbers.c (scm_string_to_number): Signal an error if radix is
+       less than two.  (Thanks to Jorgen Schaefer.)
+
+       * print.c (scm_write, scm_display, scm_newline, scm_write_char):
+       Don't assume that the current output port is valid.  Somebody
+       might close it.  (Thanks to Bernard Urban.)
+
+1999-10-02  Jim Blandy  <jimb@zwingli.cygnus.com>
+
+       * scmconfig.h.in: Regenerated.
+
+       * Makefile.am (EXTRA_libguile_la_SOURCES): fix typo.
+
+Mon Sep 27 17:15:14 1999  Greg J. Badros  <gjb@cs.washington.edu>
+
+       * __scm.h: Fix a bunch of macros that were missing do-while(0)
+       sandwiches. 
+
+       * debug.c, eval.c: Fix buggy uses of SCM_ALLOW_INTS (missing
+       semicolon) exposed by the above change.
+
+1999-09-27  Greg J. Badros  <gjb@cs.washington.edu>
+
+       * stacks.c: Avoid compiler warning re: unitialized var.
+
+       * scmconfig.h.in: Added DEBUG_FREELIST
+
+       * pairs.h: Fix macro that was not do-while(0) sandwiched.
+
+       * gc.h, gc.c: Added scm_gc_set_debug_check_freelist_x,
+       scm_map_free_list
+
+1999-09-23  Gary Houston  <ghouston@freewire.co.uk>
+
+       * ioext.c (scm_init_ioext): enable "i/o-extensions" feature here
+       instead of in scm_init_filesys.
+
+       * init.c (scm_boot_guile_1): don't call scm_init_posix or
+       scm_init_filesys unless HAVE_POSIX is defined.
+       don't call scm_init_netdb or scm_init_socket unless
+       HAVE_NETWORKING is defined.
+
+       * Makefile.am (EXTRA_libguile_la_SOURCES): filesys.c, posix.c,
+       net_db.c, socket.c: moved here from libguile_la_SOURCES.
+
+1999-09-25  Jim Blandy  <jimb@savonarola.red-bean.com>
+
+       * root.c (scm_make_root): Initialize all the fields of the new
+       root.  GC could happen any time, you know.  (Thanks to Greg
+       Harvey.)
+
+       * numbers.c (scm_number_to_string): Signal an error if radix is
+       less than two.  (Thanks to Jorgen Schaefer.)
+
+       * Makefile.am (EXTRA_libguile_la_SOURCES): Add memmove.c here,
+       so automake will actually generate rules for it.
+       * Makefile.in: Regenerated.
+
+1999-09-21  Jim Blandy  <jimb@savonarola.red-bean.com>
+
+       * backtrace.c: #include "_scm.h" before testing whether
+       HAVE_UNISTD_H is #defined.
+
+1999-09-20  Jim Blandy  <jimb@savonarola.red-bean.com>
+
+       * read.c (scm_read): Don't assume that scm_cur_inp is always open.
+       * ports.c (scm_read_char): Same.
+       * ioext.c (scm_read_line): Same.
+       (Thanks to Bernard Urban.)
+
+1999-09-21  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
+
+       * vectors.c (scm_vector_move_right_x): Bugfix: Remove side effect
+       in SCM_ASSERT macro.
+       numbers.c: Removed #ifndef SCM_RECKLESS at places where type
+       checking may invoke a generic.  (Thanks to Michael Livshin.)
+
+       * __scm.h (SCM_WTA_DISPATCH_0, SCM_GASSERT0): New macros.
+
+       * numbers.c (scm_max, scm_min, scm_sum, scm_difference,
+       scm_product, scm_divide): Bugfix: Don't pass SCM_UNDEFINED to the
+       generic function if the asubr is called with only one arg.
+
+1999-09-20  Gary Houston  <ghouston@freewire.co.uk>
+
+       * scmsigs.c (scm_sigaction): add SA_RESTART to flags only if
+       HAVE_RESTARTABLE_SYSCALLS.
+       (scm_init_scmsigs): use siginterrupt if it's available.  not
+       everyone who has restartable syscalls has SA_RESTART it seems.
+
+       (scm_sigaction): use scm_num2long/scm_long2num when converting
+       SIG_DFL/SIG_IGN, in case it doesn't fit in an INUM.  use
+       scm_integer_p to test the type.
+
+1999-09-18  Gary Houston  <ghouston@freewire.co.uk>
+
+       * _scm.h, scmsigs.c: replace HAVE_RESTARTS with
+       HAVE_RESTARTABLE_SYSCALLS.
+
+       * strports.c (scm_strport_to_string): create the string from
+       pt->read_buf instead of an expression that evaluates to the
+       same thing.
+
+       * gdbint.c (gdb_print): don't just use SCM_CHARS to get a C string
+       from the port: the port's buffer may not be NUL terminated.
+
+1999-09-16  Mikael Djurfeldt  <mdj@mdj-pc.nada.kth.se>
+
+       * Makefile.am (.c.x): Added missing semicolon after `false'.
+
+1999-09-15  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
+
+       * print.c (scm_iprin1): Turn `write' and `display' into
+       primitive generics and use their associated generic functions in
+       scm_iprin1 for GOOPS objects.
+
+       * backtrace.c: #include <unistd.h> if present.
+
+1999-09-14  Jim Blandy  <jimb@savonarola.red-bean.com>
+
+       * Makefile.am (.c.x): Don't create a subshell just to delete the
+       .x file and return false.
+       * Makefile.in: Regenerated.
+
+1999-09-13  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
+
+       * feature.c (scm_create_hook): New function.  Replaces
+       scm_make_named_hook which is now deprecated.
+       (scm_make_hook_with_name): New primitive.
+       (print_hook): Hooks now print in a fancy way.
+
+1999-09-12  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
+
+       * __scm.h, backtrace.c, backtrace.h, debug.c, debug.h, dynl-dld.c,
+       dynwind.c, dynwind.h, eval.h, evalext.c, evalext.h, feature.c,
+       feature.h, hashtab.c, hashtab.h, objects.c, objects.h, print.c,
+       procs.c, procs.h, smob.c, smob.h, srcprop.c, strorder.c, struct.c,
+       struct.h: Updated copyright notices.
+
+       * srcprop.c (scm_source_property): Bugfix: Use SCM_NECONSP instead
+       of SCM_NCONSP.  (Thanks to Greg Badros.)
+
+       * gsubr.c (scm_make_gsubr): Use scm_make_subr_opt for creation of
+       the self subr.
+
+       * eval.c, debug.h (SCM_BACKTRACE_WIDTH): New debug option: width.
+
+       * backtrace.c: Keep backtraces within specified width by
+       adaptively adjusting fancy printing parameters and cut output if
+       necessary.
+       (scm_display_application): Check args.
+
+1999-09-11  Jim Blandy  <jimb@savonarola.red-bean.com>
+
+       Change the name of the objects returned by OPENDIR from
+       "directory" to "directory stream".  A predicate named "directory?"
+       would be confusing.
+       * filesys.c (scm_directory_stream_p): Renamed from scm_directory_p.
+       At the Scheme level, "directory?" -> "directory-stream?".
+       (scm_dir_print): Use the phrase "directory stream" in printed form.
+       * filesys.h (scm_directory_stream_p): Prototype renamed
+       accordingly.
+
+       * Makefile.am (CLEANFILES): Remove versiondat.h; that should only
+       be removed by `make distclean', since it's generated by configure.
+       * Makefile.in: Regenerated.
+       (Thanks to Robert Bihlmeyer.)
+
+       * strop.c (scm_substring_move_x): Signal an error if start1
+       doesn't come before end1.  (Thanks to Karoly Lorentey).
+
+       * numbers.c (scm_istr2flo): Don't call SCM_INEXP without first
+       calling SCM_NIMP.  (Thanks to Karoly Lorentey).
+
+       * version.c (scm_libguile_config_stamp): Deleted.  See
+       corresponding change to ../ice-9/boot-9.scm.
+       * versiondat.h.in: Remove definition for GUILE_STAMP.
+       * version.h: Delete prototype.
+       * Makefile.in: Regenerated.
+
+1999-09-11  Gary Houston  <ghouston@easynet.co.uk>
+
+       * filesys.c (scm_directory_p): new procedure "directory?"  Returns
+       a boolean indicating whether its argument is a directory
+       port as returned by opendir (thanks to Dirk Herrmann for the
+       suggestion.)
+
+1999-09-11  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
+
+       * backtrace.c (display_frame_expr): Don't print a newline.
+       (display_frame): Print the newline here instead.
+       (display_backtrace_body): Don't print "Backtrace:".
+       (scm_backtrace): Print "Backtrace:" here instead.
+
+1999-09-09  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
+
+       * procs.c (scm_setter): Signal WTA if handed an entity or operator
+       lacking a setter.
+
+       * feature.c, feature.h: (scm_hook_p, scm_hook_empty_p): New
+       primitives. (Thanks to Greg Badros);
+       (scm_hook_to_list): New primitive; Hooks are now smobs.
+
+1999-09-08  Gary Houston  <ghouston@easynet.co.uk>
+
+       * stime.c (bdtime2c): rewrite the ASSERTs.  Accept a value
+       of #f for the 10th vector element to avoid an exception
+       seen by Bernard Urban.
+       (scm_mktime): unneeded ASSERT removed.
+
+1999-09-07  Mikael Djurfeldt  <mdj@mdj-pc.nada.kth.se>
+
+       * eval.c (scm_map, scm_for_each): Converted to dispatch on generic
+       if args don't match.
+
+       * __scm.h (SCM_WTA_DISPATCH_n, SCM_GASSERTn): New macros.
+
 1999-09-06  Mikael Djurfeldt  <mdj@thalamus.nada.kth.se>
 
+       * numbers.c: Converted comparison operations to dispatch on
+       generic if args don't match.
+
        * Makefile.am (ETAGS_ARGS): Added support for GPROC and GPROC1.
 
 1999-09-06  James Blandy  <jimb@mule.m17n.org>