X-Git-Url: http://git.hcoop.net/bpt/guile.git/blobdiff_plain/c75e83b76e10162e0135905a37f71ba5a6616529..a48a89bc1705db11abd626edf41363c03de46f35:/libguile/ChangeLog diff --git a/libguile/ChangeLog b/libguile/ChangeLog index f02555c1e..1ddc72c04 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -1,3 +1,489 @@ +Thu May 15 05:21:36 1997 Gary Houston + + * posix.c: don't include or define macros for + select, since they were not used in this file. + +* * filesys.c (scm_select): make the fifth parameter microseconds, + not milliseconds. let the fourth parameter be either a real value + or an integer or #f. The first, second and third arguments can + now be vectors: the type of the corresponding return set will be + the same. + (set_element, get_element): new static procedures. + +Wed May 14 12:18:12 1997 Jim Blandy + + * strports.c (scm_eval_string): New function. + (scm_eval_0str): Trivially re-implemented in terms of + scm_eval_string. + * strports.h (scm_eval_string): New extern decl. + + * net_db.c (h_errno): Add extern decl for this. + + * fports.c (local_pclose): New function. + (scm_pipob): Use it in the initializer here. + + From Tim Pierce: + * net_db.c (scm_gethost, scm_getproto, scm_getnet, scm_getserv): + Use a meaningful error message when signalling an error. For + this, scm_gethost must check h_errno rather than errno. + +Tue May 13 16:40:06 1997 Jim Blandy + + * Makefile.in: Regenerated, using automake-1.1p. + +Tue May 13 04:34:52 1997 Gary Houston + + * socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify, + not SCM_UNSPECIFIED. + + * script.c (scm_compile_shell_switches): don't append (quit) if + interactive. + (scm_shell): call scm_exit_status and exit on the result of the + evaluation. + +Mon May 12 17:23:58 1997 Jim Blandy + + Ensure that shared substrings are handled properly when passed to + a system call or other foreign function. Many thanks to Tim + Pierce! + * symbols.h (SCM_COERCE_SUBSTR): new macro. + * filesys.c (scm_chmod, scm_rename, scm_delete_file, scm_mkdir, + scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink, + scm_lstat), ports.c (scm_sys_make_void_port), posix.c (scm_utime, + scm_putenv, scm_setlocale, scm_mknod), stime.c (setzone, + scm_strftime), vports.c (scm_make_soft_port), backtrace.c + (scm_display_error_message): use RO macros when strings may be RO. + * error.c (scm_error_scm), filesys.c (scm_chown, scm_chmod, + scm_rename, scm_delete_file, scm_mkdir, scm_rmdir, scm_opendir, + scm_chdir, scm_symlink, scm_readlink, scm_lstat), ioext.c + (scm_freopen, scm_duplicate_port, scm_fdopen), net_db.c + (scm_gethost, scm_getnet, scm_getproto, scm_getserv), ports.c + (scm_sys_make_void_port), posix.c (scm_getgrgid, scm_utime, + scm_setlocale, scm_mknod), stime.c (setzone, scm_strptime, + scm_strftime), vports.c (scm_make_soft_port): use + SCM_COERCE_SUBSTR to make sure shared substrings are + null-terminated. + +Mon May 12 15:33:10 1997 Jim Blandy + + * error.c (scm_error): Add newline to error message. + + * init.c (scm_init_standard_ports): Doc fix. + +Thu May 8 14:38:01 1997 Marius Vollmer + + * dynl-shl.c: Completely replaced with new code from Bernard + URBAN. + + * script.c (scm_ice_9_already_loaded): New variable. + (scm_compile_shell_switches): Use it. + +Mon May 5 20:35:08 1997 Gary Houston + + * filesys.c (scm_input_waiting_p): add missing third argument to + scm_misc_error. + + * stime.c (scm_localtime): copy the result of localtime before + calling gmtime in case they share a buffer. + (scm_localtime, scm_mktime): throw an error if neither HAVE_TM_ZONE + nor HAVE_TZNAME. + +Fri May 2 19:07:11 1997 Gary Houston + + * eq.c (scm_equal_p): use SCM_TYP7SD (y) not SCM_TYP7SD (x). + +Thu May 1 17:01:45 1997 Jim Blandy + + * Makefile.am (check-local): New target, which causes 'make check' + to run gh_test_c and gh_test_repl, with some trivial input. + * Makefile.in: Rgnrtd. + +Tue Apr 29 19:00:40 1997 Marius Vollmer + + * dynl.c (print_dynl_obj): Indicate whether the dynamic object has + been unlinked. + +Mon Apr 28 06:10:14 1997 Gary Houston + + * async.c (scm_sys_tick_async_thunk): commented out. I'm not + sure how this was supposed to work. + (scm_async_click): don't send SCM_TICK_SIGNAL. + (scm_init_async): don't initialize %tick-thunk. + + * the following change doesn't affect the Scheme interface: + gc-thunk is called at the end of garbage collection. however it's + no longer implemented by pretending it's a signal. + + * gc.c (scm_gc_end): don't call scm_take_signal. instead mark the + system async corresponding to scm_gc_thunk. + * async.h: declare scm_gc_async. + * async.c (scm_sys_gc_async_thunk): apply the thunk named by + gc-thunk directly, instead of going through a signal handler. + (scm_gc_async): new variable, points to the GC system-async. + (scm_init_async): save the GC async as scm_gc_async instead + of using system_signal_asyncs. + (scm_gc_vcell): new variable, stores the gc-thunk vcell. + +Mon Apr 28 19:14:44 1997 Jim Blandy + + * Makefile.am (libpath.h, cpp_err_symbols.c, cpp_sig_symbols.c): + Don't screw up if we're interrupted. + * Makefile.in: Regeneradet. + +Sun Apr 27 17:57:15 1997 Jim Blandy + + * aclocal.m4: Removed; unnecessary, given changes of Apr 24. + + * Makefile.am (modincludedir): Use "ice-9" instead of "@module@"; + we're not using AM_INIT_GUILE_MODULE any more. + * Makefile.in: Reneregated. + +Thu Apr 24 00:41:08 1997 Jim Blandy + + Functions for finding variable bindings, grace à Tim Pierce. +* * gh_data.c (gh_lookup, gh_module_lookup): New functions. + * gh.h (gh_lookup, gh_module_lookup): New prototypes. + + Get 'make dist' to work again. + * Makefile.am (EXTRA_DIST): Remove PLUGIN files. + * Makefile.in: Regenerated, like a surry without a fringe on top. + + Changes for reduced Guile distribution: one configure script, + no plugins. + * configure.in, configure: Removed. + * acconfig.h, acinclude.m4: Moved to parent directory, where the + real configure script lives. + * Makefile.in, scmconfig.h.in: Regenerated. + + * init.c: #include "script.h", to get prototype for script.c's + init function. + +Wed Apr 23 21:25:39 1997 Jim Blandy + + * gh_data.c (gh_scm2newstr, gh_symbol2newstr): Use + scm_must_malloc, not raw malloc. + + * script.c (scm_compile_shell_switches): Dyke out debugging output + code. + +Mon Apr 21 05:00:32 1997 Gary Houston + + * eq.c (scm_equal_p): use "SCM_TYP7SD", not "SCM (TYP7SD". + + * stime.c: include both and if the + system has them. Hope this is safe. Previously + sys/timeb.h was included if HAVE_FTIME was defined or if + HAVE_SYS_TIMEB_H was defined but HAVE_SYS_TIMES_H was not, + but IRIX iris 5.3 apparently has ftime but not sys/timeb.h. + + * ioext.c (scm_setfileno): add missing third argument to + scm_misc_error call. + +Sun Apr 20 15:09:31 1997 Jim Blandy + + * eq.c (scm_equal_p): Correctly compare strings of different + varieties. (Thanks to Tim Pierce.) + +Sat Apr 19 03:59:02 1997 Jim Blandy + + * read.c (skip_scsh_block_comment): SCSH says the !# that ends a + #! block comment must occur on a line all by itself. + + Move most of the guts of shell command processing into libguile, + so guile.c can be very small (and eventuallly auto-generated. (I + mean, generated mechanically, not self-generated. Hmm.)) + * guile.c, script.c, script.h: New source files. + * init.c (scm_boot_guile_1): Call scm_init_script. + * libguile.h: #include "script.h". + * Makefile.am (bin_PROGRAMS, guile_SOURCES, guile_LDADD): New + targets, for new executable. + (libguile_la_SOURCES): Mention script.c. + (modinclude_HEADERS): Add script.h. + * configure.in: Always check for -lm, -lsocket, -lnsl, whether or + not dynamic linking is enabled. This is because we're generating + executables now. Move CY_AC_WITH_THREADS call after those, so the + values of cy_cv_threads_libs captures the libs chosen above. + * Makefile.in, configure, aclocal.m4: Regenerated. + + * Makefile.am (EXTRA_DIST): Don't distribute gscm.c or gscm.h. + We don't maintain this interface any more, and it just confuses + people. + + * alloca.c: #include , not . + * Makefile.am (EXTRA_libguile_la_SOURCES): Mention alloca.c, so + it'll get included in disties. + +Thu Apr 17 17:45:10 1997 Jim Blandy + + * gscm.c, gscm.h: These aren't supported any more, and shouldn't + be distributed, because they confuse people. + * Makefile.am (EXTRA_DIST): Remove gscm.c, gscm.h. + +Sat Apr 19 11:56:18 1997 Tim Pierce + + * configure.in: check for presence of gethostent (not present on + OpenBSD by default). + * net_db.c (scm_gethost): Check HAVE_GETHOSTENT. + * configure, scmconfig.h.in: Regenerated. + +Wed Apr 16 17:52:38 1997 Jim Blandy + + * backtrace.c (scm_backtrace): Split message string across + newlines properly. GCC is more tolerant of this than other + compilers. + +Mon Apr 14 20:20:14 1997 Jim Blandy + + Merge threads directory into libguile. + * coop-defs.h, coop-threads.c, coop-threads.h, coop.c, threads.c, + threads.h: New source files. + * Makefile.am (EXTRA_libguile_la_SOURCES): Add threads.c. + (noinst_HEADERS): Add coop-threads.c, coop-threads.h, coop.c + here; see comment. + (modinclude_HEADERS): Add threads.h, coop-defs.h. + (EXTRA_DIST): Add fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h, + coop-threads.c.cygnus, coop-threads.h.cygnus. + * configure.in: If we're using threads, include threads.o in + LIBOBJS. + * _scm.h, libguile.h: threads.h lives in this directory now. + * fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h, + coop-threads.c.cygnus, coop-threads.h.cygnus: New files, not + currently used, but brought along for information's sake. + * ChangeLog-threads: log from old 'threads' directory. + * Makefile.in, configure: Rebuilt. + +Mon Apr 14 20:15:29 1997 Jim Blandy + + * stime.c (scm_mktime): #ifndef HAVE_TM_ZONE, Use lt.tm_zone, not + lt->tm_zone. + +Mon Apr 14 01:32:57 1997 Jim Blandy + + * gh_init.c (gh_standard_handler): Return SCM_BOOL_F, not garbage. + + Merge GH interface library into libguile. + * gh.h, gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, + gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c: New files. + * Makefile.am (libguile_la_SOURCES): Add gh_data.c, gh_eval.c, + gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c. Move + _scm.h to ... + (EXTRA_libguile_la_SOURCES): ... here. + (pkginclude_HEADERS): Add variable, to get gh.h installed. + (THREAD_LIBS, check_ldadd, check_PROGRAMS, gh_test_c_SOURCES, + gh_test_c_LDADD, gh_test_repl_SOURCES, gh_test_repl_LDADD): + New variables, describing how to build the gh test programs. + * configure.in: Check for -lm, -lsocket, -lnsl; we need this to + build the test programs, and we probably should have been linking + libguile.la against them all along, to support AIX shared libs. + Add cflags for threads to CFLAGS; add libs for threads to new + variable THREAD_LIBS, used in Makefile.am. + * ChangeLog-gh: log from old `gh' subdirectory. + * Makefile.in, configure, scmconfig.h.in: Rebuilt. + +Sun Apr 13 23:03:55 1997 Jim Blandy + + * acconfig.h: Undo change of Apr 9; including the definition of + PACKAGE in the guile headers conflicts with applications' own + definitions. + * scmconfig.h.in: Regenerated. + +Fri Apr 11 14:12:13 1997 Jim Blandy + +* * filesys.c (scm_fcntl): New function from Roland McGrath. + (scm_init_filesys): New symbols for use with fcntl. + * filesys.h: Added prototype. + + * eval.c (SCM_APPLY): Set debug apply frame argument list correctly + when PROC is receiving no arguments. + +Fri Apr 11 19:39:32 1997 Jim Blandy + + * filesys.c (S_ISSOCK): Define this if it's missing, but we do + have S_IFSOCK. This is the case under Ultrix. + + * posix.c (scm_status_exit_val, scm_status_exit_val, + scm_status_term_sig, scm_status_stop_sig): Modified to work with + Ultrix versions of WIFSTOPPED, etc., which assume that their + arguments are lvalues (hmm). + +Thu Apr 10 15:10:07 1997 Jim Blandy + + * eval.c: Doc fixes. + + * throw.c: Doc fixes; rearranged. + + * putenv.c: #include "libguile/scmconfig.h", not . + +Wed Apr 9 18:01:20 1997 Jim Blandy + + * acconfig.h: Added entry for PACKAGE. + * scmconfig.h.in: Regenerated. + + Changes to work with automake-1.1n, which has better libtool support. + * Makefile.am: Use lib_LTLIBRARIES instead of lib_PROGRAMS. + Use libguile_la_LIBADD instead of libguile_la_LDADD. (What's the + difference here?) + (libguile_la_SOURCES, modinclude_HEADERS, EXTRA_DIST): Format for + readability. + * Makefile.in: Rebuild. + +Wed Apr 9 09:08:54 1997 Gary Houston + + * stime.c (scm_mktime): take an optional zone argument. + (scm_localtime): check putenv return value. + (scm_strftime, scm_strptime): moved from posix.c. move #include + sequences.h too. + stime.h, posix.h: update prototypes. + (bdtime2c, setzone, restorezone): new static procedures. + (scm_mktime, scm_strftime): use them. + (scm_strftime): don't call mktime before strftime. Use + filltime for return value. + (filltime): convert NULL zname to #f. +* (scm_strptime): return a count of characters consumed, not + the remaining string. + +Sun Apr 6 05:44:11 1997 Gary Houston + + * stime.c (scm_localtime): check HAVE_TM_ZONE and HAVE_TZNAME. + (scm_mktime): likewise. + Declare *tzname[]. + Uncomment localtime and mktime. + + * configure.in: add AC_STRUCT_TIMEZONE. + +Sat Apr 5 23:56:40 1997 Gary Houston + + * stime.c (scm_init_stime): don't define ticks/sec. + (scm_gettimeofday): renamed from scm_time_plus_ticks (avoids multiple + return value problem and is still portable.) + +Sat Apr 5 17:59:24 1997 Jim Blandy + + * cpp_err_symbols.in: Renamed from cpp_err_symbols, to avoid + make's implicit cpp_err_symbols: cpp_err_symbols.c rule. + * cpp_sig_symbols.in: Renamed from cpp_sig_symbols. + * Makefile.am (check_errnos, check_signals, cpp_sig_symbols.c, + cpp_err_symbols.c): Corresponding changes. + * Makefile.in: Regenerated. + +Sat Apr 5 02:39:02 1997 Gary Houston + + * posix.c (scm_putenv): don't check HAVE_PUTENV. + * Makefile.am (EXTRA_libguile_la_SOURCES): add putenv.c. + * configure.in: move putenv from AC_CHECK_FUNCS to AC_REPLACE_FUNCS. + * putenv.c: new file, from sh-utils 1.12. + + * posix.c (scm_environ): use malloc in place of scm_must_malloc + since allocation isn't for Scheme objects. + (scm_putenv): copy strings before placing in the environment. + + * stime.c (scm_current_time): throw an error if time returns -1, + instead of returning #f. + (scm_get_internal_real_time, scm_get_internal_real_time): use + scm_long2num for return value instead of SCM_MAKINUM. + + * stime.h: prototypes updated. + + * stime.c (scm_time_in_msec): apparently unused, deleted. + +Fri Apr 4 08:53:41 1997 Gary Houston + + * configure.in: check for gettimeofday. + + * stime.c (scm_time_plus_ticks): new procedure, an scsh interface + which may be more usefully portable than a gettimeofday interface. + +Wed Apr 2 17:11:39 1997 Jim Blandy + + * Makefile.am (EXTRA_DIST): It's cpp_err_symbols, not + cpp_err_signals. + * Makefile.in: Regenerated. + +Mon Mar 31 03:22:37 1997 Gary Houston + + * stime.c (filltime): recovered static procedure. + (scm_localtime, scm_gmtime, scm_mktime, scm_tzset): recovered from + an earlier Guile. + + * posix.h: add prototype for scm_close_pipe, remove prototypes for + scm_open_input_pipe, scm_open_output_pipe, change scm_mknod prototype. + +* * posix.c (scm_mknod): split the mode argument into type and perms + arguments, like the extra fields returned by stat. + + * fports.c (scm_pipob): set the close, free and print procedures. + (scm_close_pipe): new procedure. + + * posix.c (scm_open_input_pipe, scm_open_output_pipe): deleted, + define them in boot-9.scm + +Wed Mar 26 04:10:32 1997 Gary Houston + + * ioext.c (scm_setfileno): throw a runtime error if SET_FILE_FD_FIELD + wan't defined. Don't include fd.h. + + * Previously fd.h was regenerated whenever configure was run, + forcing a couple of files to be recompiled. + + * fd.h.in: deleted, SET_FILE_FD_FIELD moved to ioext.c. + * configure.in: AC_DEFINE FD_SETTER instead of HAVE_FD_SETTER. + Check for _fileno as well as _file. + Don't output fd.h. + * ioext.c: don't fd.h. + * acconfig.h: remove duplicate HAVE_FD_SETTER and change the + other to FD_SETTER. + + * Change the stratigy for getting information about errno + (and now signal number) values, e.g., ENOSYS, SIGKILL. Instead of + generating lists of symbols during the build process, which will + not always work, include comprehensive lists in the distribution. + To help keep the lists up to date, the "check_signals" and + "check_errnos" make targets can be used. + + * configure.in: don't check for a command to extract errno codes. + * Makefile.am: update file lists, remove errnos.list and errnos.c + targets, add cpp_err_symbols.c, cpp_sig_symbols.c, check_signals, + check_errnos targets. + (CLEANFILES): remove errnos.c and errnos.list, add + cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new + cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new + * errnos.default: deleted. + * cpp_signal.c: new file. + * cpp_errno.c: renamed from errnos_get.c. + * cpp_err_symbols, cpp_sig_symbols: new files. + * cpp_cnvt.awk: renamed from errnos_cnvt_awk. + * error.c (scm_init_error): #include cpp_err_symbols instead of + errnos.c. + * posix.c (scm_init_posix): don't intern signal symbols. #include + cpp_sig_symbols.c. + +Tue Mar 25 04:51:10 1997 Gary Houston + + * strop.c (scm_i_index): allow the lower bound to be equal to the + length of the string, so a null string doesn't always give an error. + + * posix.h: new prototypes. + * posix.c (scm_status_exit_val, scm_status_term_sig, + scm_status_stop_sig): new functions, as in scsh. They break down + process status values as returned by waitpid. + +Sat Mar 22 18:16:29 1997 Gary Houston + + * net_db.c (scm_gethost): don't check HAVE_GETHOSTENT, since + configure doesn't know about it. + +Fri Mar 21 23:49:28 1997 Mikael Djurfeldt + + * snarf.h, backtrace.c: Name change SCM_GLOBAL --> SCM_VCELL. + + * snarf.h: Added new macros SCM_GLOBAL_SYMBOL and SCM_GLOBAL_VCELL + which defines C variables with global linkage. + +Mon Mar 17 05:57:11 1997 Mikael Djurfeldt + + * snarf.h (SCM_PROC1): Bugfix: Use (void) rather than (...) for + zero arg subrs. + Sun Mar 16 11:43:49 1997 Mikael Djurfeldt * eval.c (safe_setjmp): Temporarily use old setjmp until someone