1 Mon Apr 21 05:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
3 * eq.c (scm_equal_p): use "SCM_TYP7SD", not "SCM (TYP7SD".
5 * stime.c: include both <sys/times.h> and <sys/timeb.h> if the
6 system has them. Hope this is safe. Previously
7 sys/timeb.h was included if HAVE_FTIME was defined or if
8 HAVE_SYS_TIMEB_H was defined but HAVE_SYS_TIMES_H was not,
9 but IRIX iris 5.3 apparently has ftime but not sys/timeb.h.
11 * ioext.c (scm_setfileno): add missing third argument to
14 Sun Apr 20 15:09:31 1997 Jim Blandy <jimb@totoro.cyclic.com>
16 * eq.c (scm_equal_p): Correctly compare strings of different
17 varieties. (Thanks to Tim Pierce.)
19 Sat Apr 19 03:59:02 1997 Jim Blandy <jimb@floss.cyclic.com>
21 * read.c (skip_scsh_block_comment): SCSH says the !# that ends a
22 #! block comment must occur on a line all by itself.
24 Move most of the guts of shell command processing into libguile,
25 so guile.c can be very small (and eventuallly auto-generated. (I
26 mean, generated mechanically, not self-generated. Hmm.))
27 * guile.c, script.c, script.h: New source files.
28 * init.c (scm_boot_guile_1): Call scm_init_script.
29 * libguile.h: #include "script.h".
30 * Makefile.am (bin_PROGRAMS, guile_SOURCES, guile_LDADD): New
31 targets, for new executable.
32 (libguile_la_SOURCES): Mention script.c.
33 (modinclude_HEADERS): Add script.h.
34 * configure.in: Always check for -lm, -lsocket, -lnsl, whether or
35 not dynamic linking is enabled. This is because we're generating
36 executables now. Move CY_AC_WITH_THREADS call after those, so the
37 values of cy_cv_threads_libs captures the libs chosen above.
38 * Makefile.in, configure, aclocal.m4: Regenerated.
40 * Makefile.am (EXTRA_DIST): Don't distribute gscm.c or gscm.h.
41 We don't maintain this interface any more, and it just confuses
44 * alloca.c: #include <scmconfig.h>, not <config.h>.
45 * Makefile.am (EXTRA_libguile_la_SOURCES): Mention alloca.c, so
46 it'll get included in disties.
48 Thu Apr 17 17:45:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
50 * gscm.c, gscm.h: These aren't supported any more, and shouldn't
51 be distributed, because they confuse people.
52 * Makefile.am (EXTRA_DIST): Remove gscm.c, gscm.h.
54 Sat Apr 19 11:56:18 1997 Tim Pierce <twp@twp.tezcat.com>
56 * configure.in: check for presence of gethostent (not present on
58 * net_db.c (scm_gethost): Check HAVE_GETHOSTENT.
59 * configure, scmconfig.h.in: Regenerated.
61 Wed Apr 16 17:52:38 1997 Jim Blandy <jimb@floss.cyclic.com>
63 * backtrace.c (scm_backtrace): Split message string across
64 newlines properly. GCC is more tolerant of this than other
67 Mon Apr 14 20:20:14 1997 Jim Blandy <jimb@floss.cyclic.com>
69 Merge threads directory into libguile.
70 * coop-defs.h, coop-threads.c, coop-threads.h, coop.c, threads.c,
71 threads.h: New source files.
72 * Makefile.am (EXTRA_libguile_la_SOURCES): Add threads.c.
73 (noinst_HEADERS): Add coop-threads.c, coop-threads.h, coop.c
75 (modinclude_HEADERS): Add threads.h, coop-defs.h.
76 (EXTRA_DIST): Add fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
77 coop-threads.c.cygnus, coop-threads.h.cygnus.
78 * configure.in: If we're using threads, include threads.o in
80 * _scm.h, libguile.h: threads.h lives in this directory now.
81 * fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
82 coop-threads.c.cygnus, coop-threads.h.cygnus: New files, not
83 currently used, but brought along for information's sake.
84 * ChangeLog-threads: log from old 'threads' directory.
85 * Makefile.in, configure: Rebuilt.
87 Mon Apr 14 20:15:29 1997 Jim Blandy <jimb@totoro.cyclic.com>
89 * stime.c (scm_mktime): #ifndef HAVE_TM_ZONE, Use lt.tm_zone, not
92 Mon Apr 14 01:32:57 1997 Jim Blandy <jimb@floss.cyclic.com>
94 * gh_init.c (gh_standard_handler): Return SCM_BOOL_F, not garbage.
96 Merge GH interface library into libguile.
97 * gh.h, gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c,
98 gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c: New files.
99 * Makefile.am (libguile_la_SOURCES): Add gh_data.c, gh_eval.c,
100 gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c. Move
102 (EXTRA_libguile_la_SOURCES): ... here.
103 (pkginclude_HEADERS): Add variable, to get gh.h installed.
104 (THREAD_LIBS, check_ldadd, check_PROGRAMS, gh_test_c_SOURCES,
105 gh_test_c_LDADD, gh_test_repl_SOURCES, gh_test_repl_LDADD):
106 New variables, describing how to build the gh test programs.
107 * configure.in: Check for -lm, -lsocket, -lnsl; we need this to
108 build the test programs, and we probably should have been linking
109 libguile.la against them all along, to support AIX shared libs.
110 Add cflags for threads to CFLAGS; add libs for threads to new
111 variable THREAD_LIBS, used in Makefile.am.
112 * ChangeLog-gh: log from old `gh' subdirectory.
113 * Makefile.in, configure, scmconfig.h.in: Rebuilt.
115 Sun Apr 13 23:03:55 1997 Jim Blandy <jimb@floss.cyclic.com>
117 * acconfig.h: Undo change of Apr 9; including the definition of
118 PACKAGE in the guile headers conflicts with applications' own
120 * scmconfig.h.in: Regenerated.
122 Fri Apr 11 14:12:13 1997 Jim Blandy <jimb@floss.cyclic.com>
124 * * filesys.c (scm_fcntl): New function from Roland McGrath.
125 (scm_init_filesys): New symbols for use with fcntl.
126 * filesys.h: Added prototype.
128 * eval.c (SCM_APPLY): Set debug apply frame argument list correctly
129 when PROC is receiving no arguments.
131 Fri Apr 11 19:39:32 1997 Jim Blandy <jimb@totoro.cyclic.com>
133 * filesys.c (S_ISSOCK): Define this if it's missing, but we do
134 have S_IFSOCK. This is the case under Ultrix.
136 * posix.c (scm_status_exit_val, scm_status_exit_val,
137 scm_status_term_sig, scm_status_stop_sig): Modified to work with
138 Ultrix versions of WIFSTOPPED, etc., which assume that their
139 arguments are lvalues (hmm).
141 Thu Apr 10 15:10:07 1997 Jim Blandy <jimb@floss.cyclic.com>
145 * throw.c: Doc fixes; rearranged.
147 * putenv.c: #include "libguile/scmconfig.h", not <config.h>.
149 Wed Apr 9 18:01:20 1997 Jim Blandy <jimb@floss.cyclic.com>
151 * acconfig.h: Added entry for PACKAGE.
152 * scmconfig.h.in: Regenerated.
154 Changes to work with automake-1.1n, which has better libtool support.
155 * Makefile.am: Use lib_LTLIBRARIES instead of lib_PROGRAMS.
156 Use libguile_la_LIBADD instead of libguile_la_LDADD. (What's the
158 (libguile_la_SOURCES, modinclude_HEADERS, EXTRA_DIST): Format for
160 * Makefile.in: Rebuild.
162 Wed Apr 9 09:08:54 1997 Gary Houston <ghouston@actrix.gen.nz>
164 * stime.c (scm_mktime): take an optional zone argument.
165 (scm_localtime): check putenv return value.
166 (scm_strftime, scm_strptime): moved from posix.c. move #include
168 stime.h, posix.h: update prototypes.
169 (bdtime2c, setzone, restorezone): new static procedures.
170 (scm_mktime, scm_strftime): use them.
171 (scm_strftime): don't call mktime before strftime. Use
172 filltime for return value.
173 (filltime): convert NULL zname to #f.
174 * (scm_strptime): return a count of characters consumed, not
175 the remaining string.
177 Sun Apr 6 05:44:11 1997 Gary Houston <ghouston@actrix.gen.nz>
179 * stime.c (scm_localtime): check HAVE_TM_ZONE and HAVE_TZNAME.
180 (scm_mktime): likewise.
182 Uncomment localtime and mktime.
184 * configure.in: add AC_STRUCT_TIMEZONE.
186 Sat Apr 5 23:56:40 1997 Gary Houston <ghouston@actrix.gen.nz>
188 * stime.c (scm_init_stime): don't define ticks/sec.
189 (scm_gettimeofday): renamed from scm_time_plus_ticks (avoids multiple
190 return value problem and is still portable.)
192 Sat Apr 5 17:59:24 1997 Jim Blandy <jimb@floss.cyclic.com>
194 * cpp_err_symbols.in: Renamed from cpp_err_symbols, to avoid
195 make's implicit cpp_err_symbols: cpp_err_symbols.c rule.
196 * cpp_sig_symbols.in: Renamed from cpp_sig_symbols.
197 * Makefile.am (check_errnos, check_signals, cpp_sig_symbols.c,
198 cpp_err_symbols.c): Corresponding changes.
199 * Makefile.in: Regenerated.
201 Sat Apr 5 02:39:02 1997 Gary Houston <ghouston@actrix.gen.nz>
203 * posix.c (scm_putenv): don't check HAVE_PUTENV.
204 * Makefile.am (EXTRA_libguile_la_SOURCES): add putenv.c.
205 * configure.in: move putenv from AC_CHECK_FUNCS to AC_REPLACE_FUNCS.
206 * putenv.c: new file, from sh-utils 1.12.
208 * posix.c (scm_environ): use malloc in place of scm_must_malloc
209 since allocation isn't for Scheme objects.
210 (scm_putenv): copy strings before placing in the environment.
212 * stime.c (scm_current_time): throw an error if time returns -1,
213 instead of returning #f.
214 (scm_get_internal_real_time, scm_get_internal_real_time): use
215 scm_long2num for return value instead of SCM_MAKINUM.
217 * stime.h: prototypes updated.
219 * stime.c (scm_time_in_msec): apparently unused, deleted.
221 Fri Apr 4 08:53:41 1997 Gary Houston <ghouston@actrix.gen.nz>
223 * configure.in: check for gettimeofday.
225 * stime.c (scm_time_plus_ticks): new procedure, an scsh interface
226 which may be more usefully portable than a gettimeofday interface.
228 Wed Apr 2 17:11:39 1997 Jim Blandy <jimb@totoro.cyclic.com>
230 * Makefile.am (EXTRA_DIST): It's cpp_err_symbols, not
232 * Makefile.in: Regenerated.
234 Mon Mar 31 03:22:37 1997 Gary Houston <ghouston@actrix.gen.nz>
236 * stime.c (filltime): recovered static procedure.
237 (scm_localtime, scm_gmtime, scm_mktime, scm_tzset): recovered from
240 * posix.h: add prototype for scm_close_pipe, remove prototypes for
241 scm_open_input_pipe, scm_open_output_pipe, change scm_mknod prototype.
243 * * posix.c (scm_mknod): split the mode argument into type and perms
244 arguments, like the extra fields returned by stat.
246 * fports.c (scm_pipob): set the close, free and print procedures.
247 (scm_close_pipe): new procedure.
249 * posix.c (scm_open_input_pipe, scm_open_output_pipe): deleted,
250 define them in boot-9.scm
252 Wed Mar 26 04:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
254 * ioext.c (scm_setfileno): throw a runtime error if SET_FILE_FD_FIELD
255 wan't defined. Don't include fd.h.
257 * Previously fd.h was regenerated whenever configure was run,
258 forcing a couple of files to be recompiled.
260 * fd.h.in: deleted, SET_FILE_FD_FIELD moved to ioext.c.
261 * configure.in: AC_DEFINE FD_SETTER instead of HAVE_FD_SETTER.
262 Check for _fileno as well as _file.
264 * ioext.c: don't fd.h.
265 * acconfig.h: remove duplicate HAVE_FD_SETTER and change the
268 * Change the stratigy for getting information about errno
269 (and now signal number) values, e.g., ENOSYS, SIGKILL. Instead of
270 generating lists of symbols during the build process, which will
271 not always work, include comprehensive lists in the distribution.
272 To help keep the lists up to date, the "check_signals" and
273 "check_errnos" make targets can be used.
275 * configure.in: don't check for a command to extract errno codes.
276 * Makefile.am: update file lists, remove errnos.list and errnos.c
277 targets, add cpp_err_symbols.c, cpp_sig_symbols.c, check_signals,
278 check_errnos targets.
279 (CLEANFILES): remove errnos.c and errnos.list, add
280 cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new
281 cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
282 * errnos.default: deleted.
283 * cpp_signal.c: new file.
284 * cpp_errno.c: renamed from errnos_get.c.
285 * cpp_err_symbols, cpp_sig_symbols: new files.
286 * cpp_cnvt.awk: renamed from errnos_cnvt_awk.
287 * error.c (scm_init_error): #include cpp_err_symbols instead of
289 * posix.c (scm_init_posix): don't intern signal symbols. #include
292 Tue Mar 25 04:51:10 1997 Gary Houston <ghouston@actrix.gen.nz>
294 * strop.c (scm_i_index): allow the lower bound to be equal to the
295 length of the string, so a null string doesn't always give an error.
297 * posix.h: new prototypes.
298 * posix.c (scm_status_exit_val, scm_status_term_sig,
299 scm_status_stop_sig): new functions, as in scsh. They break down
300 process status values as returned by waitpid.
302 Sat Mar 22 18:16:29 1997 Gary Houston <ghouston@actrix.gen.nz>
304 * net_db.c (scm_gethost): don't check HAVE_GETHOSTENT, since
305 configure doesn't know about it.
307 Fri Mar 21 23:49:28 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
309 * snarf.h, backtrace.c: Name change SCM_GLOBAL --> SCM_VCELL.
311 * snarf.h: Added new macros SCM_GLOBAL_SYMBOL and SCM_GLOBAL_VCELL
312 which defines C variables with global linkage.
314 Mon Mar 17 05:57:11 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
316 * snarf.h (SCM_PROC1): Bugfix: Use (void) rather than (...) for
319 Sun Mar 16 11:43:49 1997 Mikael Djurfeldt <mdj@floss.cyclic.com>
321 * eval.c (safe_setjmp): Temporarily use old setjmp until someone
322 has time to check why this doesn't work well with continuations.
324 Sun Mar 16 05:09:55 1997 Jim Blandy <jimb@totoro.cyclic.com>
326 * Fix shell syntax error; some shells won't tolerate
327 multiple "fi" statements on a single line. (Thanks to Fred Fish.)
329 Sat Mar 15 01:11:40 1997 Gary Houston <ghouston@actrix.gen.nz>
331 * posix.c (scm_uname): throw an error if uname fails instead
334 * error.h (scm_errno, scm_perror): obsolete prototypes removed.
336 * error.c (err_head, scm_errno, scm_perror): obsolete procedures
339 * async.c (scm_ints_disabled): definition moved from error.c.
341 Sat Mar 15 00:06:08 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
343 * acconfig.h: Removed PACKAGE.
345 * scmconfig.h.in: Regenerated.
347 * snarf.h: g++ says it's non-portable not to specify the first
348 argument in a varargs declaration. I introduced the first
349 argument by using preprocessor conditionals.
351 Thu Mar 13 21:28:25 1997 Gary Houston <ghouston@actrix.gen.nz>
353 * ioext.c (scm_read_delimited_x): use RO string macros for delims.
354 (scm_freopen): use RO string macros for filename and modes.
355 (scm_duplicate_port, scm_fdopen): use RO string macros for modes.
357 * posix.c (scm_getgrgid): simplify conversion of name to C string.
358 (scm_mknod): use RO string macros for path.
360 * socket.c (scm_fill_sockaddr, scm_send, scm_sendto):
361 use SCM_ROSTRINGP, SCM_ROCHARS, SCM_ROLENGTH.
363 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
364 use SCM_ROSTRINGP and SCM_ROCHARS.
366 Thu Mar 13 18:31:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
368 * unif.c (scm_array_set_x): Cast ICHR (obj) to char if storing in
371 * ramap.c (scm_ra_matchp, scm_ra_matchp, scm_array_fill_int, racp,
372 scm_array_index_map_x, raeql_1, scm_array_equal_p): Completed
373 support for byte vectors.
375 * print.c (scm_iprin1): Limit number of vector elements printed
376 according to pstate->length.
378 Thu Mar 13 00:12:35 1997 Gary Houston <ghouston@actrix.gen.nz>
380 * backtrace.c (scm_display_error_message): don't segv if message
383 * error.h: prototype for scm_error_scm.
385 * error.c (scm_error_scm): new procedure, reimplements scm-error
386 in C and uses scm_error.
388 Tue Mar 11 03:51:00 1997 Gary Houston <ghouston@actrix.gen.nz>
390 * read.c (scm_read_hash_extend): make scm_read_hash_procedures a
391 pointer to the Scheme variable read-hash-procedures and intern it
392 in scm_init_read. Modify scm_read_hash_extend and
393 scm_get_hash_procedure to use the pointer.
395 Mon Mar 10 06:28:54 1997 Gary Houston <ghouston@actrix.gen.nz>
397 * read.h (SCM_N_READ_OPTIONS): increase SCM_N_READ_OPTIONS to 4.
398 (SCM_KEYWORD_STYLE): defined.
400 * read.c (scm_read_opts): add a keywords option. This isn't a
401 boolean option, in case someone wants to add support for DSSSL
403 Setup scm_keyword_prefix symbol.
404 (scm_lreadr): Only process keywords if SCM_KEYWORD_STYLE is
406 * I've left keyword support disabled by default, since it doesn't
407 seem to break the module system and it gives R4RS standard behaviour.
408 It can be reactivated with (read-set! keywords 'prefix).
410 Sun Mar 9 14:14:39 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
412 * arbiters.c (scm_make_arbiter): Bugfix: Must SCM_DEFER_INTS
413 before constructing arbiter.
415 * eval.c (scm_m_define): Bugfix: Check that the object is a
416 closure before setting the procedure property!
418 * ports.h: Removed prototype for scm_ungetc_char_ready_p.
420 * ports.c: Removed `ungetc-char-ready?'.
422 Sat Mar 8 00:27:05 1997 Gary Houston <ghouston@actrix.gen.nz>
424 * read.c (scm_init_read): intitialise scm_read_hash_procedures
425 (idea from Mikael: make it a pair so scm_permanent object only
427 (scm_read_hash_extend): don't call scm_permanent_object.
428 (ideas from Mikael): if chr is already in the list, replace its
429 procedure instead of appending it again. If proc is #f, remove
431 (scm_get_hash_procedure): take CDR of scm_read_hash_procedures.
433 * strports.c (scm_read_0str, scm_eval_0str): update scm_read usage.
435 * gdbint.c (gdb_read): update scm_lreadr usage.
437 * load.h: update prototypes.
439 * load.c (scm_primitive_load, scm_read_and_eval_x,
440 scm_primitive_load_path): remove case_insensitive_p, sharp arguments.
442 * read.h: add prototype for scm_read_hash_extend. Change args for
445 * read.c (scm_read_hash_procedures): new variable.
446 (scm_read_hash_extend): new procedure.
447 (scm_get_hash_procedure): new procedure.
448 * (scm_lreadr): use scm_get_hash_procedure instead of an argument
449 for extended # processing.
450 (scm_read, scm_lreadr, scm_lreadrecparen, scm_lreadparen,
451 scm_read_token): remove case_i, sharp arguments. Change callers.
453 Fri Mar 7 08:58:21 1997 Gary Houston <ghouston@actrix.gen.nz>
455 * read.h (SCM_N_READ_OPTIONS): increase to 3.
456 (SCM_CASE_INSENSITIVE_P): define.
458 * read.c: add case-insensitive option to scm_read_opts.
459 * (scm_read_token): use SCM_CASE_INSENSITIVE_P instead of an argument
460 to determine whether to convert symbol case.
461 (default_case_i): definition removed.
462 * read.c (scm_read_token): if case_i, downcase ic before doing
465 Sat Mar 8 03:49:03 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
467 * configure.in: Added configuration option `guile-debug'.
468 Configure with --enable-guile-debug if you want a bunch of extra
469 functions used for debugging when developing Guile.
471 * acconfig.h: Added new preprocessor symbol GUILE_DEBUG.
473 * procs.c (make-cclo): New undocumented debugging procedure: Make
474 compiled closure with internal procedure PROC and length LENGTH.
475 Only compiled if GUILE_DEBUG is defined.
477 * debug.c: Only include `debug-hang' if GUILE_DEBUG is defined.
479 * print.c: Put #ifdef GUILE_DEBUG around `current-pstate'.
481 * ports.c: Changed preprocessor symbol DEBUG --> GUILE_DEBUG.
483 * eval.c (SCM_CEVAL): Added code sections for handling of rpsubrs
484 with 3 or more args internally to the evaluator.
486 Fri Mar 7 19:38:18 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
488 * eval.c (SCM_CEVAL): Added code sections for handling of asubrs
489 with 3 or more args internally to the evaluator. This is mainly
490 because we don't want to pass entry and exit points of the
491 debug support twice, but it also seems to increase the speed of
492 the evaluator for such calls (e. g. (+ 1 2 3)).
494 * * backtrace.c (scm_display_application): New procedure:
495 display-application; Set fancy printing parameters individually
496 for different types of display (backtrace, error, application).
497 (These should of course be customizable!)
499 * debug.h (SCM_RESET_DEBUG_MODE): Bugfix: The old code didn't
500 clear the CHECK-flags.
502 Thu Mar 6 00:53:02 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
504 * tags.h, eval.c (iqq): Fixes to comments about SCM_ECONSP.
506 Wed Mar 5 23:31:21 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
508 * tags.h (SCM_ECONSP, SCM_NECONSP): Bugfix: Discriminate structs
509 from pairs with a GLOC in the car.
511 * symbols.c (msymbolize): Bugfix: Also initialize SCM_SYMBOL_HASH,
512 otherwise `symbol-hash' will behave badly.
513 (scm_symbol_hash): Bugfix: Must msymbolize if tc7_ssymbol, othwise
514 we get segmentation fault!
516 * * symbols.c: Added #include "weaks.h". New functions:
517 `builtin-bindings' and `builtin-weak-bindings'. (These will be
518 moved to an extraneous library when we split libguile.)
520 Tue Mar 4 19:50:07 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
522 * filesys.c (scm_stat): stat now takes fport arguments too as
523 documented in the manual.
525 Mon Mar 3 07:11:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
527 * debug.c (scm_single_step): Bugfix: Call continuation with
528 scm_call_continuation instead of throwing to it.
530 Mon Mar 3 09:07:56 1997 Gary Houston <ghouston@actrix.gen.nz>
532 * ports.c (scm_char_ready_p): bug fix: in SCM_PROC char-ready's
533 argument wasn't declared to be optional.
535 Sun Mar 2 16:34:40 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
537 * stime.c (scm_init_stime): Add feature "current-time".
539 Sun Mar 2 06:37:31 1997 Gary Houston <ghouston@actrix.gen.nz>
541 * throw.h: prototype for scm_exit_status.
542 * throw.c (scm_handle_by_message): if a 'quit is caught, use its
543 args to derive an exit status. Allows (quit) to work from a
545 (scm_exit_status): new function.
548 Sat Mar 1 00:09:15 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
550 * eval.c (scm_deval): Removed some old code.
551 (ENTER_APPLY): Bugfix: Reset apply-frame trap on trap as is done
553 (ENTER_APPLY, scm_deval): Reset trace flag on apply-frame and
556 * symbols.c (msymbolize): Bugfix: Must initialize property list to
559 * procs.c: Introduce the existent C function scm_thunk_p at the
560 Scheme level as well.
562 Wed Feb 26 12:53:58 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
564 * symbols.c, symbols.h (scm_symbol_value0): New function. Can be
565 used from C to easily lookup the value of a symbol in the current
568 Tue Feb 25 00:14:10 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
570 * unif.c (scm_init_unif): Added #include "unif.x". (There are two
571 scm_init_unif in this file. This will also fix a previous problem
574 * configure.in: Added AM_MAINTAINER_MODE
576 Fri Feb 21 23:07:26 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
578 * gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to
581 Fri Feb 21 18:00:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
583 * Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
584 source files that are not always included in libguile but should
585 have their dependencies calculated by automake. This variable is
586 recognized by automake, no further magic is needed.
587 (libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@. Libtool wants
588 to deal exclusively with *.lo files, as it seems. The *.o files
589 are built automatically when the corresponding *.lo file gets
592 Wed Feb 19 14:04:23 1997 Jim Blandy <jimb@floss.cyclic.com>
594 * list.h (scm_list_cdr_ref): Delete prototype; function no longer
597 Thu Feb 13 21:44:07 1997 Gary Houston <ghouston@actrix.gen.nz>
599 * unif.c (scm_array_set_x): minor change to argument error checking.
601 Tue Feb 11 18:19:47 1997 Jim Blandy <jimb@floss.cyclic.com>
603 * Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
604 inet_aton.c, srcprop.c, stacks.c, and strerror.c from this list.
605 They should only be included in the library at configure.in's
607 (libguile_la_LDADD): Include the appropriate .lo files here.
608 (libguile_la_DEPENDENCIES): List the corresponding .o files here,
609 so we know when to build them (and their .lo bretheren).
610 * configure.in (LIBLOBJS): New substituted variable. We let
611 configure decide which .o files to include in LIBOBJS, and then
612 put the corresponding list of .lo files in LIBLOBJS. The latter
613 is what we pass to libtool.
614 * Makefile.in, configure: regenerated.
616 Mon Feb 10 00:08:08 1997 Mikael Djurfeldt <mdj@kenneth>
618 * symbols.c (scm_sysintern0): New function. Contains the core of
619 old scm_sysintern but doesn't take a second value argument.
620 (scm_sysintern): Now uses scm_sysintern0.
621 (scm_sysintern_no_module_lookup): Renamed to
622 scm_sysintern0_no_module_lookup and doesn't take a second value
625 * symbols.h (scm_sysintern0: Added declaration.
627 * options.c (scm_init_opts): Use scm_sysintern0 instead of
628 scm_sysintern when interning option keys. Otherwise we risk
629 destroying the values of already interned variables.
631 * symbols.c (scm_sym2vcell): Bugfix: Treat definedp as
632 scheme-level boolean (use SCM_NFALSEP).
634 * backtrace.c (scm_init_backtrace): Make Scheme-level variable
636 (scm_backtrace): New function. (C version of old function from
637 boot-9.scm) Motivation: Make it possible to display backtraces
638 without depending on boot-9.scm. (I'm uncertain if this
639 motivation is good enough...)
641 * root.h (scm_root_state): Add member the_last_stack_var.
642 (scm_the_stack_var): Defined to scm_root->the_last_stack_var.
644 * root.c (mark_root): Mark scm_the_last_stack_var.
646 * init.c (scm_start_stack): Initialize scm_the_last_stack_var to
649 Sun Feb 9 18:04:41 1997 Mikael Djurfeldt <mdj@kenneth>
651 * throw.c (mark_lazy_catch, free_lazy_catch): Removed.
652 1. mark_lazy_catch didn't mark the smob.
653 2. Both functions above have standard variants:
654 (lazy_catch_funs): Changed mark_lazy_catch --> scm_mark0,
655 free_lazy_catch --> scm_free0.
657 Fri Feb 7 17:30:26 1997 Jim Blandy <jimb@floss.cyclic.com>
659 * throw.c (scm_internal_lazy_catch): New function.
660 (scm_lazy_catch): Rewritten to use it.
661 (scm_ithrow): Handle the new lazy catch representation.
662 Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
663 that doesn't have a jmpbuf is a lazy catch clause.
664 (tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
665 free_lazy_catch, print_lazy_catch, lazy_catch_funs,
666 make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
668 (scm_init_throw): Register the new lazy-catch smob type.
669 * throw.h (scm_internal_lazy_catch): decl for new function.
671 * throw.c (scm_internal_catch): Doc fixes.
673 * alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
674 configure.in. Including this might cause problems if applications
675 that link against libguile include their own copies of alloca, but
676 if they're using autoconf, they should be adding libguile to LIBS
677 before calling AC_FUNC_ALLOCA anyway, in which case they'll find
678 the copy in libguile, and things will be okay. (I think.)
680 Thu Feb 6 03:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
682 * strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
684 strop.h: move prototypes too.
686 Wed Feb 5 08:33:00 1997 Gary Houston <ghouston@actrix.gen.nz>
688 * posix.c (scm_init_posix): don't intern EINTR since it's now done
691 * ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR
692 etc. I deleted them from filesys.c long ago, but didn't
693 notice they were here too (although ineffective since
694 sys/stat.h wasn't included).
696 Tue Feb 4 18:17:50 1997 Tom Tromey <tromey@cygnus.com>
698 * eval.c: Don't define alloca in GCC case. gcc will automatically
699 use __builtin_alloca if appropriate.
701 Tue Feb 4 16:57:40 1997 Jim Blandy <jimb@floss.cyclic.com>
703 * eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
704 (SCM_CEVAL, SCM_APPLY): Call it, instead of setjmp, to make sure
705 that values of automatic variables are preserved. See comments
706 for safe_setjmp for details.
708 Change from Thomas Morgan:
709 * variable.c: Include eq.h.
710 (var_equal): New function.
711 (variable_smob): Use var_equal as the discriminator for variables.
713 * throw.c (s_throw): Remove extraneous declaration.
715 * configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
716 * eval.c: Add necessary CPP cruft to support that.
717 * configure, Makefile.in, scmconfig.h.in: regenerated.
719 Change from Thomas Morgan:
720 * procprop.c (scm_procedure_properties): Convert the Scheme
721 boolean returned by scm_procedure_p into a C boolean before using
722 it as a condition for SCM_ASSERT.
723 (scm_procedure_property): Likewise.
725 * simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
726 indications of Unixness.
729 Tue Feb 4 05:07:35 1997 Gary Houston <ghouston@actrix.gen.nz>
731 * * net_db.c (scm_lnaof): change scheme name from lnaof to inet-lnaof.
733 Mon Feb 3 06:12:37 1997 Gary Houston <ghouston@actrix.gen.nz>
735 * read.c (scm_lreadr): use scm_misc_error to improve one of the
736 "unknown # object" error messages.
738 * strop.c (scm_i_index, scm_i_rindex): combine into one procedure
739 (scm_i_index) and declare it static. Add a 'direction' argument
740 to indicate what way the search should go.
741 (scm_i_index): throw out-of-range error instead of wrong-type-arg
743 (scm_string_index, scm_string_rindex): adjust usage of scm_i_index.
744 strop.h: remove scm_i_index, scm_i_rindex prototypes.
746 Fri Jan 31 04:33:11 1997 Gary Houston <ghouston@actrix.gen.nz>
748 * ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.
750 * * posix.c (scm_fork): Scheme name changed from fork to primitive-fork,
751 to avoid clash with various scsh forks.
753 Thu Jan 30 20:14:09 1997 Mikael Djurfeldt <mdj@syk-0606.pdc.kth.se>
755 The following two changes (ramap.c, throw.c) are motivated by the
756 apparent unportability of forward declarations of static arrays of
757 the form `static foo bar[];'.
759 * ramap.c (scm_array_fill_x): Moved above scm_array_fill_int.
760 (ra_rpsubrs, ra_asubrs): Moved to the top of array code.
762 * throw.c (scm_throw): Moved above scm_ithrow.
764 * options.h: Removed the extern declarations of scm_yes_sym and
765 scm_no_sym since these are static.
767 Fri Jan 24 06:16:32 1997 Gary Houston <ghouston@actrix.gen.nz>
769 * ports.c: add SCM_PROC declarations for pt-size and pt-member.
771 * Makefile.am: remove AWK=@AWK@.
772 Add a rule for generating errnos.list.
773 (CLEANFILES): put errnos.list here instead of in DISTCLEANFILES.
775 * configure.in: add AC_SUBST(AWK) and AC_SUBST(ERRNO_EXTRACT).
776 don't extract errnos, just set a variable (avoids the
777 need to recompile error.c just because configure is run.)
779 * unif.h: update prototypes.
780 * unif.c (scm_uniform_array_read,write): change the offset and
781 length arguments to start and end, for consistency.
783 * __scm.h: uncomment SCM_ARG6 and SCM_ARG7, I needed SCM_ARG6.
785 * ioext.h: update prototypes.
786 * * ioext.c (scm_read_delimited_x): replaces scm_read_line and
787 scm_read_line_x, it's a more general procedure using an
788 interface from scsh. read-line and read-line! are now defined
790 * Note that the new read-line trims the terminator
791 by default, previously it was appended to the returned string. An
792 optional argument specifies how to process the terminator (scsh
793 compatible). For the old behaviour: (read-line port 'concat).
794 scm_read_line, scm_read_line_x: deleted. (read-line port 'split)
795 returns a pair, but is converted to multiple values if the scsh
798 socket.h: update prototypes.
799 * socket.c (scm_recvfrom): for consistency with other procedures,
800 take start and end as separate optional arguments.
801 * (scm_recv, scm_recvfrom): don't allow the second argument
802 to be a size, only a buffer. Change the scheme names to
803 recv! and recvfrom!. Don't return the buffer.
805 * ioext.h, posix.h: move prototypes too.
806 * ioext.c, posix.c (scm_read_line, scm_read_line_x, scm_write_line:
807 moved back from posix.c to ioext.c. Also move #includes of "genio.h"
808 "read.h" and "unif.h".
809 * ioext.c: include "chars.h"
811 Mon Jan 20 19:54:49 1997 Marius Vollmer <mvo@zagadka.ping.de>
813 * dynl.c: The dynamic linking and module registration functions
814 are now defined even when dynamic linking is not available for the
815 host system. Some of their functionality can be done without
816 dynamic linking; when it's really needed, they throw errors.
818 Thu Jan 16 16:39:29 1997 Marius Vollmer <mvo@zagadka.ping.de>
820 * configure.in: Only define DYNAMIC_LINKING when one of the system
821 dependent functions is detected.
822 * dynl.c (scm_dynamic_func): New function to get the address of a
823 function in a dynamic object.
824 (scm_dynamic_call, scm_dynamic_args_call): Accept the values
825 produced by scm_dynamic_func as the thing to call.
827 Sun Jan 12 21:09:42 1997 Marius Vollmer <mvo@zagadka.ping.de>
829 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c: Restructured.
830 (scm_register_module_xxx, scm_registered_modules,
831 scm_clear_registered_modules): New functions.
833 Sat Jan 11 21:37:15 1997 Marius Vollmer <mvo@zagadka.ping.de>
835 * symbols.c (scm_sysintern): Renamed to
836 scm_sysintern_no_module_lookup.
837 (scm_sysintern): New function to take the place of the old
838 scm_sysintern. It uses the current toplevel lookup closure to give
839 the symbol its value. This is a temporary hack to put packages
840 like gtcltk into their own module.
841 (scm_can_use_top_level_lookup_closure_var): New variable to tell
842 us whether `scm_top_level_lookup_closure_var' has been initialized
844 * eval.c (scm_init_eval): Set it.
846 Sat Jan 18 00:03:31 1997 Gary Houston <ghouston@actrix.gen.nz>
848 * fports.c (scm_open_file): pass errno to scm_syserror_msg.
849 * filesys.h: update prototypes. Remove macros: SCM_FD_P, SCM_FD_FLAGS,
851 * filesys.c (scm_sys_stat, scm_sys_lstat): pass errno to
853 * (scm_sys_read_fd, scm_sys_write_fd, scm_sys_close, scm_sys_lseek,
854 scm_sys_dup): deleted: FD capability will be added to other
856 * Remove support for the FD object type: scm_tc16_fd, scm_fd_print,
857 scm_fd_free, fd_smob, scm_intern_fd.
858 * (scm_open): renamed from scm_sys_open. Return a port instead of
859 an FD object. Make the mode argument optional.
860 * (scm_sys_create): deleted, it's just a special case of open.
861 (scm_init_filesys): move interning of constants O_CREAT etc.,
862 here (were previously using SCM_CONST_LONG macro).
863 Add missing constants: O_RDONLY, O_WRONLY, O_RDWR, O_CREAT.
865 (numerous _sys_ procedures): remove gratuitous _sys_ from names.
866 include "fports.h" and <stdio.h>
867 (scm_stat, scm_select): don't support FD objects.
869 * error.h: adjust scm_syserror_msg prototype.
870 * error.c (scm_syserror_msg): take an extra argument for errno.
871 Using the global value didn't always work, since it could be
872 reset by procedure calls in the message or args arguments.
874 * fports.c (scm_setbuf0): call setbuf even if FIONREAD is not defined.
875 I don't understand why the check was there (and what about the
878 * strop.c (scm_string_copy): allow shared substrings to be copied.
880 * unif.h: corresponding change to prototypes.
881 * unif.c (scm_uniform_array_read_x, scm_uniform_array_write_x):
882 recognize two new optional arguments: offset and length. Allow
883 the port argument to be an integer (file descriptor, for scsh).
884 Include <unistd.h> for "read" prototype.
886 Tue Jan 14 02:42:02 1997 Gary Houston <ghouston@actrix.gen.nz>
888 * socket.c: don't include filesys.h.
890 Mon Jan 13 03:47:04 1997 Gary Houston <ghouston@actrix.gen.nz>
892 * Makefile.am: add AWK=@AWK@ (?)
894 * Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
896 Add a rule to generate errnos.c from errnos.
897 * error.c (scm_init_error): include errnos.c.
898 * errnos_cnvt.awk: new file, converts the list of errno codes to
900 * errnos_get.c: new file.
901 * errnos.default: new file, contains errnos to try if they can't
902 be extracted from errno.h.
903 * configure.in: if using GCC, try and extract errno codes from
907 Sat Jan 11 14:47:00 1997 Marius Vollmer <mvo@zagadka.ping.de>
909 * configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
910 * Makefile.am: Made libguile into a libtool library.
911 * PLUGIN/guile.config: Removed "-L ../libguile" from xtra_cflags.
912 Set libtool_libs to indicate that libguile is a libtool library.
913 See guile/ChangeLog for details.
914 * .cvsignore: ignore "*.lo", the libtool library objects.
916 Wed Jan 8 06:54:54 1997 Gary Houston <ghouston@actrix.gen.nz>
918 * net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
919 use htons in getservbyport argument.
921 Tue Jan 7 18:11:24 1997 Jim Blandy <jimb@floss.cyclic.com>
923 * ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
924 * smob.h: (SCM_PTOBNUM): Removed entirely; this definition is a
927 * objprop.c (scm_object_property): No need to take the CDR of the
928 value returned by scm_object_properties, since Aug 20 change.
930 * configure.in: When checking for struct linger, #include
931 <sys/types.h> as well as <sys/socket.h>. I've never known
932 <sys/types.h> to cause any portability problems, and Solaris's
933 <sys/socket.h> needs it.
934 * configure: Rebuilt.
936 I think the Sun compiler has chosen a perverse way to interpret
937 ANSI declarations combined with K&R definitions. We'll
938 appease it a little bit. But when it invades France, we fight.
939 * print.c (scm_iprlist): Change 'tlr' argument to an int.
940 * print.h (scm_iprlist): Here too.
941 * numbers.c (scm_divbigdig): Change definition to match
942 declaration in numbers.h.
943 * unif.c (scm_makflo): Change definition to match declaration in
946 * init.c (scm_boot_guile): Don't return the value of
947 scm_boot_guile_1. This function doesn't return a value;
948 scm_boot_guile_1 doesn't return a value (or return at all).
950 * eval.c (unmemocopy): Add a semicolon to appease the Sun
953 * simpos.c (SYSTNAME): Add case for AIX; otherwise it won't
954 compile. I have a feeling this function is a bad idea anyway ---
955 one should always test for features, not systems.
957 * smob.h (SCM_SMOBNUM, SCM_PTOBNUM): Remove extraneous
958 semicolons. Only pure luck kept this from being noticed earlier.
960 Tue Jan 7 15:04:06 1997 Mikael Djurfeldt <mdj@kenneth>
962 * socket.c (scm_recvfrom): Added missing semicolon.
964 Mon Jan 6 20:39:08 1997 Gary Houston <ghouston@actrix.gen.nz>
966 * socket.c (scm_recvfrom): allow buff_or_size to be a list containing
967 the buffer and start and end positions for scsh networking
970 Sun Jan 5 13:53:53 1997 Jim Blandy <jimb@floss.cyclic.com>
972 * configure.in: Revert previous change to this file; the problem
973 is due to transient automake weirdness.
974 * configure: Rebuilt.
976 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in, not
977 PLUGIN/guile.libs. configure generates the latter from the former.
978 * Makefile.in: Rebuilt.
980 * configure.in: Call AM_PROG_INSTALL; the automake manual says we
981 need this if we install scripts, like guile-snarf.
982 * configure: Rebuilt.
984 Thu Jan 2 01:56:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
986 * Makefile.am (EXTRA_DIST): Added DYNAMIC-LINKING
988 Sat Dec 28 19:14:01 1996 Gary Houston <ghouston@actrix.gen.nz>
990 * socket.c (scm_addr_vector): fix faulty scm_listify.
992 Sat Dec 28 13:55:58 1996 Marius Vollmer <mvo@zagadka.ping.de>
994 * read.c (scm_lreadr): Encountering EOF after skipping a SCSH
995 style block comment is no longer considered an error.
997 Fri Dec 27 13:44:23 1996 Marius Vollmer <mvo@zagadka.ping.de>
999 * PLUGIN/guile.libs.in: New file.
1000 * PLUGIN/guile.libs: Removed from repository.
1001 * configure.in: Create PLUGIN/guile.libs from
1002 PLUGIN/guile.libs.in. This is for including additonal libraries
1003 needed for dynamic linking.
1004 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in
1005 instead of PLUGIN/guile.libs.
1007 * Makefile.am: Added explicit dependency "dynl.o: dynl.x".
1009 Sun Dec 22 23:06:14 1996 Jim Blandy <jimb@floss.cyclic.com>
1011 * list.c (scm_delq_x, scm_delv_x, scm_delete_x): Delete all
1012 occurrences of the given element from the list, not just the
1013 first. This is how the Emacs Lisp functions behave, how the
1014 analogous Common Lisp functions behave, and (I believe) how the
1015 older Maclisp functions worked. I realize that this change may
1016 break code, but it seemed better to break it before the Guile
1019 * gc.c (scm_protect_object, scm_unprotect_object): New functions.
1020 Their prototypes were already present in gc.h, but they weren't
1022 (scm_init_storage): Initialize scm_protects.
1023 * root.c (scm_protects): New element of scm_sys_protects.
1025 * net_db.h (scm_init_net_db): Fix spelling from scm_init_netdb.
1027 Sat Dec 21 15:38:32 1996 Jim Blandy <jimb@floss.cyclic.com>
1029 * libguile.h: Added #include "libguile/net_db.h".
1031 * libguile.h: Don't #include "libguile/libpath.h", contrary to Oct
1032 30 change. That file is only meant for communication between the
1033 configuration process and load.c. If code linked against libguile
1034 wants to get at the paths mentioned in libpath.h, it can call
1035 functions declared in load.h.
1037 Sat Dec 21 14:50:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1039 * libguile.h: Removed #include "libguile/fdsocket.h"
1041 * net_db.c: Added #include <sys/socket.h>.
1043 Sat Dec 21 00:33:03 1996 Gary Houston <ghouston@actrix.gen.nz>
1045 * filesys.c (scm_input_waiting_p): use select in preference to
1046 FIONREAD, since the latter doesn't detect EOF.
1047 Throw error if neither select nor FIONREAD available.
1049 * socket.c (scm_connect): take a port, not a fd object.
1050 (scm_fill_sockaddr): throw an error if fam is not recognised.
1051 (scm_bind): use scm_fill_sockaddr.
1052 (scm_listen): take a port, not a fd object.
1053 (scm_accept): take and return a port. return #f in the car if
1054 address can't be got
1055 (scm_sock_fd_to_port): new procedure.
1056 (scm_socket): use scm_sock_fd_to_port.
1057 (scm_addr_vector): throw error if unrecognised address type.
1058 take an extra argument with the calling procedure name.
1059 (scm_getsockname): take a port. return #f if address can't be got.
1060 (scm_getpeername): take a port. return #f if address can't be got.
1061 (scm_recvfrom): take a port. return #f for address component if can't
1063 (scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
1064 scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
1066 Fri Dec 20 23:06:53 1996 Jim Blandy <jimb@floss.cyclic.com>
1068 * throw.c (scm_internal_catch): Make body funcs and handler funcs
1069 use separate data pointers, to allow them to be designed
1070 independently and reused.
1071 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message):
1072 Renamed from catch_body, catch_handler, and uncaught_throw; made
1074 (struct scm_catch_body_data): Renamed from catch_body_data; moved
1076 (scm_catch): Use the above.
1077 (scm_throw): Don't bother printing a message for an uncaught
1078 throw; we establish a default handler in init.
1079 * throw.h (scm_internal_catch): Prototype updated.
1080 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message): New
1082 (struct scm_body_thunk_data): New structure, used as data
1083 argument to scm_body_thunk.
1084 * init.c (struct main_func_closure): New structure, packaging up
1085 the data to pass to the user's main function.
1086 (scm_boot_guile): Create one. Pass it to scm_boot_guile_1.
1087 (scm_boot_guile_1): Pass it through to invoke_main_func. Use
1088 scm_internal_catch to establish a catch-all handler, using
1089 scm_handle_by_message. This replaces the special-case code in
1091 (invoke_main_func): Body function for scm_internal_catch; invoke
1092 the user's main function, using the main_func_closure pointer to
1093 decide what to pass it.
1094 * root.c (struct cwdr_body_data): Remove handler_proc member.
1095 (cwdr): Use scm_handle_by_proc instead of cwdr_handler.
1096 (cwdr_handler): Removed.
1098 Thu Dec 19 00:00:26 1996 Gary Houston <ghouston@actrix.gen.nz>
1100 * socket.h (SCM_P): update bind prototype.
1101 * socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
1102 include "feature.h".
1103 (scm_socket): return a port, not a file descriptor object.
1104 include "fports.h" and <unistd.h>
1105 (scm_bind): take a port, not a file descriptor object.
1106 take an extra argument for address args.
1108 * net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
1109 INADDR_NONE, INADDR_LOOPBACK.
1111 Tue Dec 17 22:58:26 1996 Gary Houston <ghouston@actrix.gen.nz>
1113 * init.c: include net_db.h and not fdsocket.h.
1114 (scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
1116 * Makefile.am: corresponding changes.
1117 * socket.h: renamed from fdsocket.h, fix names.
1118 * net_db.h: renamed from socket.h, fix names.
1119 * socket.c: renamed from fdsocket.c.
1120 remove _sys from procedure names.
1121 (scm_init_socket): rename from scm_init_fdsocket. include socket.x.
1122 add "socket" to features list.
1123 * net_db.c: renamed from socket.c.
1124 remove _sys from procedure names.
1125 (scm_init_net_db): rename from scm_init_socket. include net_db.x.
1126 add "net-db" to features list.
1127 include "net_db.h". don't include <sys/socket.h> or
1130 Thu Dec 19 14:03:24 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1132 * tags.h (scm_tags): Removed comma at end of last enumerator.
1134 Thu Dec 19 02:54:59 1996 Jim Blandy <jimb@floss.cyclic.com>
1136 Don't use GCC extensions to allocate space for debugging frames.
1137 (Here he goes again! Why do we put up with this?!)
1138 * debug.h (scm_debug_frame): Make the 'vect' member a pointer to
1139 an scm_debug_info structure, not an in-line array of them. Add
1140 'info' member, to say how many vect elements we've used, for eval
1142 * eval.c (SCM_CEVAL): Use alloca to allocate space for vect. Use
1143 a new variable debug_info_end to mark the end of vect, instead of
1144 the address of the 'info' pointer itself.
1145 [DEVAL] (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Remove casts of
1146 &debug to scm_debug_frame *; debug is a real scm_debug_frame now.
1147 (SCM_APPLY): Explicitly allocate space for debug.vect.
1148 * debug.c (scm_m_start_stack): Same, for vframe.vect.
1149 * stacks.c: Adjusted for new debug frame structure.
1150 (RELOC_INFO, RELOC_FRAME): New macros.
1151 (stack_depth, read_frames): Use them, and new scm_debug_frame
1152 element 'info', instead of magically knowing that eval frames have
1153 an info pointer sitting after vect.
1154 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Use
1156 (scm_init_stacks): Formatting tweaks.
1158 Wed Dec 18 14:57:57 1996 Jim Blandy <jimb@floss.cyclic.com>
1160 Give GCC more control flow information, so it can be sure that
1161 variables aren't used uninitialized.
1162 * error.h (scm_error, scm_syserror, scm_syserror_msg,
1163 scm_sysmissing, scm_num_overflow, scm_out_of_range,
1164 scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
1165 scm_misc_error): Tell GCC that these functions never return.
1166 * struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
1167 out the field type, call abort if SCM_ASSERT returns, to placate
1169 * stacks.c (scm_make_stack, scm_last_stack_frame): abort if
1170 scm_wta ever returns. We can't handle this case anyway, and this
1171 gives the optimizer more information.
1172 * unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
1173 scm_wta ever returns.
1175 In some cases, the code is fine, but GCC isn't smart enough to
1176 figure that out; this usually happens when one variable is only
1177 initialized and used when a particular condition holds true, and
1178 we know that condition will never change within a given invocation
1179 of the function. In this case, we simply initialize the variables
1180 to placate the compiler, hopefully to a value which will cause a
1181 crash if it is ever actually used.
1182 * print.c (scm_iprin1): Initialize mw_pos.
1183 * read.c (scm_lreadrecparen): Initialize tl2, ans2.
1184 * throw.c (scm_ithrow): Initialize dynpair.
1185 * unif.c (scm_uniform_vector_ref): Initialize cra.
1186 * struct.c (init_struct): Initialize prot.
1187 * mbstrings.c (scm_print_mb_symbol): Initialize mw_pos and inc.
1189 * strports.c (scm_eval_0str): Don't return uninitialized garbage
1190 if EXPR contains no expressions.
1192 Wed Dec 18 11:43:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
1194 * eval.c, debug.h: Revert changes of Dec 16 and Nov 21. They
1195 cause an infinite loop (???). So much for the algebraic
1196 equivalency of variable-sized arrays and alloca...
1198 Tue Dec 17 20:29:03 1996 Marius Vollmer <mvo@zagadka.ping.de>
1200 * backtrace.c (scm_display_error): Bugfix: scm_procedure_p returns
1201 a SCM boolean, not a C boolean.
1203 Sat Dec 14 23:21:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
1205 * gc.c (SCM_MTRIGGER_HYSTERESIS): New memory management parameter.
1206 (scm_must_malloc, scm_must_realloc): Added a hysteresis to the
1207 rules for raising scm_mtrigger. Previously, unfortunate but not
1208 unlikely circumstances could result in almost constant invokation
1209 of the gc. Now, this situations should be less likely, but they
1210 are not prevented completely.
1212 Tue Dec 17 16:19:07 1996 Jim Blandy <jimb@totoro.cyclic.com>
1214 * numbers.c (scm_fuck): Procedure removed; looks like old test
1216 * numbers.h: Prototype removed.
1218 Mon Dec 16 18:20:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
1220 * debug.h (scm_debug_frame): Change `vect' member from an in-line
1221 array to a pointer, to match my Nov 21 change in eval.c.
1223 Fri Dec 13 16:12:14 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1225 * libguile.h: Added #include "libguile/backtrace.h", #include
1226 "libguile/stacks.h".
1228 * strings.c (scm_string scm_make_string scm_string_ref
1229 scm_string_set_x scm_string_equal_p scm_string_append):
1230 Bugfix according to scm patch from Aubrey Jaffer:
1231 Corrected long-standing
1232 (not (eqv? (integer->char 128)
1233 (string-ref (make-string 1 (integer->char 128)) 0)))
1234 bug found by John Kozak <jk@noontide.demon.co.uk>.
1236 * strports.c, strports.h: Make scm_eval_0str return the value of
1237 the last expression evaluated (previously, it returned void).
1239 * strports.c, strports.h: New function: scm_read_0str. Does what
1242 Tue Dec 10 23:38:43 1996 Gary Houston <ghouston@actrix.gen.nz>
1244 * simpos.c (scm_getenv): return #f if string can't be found in the
1245 environment instead of throwing an exception, for compatibility
1246 with numerous other systems.
1248 Mon Dec 9 23:23:35 1996 Tom Tromey <tromey@cygnus.com>
1250 * Makefile.am (.c.x): Use guile-snarf.
1251 * configure.in (AC_OUTPUT): Generate guile-snarf; make it
1253 * guile-snarf.in: New file, resurrected from old guile-snarf.sh.
1255 Mon Dec 9 18:36:50 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
1257 * backtrace.c (scm_display_error_message): Made non-static, and
1258 renamed from display_error_message.
1259 * backtrace.h (scm_display_error_message): Added extern decl.
1260 * throw.c (uncaught_throw): Use it to display the error message.
1262 Mon Dec 9 10:10:38 1996 Tom Tromey <tromey@cygnus.com>
1264 * inet_aton.c: Use #if 0, not #ifdef 0.
1266 Mon Dec 9 06:36:48 1996 Gary Houston <ghouston@actrix.gen.nz>
1268 * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
1269 to convert the returned value.
1270 (scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
1271 the offset argument.
1273 Sun Dec 8 21:06:38 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
1275 Add new interface to catch/throw, usable from C as well as
1277 * throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
1278 (scm_internal_catch): New function, replaces...
1279 (scm_catch_apply): Deleted.
1280 * throw.c (scm_catch_apply): Deleted; replaced with a more general
1281 mechanism which is a bit more code, but can be used nicely from C
1282 and implement the Scheme semantics as well.
1283 (scm_internal_catch): This is the replacement; it's named after
1284 the analogous function in Emacs.
1285 (scm_catch): Reimplemented in terms of the above.
1286 (struct catch_body_data, catch_body, catch_handler): New
1287 functions, used by scm_catch.
1288 * root.c (cwdr): Reimplemented in terms of scm_internal_catch.
1289 (struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
1290 support for new cwdr.
1292 * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
1295 Sun Dec 8 17:55:34 1996 Marius Vollmer <mvo@zagadka.ping.de>
1297 * acconfig.h: Added DYNAMIC_LINKING symbol.
1298 * configure.in: Add option and checks for dynamic linking.
1299 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c,
1300 dynl.h: New files for dynamic linking support.
1301 * Makefile.am (libguile_a_SOURCES):
1303 (modinclude_HEADERS): Added "dynl.h".
1304 (EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
1306 * init.c (scm_boot_guile_1): Call
1307 scm_init_dynamic_linking to initialize dynamic linking support.
1309 Thu Dec 5 22:47:53 1996 Marius Vollmer <mvo@zagadka.ping.de>
1311 * init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
1312 (as we Schemers say). It needs to be global, so that I can tweak
1313 it for the proper operation of unexec.
1314 (scm_boot_guile_1_live): New variable, see above.
1316 Sun Dec 1 00:00:49 1996 Tom Tromey <tromey@cygnus.com>
1318 * guile-snarf.sh: Removed.
1319 * PLUGIN/guile.libs: Added dependency for -lm.
1320 * acinclude.m4: Renamed from aclocal.m4.
1321 * PLUGIN/greet: Removed.
1322 * Makefile.am, aclocal.m4: New files.
1323 * configure.in: Updated for Automake.
1325 Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
1327 * eval.c (scm_definedp): Use top_level_lookup_closure_var
1328 and not top_level_lookup_thunk_var.
1330 Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
1332 * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
1334 Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
1336 * eval.c (scm_definedp): Incompatibly changed to be a builtin
1337 Scheme function, instead of syntax. Single argument is now a
1340 Thu Nov 21 20:26:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
1342 * ramap.c (scm_ra_sum, scm_ra_difference, scm_ra_product,
1343 scm_ra_divide): Properly terminate statements passed as arguments
1344 to IVDEP macros. (Thanks to Bernard Urban.)
1346 * eval.c (SCM_CEVAL): Use alloca, not GCC's extensions for arrays
1347 with non-constant sizes. (Thanks to Bernard Urban.)
1349 Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
1351 It's an "eval closure", not an "eval thunk." A thunk is a
1352 function of no arguments.
1353 * root.h (struct scm_root_state): Renamed
1354 top_level_lookup_closure_var from top_level_lookup_thunk_var.
1355 (scm_top_level_lookup_closure_var): Renamed from
1356 scm_top_level_lookup_thunk_var.
1357 * root.c (mark_root): Uses changed.
1358 * gdbint.c (gdb_eval, gdb_binding): Uses changed.
1359 * init.c (scm_start_stack): Uses changed.
1360 * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
1361 Change scheme-visible name to *top-level-lookup-closure* from
1362 *top-level-lookup-thunk*.
1364 Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
1366 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
1367 pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
1369 Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
1371 * gc.c (struct scm_heap_seg_data): Doc fixes.
1373 * gc.c (scm_gc_sweep): Empty all segments' freelists before
1374 sweeping. Then, prepend each segment's free cells to its
1375 freelist, rather than wiping out the old value. (Thanks to Marius
1378 * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
1379 scm_check_freelist, scm_debug_newcell): New functions and
1380 variables, for debugging freelist problems.
1381 * pairs.h (SCM_NEWCELL): New debugging version added.
1382 * gc.h (scm_debug_newcell): Added extern declaration, used by
1383 debugging version of SCM_NEWCELL.
1385 Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
1387 On some systems <libc.h> conflicts with <unistd.h>, and should not
1388 be #included at all.
1389 * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
1390 * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
1391 * configure.in: Call it.
1392 * posix.c, filesys.c: Use its results to decide whether or not to
1394 * configure, scmconfig.h.in: Rebuilt with autoconf and
1397 Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
1399 * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
1400 pointer to the stdio stream before calling scm_setbuf0, so the
1401 latter will be able to retrieve it. I'm surprised this didn't
1402 segfault earlier. (Thanks to Christopher Lee.)
1404 Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1406 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
1409 Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1411 * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
1412 number of stack narrowing specifier pairs. The first specifier in
1413 a pair controls inner border, the second the outer border. A
1414 number means cut that number of frames, a procedure object means
1415 cut until that object is found in operator position in a frame.
1417 * root.c (cwdr): Bugfix.
1419 * read.c: Recording of positions disabled by default.
1421 * procs.c (scm_closure_p): New function.
1423 * posix.c (scm_tmpnam): New function.
1425 * load.c: Added #include "throw.h".
1426 (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
1429 * load.c, load.h (scm_read_and_eval_x): New function.
1431 * eval.c: Renamed debug option "deval" to "debug".
1433 (scm_eval_x): `eval!' is no longer accessible from the scheme
1434 level. Motivation: We can't allow operations which introduce
1435 glocs into the scheme level. Guile's type system can't handle
1436 these as data. Use `eval' or `read-and-eval!' as replacement.
1438 * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
1439 SCM_CONSP since this is a macro!; Set vframe.prev to
1440 scm_last_debug_frame instead of 0. In this way we can look
1441 "above" the virtual start stack frame if we wish.
1442 (scm_debug_hang): New function: Useful for debugging Guile in
1443 certain tricky situations. Will probably be removed later...
1445 * debug.h: Changed semantics of debug option "backtrace". This
1446 option now only indicates whether we want automatic backtrace at
1449 Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1451 * ports.c: #include "filesys.h"
1452 (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
1454 * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
1455 Motivation: This is system specific code which is related to file
1456 I/O. It also may use select. Added code by Gary Houston to
1457 detect presence of character in stdio buffers.
1459 * libguile.h: #include "libguile/libpath.h"
1461 * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
1462 SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
1463 SCM_SITE_DIR; Install libpath.h among the other include files.
1465 * load.c, load.h (scm_sys_package_data_dir): New function.
1467 Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1469 * stacks.h: Bugfix: Don't use tail-array length field as stack
1470 length field! This screwed GC.
1472 Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1474 * _scm.h: Added #ifndef around definition of macros min and max.
1476 * __scm.h: Added hooks for threads to plugin to in ints protection
1477 macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
1478 SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
1479 the main code in these macros duplicated and spread over multiple
1480 files. Renamed SCM_THREADS_SWITCHING_CODE ->
1481 SCM_THREAD_SWITCHING_CODE.
1483 Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
1485 * snarf.h: New file.
1486 * guile-snarf.sh: New file.
1487 * Makefile.in (inner_h_files): Added snarf.h
1488 (ancillary, install, uninstall, distclean): Added actions for
1490 (.c.x): Use guile-snarf.
1491 (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
1492 (gen_c_files): Note that these depend on guile-snarf.
1493 * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
1494 now in "snarf.h". Added #include "snarf.h" to get them.
1495 * libguile.h: Added #include "snarf.h".
1496 (Patches applied and tweaked by Jim Blandy.)
1498 Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
1500 * socket.c: Use K&R style declaration for 'close'; the GNU coding
1501 standards suggest against providing prototypes for system
1502 functions. Thanks to Greg Troxel.
1504 Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
1506 * strports.c (scm_eval_0str): New function.
1507 #include "read.h", to get prototype for scm_read.
1508 * Makefile.in (strports.o): Update dependencies.
1509 * strports.h: New prototype.
1511 * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
1512 scheme name from "int?" to "integer?". It seems to do the job.
1513 * numbers.h: Rename prototype too.
1514 * scmhob.h (intp): Change definition to refer to scm_integer_p. I
1517 * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
1518 scm_num_eq_p): Rename these according to R4RS conventions: call
1519 them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
1520 to making libguile R4RS compliant without ice-9...
1522 * load.c (scm_sys_search_load_path): Search for files under all
1523 extensions listed in the %load-extensions variable. If FILENAME
1524 is absolute, return it unchanged, without searching the load path.
1525 (scm_loc_load_extensions): New variable, pointing to
1526 %load-extensions' value cell.
1527 (scm_init_load): Initialize it, and the value it points to.
1528 (scm_primitive_load_path): Improve error reporting.
1530 * load.c (scm_loc_load_hook): New variable, pointing to value cell
1531 of new Scheme variable %load-hook.
1532 (scm_primitive_load): Apply %load-hook to filename.
1534 Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
1536 * configure.in: add tests for figuring out whether buffered data
1537 is available in a FILE structure, which is needed by char-ready.
1539 * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
1542 * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
1543 exceptions using misc_error instead of syserror. It seems a bit
1544 odd to throw an exception if a string can't be found in the
1545 environment, but it's consistent with open-file, stat etc.
1546 (simpos.h): remove sys_ from getenv.
1548 * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
1549 occurs, throw an error instead of returning errno. Return value
1551 (numerous in posix.c and posix.h): removed superfluous sys_ from names.
1553 Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
1555 * filesys.c (scm_stat2scm): derive file type and permissions from
1556 the stat mode and append them to the returned vector.
1557 There isn't much overhead in doing this and it avoids the need to
1558 work with S_IRUSR et al. in Scheme.
1559 Define symbols scm_sym_regular etc.
1560 (scm_init_filesys): don't intern S_IRUSR etc.
1562 * load.c: change s_try_load and s_try_load_path to s_primitive_load
1563 and s_primitive_load_path.
1565 * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
1567 * error.h: don't declare error symbols. prototype for scm_misc_error.
1569 * stackchk.c (scm_stack_overflow_key): defined here instead of in
1572 * error.c: use SCM_SYMBOL to set up error keys.
1573 scm_misc_error: new procedure.
1575 Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
1577 * read.c (scm_lreadr): Recognize SCSH-style block comments; text
1578 between `#!' and `!#' is ignored.
1579 (skip_scsh_block_comment): New function.
1581 * feature.c (scm_set_program_arguments): New argument, FIRST.
1582 * feature.h: Update prototype.
1583 * init.c (scm_boot_guile_1): Pass new argument to
1584 scm_set_program_arguments.
1586 Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
1588 * init.c (scm_start_stack): Don't initialize scm_progargs here.
1589 (scm_boot_guile): Call scm_set_program_arguments here, later than
1590 the old initialization.
1592 * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
1593 initialization procedure.
1594 - Delete in, out, err arguments; there are other perfectly good
1595 ways to override these when desired.
1596 - Delete result argument; this function shouldn't ever return.
1597 - Rename init_func argument to main_func, for less confusion.
1598 - Delete boot_cmd argument; main_func is more general.
1599 -Add 'closure' argument, to help people pass data to main_func
1600 without resorting to global variables.
1601 - Abort if reentered; don't bother returning an error code.
1602 - Call scm_init_standard_ports to set up the default/current
1603 standard ports; no need to pass them to scm_start_stack.
1604 - Remove code to evaluate the boot_cmd, and start the repl; let
1605 the user do something like that in main_func if they want.
1606 - Remove code to package up a return value; main_func can do any
1608 - Call exit (0), instead of returning.
1609 (scm_start_stack): Don't initialize the I/O ports here; that's
1610 weird. Delete in, out, err arguments. Move guts to
1611 scm_init_standard_ports, scm_stdio_to_port.
1612 (scm_init_standard_ports): New function, to set up current and
1613 default standard ports.
1614 (scm_start_stack, scm_restart_stack): Make these static.
1615 * init.h (scm_boot_guile): Adjust declaration.
1616 (scm_start_stack, scm_restart_stack): Remove externally
1617 visible declarations for these.
1618 (enum scm_boot_status): Removed; now scm_boot_guile never returns.
1620 * fports.c (scm_stdio_to_port): New function. Its guts used to be
1621 written out several times in scm_start_stack.
1622 * fports.h: New declaration for the above.
1624 * feature.c (scm_set_program_arguments): New function.
1625 * feature.h: New declaration for the above.
1627 * ports.c: Formatting tweak.
1629 Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
1631 * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
1632 ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
1633 for obtaining the address of a car or cdr field. Motivation:
1634 &SCM_CXR make assumptions about the internal structure of the
1637 * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
1638 Motivation: see SCM_CXRLOC.
1640 * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
1641 srcprop.h, tags.h, throw.c, unif.c: Added new selectors
1642 SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
1643 Motivation: Safer use. Some other macros are defined in terms of
1644 these operations. If these are defined using the SCM_SETCXR
1645 (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
1646 to inefficiency and an <e1> with side-effects could potentially
1647 break. Also, these particular operations are heavily utilized in
1648 the garbage collector. In unoptimized code there will be a
1651 * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
1652 eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
1653 ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
1654 pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
1655 procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
1656 strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
1657 vports.c: Cleaned up use of pairs: Don't make any special
1658 assumptions about the internal structure of selectors and
1659 mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
1660 SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
1661 (Among other things, this change makes it easier to build Guile
1662 with certain compilers which have problems with casted lvalues.)
1664 Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1666 * stacks.c: Improve selection of relevant stack frames when making
1667 a stack object. Introduce one level of indirection in the stack
1668 object to make it possible to "narrow" to a certain region of the
1669 stack. This facilitates making use of more clever algorithms (not
1670 implemented) for selecting relevant frames and gives a cleaner
1671 design since selection of frames can be done independently of
1672 extraction of frames from the real stack.
1673 (scm_stack_id): Also take #t as argument which means look at
1676 * stacks.h: In struct scm_stack: Turn field frames into a pointer.
1677 Turn n_tail into an integer directly representing current number
1678 of frames in stack. Add field tail.
1680 * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
1682 * debug.c (scm_make_memoized): Made it available at scheme level.
1683 (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
1684 SCM_NIMP before applying heavier predicates in argument checking.
1685 (scm_local_eval): Also take memoized object as argument.
1687 * backtrace.c (scm_display_error): Just a safety measure: Stacks
1688 aren't created with zero length, but should such a strange
1689 creature suddenly turn up...
1691 Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
1693 * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
1694 `del', for the sake of C++ compilers. (Patch applied by JimB.)
1696 Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
1698 * variable.c (scm_make_variable): Make the name hint optional, as
1700 (anonymous_variable_sym): Renamed from variable_sym. All uses
1703 * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
1704 from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
1705 of scm_primitive_load_path was also changed to
1706 "primitive-load-path", from "%try-load-path". Callers changed.
1707 We'd like to respect the convention that a function named
1708 "try-mumble" should behave just like the function called "mumble",
1709 but return #f instead of signalling some error.
1710 * load.h: Rename prototypes.
1712 Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1714 * print.c (make_print_state, grow_print_state), print.h: Modified
1715 the print state representation: Don't use a tail array for
1716 recording of circular references. Resizing of the print state
1717 structure invalidates the print state pointer. To avoid passing
1718 around an indirect print state reference to all printing
1719 functions, we instead let the print state reference a resizable
1722 Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
1724 * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
1725 Don't crash when passed an improper list terminated by a
1726 non-immediate value.
1728 Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
1730 Allocate data for structures on an eight-byte boundary, as
1731 required by the tagging system.
1732 * struct.c (alloc_struct): New function.
1733 (scm_make_struct, scm_make_vtable_vtable): Call it.
1734 * struct.h (scm_struct_n_extra_words): Bump to 3.
1735 (scm_struct_i_ptr): New "field".
1736 * gc.c (scm_gc_sweep): When we need to free the data, use the
1737 information stored by alloc_struct to find the beginning of the
1738 block allocated to the structure, so we can free it.
1740 Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1742 * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
1745 * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
1746 (scm_debug_info): New member: id.
1748 * stacks.c: Stacks are now represented as structs; Stacks have an
1749 id given to them by `start-stack'.
1750 (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
1752 * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
1753 Changed stack representation.
1755 * debug.c (scm_procedure_name): Try procedure property `name' for
1756 compiled closures aswell.
1758 * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
1760 * eval.c: scm_i_name moved to gsubr.c
1761 (scm_m_define): Record names of all kinds of procedure
1762 objects. (Earlier, only closures were recorded.)
1764 * procprop.h: Added declaration of scm_i_name.
1766 * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
1767 (scm_make_gsubr): Record names of compiled closures.
1769 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1771 * debug.c, debug.h: Removed obsolete code.
1773 * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
1774 stacks.c: Renamed regs --> scm_contregs.
1776 * print.c (scm_free_print_state): Cleanup print state before
1777 returning it to pool. It is better to do it here than in
1778 scm_prin1 since scm_prin1 is called often.
1780 * srcprop.c (scm_source_properties, scm_set_source_properties_x,
1781 s_set_source_property_x): Check that first argument is a pair or a
1784 * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
1785 scm_i_line, scm_i_column and scm_i_breakpoint global.
1787 * init.c: Added #include "backtrace.h" and #include "stacks.h".
1788 (scm_boot_guile_1): Added calls to scm_init_backtrace and
1791 * debug.h: Added debug object smob declaration and macro
1794 * configure.in: Build with backtrace.o and stacks.o if debug
1797 * Makefile.in: Added entries for new files: backtrace.c,
1798 backtrace.h, stacks.c and stacks.h.
1800 * symbols.c (scm_sym2ovcell): Fixed documentation.
1802 * _scm.h (min, max): Added.
1804 * async.c: Moved `min' macro to _scm.h.
1806 * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
1807 SCM_BACKTRACE_INDENT.
1809 * eval.c: Added new debug options `maxdepth' and `indent'.
1811 * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
1813 * print.h: Added selector SCM_PRINT_STATE.
1815 * print.c: New functions: scm_make_print_state,
1816 scm_free_print_state.
1818 * print.h: Added declarations for scm_make_print_state,
1819 scm_free_print_state.
1821 * debug.c (scm_m_start_stack): New acro.
1823 * debug.h: Small cleanup.
1825 * init.c (scm_boot_guile_1): Moved scm_init_debug below
1828 Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
1830 * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
1831 arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
1832 chars.c, chars.h, continuations.c, continuations.h, debug.c,
1833 debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
1834 eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
1835 filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
1836 gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
1837 hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
1838 kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
1839 markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
1840 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
1841 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
1842 procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
1843 root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
1844 simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
1845 stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
1846 strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
1847 struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
1848 unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
1849 version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
1850 declare functions with prototypes. (Patch thanks to Marius
1853 More prototype-related changes from Marius Vollmer:
1854 * gdb_interface.h: Wrapped header file in #ifdef/#endif
1855 * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
1856 * ports.h (ptobfuns): Added prototypes. This means some casting in
1858 * fports.c: Added casts for initializations, since the functions
1859 are defined to take FILE * as their stream argument, not SCM.
1860 * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
1861 * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
1862 to `char *str_data' to conform to prototype.
1864 Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1866 * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
1868 * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
1870 * stime.c, stime.h: use SCM_P method.
1872 Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
1874 * eval.c (scm_nconc2last): Don't accept an empty list; apply must
1875 be given at least two arguments. Insist that lst's last element
1876 be a list, but don't make any requirements of its predecessors.
1878 Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
1880 * eval.c (scm_nconc2last): Revert last change; there seems to be
1881 other stuff going on here.
1883 Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
1885 * eval.c (scm_nconc2last): Make sure that each element of lst
1886 (which is a list of argument lists, except for the tail) is a
1887 proper list, i.e., finite and terminated by '().
1889 Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
1891 * unif.c (scm_ra_set_contp): Localize `inc' declaration.
1894 * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
1895 symbolic name for the tag, scm_tc3_cons_gloc, instead of just
1898 * vectors.c (scm_make_vector): Fill vectors with the undefined
1899 value, to help make Guile Scheme code more portable to other
1902 * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
1903 * symbols.h, tags.h: Doc fixes.
1905 Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
1907 * async.c (scm_take_signal): Doc fixes.
1909 Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
1911 * numbers.c (scm_divbigint): When the remainder is zero, we don't
1912 want to subtract it from the modulus; we just want to leave it
1915 Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
1917 * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
1920 * throw.h (scm_catch_apply): Removed the `lazyp' argument.
1922 * throw.c (scm_catch_apply): Finished implementation of
1925 Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
1927 * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
1929 (scm_init_filesys): set "i/o-extensions" feature.
1932 Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
1934 * Makefile.in (root.o): Correct dependencies.
1936 Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
1938 * Makefile.in: Added dependency entry for root.o.
1940 * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
1941 throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
1943 * init.c (scm_start_stack): Set initial root continuation number
1946 * procs.c: New function: scm_thunk_p.
1948 * procs.h: Added declarations of scm_thunk_p.
1950 * root.c: Renamed `call-with-new-root' -->
1951 `call-with-dynamic-root'.
1952 (cwdr): Removed allocation of new root state. This should be done
1953 separately by use of scm_make_root.
1954 (scm_apply_with_dynamic_root): New function: Does what it
1955 sounds like. Needed when spawning threads.
1957 * root.h: Added member last_debug_frame to root state.
1958 Added #include "libguile/debug.h"
1960 * throw.c: Renamed scm_catch --> scm_catch_apply and added more
1961 arguments. The motivation is that code in root.c needs catch
1962 functionality, and we want to avoid code duplication.
1963 New functions: scm_catch, scm_lazy_catch. These are wrappers for
1964 scm_catch_apply. scm_lazy_catch is intended to introduce catch
1965 handlers that run without popping the stack into the dynwind
1968 * throw.h: Added prototypes for scm_catch_apply and
1971 Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1973 * root.h (scm_root, scm_set_root): Decouple thread support details
1974 by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
1975 SCM_SET_THREAD_LOCAL_DATA.
1977 * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
1978 and tortoise scanning loop.
1980 Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
1982 * Makefile.in: Rebuild dependencies.
1984 * libguile.h: #include "libguile/print.h" before "smob.h", since
1985 the latter uses the print_state structure.
1987 * throw.c (scm_ithrow): Use the correct variable when checking to
1988 see if a given element of scm_dynwinds is a valid catch.
1990 * throw.c (scm_ithrow): If scm_dynwinds has invalid list
1991 structure, abort; don't just silently ignore the garbage.
1993 * _scm.h: #include "print.h" here, since it seems to be used just
1995 * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
1996 strports.c, unif.h: Don't #include "print.h".
1998 Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2000 * feature.h (scm_loc_features): Removed external declaration.
2001 (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
2003 Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2005 * feature.c (scm_init_feature): Added threads feature (needs to be
2006 initialized here, since features doesn't exist when
2007 scm_init_threads is called).
2009 * libguile.h: Added #include "libguile/../threads/threads.h".
2010 (This is a kludge to get thread support working. This should be
2013 * configure.in, acconfig.h: Added flags for thread support.
2015 * scmsigs.c: Define `signal' to be `pthread_signal' if using
2018 * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
2019 SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
2022 * _scm.h: Added conditional #include "threads.h"
2024 * __scm.h (SCM_ASYNC_TICK): Added call to macro
2025 SCM_THREADS_SWITCHING_CODE.
2027 * init.c (scm_start_stack): Call `scm_make_root' to dynamically
2028 allocate the basic dynamic root object.
2029 (scm_boot_guile): Added call to scm_init_root.
2031 * root.c, root.h: Added root smob.
2032 (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
2033 functions: Implements dynamic roots mostly according to spec in
2034 SCM manual. Main difference is that the second argument is a
2035 throw handler rather than an error "thunk".
2037 * root.h: Added declaration of scm_init_root.
2039 * root.c: Added #include "genio.h", #include "smob.h", #include
2040 "pairs.h", #include "throw.h", #include "dynwind.h", #include
2042 (scm_init_root): Added #include "root.x".
2044 * throw.c: Added #include "stackchk.h"
2045 (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
2046 SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
2047 can be used in scm_call_with_new_root; Added reenabling of stack
2048 checking when catching a throw.
2050 Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
2052 * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
2054 * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
2055 element is not found, as per R4RS.
2057 Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
2059 * list.c: Doc fixes throughout.
2061 Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
2063 * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
2064 declare the char * to be const. Avoids a warning in rgx.c.
2066 * ports.h: spelling fix.
2068 * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
2071 * load.c (scm_sys_try_load_path): throw an error if file not found
2072 (like it says it in NEWS).
2074 Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
2076 * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
2077 PROPS slot to '(), not #f; it's an empty alist.
2079 * throw.h, throw.c: Use SCM_P instead of #if hair.
2081 Remove special support for uncaught throws; see throw.c for
2083 * throw.c (uncaught_throw): New function.
2084 (scm_ithrow): Call uncaught_throw if we don't find a throw
2085 target; don't mess with scm_bad_throw_vcell.
2086 (scm_bad_throw_vcell): Variable deleted.
2087 (scm_init_throw): Don't initialize it.
2089 * throw.c (scm_ithrow): Don't let outer key matches shadow inner
2092 Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
2094 * numbers.c (scm_istr2int): If the number is short (as most
2095 numbers are), just call scm_small_istr2int to deal with it.
2096 (scm_small_istr2int): New function, created by un-#ifdefing the
2097 non-bignum version of scm_istr2int and renaming it.
2099 Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
2101 * load.c (scm_sys_try_load): don't check whether value returned
2102 by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
2103 Change the Scheme name from %try-load to primitive-load.
2105 * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
2106 Can avoid passing a message, allowing it to be derived in the
2107 error handler (e.g., if we want to throw to the key both from
2110 Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
2112 * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
2113 references now have a new appearance which is more compact and
2114 also gives a clue about what the target of the reference is.
2115 By setting parameters in the print state, more fancy printing can
2116 be achieved. This is used by the (not yet commited) backtrace
2119 Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
2121 * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
2124 * print.c: Added #include "struct.h". Removed function
2127 * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
2128 scm_iprin1. Removed prototype for scm_prlist.
2130 * arbiters.c (prinarb),
2131 async.c (print_async),
2132 debug.c (prindebugobj, prinmemoized),
2133 eval.c (prinprom, prinmacro),
2134 filesys.c (scm_fd_print, scm_dir_print),
2136 mallocs.c (prinmalloc),
2137 numbers.c, numbers.h (scm_floprint, scm_bigprint),
2138 smob.h (scm_smobfuns),
2139 srcprop.c (prinsrcprops),
2141 unif.c, unif.h (scm_raprin1, rapr1),
2142 variable.c (prin_var): Changed argument `int writing' to
2143 `scm_print_state *pstate'.
2145 * init.c (scm_boot_guile): Moved scm_init_struct upwards so
2146 that it will be called before scm_init_print.
2148 * print.c (scm_prin1): Print states are now allocated when calling
2149 scm_prin1 and then passed around to all printing functions as an
2150 argument. A cache `print_state_pool' enables reuse of print
2152 (scm_make_print_state): New function.
2153 (scm_iprin1): Adaption to print states.
2154 (scm_iprlist): An initial "hare and tortoise" scan brings down
2155 time complexity to O (depth * N). (Better time complexity will be
2156 achieved when the printing code is completely rewritten.)
2158 Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
2160 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
2161 AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
2162 it gets done whether or not the cache variable has a value.
2164 Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
2166 Distinguish #f and ().
2167 * __scm.h: #undef SICP.
2168 * pairs.h (SCM_EOL): Delete this definition, equating it with
2170 * tags.h (SCM_EOL): Give it a new definition here; I think I found
2171 the value it used to have. Doc fixes, too.
2173 Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
2175 * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
2176 scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
2177 Lord's implementation of structs, allowing for tail arrays as
2178 described in the manual. Also fixed some bugs. (Both the interface
2179 and the implementation should be improved.)
2181 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
2183 * print.c, print.h: Closures now print like #<procedure foo (x)>.
2184 People who whish to see the source can do `(print-enable 'source)'.
2185 Removed #ifdef DEBUG_EXTENSIONS.
2187 Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
2189 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
2190 integer (assuming for now accepting an integer is a good thing).
2192 * error.c, fports.c: replace use of %S in lgh_error args with %s.
2193 %S will be used instead for write'ing arguments.
2195 * unif.c (scm_transpose_array): change arguments in the SCM_WNA
2196 asserts. fix a few other asserts.
2197 (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
2198 scm_uniform_vector_ref, scm_array_set_x,
2199 scm_dimensions_to_unform_array): change args in
2200 SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
2201 strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
2202 scm_substring_fill_x): likewise.
2203 gsubr.c (scm_gsubr_apply): likewise.
2204 eval.c (SCM_APPLY): likewise.
2206 * eval.c (4 places): replace scm_everr with lgh_error or
2209 * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
2210 scm_memory_error): new procedures.
2211 scm_everr: deleted. can use scm_wta, dropping first two args.
2212 scm_error: convert NULL subr to SCM_BOOL_F.
2214 * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
2217 * stackchk.c (scm_report_stack_overflow): use lgh_error instead
2220 * error.c, error.h: new error keys: scm_arg_type_key,
2221 scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
2223 scm_wta: reimplement using lgh_error instead of scm_everr.
2225 Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
2227 * gdbint.c: scm_lread now has one more argument.
2229 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
2230 scm_port_\1; Added mutator scm_set_port_filename_x (used when
2231 loading source from non-file ports, which, e. g., happens when
2232 using the Emacs interface).
2234 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
2237 * read.c: Added code for recording of positions of source code
2238 expressions; New functions: recsexpr, scm_lreadrecparen;
2239 _scm_make_srcprops --> scm_make_srcprops
2240 (scm_flush_ws): Removed updating of positions counters. This work
2241 is already done by scm_gen_getc
2243 * read.h: Added prototype for scm_lreadrecparen
2245 * print.c: Added #include "alist.h"
2247 * eval.c: Added #include "hash.h"
2249 * eq.c: Added #include "ramap.h"
2251 * options.c: Documentation fixes.
2253 * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
2254 (scm_init_srcprop): Adjusted size of initial source-whash. Name
2255 changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
2256 --> scm_make_srcprops
2258 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
2259 _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
2260 function calls in the definition of the whash access macros.
2262 Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
2264 * init.c (scm_boot_guile): Add level of indirection to
2265 scm_boot_guile_1() to ensure that stack base pointer is properly
2266 initialized. There was no guarantee that variable i was the
2267 highest/lowest variable on stack (i.e. the call frame of
2268 scm_boot_guile was not completely protected from gc).
2270 Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
2272 * ports.h (scm_port_table): put back file_name, it will be used to
2273 support debugging. Undo related changes in fports.c, ioext.c,
2276 Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
2278 * ports.h (scm_port_table): remove file_name member for now, it seems
2280 * fports.c (scm_open_file): don't set file_name in PTAB.
2281 (prinfport): don't use file_name in PTAB.
2282 * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
2283 * ports.c (scm_add_to_port_table): don't intialize file_name.
2284 (scm_port_file_name): remove for now.
2285 * gc.c (scm_gc_mark): don't mark PTAB file_name.
2287 * fports.h (scm_mkfile): prototype deleted.
2288 * fports.c (scm_mkfile): merged into scm_open_file to simplify.
2290 * debug.c, unif.c: use scm_out_of_range instead of
2291 wta for range errors (ASSERT still needs work).
2293 * error.c, error.h (scm_out_of_range): new procedure.
2295 * error.c, error.h (scm_out_of_range_key): new key.
2297 * posix.c (scm_sync): #else was missing.
2299 * error.c, error.h: append _key to names scm_num_overflow and
2302 * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
2303 of consing an empty list.
2304 (SCM_SYSERROR etc.): move into error.c, make them procedures instead
2305 of macros, saves code and string space.
2306 error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
2307 fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
2308 lower case. Rename scm_syserror_m to scm_syserror_msg.
2309 error.h: prototypes for new procedures.
2311 Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
2313 * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
2315 * error.c, error.h: setup scm_num_overflow key.
2317 * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
2318 Remove definition of SCM_OVSCM_FLOW.
2320 * fports.c (scm_open_file): use SCM_SYSERROR_M.
2322 * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
2323 explicit message and args.
2325 * error.c, error.h, __scm.h: change system_error_sym to
2328 * error.c (system_error_sym): remove leading %% from the Scheme name
2331 * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
2333 Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2335 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
2336 fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
2337 numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
2338 tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
2339 renamed. (These were introduced by unsupervised name
2342 Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2344 * print.c: Added code for detection of circular references during
2345 printing. (init_ref_stack, grow_ref_stack): New functions. Added
2346 a hook for printing of closures (accessible via print options).
2347 This leads to a split of calls to scm_iprin1 into two classes:
2348 elementary print operations (e. g. the code which prints a smob)
2349 still use scm_iprin1 while top level calls (like scm_display) use
2350 scm_prin1. scm_prin1 begins by clearing the data structure used
2351 to record reference information.
2353 * print.h: Added declarations of scm_prin1 and scm_prlist.
2355 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
2357 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
2359 * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
2361 * error.c (err_head): scm_iprin1 --> scm_prin1
2363 * debug.c: Adjusted header comment.
2367 Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
2369 * strerror.c: Doc fix.
2371 Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2373 * gdbint.c (gdb_read): Now possible to run during GC.
2374 (unmark_port, remark_port): New functions.
2376 * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
2378 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
2379 of allocating a new string object. Also, increase size by
2380 the factor 2 instead of 1.5.
2382 Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
2384 * __scm.h (SCM_P): Corrected to run under traditional C.
2386 * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
2389 * async.c: Calls to scm_sysintern corrected.
2391 * async.h (scm_async_clock): Redundant declaration removed.
2393 * continuations.c (scm_dynthrow): Redundant declaration removed.
2395 * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
2396 Definition typos corrected.
2398 * debug.h: Missing declarations of functions in debug.c added
2401 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
2402 Missing declarations to functions in eval.c added.
2404 * filesys.c: Possibly uninitialized variable rv.
2406 * gc.h (scm_object_addr, scm_unhash_name): Missing
2407 declarations of functions defined in gc.c added.
2409 * genio.c: Possible typos str_data -> wstr_data. ???
2411 * genio.c: Possibly unintended shadowing of local variable
2412 `int c' (gotos out of scope of inner `c'). ???
2414 * init.c: Uninitialized `SCM last' may be used.
2416 * ioext.h: (scm_sys_isatty_p): Typo.
2418 * list.h (scm_list_head): Missing prototype for function in
2421 * numbers.c (scm_two_doubles): Changed from extern to static
2422 (is used only within numbers.c).
2424 * numbers.h: Repeated declarations removed.
2426 * ports.h (scm_close_all_ports_except): Declaration for the
2427 function defined in ports.c added.
2429 * posix.h: Missing declarations added.
2431 * procs.h (scm_make_subr_opt): Missing declaration added.
2433 * socket.h (scm_sys_gethost): Missing declaration added.
2435 * socket.h: Redundant declarations removed (they are in fdsocket.h).
2437 * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
2438 Missing declarations added.
2440 * stime.h (scm_get_internal_real_time): Repeated declarations removed.
2442 * struct.c: Uninitialized variable `SCM answer' may be used.
2444 * unif.c (l2ra): Declaration prototype.
2446 * unif.c (scm_array_equal_p): Dummy definition removed (it is
2447 defined in ramap.c).
2449 * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
2450 Redundant declarations removed (they are in ramap.h).
2452 * variable.h (scm_make_udvariable,
2453 scm_make_undefined_variable): Declaration corrected to
2454 correspond variable.c.
2456 * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
2457 Missing declarations added.
2459 Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
2461 * Makefile.in (distclean): Don't forget to delete fd.h.
2463 Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
2465 * fd.h.in, tags.h: Trivial cleanups.
2467 * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
2468 marksweep.h just declared functions from gc.c.
2469 * gc.h, libguile.h: Don't #include "marksweep.h".
2470 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
2471 marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
2472 dependencies updated.
2474 * libguile.h: Don't #include "files.h"; it's been deleted.
2476 * files.c (scm_sys_delete_file): Moved to filesys.c.
2477 File is now empty; deleted.
2479 * filesys.c: scm_sys_delete_file is now here. Remove
2480 #if's; they seem to rely on remnants of an old portability
2481 regimen. If the problems come up again, solve them properly,
2482 using autoconf. Specifically: Don't test M_SYSV, and #define
2483 remove to be unlink if it's #defined; don't use remove just
2484 because HAVE_STDC_HEADERS is #defined.
2485 * filesys.h: Add declarations for scm_sys_delete_file.
2486 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
2487 files.o, files.h, files.c, and files.x.
2488 * init.c: Don't #include "files.h", and don't call scm_init_files.
2490 Use SCM_P instead of PROTO; the latter intrudes on the user's
2492 * params.h: Deleted; definition of SCM_P moved to...
2493 * __scm.h: ... here, where it replaces PROTO macro.
2494 * libguile.h, smob.h: Don't #include "params.h".
2495 * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
2496 smob.h: Fix prototypes accordingly.
2497 * Makefile.in: Update dependencies.
2498 (inner_h_files): Remove params.h.
2500 * gc.c: #include "gc.h"; every module should include its header,
2501 to let the compiler cross-check the declarations against the
2504 * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
2505 simpos.h: #include "libguile/__scm.h".
2507 Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
2509 * init.c: Don't forget to #include smob.h and init.h.
2510 * Makefile.in: Dependencies updated.
2512 * smob.h: Use PROTO instead of #if __STDC__.
2514 * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
2516 * __scm.h: Doc fixes.
2518 * __scm.h, libguile.h: Use "quotes" in the #includes, not
2519 <angles>; this allows `make depends' to work properly.
2521 * libguile.h: #include smob.h and pairs.h before the others; they
2522 define typedefs used by other headers.
2524 C files should #include only the header files they need, not
2525 libguile.h (which #includes all the header files); the pointless
2526 recompilation was wasting my time.
2527 * Makefile.in (all .o dependency lists): Regenerated.
2528 * libguile.h: Don't try to get a definition for size_t here...
2529 * __scm.h: Do it here.
2530 * _scm.h: Since this is the internal libguile header, put things
2531 here that all (or a majority) of the libguile files will want.
2532 Don't #include <libguile.h> here; that generates dependencies on
2533 way too much. Instead, get "__scm.h", "error.h", "pairs.h",
2534 "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
2535 "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
2537 * alist.c: Get "eq.h", "list.h", "alist.h".
2538 * append.c: Get "append.h", "list.h".
2539 * arbiters.c: Get "arbiters.h", "smob.h".
2540 * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
2541 * boolean.c: Get "boolean.h".
2542 * chars.c: Get "chars.h".
2543 * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
2545 * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
2546 "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
2547 "genio.h", "throw.h", "eval.h".
2548 * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
2549 * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
2551 * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
2552 * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
2553 "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
2554 "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
2556 * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
2557 * feature.c: Get "feature.h".
2558 * files.c: Get "files.h".
2559 * filesys.c: Get "filesys.h", "smob.h", "genio.h".
2560 * fports.c: Get "fports.h", "markers.h".
2561 * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
2562 "genio.h", "struct.h", "stackchk.h", "stime.h".
2563 * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
2564 "read.h", "strports.h", "tag.h".
2565 * genio.c: Get "genio.h", "chars.h".
2566 * gsubr.c: Get "gsubr.h", "genio.h".
2567 * hash.c: Get "hash.h", "chars.h".
2568 * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
2569 * init.c: Get everyone who has an scm_init_mumble function:
2570 "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
2571 "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
2572 "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
2573 "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
2574 "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
2575 "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
2576 "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
2577 "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
2578 "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
2579 "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
2580 "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
2581 "async.h", "arbiters.h", "append.h", "alist.h".
2582 * ioext.c: Get "ioext.h", "fports.h".
2583 * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
2584 * list.c: Get "list.h", "eq.h".
2585 * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
2586 * mallocs.c: Get "smob.h", "genio.h".
2587 * markers.c: Get "markers.h".
2588 * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
2590 * numbers.c: Get "unif.h", "genio.h".
2591 * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
2592 * options.c: Get "options.h".
2593 * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
2594 "markers.h", "chars.h", "genio.h".
2595 * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
2596 "read.h", "scmsigs.h", "genio.h", "fports.h".
2597 * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
2598 "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
2600 * procprop.c: Get "procprop.h", "eval.h", "alist.h".
2601 * procs.c: Get "procs.h".
2602 * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
2603 "chars.h", "smob.h", "unif.h".
2604 * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
2605 "eval.h", "genio.h", "chars.h".
2606 * root.c: Get "root.h", "stackchk.h".
2607 * scmsigs.c: Get "scmsigs.h".
2608 * sequences.c: Get "sequences.h".
2609 * simpos.c: Get "simpos.h", "scmsigs.h".
2610 * smob.c: Get "smob.h".
2611 * socket.c: Get "socket.h", "feature.h".
2612 * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
2613 "alist.h", "smob.h".
2614 * stackchk.c: Get "stackchk.h", "genio.h".
2615 * stime.c: Get "stime.h"."libguile/continuations.h".
2616 * strings.c: Get "strings.h", "chars.h".
2617 * strop.c: Get "strop.h", "chars.h".
2618 * strorder.c: Get "strorder.h", "chars.h".
2619 * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
2620 * struct.c: Get "struct.h", "chars.h".
2621 * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
2622 "variable.h", "eval.h", "chars.h".
2623 * tag.c: Get "tag.h", "struct.h", "chars.h".
2624 * throw.c: Get "throw.h", "continuations.h", "debug.h",
2625 "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
2626 * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
2627 "smob.h", "genio.h", "eval.h", "chars.h".
2628 * variable.c: Get "variable.h", "smob.h", "genio.h".
2629 * vectors.c: Get "vectors.h", "eq.h".
2630 * version.c: Get "version.h".
2631 * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
2632 * weaks.c: Get "weaks.h".
2634 * stackchk.h: #include "libguile/debug.h",
2636 * print.h, read.h: #include "options.h", since everyone who uses
2637 either of these files will need that.
2639 * smob.h: #include "ports.h", "genio.h", and "print.h", since
2640 anyone who uses this file will need them to define the smob
2641 printing functions. Also, get markers.h, since people will need
2642 to #define the mark functions.
2644 * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
2645 * ports.h: ... to here.
2647 * ports.h (scm_port_table_size): Explicitly give type as 'int';
2648 don't rely on archaic C default type rules.
2650 * fports.h: #include "libguile/ports.h", since you need that in
2651 order to parse this.
2653 * genio.h: #include "libguile/print.h", because you need that to
2654 parse this; don't bother #including "ports.h", since print.h gets
2657 * error.h: Don't #include "pairs.h"; _scm.h will do that now.
2659 * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
2660 this; it's now a reference to an element of *scm_root.
2662 * debug.h: Don't #include "options.h"; the compiler won't be able
2663 to find that once the headers are installed; instead, #include
2664 "libguile/options.h".
2665 * gc.h: Same, with marksweep.h.
2666 * mbstrings.h: Same, with symbols.h.
2667 * scmhob.h: Same, with _scm.h.
2668 * smob.h: Same, with params.h.
2670 * Makefile.in (depends): Don't nuke scmconfig.h and the generated
2671 C files; there's no need for this, and it forces recompilations
2674 Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
2676 * error.c (scm_error): declare scm_error_callback.
2678 * error.h: prototype for scm_error_callback.
2680 * __scm.h: define lgh_error.
2681 (SCM_SYSERROR): redefine using lgh_error.
2683 Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
2685 * error.c (scm_error): new procedure.
2687 * error.h: prototype for scm_error.
2689 * Makefile.in (install): install scmconfig.h from the current
2690 directory, not $(srcdir).
2692 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
2694 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
2695 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
2696 feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
2697 hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
2698 mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
2699 posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
2700 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
2701 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
2702 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
2703 vports.h, weaks.h: #include "libguile/__scm.h", not
2704 <libguile/__scm.h>. This allows 'gcc -MM' to determine which
2705 dependencies are within libguile properly.
2707 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
2709 * Makefile.in (.c.x): Simplify; there's no need to run this rule
2710 when scmconfig.h doesn't exist.
2712 * load.c (scm_sys_try_load): Correct spelling.
2714 * feature.c (scm_loc_features): Make this static.
2716 * Makefile.in (libpath.h): Omit trailing slash from path. We
2717 shouldn't require it of users, so why put it here?
2719 Move code to initialize and search %load-path from ice-9 to C
2720 code, so we can use the load-path to find the ice-9 boot code;
2721 this makes it easier to run Guile without installing it. See
2722 corresponding changes in guile/Makefile.in.
2723 * feature.c: Move stuff concerned with the load path to load.c.
2724 (scm_compiled_library_path): Deleted.
2725 Don't #include libpath.h here.
2726 * feature.h: Don't mention scm_compiled_library_path.
2727 * load.c: #include "libpath.h" here, as well as <sys/types.h>,
2728 <sys/stat.h>, and <unistd.h> (if present).
2729 (R_OK): #define if the system hasn't deigned to.
2730 (scm_loc_load_path): New variable.
2731 (scm_init_load_path, scm_sys_search_load_path,
2732 scm_sys_try_load_path): New functions.
2733 (scm_init_load): Initialize scm_loc_load_path to point to the
2734 value cell of the Scheme %load-path variable.
2735 * load.h: Add declarations for scm_sys_search_load_path,
2736 scm_sys_try_load_path.
2737 * init.c: Call scm_init_load_path.
2738 * Makefile.in (feature.o, load.o): Dependencies updated.
2740 * load.c, load.h: Rewrite using PROTO macro.
2742 Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2744 * gc.c (scm_cellp): New function: C predicate to determine if an
2745 SCM value can be regarded as a pointer to a cell on the heap.
2747 * gc.h: Added declaration of scm_cellp.
2749 * gdb_interface.h: New file: The GDB interface header from the GDB
2752 * gdbint.c: New file: GDB interface.
2754 * gdbint.h: New file: GDB interface.
2756 * libguile.h: Added #include <libguile/gdbint.h>.
2758 * init.c (scm_boot_guile): Added scm_init_gdbint.
2760 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
2761 Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
2762 found if object files and source are kept separate).
2764 Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
2766 * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
2768 Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
2770 * configure.in: Don't substitute the values of TCL_SRC_DIR and
2771 TK_SRC_DIR; they're not relevant any more.
2773 * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
2774 * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
2776 Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
2778 * PLUGIN/guile.config (xtra_cflags): Include .. in the header
2779 search path, so we can find the <libguile/MUMBLE.h> headers.
2781 * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
2783 * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
2784 implicit in the .c.o rule.
2785 (.c.x): Don't mention ALL_CFLAGS here; its value is included in
2788 Put the library path in a header file, instead of passing it on
2789 the command line in every compilation.
2790 * Makefile.in (libpath.h): New target.
2791 (feature.o): Depend on libpath.h.
2792 (clean): Delete libpath.h.
2793 (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
2794 * feature.c: ... #include "libpath.h" here.
2795 * .cvsignore: Ignore libpath.h.
2797 Don't install the unwashed masses of Guile header files in the
2798 main #include path; put most of them in a subdirectory called
2799 'libguile'. This avoids naming conflicts between Guile header
2800 files and system header files (of which there were a few).
2801 * Makefile.in (pkgincludedir): Deleted.
2802 (innerincludedir): New variable; this and $(includedir) are enough.
2803 (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
2804 (installed_h_files): Divide this up. Now this variable lists
2805 those header files which should go into $(includedir) (i.e. appear
2806 directly in the #include path), and ...
2807 (inner_h_files): ... this new variable says which files appear in
2808 a subdirectory, and are referred to as <libguile/mumble.h>.
2809 (h_files): List them both.
2810 (install): Create innerincludedir, not pkgincludedir. Put
2811 the installed_h_files and inner_h_files in their proper places.
2812 (uninstall): Corresponding changes.
2813 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
2814 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
2815 feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
2816 ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
2817 mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
2818 print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
2819 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
2820 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
2821 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
2822 vports.h, weaks.h: Find __scm.h in its new location.
2823 * __scm.h: Find scmconfig.h and tags.h in their new locations
2824 (they're both "inner" files).
2826 Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
2828 * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
2830 Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
2832 * posix.c: Doc fixes.
2834 Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
2836 * socket.c: Don't include a prototype for inet_aton; just use a
2837 K&R style declaration, to avoid warnings but minimize the chance
2838 of conflicts with the system.
2840 On NextStep, <utime.h> doesn't define struct utime, unless we
2841 #define _POSIX_SOURCE before #including it.
2842 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
2843 * acconfig.h: New comment text for above CPP symbol.
2844 * configure.in: Call it.
2845 * posix.c: #define _POSIX_SOURCE if it seems necessary.
2847 * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
2849 * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
2850 testing for __EMX__.
2852 * posix.c: #include <libc.h>, if it exists.
2854 * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
2855 don't even know if the latter exists.
2857 * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
2858 s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
2859 s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
2861 * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
2863 (scm_init_posix): Use them when initializing the Scheme constants
2866 Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
2868 * Makefile.in (libdir, includedir, bindir): Use the
2869 autoconf-supplied values, instead of deriving them ourselves.
2870 (pkgincludedir, datadir, pkgdatadir): New variables.
2871 (install, uninstall): Put the header files in a special
2872 subdirectory, not in the main search path.
2874 * Makefile.in (ALL_CFLAGS): Provide the proper value for
2875 LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
2877 * Makefile.in (IMPLPATH): Deleted; never used.
2879 * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
2880 on the Tcl/Tk source any more.
2881 (INCLUDE_CFLAGS): Remove references to the above.
2883 * Makefile.in (version.o): Corrected dependencies.
2885 Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
2887 * libguile.h: #include "version.h"
2889 * init.c (scm_boot_guile): Call scm_init_version.
2890 * gscm.c (gscm_run_scm): Call scm_init_version.
2892 * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
2893 GUILE_VERSION): AC_DEFINE these.
2894 (acconfig.h): #undef the above symbols.
2896 * Makefile.in (libobjs): Add version.o.
2897 (installed_h_files): Add version.h.
2898 (c_files): Add version.c.
2899 (gen_c_files): Add version.x.
2900 (version.o): New rule.
2901 (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
2902 chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
2903 fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
2904 genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
2905 mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
2906 objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
2907 procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
2908 simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
2909 strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
2910 throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
2911 weaks.o): Add version.h to dependency lists.
2912 (markers.o): Remove duplicate rule.
2914 * version.h: New file.
2916 * version.c: New file.
2918 Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
2920 * symbols.c (scm_strhash): scm_downcase is now a function, not an
2921 array; use it appropriately. Since GCC is quite happy to
2922 subscript functions, it never warned us about this; we should use
2923 -Wpointer-arith in the future. I guess we never tested
2926 Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
2928 * socket.c: Doc and copyright fixes.
2930 Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2932 * debug.c: Fixed and improved gdb support.
2934 Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2936 * socket.c: Added declaration of inet_aton to avoid compiler
2937 warning. (Hope this solution is correct.)
2939 * stime.c: Added declaration of ftime. (This is missing in
2942 Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
2944 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
2946 * Makefile.in (c_files): add strerror.c.
2948 * strerror.c: new file from Emacs' sysdep.c.
2949 maybe configure should also check for sys_errlist.
2951 * configure.in (AC_REPLACE_FUNCS): add strerror.
2953 Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2955 * debug.c (scm_init_debug): Added initialization for
2956 scm_evaluator_traps.
2958 * debug.h, debug.c: Various name changes.
2959 (Mostly prefixing with SCM_.) Renamed "debug-options" -->
2960 "debug-options-interface". See commentary in options.c.
2962 * options.h, options.c: Options now have documentation strings.
2963 Also added a long explanatory commentary.
2965 * eval.c, print.h, print.c, read.h, read.c: Modifications to
2968 * gscm.c, init.c, root.c, throw.c: Bug fixes:
2969 last_debug_info_frame is now updated in all cases.
2971 * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
2974 Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2976 * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
2977 Added option STACK_CHECKING.
2979 Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
2981 * Makefile.in: Added {debug,options,srcprop}.{h,c}
2983 * __scm.h: Removed symbols for debugging support.
2985 * acconfig.h: Added symbols for debugging support.
2987 * configure.in: Added user option for debugging support.
2988 --enable-debug will include the debugging code into libguile.a.
2990 * continuations.c (scm_make_cont): Enlarged the #if 0 around
2991 scm_relocate_chunk_to_heap.
2993 * debug.c: New file: low-level debugging support. It also
2994 includes support for debugging with gdb. (The extensions to gdb
2995 are written by Per Bothner at Cygnus.)
2997 * debug.h: New file: low-level debugging support.
2999 * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
3000 argument pairs. Extensive modifications to the debugging
3001 evaluator. Added "SECTION:" commentaries to clarify what happens
3002 when, during double compilation. Renamed EVALIMP --> EVALIM.
3003 Renamed EVAL --> XEVAL. Removed function evalcar. Defined
3004 evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
3005 the beginning of the file. New procedure: scm_unmemocopy.
3006 Added some global state variables needed by the debugging
3007 evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
3008 check_entry, check_apply, check_exit, debug_options and
3009 evaluator_traps. New acro: undefine.
3011 * eval.h: Renamed EVAL --> XEVAL.
3013 * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
3014 --> scm_make_weak_key_hash_table.
3016 * init.c (scm_restart_stack, scm_boot_guile): Added initialization
3017 of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
3019 * libguile.h: Conditionally include debug.h
3021 * objprop.c (scm_object_properties, scm_set_object_properties_x):
3022 scm_object_properties shouldn't return handle. `handle' now gets
3023 initialized in scm_set_object_properties_x. scm_object_properties
3024 doesn't any longer create an entry in scm_object_whash.
3026 * options.c: New file: handling of run time options.
3028 * options.h: New file: handling of run time options.
3030 * posix.c (scm_getpgrp): Cast pointer to getpgrp.
3032 * print.c: New procedure: scm_print_options
3034 * print.h: Defines for print options.
3036 * read.c: New procedure: scm_read_options
3038 * read.h: Defines for reader options.
3040 * root.h: Added scm_source_whash among scm_sys_protects.
3042 * srcprop.c: New file: source properties.
3044 * srcprop.h: New file: source properties.
3046 * throw.c (jbsmob): Jump buffers are now correctly allocated.
3047 (Bug found by A. Green.)
3049 * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
3051 * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
3053 Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
3055 * libguile.h: #include "objprop.h"; I guess this was forgotten.
3057 * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
3058 and should be called by the final client.
3060 Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
3062 * gc.h: Use the PROTO macro when declaring functions.
3063 * gc.c: Use the PROTO macro when declaring static functions.
3064 Remove the CPP hair around function definitions.
3066 * gc.c (scm_init_storage): Initialize scm_asyncs.
3068 * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
3069 preprocessor symbol; "__scm.h" is where it might get #defined.
3070 * __scm.h: Similar: #include <scmconfig.h> before testing
3073 * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
3075 Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
3077 * init.c (scm_boot_guile): Add init_func argument; call
3078 (*init_func) instead of calling scm_appinit; it's ucky to
3079 hard-code names for the user's procedures.
3080 * init.h (scm_boot_guile): Adjust declaration.
3082 * __scm.h (PROTO): New macro, for declaring functions with
3085 * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
3086 eliminate all the __STDC__ conditionals.
3087 (scm_boot_guile): Add declaration.
3088 * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
3089 Remove __STDC__ conditionals around function definitions; the
3090 declarations in init.h will provide the same information, more
3093 * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
3094 complain about it in the error message; the error message is
3095 adequate without that note, and there's nothing the user can do
3098 Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
3100 * Makefile.in (ancillary): Drop def.sed.
3102 * posix.c (scm_init_posix): Use numeric values, rather than
3103 CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
3104 F_OK. The symbols aren't available on some systems, and I'm
3105 pretty sure their values are fixed by common widespread practice.
3106 * ioext.c (scm_init_ioext): Code here defined them too; remove it.
3108 More functions unavailable on some systems.
3109 * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
3110 tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
3112 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
3113 * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
3114 scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
3115 bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
3116 stub that signals an error as the #else.
3118 * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
3120 Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
3122 * Fixes motivated by Petr Adamek <adamek@mit.edu>:
3124 * unif.c: include ramap.h.
3126 * read.c (endif): case_insensative_p renamed case_insensitive_p.
3128 * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
3130 * ports.c: include sys/ioctl.h.
3132 * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
3134 * configure.in: check for sys/ioctl.h.
3136 * ports.c: include <malloc.h> not "malloc.h".
3138 * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
3140 * fports.c: remove ttyname and tmpnam declarations.
3142 * posix.c: fewer ttyname declarations.
3144 * fports.c: include <string.h> not "string.h".
3146 * init.c, ioext.c: include string.h and unistd.h.
3148 * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
3150 * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
3151 genio.c, simpos.c, vports.c: include string.h.
3153 * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
3155 * fdsocket.c (getsockopt, setsockopt): change type of optlen from
3157 (scm_addr_buffer_size): change type from scm_sizet to int.
3158 (accept, getsockname, getpeername, recvfrom): change type of tmp_size
3159 from scm_sizet to int.
3161 * error.c: include unistd.h.
3163 * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
3166 * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
3168 * __scm.hd, def.sed: deleted.
3170 Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
3172 Changes for NeXT, suggested by Robert Brown.
3173 * configure.in: Call AC_TYPE_MODE_T.
3174 (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
3175 NeXT. Put header file list in alphabetical order.
3176 * configure, scmconfig.h.in: Regenerated.
3177 * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
3179 * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
3182 * acconfig.h: New file, providing documentation for the CPP
3183 symbols defined in configure.in
3184 * acconfig-1.5.h: Removed; superceded by the above.
3186 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
3188 * ioext.c (scm_sys_fdopen): fix the port-table assignment.
3190 * fports.c (scm_open_file): don't return #f, throw error.
3192 * ioext.c (fileno): renamed from %fileno.
3193 (soft-fileno): deleted.
3195 * ports.c (scm_port_revealed): don't need to check for -1 from
3197 (scm_set_port_revealed_x): return unspecified, not #f.
3199 * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
3201 * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
3203 * scmconfig.h.in: add HAVE_STRUCT_LINGER.
3205 * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
3207 Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
3209 * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
3210 This is necessary on Ultrix, and doesn't hurt portability.
3212 * Makefile.in (dist-dir): New target, implementing a new dist system.
3213 (installed_h_files): Put in alphabetical order.
3214 Remove duplicate entries for markers.h and unif.h.
3215 (c_files): Remove duplicate entries for markers.c.
3216 (ancillary): Renamed from anillery; all uses changed. Remove
3217 PLUGIN; it's a directory, and needs special treatment in dist-dir.
3218 Remove all the ../doc/* files; doc/Makefile.in handles that.
3220 * Makefile.in (libobjs): Remove duplicate entry for markers.o.
3222 * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
3223 every if must have an else, or else the whole command has a
3224 non-zero exit code whenever the if's condition is false.
3226 Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
3228 * posix.c: include string.h.
3230 Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
3232 * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
3235 * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
3236 Remove leading % from scheme names.
3237 Do not return error values, call SCM_SYSERROR or similar.
3239 * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
3241 Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
3243 * struct.c (scm_init_struct): new file.
3245 Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
3247 * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
3248 (scm_list_head): added list-head for rapidly chopping argument
3249 lists off of longer lists (and similar).
3251 Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
3253 * objprop.c (scm_object_property): assq the cdr of the whash
3254 handle for obj, not the handle itself.
3256 Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
3258 * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
3259 weak hash tables last of all marking to avoid an obscure gc bug.
3260 WARNING: circular lists stored in a weak hash table will hose us.
3262 Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
3264 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
3265 new functions similar to scm_substring_move_left_x and
3266 scm_substring_move_right_x.
3268 Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
3270 * init.c (scm_boot_guile): prevent gc with scm_block_gc not
3273 Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
3275 * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
3277 Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
3279 * strports.c (scm_strprint_obj): convenience function. C for
3280 (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
3282 * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
3283 removed to a separate library
3285 * init.c (scm_boot_guile): copied from guile-tcl.c.
3286 Initialization specific to tcl interpreters removed.
3288 Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
3290 * ports.c (scm_ports_prehistory): size malloced here doesn't
3291 matter so long as it is non-0 (got rid of "* 4").
3293 Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
3295 * gscm.h: gscm_mkarray eliminated (presumably was not being used
3296 since its definition was bogus).
3298 Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
3300 * mallocs.[ch]: back again (for rx at least).
3302 Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
3304 * ports.c: removed functions relating to the mapping between ports
3305 and descriptors. (That stuff is unix-specific and should be collected
3306 in a separate library).
3308 * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
3309 (Tom Mckay@avanticorp.com)
3311 Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
3313 * gc.c (scm_gc_sweep): Immediates in weak vectors were not
3314 handled correctly (SCM_FREEP was applied to them) -- test for
3315 NIMP. Keys in weak hash tables were spuriously (though harmlessly)
3316 being overwritten with #f. (brown@grettir.bibliotech.com)
3318 Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
3320 * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
3321 for a specific symbol or for all symbols.
3323 Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
3325 * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
3326 keys and weak values confused).
3328 Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
3330 * list.c (scm_last_pair): map '()=>'()
3332 Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
3334 * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
3335 Generalized assoc and hash-table functions.
3336 Factored pairs.c into multiple files.
3338 Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
3340 * gscm.c (gscm_run_scm): got rid of objprop.
3342 Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
3344 * genio.c (scm_getc):
3345 NOTE: fgetc may not be interruptable.
3347 * procprop.c (scm_stand_in_scm_proc):
3348 NOTE: don't use a alist here.
3349 (scm_set_procedure_properties_x): fix type checking throughout this file.
3351 * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
3353 * ports.c (scm_remove_from_port_table): adjust scm_mallocated
3354 after freeing part of the port table.
3356 Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
3358 * strports.c (scm_mkstrport):
3359 * vports.c (scm_make_soft_port): allocate a port table entry
3360 (possibly triggering gc) before setting the tag of the corresponding
3363 * pairs.c (scm_delq_x): never throw an error.
3365 * vectors.c (scm_make_vector): made the default vector fill argument
3366 into '() (much more useful than the previous value, "#unspecified")
3368 Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
3370 * ports.c (scm_add_to_port_table): Added fields
3371 to port table entries: file_name, line_num, col.
3372 Update these in open_file, gen_getc and gen_ungetc.
3373 Added procedures to access those fields.
3375 Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
3377 * procs.c (scm_make_subr_opt): new entry point for making
3380 Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
3382 * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
3384 Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
3386 * numbers.c (scm_exact_p): This function no longer
3387 implements "integer?".
3389 Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
3391 * gc.c (scm_gc_end): simulate a signal at the end of each GC.
3392 (scm_gc_stats): return an assoc of useful data. Replaces "room"
3393 and the stats reporting formerlly built into repl.
3395 * repl.[ch]: removed.
3396 GC statistics keeping moved to gc.c.
3397 Other statistics keeping can be done from Scheme.
3398 REPLS are now written in Scheme.
3400 Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
3402 * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
3403 conservatively marked objects).
3405 * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
3407 * error.c (scm_init_error): init system_error_sym here, not in repl.c.
3409 * feature.c (scm_compiled_library_path): moved here from repl.c.
3410 This file is for stuff relating specifically to Scheme libraries
3413 * eval.c (scm_m_define): don't give warning about redefinition, don't
3416 NOTE: this should throw a resumable exception with parameters --
3417 the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
3419 * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
3421 * error.c: scm_warn eliminated.
3423 * read.c (scm_lreadr): extra right paren gets an error, not a warning.
3425 * repl.c, marksweep.c, gc.c (various):
3426 lose exit_report, growth_mon.
3428 * gscm.c: got rid of verbosity functions.
3430 Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
3432 * throw.c (scm_ithrow): guard against the bad-throw hook changing
3433 between the call to procedurep and use.
3435 * error.c (scm_everr):
3437 * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
3440 * strports.c: don't reveal the port's string to the caller
3441 because it changes size.
3443 (stputc stwrite): check/change the strings length with interrupts
3446 * objprop.c (scm_set_object_property_x &c): use the generic
3447 hashing functions and be threadsafe.
3449 * eval.c (scm_unmemocar): do this operation in a thread-safe way.
3450 (per suggestion jaffer@gnu.ai.mit.edu).
3452 * mbstrings.c (scm_multi_byte_string): guard against argument list
3455 * strings.c (scm_make_string): loop cleanup
3457 * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
3460 * weaks.c (scm_weak_vector): guard against argument list
3463 * variable.c (scm_builtin_variable): check for/make a built-in
3466 * vectors.c (scm_vector): while filling the new array,
3467 guard against a list of fill elements that grows after
3468 the vector is allocated.
3470 * hashtab.c -- new file: general hash table
3471 functions. hash, hashq, hashv, hashx.
3473 * tags.h: made wvect an option bit of vector.
3475 Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
3477 * symbols.c: made the basic symbol table operations atomic.
3479 * root.c &c.: collected stack-specific global state.
3480 linum/colnum etc *should* be port-specific state.
3482 * struct.c (scm_init_struct): init the first struct type during
3483 initialization to fix a race condition.
3485 * continuations.c (scm_dynthrow): pass throwval in the 'regs'
3486 object, not in a global.
3487 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
3489 * throw.c (_scm_throw): Pass throwval on the stack, not in a global
3490 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
3492 * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
3493 and C symbols to begin with SCM_ or scm_.
3495 Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
3497 * gsubr.c (scm_gsubr_apply): statically allocate the
3498 array of arguments (bothner@cygnus.com).
3500 Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
3502 * scmsigs.c: Simplified to use async rountines.
3504 * async.c: New support for interrupt handlers.
3506 Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
3508 * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
3509 set the multi_byte flag correctly in symbols. This is wrong.
3510 intern_obbary_soft and msymbolize should take an extra parameter.
3511 Also, weird multibyte symbols don't print correctly.
3512 The weird symbol syntax is also a bit bogus (emacs doesn't quite
3515 Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
3517 * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
3518 use the system symhash. == #t means create an uninterned symbol.
3520 Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
3522 * strings.c (scm_make_shared_substring): build'em.
3523 It might better to keep a table of these and use one
3524 less cons-pair per shared-substring.
3526 Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
3528 * strings.c (scm_string_shared_substring): create shared
3529 substrings. (Doesn't handle mb strings yet).
3531 * mbstrings.c (scm_print_mb_string): handle RO strings.
3533 * print.c (scm_iprin1): print substrings as their non-substring
3534 counterparts (dubious).
3536 * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
3539 * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
3541 * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
3543 * eq.c (scm_equal_p): handle RO and MB strings.
3545 * symbols.c (scm_string_to_symbol):
3546 (scm_string_to_obarray_symbol):
3547 * strop.c (scm_i_index):
3549 (scm_string_null_p):
3550 (scm_string_to_list):
3551 * strings.c (scm_string_length):
3554 (scm_string_append):
3555 * simpos.c (scm_system):
3557 * fports.c (scm_open_file):
3558 * strorder.c (scm_string_equal_p):
3559 (scm_string_ci_equal_p):
3560 (scm_string_less_p):
3561 (scm_string_ci_less_p):
3562 * pairs.c (scm_obj_length):
3563 * mbstrings.c (scm_multi_byte_string_length):
3565 Use RO string macros for RO strings.
3567 Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
3569 * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
3571 * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
3572 index/rindex. Do handle embedded \000 characters.
3574 Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
3576 * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
3577 Eliminate a (presumed) warning on some systems.
3579 * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
3580 (Mikael Djurfeldt <mdj@nada.kth.se>)
3582 Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
3584 * eval.c (scm_map): added argument type checking.
3585 (kawai@sail.t.u-tokyo.ac.jp)
3587 * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
3588 for C++. (Seth Alves <alves@gryphon.com>)
3590 (gscm_cstr): uses an uninitialized local variable causing
3591 segv. (kawai@sail.t.u-tokyo.ac.jp)
3594 * lvectors.c (scm_get_lvector_hook):
3595 In guile-ii, the lvector code was broken. It was fixed in guile-iii.
3596 It seems to me like if it is broken again in guile-iv...Here is a patch.
3597 "! || (LENGTH (keyvec) == 0))"
3598 (From: Mikael Djurfeldt <mdj@nada.kth.se>)
3601 * gscm.c (gscm_sys_default_verbosity):
3602 incorrectly declared for non-__STDC__
3603 (Tom_Mckay@avanticorp.com)
3605 * ports.c (scm_setfileno): Tweak the macro a bit
3606 to make it easier to port to systems that use
3607 more than a single structure field to hold a descriptor.
3609 * debug.c (change_mode): Avoid GNUCism "int foo[n];"
3610 Give a warning, not an error, for unrecognized modes.
3612 * eval.c (SCM_CEVAL):
3613 static char scm_s_for_each[];
3614 static char scm_s_map[];
3617 * strings.c (scm_string_p):
3618 static char s_string[];
3621 * struct.c (scm_sys_struct_set_x):
3622 static char s_sys_make_struct[];
3623 static char s_sys_struct_ref[];
3624 static char s_sys_struct_set_x[];
3625 Rearrange code to eliminate those forward decls for the sake of
3628 * variable.c (make_vcell_variable): static char s_make_variable[];
3631 * fports.c (scm_port_mode):
3632 chars modes[3] = "";
3636 (Tom_Mckay@avanticorp.com)
3639 * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
3640 scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
3641 (Tom_Mckay@avanticorp.com)
3643 * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
3644 scm_num_eq_p() was scm_equal_p().
3645 (Tom_Mckay@avanticorp.com)
3647 * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
3648 (Tom_Mckay@avanticorp.com)
3650 Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
3652 * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
3653 (Tom_Mckay@avanticorp.com)
3655 * strop.c (scm_substring_fill_x):
3656 Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
3657 (Tom_Mckay@avanticorp.com)
3659 * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
3660 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
3662 * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
3663 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
3665 * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
3666 can turn into an obscure gc bug.
3668 * chars.c (scm_char_p): fixed PROC call.
3670 * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
3673 Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
3675 * elisp.c (new file): dynamic scoping and other bits for
3676 elisp. Don't use this yet unless you specificly want to
3677 hack on elisp emulation.
3679 * dynwind.c (scm_dowinds): When entering or leaving a dynamic
3680 scope created by scm_with_dynamic_bindings_operation_x, swap
3681 the bindings of that scope with the corresponding globals.
3683 * continuations.c (scm_make_cont): when a continuation is captured,
3684 relocate the continuation stack chunks registered on the wind chain
3687 Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
3689 * eval.c (SCM_CEVAL): if the function position evaluates
3690 to a macro, process it accordingly. (Previously, macros were
3691 handled only if the function position was a symbol naming a
3692 variable bound to a macro).
3694 Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
3696 * eval.c (scm_m_set): allow multi-variable set! like
3699 Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
3701 * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
3702 STREAM of ports into the port table and replaced it with a
3705 * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
3707 * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
3709 * mbstrings.c (new file): functions on multi-byte strings.
3711 * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
3712 for multi-byte strings. Moved the string tag.
3714 * chars.h chars.c repl.c (many functions): made scm_upcase and
3715 scm_downcase functions that are safe for extended character sets.
3717 Changed the range of integer->char.
3719 Changed the type of SCM_ICHR.
3721 Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
3723 * guile.c: Changed init file name from "SCM_INIT_PATH" to
3726 Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
3728 * guile.c (gscm_is_gscm_type): New function. (Without this how will we
3729 know that it's safe to pass an object to gscm_get_type?)
3730 (gscm_get_type): Fix tyop in error message.
3732 * variable.c (scm_variable_ref): fixed assertion test.
3733 (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
3735 * gscm.h: fixed several prototypes, notably gscm_vref.
3736 Add gscm_is_eq and temporarily commented out gscm_eq (see
3737 the note in gscm.h near gscm_eq if this change effects your
3739 (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
3741 * pairs.c (scm_obj_length): see next entry.
3743 * gscm.h (gscm_obj_length): A way to get an integer
3744 length for lists, strings, symbols (treated as strings),
3745 and vectors. Returns -1 on error.
3747 * eq.c (scm_equal_p): fixed smob case.
3748 (William Gribble <grib@arlut.utexas.edu>)
3750 * Makefile.in (X_CFLAGS): defined.
3751 (William Gribble <grib@arlut.utexas.edu>)
3753 * gscm.h (gscm_2_double): provided now
3754 (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
3756 Tue Jun 13 01:04:09 1995 gnu