1 Sun Mar 2 16:34:40 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3 * stime.c (scm_init_stime): Add feature "current-time".
5 Sun Mar 2 06:37:31 1997 Gary Houston <ghouston@actrix.gen.nz>
7 * throw.h: prototype for scm_exit_status.
8 * throw.c (scm_handle_by_message): if a 'quit is caught, use its
9 args to derive an exit status. Allows (quit) to work from a
11 (scm_exit_status): new function.
14 Sat Mar 1 00:09:15 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
16 * eval.c (scm_deval): Removed some old code.
17 (ENTER_APPLY): Bugfix: Reset apply-frame trap on trap as is done
19 (ENTER_APPLY, scm_deval): Reset trace flag on apply-frame and
22 * symbols.c (msymbolize): Bugfix: Must initialize property list to
25 * procs.c: Introduce the existent C function scm_thunk_p at the
28 Wed Feb 26 12:53:58 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
30 * symbols.c, symbols.h (scm_symbol_value0): New function. Can be
31 used from C to easily lookup the value of a symbol in the current
34 Tue Feb 25 00:14:10 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
36 * unif.c (scm_init_unif): Added #include "unif.x". (There are two
37 scm_init_unif in this file. This will also fix a previous problem
40 * configure.in: Added AM_MAINTAINER_MODE
42 Fri Feb 21 23:07:26 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
44 * gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to
47 Fri Feb 21 18:00:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
49 * Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
50 source files that are not always included in libguile but should
51 have their dependencies calculated by automake. This variable is
52 recognized by automake, no further magic is needed.
53 (libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@. Libtool wants
54 to deal exclusively with *.lo files, as it seems. The *.o files
55 are built automatically when the corresponding *.lo file gets
58 Wed Feb 19 14:04:23 1997 Jim Blandy <jimb@floss.cyclic.com>
60 * list.h (scm_list_cdr_ref): Delete prototype; function no longer
63 Thu Feb 13 21:44:07 1997 Gary Houston <ghouston@actrix.gen.nz>
65 * unif.c (scm_array_set_x): minor change to argument error checking.
67 Tue Feb 11 18:19:47 1997 Jim Blandy <jimb@floss.cyclic.com>
69 * Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
70 inet_aton.c, srcprop.c, stacks.c, and strerror.c from this list.
71 They should only be included in the library at configure.in's
73 (libguile_la_LDADD): Include the appropriate .lo files here.
74 (libguile_la_DEPENDENCIES): List the corresponding .o files here,
75 so we know when to build them (and their .lo bretheren).
76 * configure.in (LIBLOBJS): New substituted variable. We let
77 configure decide which .o files to include in LIBOBJS, and then
78 put the corresponding list of .lo files in LIBLOBJS. The latter
79 is what we pass to libtool.
80 * Makefile.in, configure: regenerated.
82 Mon Feb 10 00:08:08 1997 Mikael Djurfeldt <mdj@kenneth>
84 * symbols.c (scm_sysintern0): New function. Contains the core of
85 old scm_sysintern but doesn't take a second value argument.
86 (scm_sysintern): Now uses scm_sysintern0.
87 (scm_sysintern_no_module_lookup): Renamed to
88 scm_sysintern0_no_module_lookup and doesn't take a second value
91 * symbols.h (scm_sysintern0: Added declaration.
93 * options.c (scm_init_opts): Use scm_sysintern0 instead of
94 scm_sysintern when interning option keys. Otherwise we risk
95 destroying the values of already interned variables.
97 * symbols.c (scm_sym2vcell): Bugfix: Treat definedp as
98 scheme-level boolean (use SCM_NFALSEP).
100 * backtrace.c (scm_init_backtrace): Make Scheme-level variable
102 (scm_backtrace): New function. (C version of old function from
103 boot-9.scm) Motivation: Make it possible to display backtraces
104 without depending on boot-9.scm. (I'm uncertain if this
105 motivation is good enough...)
107 * root.h (scm_root_state): Add member the_last_stack_var.
108 (scm_the_stack_var): Defined to scm_root->the_last_stack_var.
110 * root.c (mark_root): Mark scm_the_last_stack_var.
112 * init.c (scm_start_stack): Initialize scm_the_last_stack_var to
115 Sun Feb 9 18:04:41 1997 Mikael Djurfeldt <mdj@kenneth>
117 * throw.c (mark_lazy_catch, free_lazy_catch): Removed.
118 1. mark_lazy_catch didn't mark the smob.
119 2. Both functions above have standard variants:
120 (lazy_catch_funs): Changed mark_lazy_catch --> scm_mark0,
121 free_lazy_catch --> scm_free0.
123 Fri Feb 7 17:30:26 1997 Jim Blandy <jimb@floss.cyclic.com>
125 * throw.c (scm_internal_lazy_catch): New function.
126 (scm_lazy_catch): Rewritten to use it.
127 (scm_ithrow): Handle the new lazy catch representation.
128 Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
129 that doesn't have a jmpbuf is a lazy catch clause.
130 (tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
131 free_lazy_catch, print_lazy_catch, lazy_catch_funs,
132 make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
134 (scm_init_throw): Register the new lazy-catch smob type.
135 * throw.h (scm_internal_lazy_catch): decl for new function.
137 * throw.c (scm_internal_catch): Doc fixes.
139 * alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
140 configure.in. Including this might cause problems if applications
141 that link against libguile include their own copies of alloca, but
142 if they're using autoconf, they should be adding libguile to LIBS
143 before calling AC_FUNC_ALLOCA anyway, in which case they'll find
144 the copy in libguile, and things will be okay. (I think.)
146 Thu Feb 6 03:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
148 * strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
150 strop.h: move prototypes too.
152 Wed Feb 5 08:33:00 1997 Gary Houston <ghouston@actrix.gen.nz>
154 * posix.c (scm_init_posix): don't intern EINTR since it's now done
157 * ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR
158 etc. I deleted them from filesys.c long ago, but didn't
159 notice they were here too (although ineffective since
160 sys/stat.h wasn't included).
162 Tue Feb 4 18:17:50 1997 Tom Tromey <tromey@cygnus.com>
164 * eval.c: Don't define alloca in GCC case. gcc will automatically
165 use __builtin_alloca if appropriate.
167 Tue Feb 4 16:57:40 1997 Jim Blandy <jimb@floss.cyclic.com>
169 * eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
170 (SCM_CEVAL, SCM_APPLY): Call it, instead of setjmp, to make sure
171 that values of automatic variables are preserved. See comments
172 for safe_setjmp for details.
174 Change from Thomas Morgan:
175 * variable.c: Include eq.h.
176 (var_equal): New function.
177 (variable_smob): Use var_equal as the discriminator for variables.
179 * throw.c (s_throw): Remove extraneous declaration.
181 * configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
182 * eval.c: Add necessary CPP cruft to support that.
183 * configure, Makefile.in, scmconfig.h.in: regenerated.
185 Change from Thomas Morgan:
186 * procprop.c (scm_procedure_properties): Convert the Scheme
187 boolean returned by scm_procedure_p into a C boolean before using
188 it as a condition for SCM_ASSERT.
189 (scm_procedure_property): Likewise.
191 * simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
192 indications of Unixness.
195 Tue Feb 4 05:07:35 1997 Gary Houston <ghouston@actrix.gen.nz>
197 * * net_db.c (scm_lnaof): change scheme name from lnaof to inet-lnaof.
199 Mon Feb 3 06:12:37 1997 Gary Houston <ghouston@actrix.gen.nz>
201 * read.c (scm_lreadr): use scm_misc_error to improve one of the
202 "unknown # object" error messages.
204 * strop.c (scm_i_index, scm_i_rindex): combine into one procedure
205 (scm_i_index) and declare it static. Add a 'direction' argument
206 to indicate what way the search should go.
207 (scm_i_index): throw out-of-range error instead of wrong-type-arg
209 (scm_string_index, scm_string_rindex): adjust usage of scm_i_index.
210 strop.h: remove scm_i_index, scm_i_rindex prototypes.
212 Fri Jan 31 04:33:11 1997 Gary Houston <ghouston@actrix.gen.nz>
214 * ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.
216 * * posix.c (scm_fork): Scheme name changed from fork to primitive-fork,
217 to avoid clash with various scsh forks.
219 Thu Jan 30 20:14:09 1997 Mikael Djurfeldt <mdj@syk-0606.pdc.kth.se>
221 The following two changes (ramap.c, throw.c) are motivated by the
222 apparent unportability of forward declarations of static arrays of
223 the form `static foo bar[];'.
225 * ramap.c (scm_array_fill_x): Moved above scm_array_fill_int.
226 (ra_rpsubrs, ra_asubrs): Moved to the top of array code.
228 * throw.c (scm_throw): Moved above scm_ithrow.
230 * options.h: Removed the extern declarations of scm_yes_sym and
231 scm_no_sym since these are static.
233 Fri Jan 24 06:16:32 1997 Gary Houston <ghouston@actrix.gen.nz>
235 * ports.c: add SCM_PROC declarations for pt-size and pt-member.
237 * Makefile.am: remove AWK=@AWK@.
238 Add a rule for generating errnos.list.
239 (CLEANFILES): put errnos.list here instead of in DISTCLEANFILES.
241 * configure.in: add AC_SUBST(AWK) and AC_SUBST(ERRNO_EXTRACT).
242 don't extract errnos, just set a variable (avoids the
243 need to recompile error.c just because configure is run.)
245 * unif.h: update prototypes.
246 * unif.c (scm_uniform_array_read,write): change the offset and
247 length arguments to start and end, for consistency.
249 * __scm.h: uncomment SCM_ARG6 and SCM_ARG7, I needed SCM_ARG6.
251 * ioext.h: update prototypes.
252 * * ioext.c (scm_read_delimited_x): replaces scm_read_line and
253 scm_read_line_x, it's a more general procedure using an
254 interface from scsh. read-line and read-line! are now defined
256 * Note that the new read-line trims the terminator
257 by default, previously it was appended to the returned string. An
258 optional argument specifies how to process the terminator (scsh
259 compatible). For the old behaviour: (read-line port 'concat).
260 scm_read_line, scm_read_line_x: deleted. (read-line port 'split)
261 returns a pair, but is converted to multiple values if the scsh
264 socket.h: update prototypes.
265 * socket.c (scm_recvfrom): for consistency with other procedures,
266 take start and end as separate optional arguments.
267 * (scm_recv, scm_recvfrom): don't allow the second argument
268 to be a size, only a buffer. Change the scheme names to
269 recv! and recvfrom!. Don't return the buffer.
271 * ioext.h, posix.h: move prototypes too.
272 * ioext.c, posix.c (scm_read_line, scm_read_line_x, scm_write_line:
273 moved back from posix.c to ioext.c. Also move #includes of "genio.h"
274 "read.h" and "unif.h".
275 * ioext.c: include "chars.h"
277 Mon Jan 20 19:54:49 1997 Marius Vollmer <mvo@zagadka.ping.de>
279 * dynl.c: The dynamic linking and module registration functions
280 are now defined even when dynamic linking is not available for the
281 host system. Some of their functionality can be done without
282 dynamic linking; when it's really needed, they throw errors.
284 Thu Jan 16 16:39:29 1997 Marius Vollmer <mvo@zagadka.ping.de>
286 * configure.in: Only define DYNAMIC_LINKING when one of the system
287 dependent functions is detected.
288 * dynl.c (scm_dynamic_func): New function to get the address of a
289 function in a dynamic object.
290 (scm_dynamic_call, scm_dynamic_args_call): Accept the values
291 produced by scm_dynamic_func as the thing to call.
293 Sun Jan 12 21:09:42 1997 Marius Vollmer <mvo@zagadka.ping.de>
295 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c: Restructured.
296 (scm_register_module_xxx, scm_registered_modules,
297 scm_clear_registered_modules): New functions.
299 Sat Jan 11 21:37:15 1997 Marius Vollmer <mvo@zagadka.ping.de>
301 * symbols.c (scm_sysintern): Renamed to
302 scm_sysintern_no_module_lookup.
303 (scm_sysintern): New function to take the place of the old
304 scm_sysintern. It uses the current toplevel lookup closure to give
305 the symbol its value. This is a temporary hack to put packages
306 like gtcltk into their own module.
307 (scm_can_use_top_level_lookup_closure_var): New variable to tell
308 us whether `scm_top_level_lookup_closure_var' has been initialized
310 * eval.c (scm_init_eval): Set it.
312 Sat Jan 18 00:03:31 1997 Gary Houston <ghouston@actrix.gen.nz>
314 * fports.c (scm_open_file): pass errno to scm_syserror_msg.
315 * filesys.h: update prototypes. Remove macros: SCM_FD_P, SCM_FD_FLAGS,
317 * filesys.c (scm_sys_stat, scm_sys_lstat): pass errno to
319 * (scm_sys_read_fd, scm_sys_write_fd, scm_sys_close, scm_sys_lseek,
320 scm_sys_dup): deleted: FD capability will be added to other
322 * Remove support for the FD object type: scm_tc16_fd, scm_fd_print,
323 scm_fd_free, fd_smob, scm_intern_fd.
324 * (scm_open): renamed from scm_sys_open. Return a port instead of
325 an FD object. Make the mode argument optional.
326 * (scm_sys_create): deleted, it's just a special case of open.
327 (scm_init_filesys): move interning of constants O_CREAT etc.,
328 here (were previously using SCM_CONST_LONG macro).
329 Add missing constants: O_RDONLY, O_WRONLY, O_RDWR, O_CREAT.
331 (numerous _sys_ procedures): remove gratuitous _sys_ from names.
332 include "fports.h" and <stdio.h>
333 (scm_stat, scm_select): don't support FD objects.
335 * error.h: adjust scm_syserror_msg prototype.
336 * error.c (scm_syserror_msg): take an extra argument for errno.
337 Using the global value didn't always work, since it could be
338 reset by procedure calls in the message or args arguments.
340 * fports.c (scm_setbuf0): call setbuf even if FIONREAD is not defined.
341 I don't understand why the check was there (and what about the
344 * strop.c (scm_string_copy): allow shared substrings to be copied.
346 * unif.h: corresponding change to prototypes.
347 * unif.c (scm_uniform_array_read_x, scm_uniform_array_write_x):
348 recognize two new optional arguments: offset and length. Allow
349 the port argument to be an integer (file descriptor, for scsh).
350 Include <unistd.h> for "read" prototype.
352 Tue Jan 14 02:42:02 1997 Gary Houston <ghouston@actrix.gen.nz>
354 * socket.c: don't include filesys.h.
356 Mon Jan 13 03:47:04 1997 Gary Houston <ghouston@actrix.gen.nz>
358 * Makefile.am: add AWK=@AWK@ (?)
360 * Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
362 Add a rule to generate errnos.c from errnos.
363 * error.c (scm_init_error): include errnos.c.
364 * errnos_cnvt.awk: new file, converts the list of errno codes to
366 * errnos_get.c: new file.
367 * errnos.default: new file, contains errnos to try if they can't
368 be extracted from errno.h.
369 * configure.in: if using GCC, try and extract errno codes from
373 Sat Jan 11 14:47:00 1997 Marius Vollmer <mvo@zagadka.ping.de>
375 * configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
376 * Makefile.am: Made libguile into a libtool library.
377 * PLUGIN/guile.config: Removed "-L ../libguile" from xtra_cflags.
378 Set libtool_libs to indicate that libguile is a libtool library.
379 See guile/ChangeLog for details.
380 * .cvsignore: ignore "*.lo", the libtool library objects.
382 Wed Jan 8 06:54:54 1997 Gary Houston <ghouston@actrix.gen.nz>
384 * net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
385 use htons in getservbyport argument.
387 Tue Jan 7 18:11:24 1997 Jim Blandy <jimb@floss.cyclic.com>
389 * ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
390 * smob.h: (SCM_PTOBNUM): Removed entirely; this definition is a
393 * objprop.c (scm_object_property): No need to take the CDR of the
394 value returned by scm_object_properties, since Aug 20 change.
396 * configure.in: When checking for struct linger, #include
397 <sys/types.h> as well as <sys/socket.h>. I've never known
398 <sys/types.h> to cause any portability problems, and Solaris's
399 <sys/socket.h> needs it.
400 * configure: Rebuilt.
402 I think the Sun compiler has chosen a perverse way to interpret
403 ANSI declarations combined with K&R definitions. We'll
404 appease it a little bit. But when it invades France, we fight.
405 * print.c (scm_iprlist): Change 'tlr' argument to an int.
406 * print.h (scm_iprlist): Here too.
407 * numbers.c (scm_divbigdig): Change definition to match
408 declaration in numbers.h.
409 * unif.c (scm_makflo): Change definition to match declaration in
412 * init.c (scm_boot_guile): Don't return the value of
413 scm_boot_guile_1. This function doesn't return a value;
414 scm_boot_guile_1 doesn't return a value (or return at all).
416 * eval.c (unmemocopy): Add a semicolon to appease the Sun
419 * simpos.c (SYSTNAME): Add case for AIX; otherwise it won't
420 compile. I have a feeling this function is a bad idea anyway ---
421 one should always test for features, not systems.
423 * smob.h (SCM_SMOBNUM, SCM_PTOBNUM): Remove extraneous
424 semicolons. Only pure luck kept this from being noticed earlier.
426 Tue Jan 7 15:04:06 1997 Mikael Djurfeldt <mdj@kenneth>
428 * socket.c (scm_recvfrom): Added missing semicolon.
430 Mon Jan 6 20:39:08 1997 Gary Houston <ghouston@actrix.gen.nz>
432 * socket.c (scm_recvfrom): allow buff_or_size to be a list containing
433 the buffer and start and end positions for scsh networking
436 Sun Jan 5 13:53:53 1997 Jim Blandy <jimb@floss.cyclic.com>
438 * configure.in: Revert previous change to this file; the problem
439 is due to transient automake weirdness.
440 * configure: Rebuilt.
442 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in, not
443 PLUGIN/guile.libs. configure generates the latter from the former.
444 * Makefile.in: Rebuilt.
446 * configure.in: Call AM_PROG_INSTALL; the automake manual says we
447 need this if we install scripts, like guile-snarf.
448 * configure: Rebuilt.
450 Thu Jan 2 01:56:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
452 * Makefile.am (EXTRA_DIST): Added DYNAMIC-LINKING
454 Sat Dec 28 19:14:01 1996 Gary Houston <ghouston@actrix.gen.nz>
456 * socket.c (scm_addr_vector): fix faulty scm_listify.
458 Sat Dec 28 13:55:58 1996 Marius Vollmer <mvo@zagadka.ping.de>
460 * read.c (scm_lreadr): Encountering EOF after skipping a SCSH
461 style block comment is no longer considered an error.
463 Fri Dec 27 13:44:23 1996 Marius Vollmer <mvo@zagadka.ping.de>
465 * PLUGIN/guile.libs.in: New file.
466 * PLUGIN/guile.libs: Removed from repository.
467 * configure.in: Create PLUGIN/guile.libs from
468 PLUGIN/guile.libs.in. This is for including additonal libraries
469 needed for dynamic linking.
470 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in
471 instead of PLUGIN/guile.libs.
473 * Makefile.am: Added explicit dependency "dynl.o: dynl.x".
475 Sun Dec 22 23:06:14 1996 Jim Blandy <jimb@floss.cyclic.com>
477 * list.c (scm_delq_x, scm_delv_x, scm_delete_x): Delete all
478 occurrences of the given element from the list, not just the
479 first. This is how the Emacs Lisp functions behave, how the
480 analogous Common Lisp functions behave, and (I believe) how the
481 older Maclisp functions worked. I realize that this change may
482 break code, but it seemed better to break it before the Guile
485 * gc.c (scm_protect_object, scm_unprotect_object): New functions.
486 Their prototypes were already present in gc.h, but they weren't
488 (scm_init_storage): Initialize scm_protects.
489 * root.c (scm_protects): New element of scm_sys_protects.
491 * net_db.h (scm_init_net_db): Fix spelling from scm_init_netdb.
493 Sat Dec 21 15:38:32 1996 Jim Blandy <jimb@floss.cyclic.com>
495 * libguile.h: Added #include "libguile/net_db.h".
497 * libguile.h: Don't #include "libguile/libpath.h", contrary to Oct
498 30 change. That file is only meant for communication between the
499 configuration process and load.c. If code linked against libguile
500 wants to get at the paths mentioned in libpath.h, it can call
501 functions declared in load.h.
503 Sat Dec 21 14:50:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
505 * libguile.h: Removed #include "libguile/fdsocket.h"
507 * net_db.c: Added #include <sys/socket.h>.
509 Sat Dec 21 00:33:03 1996 Gary Houston <ghouston@actrix.gen.nz>
511 * filesys.c (scm_input_waiting_p): use select in preference to
512 FIONREAD, since the latter doesn't detect EOF.
513 Throw error if neither select nor FIONREAD available.
515 * socket.c (scm_connect): take a port, not a fd object.
516 (scm_fill_sockaddr): throw an error if fam is not recognised.
517 (scm_bind): use scm_fill_sockaddr.
518 (scm_listen): take a port, not a fd object.
519 (scm_accept): take and return a port. return #f in the car if
521 (scm_sock_fd_to_port): new procedure.
522 (scm_socket): use scm_sock_fd_to_port.
523 (scm_addr_vector): throw error if unrecognised address type.
524 take an extra argument with the calling procedure name.
525 (scm_getsockname): take a port. return #f if address can't be got.
526 (scm_getpeername): take a port. return #f if address can't be got.
527 (scm_recvfrom): take a port. return #f for address component if can't
529 (scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
530 scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
532 Fri Dec 20 23:06:53 1996 Jim Blandy <jimb@floss.cyclic.com>
534 * throw.c (scm_internal_catch): Make body funcs and handler funcs
535 use separate data pointers, to allow them to be designed
536 independently and reused.
537 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message):
538 Renamed from catch_body, catch_handler, and uncaught_throw; made
540 (struct scm_catch_body_data): Renamed from catch_body_data; moved
542 (scm_catch): Use the above.
543 (scm_throw): Don't bother printing a message for an uncaught
544 throw; we establish a default handler in init.
545 * throw.h (scm_internal_catch): Prototype updated.
546 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message): New
548 (struct scm_body_thunk_data): New structure, used as data
549 argument to scm_body_thunk.
550 * init.c (struct main_func_closure): New structure, packaging up
551 the data to pass to the user's main function.
552 (scm_boot_guile): Create one. Pass it to scm_boot_guile_1.
553 (scm_boot_guile_1): Pass it through to invoke_main_func. Use
554 scm_internal_catch to establish a catch-all handler, using
555 scm_handle_by_message. This replaces the special-case code in
557 (invoke_main_func): Body function for scm_internal_catch; invoke
558 the user's main function, using the main_func_closure pointer to
559 decide what to pass it.
560 * root.c (struct cwdr_body_data): Remove handler_proc member.
561 (cwdr): Use scm_handle_by_proc instead of cwdr_handler.
562 (cwdr_handler): Removed.
564 Thu Dec 19 00:00:26 1996 Gary Houston <ghouston@actrix.gen.nz>
566 * socket.h (SCM_P): update bind prototype.
567 * socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
569 (scm_socket): return a port, not a file descriptor object.
570 include "fports.h" and <unistd.h>
571 (scm_bind): take a port, not a file descriptor object.
572 take an extra argument for address args.
574 * net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
575 INADDR_NONE, INADDR_LOOPBACK.
577 Tue Dec 17 22:58:26 1996 Gary Houston <ghouston@actrix.gen.nz>
579 * init.c: include net_db.h and not fdsocket.h.
580 (scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
582 * Makefile.am: corresponding changes.
583 * socket.h: renamed from fdsocket.h, fix names.
584 * net_db.h: renamed from socket.h, fix names.
585 * socket.c: renamed from fdsocket.c.
586 remove _sys from procedure names.
587 (scm_init_socket): rename from scm_init_fdsocket. include socket.x.
588 add "socket" to features list.
589 * net_db.c: renamed from socket.c.
590 remove _sys from procedure names.
591 (scm_init_net_db): rename from scm_init_socket. include net_db.x.
592 add "net-db" to features list.
593 include "net_db.h". don't include <sys/socket.h> or
596 Thu Dec 19 14:03:24 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
598 * tags.h (scm_tags): Removed comma at end of last enumerator.
600 Thu Dec 19 02:54:59 1996 Jim Blandy <jimb@floss.cyclic.com>
602 Don't use GCC extensions to allocate space for debugging frames.
603 (Here he goes again! Why do we put up with this?!)
604 * debug.h (scm_debug_frame): Make the 'vect' member a pointer to
605 an scm_debug_info structure, not an in-line array of them. Add
606 'info' member, to say how many vect elements we've used, for eval
608 * eval.c (SCM_CEVAL): Use alloca to allocate space for vect. Use
609 a new variable debug_info_end to mark the end of vect, instead of
610 the address of the 'info' pointer itself.
611 [DEVAL] (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Remove casts of
612 &debug to scm_debug_frame *; debug is a real scm_debug_frame now.
613 (SCM_APPLY): Explicitly allocate space for debug.vect.
614 * debug.c (scm_m_start_stack): Same, for vframe.vect.
615 * stacks.c: Adjusted for new debug frame structure.
616 (RELOC_INFO, RELOC_FRAME): New macros.
617 (stack_depth, read_frames): Use them, and new scm_debug_frame
618 element 'info', instead of magically knowing that eval frames have
619 an info pointer sitting after vect.
620 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Use
622 (scm_init_stacks): Formatting tweaks.
624 Wed Dec 18 14:57:57 1996 Jim Blandy <jimb@floss.cyclic.com>
626 Give GCC more control flow information, so it can be sure that
627 variables aren't used uninitialized.
628 * error.h (scm_error, scm_syserror, scm_syserror_msg,
629 scm_sysmissing, scm_num_overflow, scm_out_of_range,
630 scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
631 scm_misc_error): Tell GCC that these functions never return.
632 * struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
633 out the field type, call abort if SCM_ASSERT returns, to placate
635 * stacks.c (scm_make_stack, scm_last_stack_frame): abort if
636 scm_wta ever returns. We can't handle this case anyway, and this
637 gives the optimizer more information.
638 * unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
639 scm_wta ever returns.
641 In some cases, the code is fine, but GCC isn't smart enough to
642 figure that out; this usually happens when one variable is only
643 initialized and used when a particular condition holds true, and
644 we know that condition will never change within a given invocation
645 of the function. In this case, we simply initialize the variables
646 to placate the compiler, hopefully to a value which will cause a
647 crash if it is ever actually used.
648 * print.c (scm_iprin1): Initialize mw_pos.
649 * read.c (scm_lreadrecparen): Initialize tl2, ans2.
650 * throw.c (scm_ithrow): Initialize dynpair.
651 * unif.c (scm_uniform_vector_ref): Initialize cra.
652 * struct.c (init_struct): Initialize prot.
653 * mbstrings.c (scm_print_mb_symbol): Initialize mw_pos and inc.
655 * strports.c (scm_eval_0str): Don't return uninitialized garbage
656 if EXPR contains no expressions.
658 Wed Dec 18 11:43:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
660 * eval.c, debug.h: Revert changes of Dec 16 and Nov 21. They
661 cause an infinite loop (???). So much for the algebraic
662 equivalency of variable-sized arrays and alloca...
664 Tue Dec 17 20:29:03 1996 Marius Vollmer <mvo@zagadka.ping.de>
666 * backtrace.c (scm_display_error): Bugfix: scm_procedure_p returns
667 a SCM boolean, not a C boolean.
669 Sat Dec 14 23:21:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
671 * gc.c (SCM_MTRIGGER_HYSTERESIS): New memory management parameter.
672 (scm_must_malloc, scm_must_realloc): Added a hysteresis to the
673 rules for raising scm_mtrigger. Previously, unfortunate but not
674 unlikely circumstances could result in almost constant invokation
675 of the gc. Now, this situations should be less likely, but they
676 are not prevented completely.
678 Tue Dec 17 16:19:07 1996 Jim Blandy <jimb@totoro.cyclic.com>
680 * numbers.c (scm_fuck): Procedure removed; looks like old test
682 * numbers.h: Prototype removed.
684 Mon Dec 16 18:20:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
686 * debug.h (scm_debug_frame): Change `vect' member from an in-line
687 array to a pointer, to match my Nov 21 change in eval.c.
689 Fri Dec 13 16:12:14 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
691 * libguile.h: Added #include "libguile/backtrace.h", #include
694 * strings.c (scm_string scm_make_string scm_string_ref
695 scm_string_set_x scm_string_equal_p scm_string_append):
696 Bugfix according to scm patch from Aubrey Jaffer:
697 Corrected long-standing
698 (not (eqv? (integer->char 128)
699 (string-ref (make-string 1 (integer->char 128)) 0)))
700 bug found by John Kozak <jk@noontide.demon.co.uk>.
702 * strports.c, strports.h: Make scm_eval_0str return the value of
703 the last expression evaluated (previously, it returned void).
705 * strports.c, strports.h: New function: scm_read_0str. Does what
708 Tue Dec 10 23:38:43 1996 Gary Houston <ghouston@actrix.gen.nz>
710 * simpos.c (scm_getenv): return #f if string can't be found in the
711 environment instead of throwing an exception, for compatibility
712 with numerous other systems.
714 Mon Dec 9 23:23:35 1996 Tom Tromey <tromey@cygnus.com>
716 * Makefile.am (.c.x): Use guile-snarf.
717 * configure.in (AC_OUTPUT): Generate guile-snarf; make it
719 * guile-snarf.in: New file, resurrected from old guile-snarf.sh.
721 Mon Dec 9 18:36:50 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
723 * backtrace.c (scm_display_error_message): Made non-static, and
724 renamed from display_error_message.
725 * backtrace.h (scm_display_error_message): Added extern decl.
726 * throw.c (uncaught_throw): Use it to display the error message.
728 Mon Dec 9 10:10:38 1996 Tom Tromey <tromey@cygnus.com>
730 * inet_aton.c: Use #if 0, not #ifdef 0.
732 Mon Dec 9 06:36:48 1996 Gary Houston <ghouston@actrix.gen.nz>
734 * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
735 to convert the returned value.
736 (scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
739 Sun Dec 8 21:06:38 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
741 Add new interface to catch/throw, usable from C as well as
743 * throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
744 (scm_internal_catch): New function, replaces...
745 (scm_catch_apply): Deleted.
746 * throw.c (scm_catch_apply): Deleted; replaced with a more general
747 mechanism which is a bit more code, but can be used nicely from C
748 and implement the Scheme semantics as well.
749 (scm_internal_catch): This is the replacement; it's named after
750 the analogous function in Emacs.
751 (scm_catch): Reimplemented in terms of the above.
752 (struct catch_body_data, catch_body, catch_handler): New
753 functions, used by scm_catch.
754 * root.c (cwdr): Reimplemented in terms of scm_internal_catch.
755 (struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
756 support for new cwdr.
758 * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
761 Sun Dec 8 17:55:34 1996 Marius Vollmer <mvo@zagadka.ping.de>
763 * acconfig.h: Added DYNAMIC_LINKING symbol.
764 * configure.in: Add option and checks for dynamic linking.
765 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c,
766 dynl.h: New files for dynamic linking support.
767 * Makefile.am (libguile_a_SOURCES):
769 (modinclude_HEADERS): Added "dynl.h".
770 (EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
772 * init.c (scm_boot_guile_1): Call
773 scm_init_dynamic_linking to initialize dynamic linking support.
775 Thu Dec 5 22:47:53 1996 Marius Vollmer <mvo@zagadka.ping.de>
777 * init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
778 (as we Schemers say). It needs to be global, so that I can tweak
779 it for the proper operation of unexec.
780 (scm_boot_guile_1_live): New variable, see above.
782 Sun Dec 1 00:00:49 1996 Tom Tromey <tromey@cygnus.com>
784 * guile-snarf.sh: Removed.
785 * PLUGIN/guile.libs: Added dependency for -lm.
786 * acinclude.m4: Renamed from aclocal.m4.
787 * PLUGIN/greet: Removed.
788 * Makefile.am, aclocal.m4: New files.
789 * configure.in: Updated for Automake.
791 Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
793 * eval.c (scm_definedp): Use top_level_lookup_closure_var
794 and not top_level_lookup_thunk_var.
796 Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
798 * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
800 Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
802 * eval.c (scm_definedp): Incompatibly changed to be a builtin
803 Scheme function, instead of syntax. Single argument is now a
806 Thu Nov 21 20:26:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
808 * ramap.c (scm_ra_sum, scm_ra_difference, scm_ra_product,
809 scm_ra_divide): Properly terminate statements passed as arguments
810 to IVDEP macros. (Thanks to Bernard Urban.)
812 * eval.c (SCM_CEVAL): Use alloca, not GCC's extensions for arrays
813 with non-constant sizes. (Thanks to Bernard Urban.)
815 Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
817 It's an "eval closure", not an "eval thunk." A thunk is a
818 function of no arguments.
819 * root.h (struct scm_root_state): Renamed
820 top_level_lookup_closure_var from top_level_lookup_thunk_var.
821 (scm_top_level_lookup_closure_var): Renamed from
822 scm_top_level_lookup_thunk_var.
823 * root.c (mark_root): Uses changed.
824 * gdbint.c (gdb_eval, gdb_binding): Uses changed.
825 * init.c (scm_start_stack): Uses changed.
826 * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
827 Change scheme-visible name to *top-level-lookup-closure* from
828 *top-level-lookup-thunk*.
830 Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
832 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
833 pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
835 Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
837 * gc.c (struct scm_heap_seg_data): Doc fixes.
839 * gc.c (scm_gc_sweep): Empty all segments' freelists before
840 sweeping. Then, prepend each segment's free cells to its
841 freelist, rather than wiping out the old value. (Thanks to Marius
844 * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
845 scm_check_freelist, scm_debug_newcell): New functions and
846 variables, for debugging freelist problems.
847 * pairs.h (SCM_NEWCELL): New debugging version added.
848 * gc.h (scm_debug_newcell): Added extern declaration, used by
849 debugging version of SCM_NEWCELL.
851 Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
853 On some systems <libc.h> conflicts with <unistd.h>, and should not
855 * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
856 * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
857 * configure.in: Call it.
858 * posix.c, filesys.c: Use its results to decide whether or not to
860 * configure, scmconfig.h.in: Rebuilt with autoconf and
863 Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
865 * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
866 pointer to the stdio stream before calling scm_setbuf0, so the
867 latter will be able to retrieve it. I'm surprised this didn't
868 segfault earlier. (Thanks to Christopher Lee.)
870 Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
872 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
875 Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
877 * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
878 number of stack narrowing specifier pairs. The first specifier in
879 a pair controls inner border, the second the outer border. A
880 number means cut that number of frames, a procedure object means
881 cut until that object is found in operator position in a frame.
883 * root.c (cwdr): Bugfix.
885 * read.c: Recording of positions disabled by default.
887 * procs.c (scm_closure_p): New function.
889 * posix.c (scm_tmpnam): New function.
891 * load.c: Added #include "throw.h".
892 (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
895 * load.c, load.h (scm_read_and_eval_x): New function.
897 * eval.c: Renamed debug option "deval" to "debug".
899 (scm_eval_x): `eval!' is no longer accessible from the scheme
900 level. Motivation: We can't allow operations which introduce
901 glocs into the scheme level. Guile's type system can't handle
902 these as data. Use `eval' or `read-and-eval!' as replacement.
904 * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
905 SCM_CONSP since this is a macro!; Set vframe.prev to
906 scm_last_debug_frame instead of 0. In this way we can look
907 "above" the virtual start stack frame if we wish.
908 (scm_debug_hang): New function: Useful for debugging Guile in
909 certain tricky situations. Will probably be removed later...
911 * debug.h: Changed semantics of debug option "backtrace". This
912 option now only indicates whether we want automatic backtrace at
915 Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
917 * ports.c: #include "filesys.h"
918 (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
920 * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
921 Motivation: This is system specific code which is related to file
922 I/O. It also may use select. Added code by Gary Houston to
923 detect presence of character in stdio buffers.
925 * libguile.h: #include "libguile/libpath.h"
927 * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
928 SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
929 SCM_SITE_DIR; Install libpath.h among the other include files.
931 * load.c, load.h (scm_sys_package_data_dir): New function.
933 Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
935 * stacks.h: Bugfix: Don't use tail-array length field as stack
936 length field! This screwed GC.
938 Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
940 * _scm.h: Added #ifndef around definition of macros min and max.
942 * __scm.h: Added hooks for threads to plugin to in ints protection
943 macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
944 SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
945 the main code in these macros duplicated and spread over multiple
946 files. Renamed SCM_THREADS_SWITCHING_CODE ->
947 SCM_THREAD_SWITCHING_CODE.
949 Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
952 * guile-snarf.sh: New file.
953 * Makefile.in (inner_h_files): Added snarf.h
954 (ancillary, install, uninstall, distclean): Added actions for
956 (.c.x): Use guile-snarf.
957 (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
958 (gen_c_files): Note that these depend on guile-snarf.
959 * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
960 now in "snarf.h". Added #include "snarf.h" to get them.
961 * libguile.h: Added #include "snarf.h".
962 (Patches applied and tweaked by Jim Blandy.)
964 Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
966 * socket.c: Use K&R style declaration for 'close'; the GNU coding
967 standards suggest against providing prototypes for system
968 functions. Thanks to Greg Troxel.
970 Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
972 * strports.c (scm_eval_0str): New function.
973 #include "read.h", to get prototype for scm_read.
974 * Makefile.in (strports.o): Update dependencies.
975 * strports.h: New prototype.
977 * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
978 scheme name from "int?" to "integer?". It seems to do the job.
979 * numbers.h: Rename prototype too.
980 * scmhob.h (intp): Change definition to refer to scm_integer_p. I
983 * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
984 scm_num_eq_p): Rename these according to R4RS conventions: call
985 them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
986 to making libguile R4RS compliant without ice-9...
988 * load.c (scm_sys_search_load_path): Search for files under all
989 extensions listed in the %load-extensions variable. If FILENAME
990 is absolute, return it unchanged, without searching the load path.
991 (scm_loc_load_extensions): New variable, pointing to
992 %load-extensions' value cell.
993 (scm_init_load): Initialize it, and the value it points to.
994 (scm_primitive_load_path): Improve error reporting.
996 * load.c (scm_loc_load_hook): New variable, pointing to value cell
997 of new Scheme variable %load-hook.
998 (scm_primitive_load): Apply %load-hook to filename.
1000 Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
1002 * configure.in: add tests for figuring out whether buffered data
1003 is available in a FILE structure, which is needed by char-ready.
1005 * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
1008 * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
1009 exceptions using misc_error instead of syserror. It seems a bit
1010 odd to throw an exception if a string can't be found in the
1011 environment, but it's consistent with open-file, stat etc.
1012 (simpos.h): remove sys_ from getenv.
1014 * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
1015 occurs, throw an error instead of returning errno. Return value
1017 (numerous in posix.c and posix.h): removed superfluous sys_ from names.
1019 Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
1021 * filesys.c (scm_stat2scm): derive file type and permissions from
1022 the stat mode and append them to the returned vector.
1023 There isn't much overhead in doing this and it avoids the need to
1024 work with S_IRUSR et al. in Scheme.
1025 Define symbols scm_sym_regular etc.
1026 (scm_init_filesys): don't intern S_IRUSR etc.
1028 * load.c: change s_try_load and s_try_load_path to s_primitive_load
1029 and s_primitive_load_path.
1031 * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
1033 * error.h: don't declare error symbols. prototype for scm_misc_error.
1035 * stackchk.c (scm_stack_overflow_key): defined here instead of in
1038 * error.c: use SCM_SYMBOL to set up error keys.
1039 scm_misc_error: new procedure.
1041 Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
1043 * read.c (scm_lreadr): Recognize SCSH-style block comments; text
1044 between `#!' and `!#' is ignored.
1045 (skip_scsh_block_comment): New function.
1047 * feature.c (scm_set_program_arguments): New argument, FIRST.
1048 * feature.h: Update prototype.
1049 * init.c (scm_boot_guile_1): Pass new argument to
1050 scm_set_program_arguments.
1052 Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
1054 * init.c (scm_start_stack): Don't initialize scm_progargs here.
1055 (scm_boot_guile): Call scm_set_program_arguments here, later than
1056 the old initialization.
1058 * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
1059 initialization procedure.
1060 - Delete in, out, err arguments; there are other perfectly good
1061 ways to override these when desired.
1062 - Delete result argument; this function shouldn't ever return.
1063 - Rename init_func argument to main_func, for less confusion.
1064 - Delete boot_cmd argument; main_func is more general.
1065 -Add 'closure' argument, to help people pass data to main_func
1066 without resorting to global variables.
1067 - Abort if reentered; don't bother returning an error code.
1068 - Call scm_init_standard_ports to set up the default/current
1069 standard ports; no need to pass them to scm_start_stack.
1070 - Remove code to evaluate the boot_cmd, and start the repl; let
1071 the user do something like that in main_func if they want.
1072 - Remove code to package up a return value; main_func can do any
1074 - Call exit (0), instead of returning.
1075 (scm_start_stack): Don't initialize the I/O ports here; that's
1076 weird. Delete in, out, err arguments. Move guts to
1077 scm_init_standard_ports, scm_stdio_to_port.
1078 (scm_init_standard_ports): New function, to set up current and
1079 default standard ports.
1080 (scm_start_stack, scm_restart_stack): Make these static.
1081 * init.h (scm_boot_guile): Adjust declaration.
1082 (scm_start_stack, scm_restart_stack): Remove externally
1083 visible declarations for these.
1084 (enum scm_boot_status): Removed; now scm_boot_guile never returns.
1086 * fports.c (scm_stdio_to_port): New function. Its guts used to be
1087 written out several times in scm_start_stack.
1088 * fports.h: New declaration for the above.
1090 * feature.c (scm_set_program_arguments): New function.
1091 * feature.h: New declaration for the above.
1093 * ports.c: Formatting tweak.
1095 Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
1097 * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
1098 ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
1099 for obtaining the address of a car or cdr field. Motivation:
1100 &SCM_CXR make assumptions about the internal structure of the
1103 * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
1104 Motivation: see SCM_CXRLOC.
1106 * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
1107 srcprop.h, tags.h, throw.c, unif.c: Added new selectors
1108 SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
1109 Motivation: Safer use. Some other macros are defined in terms of
1110 these operations. If these are defined using the SCM_SETCXR
1111 (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
1112 to inefficiency and an <e1> with side-effects could potentially
1113 break. Also, these particular operations are heavily utilized in
1114 the garbage collector. In unoptimized code there will be a
1117 * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
1118 eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
1119 ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
1120 pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
1121 procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
1122 strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
1123 vports.c: Cleaned up use of pairs: Don't make any special
1124 assumptions about the internal structure of selectors and
1125 mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
1126 SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
1127 (Among other things, this change makes it easier to build Guile
1128 with certain compilers which have problems with casted lvalues.)
1130 Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1132 * stacks.c: Improve selection of relevant stack frames when making
1133 a stack object. Introduce one level of indirection in the stack
1134 object to make it possible to "narrow" to a certain region of the
1135 stack. This facilitates making use of more clever algorithms (not
1136 implemented) for selecting relevant frames and gives a cleaner
1137 design since selection of frames can be done independently of
1138 extraction of frames from the real stack.
1139 (scm_stack_id): Also take #t as argument which means look at
1142 * stacks.h: In struct scm_stack: Turn field frames into a pointer.
1143 Turn n_tail into an integer directly representing current number
1144 of frames in stack. Add field tail.
1146 * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
1148 * debug.c (scm_make_memoized): Made it available at scheme level.
1149 (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
1150 SCM_NIMP before applying heavier predicates in argument checking.
1151 (scm_local_eval): Also take memoized object as argument.
1153 * backtrace.c (scm_display_error): Just a safety measure: Stacks
1154 aren't created with zero length, but should such a strange
1155 creature suddenly turn up...
1157 Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
1159 * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
1160 `del', for the sake of C++ compilers. (Patch applied by JimB.)
1162 Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
1164 * variable.c (scm_make_variable): Make the name hint optional, as
1166 (anonymous_variable_sym): Renamed from variable_sym. All uses
1169 * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
1170 from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
1171 of scm_primitive_load_path was also changed to
1172 "primitive-load-path", from "%try-load-path". Callers changed.
1173 We'd like to respect the convention that a function named
1174 "try-mumble" should behave just like the function called "mumble",
1175 but return #f instead of signalling some error.
1176 * load.h: Rename prototypes.
1178 Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1180 * print.c (make_print_state, grow_print_state), print.h: Modified
1181 the print state representation: Don't use a tail array for
1182 recording of circular references. Resizing of the print state
1183 structure invalidates the print state pointer. To avoid passing
1184 around an indirect print state reference to all printing
1185 functions, we instead let the print state reference a resizable
1188 Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
1190 * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
1191 Don't crash when passed an improper list terminated by a
1192 non-immediate value.
1194 Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
1196 Allocate data for structures on an eight-byte boundary, as
1197 required by the tagging system.
1198 * struct.c (alloc_struct): New function.
1199 (scm_make_struct, scm_make_vtable_vtable): Call it.
1200 * struct.h (scm_struct_n_extra_words): Bump to 3.
1201 (scm_struct_i_ptr): New "field".
1202 * gc.c (scm_gc_sweep): When we need to free the data, use the
1203 information stored by alloc_struct to find the beginning of the
1204 block allocated to the structure, so we can free it.
1206 Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1208 * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
1211 * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
1212 (scm_debug_info): New member: id.
1214 * stacks.c: Stacks are now represented as structs; Stacks have an
1215 id given to them by `start-stack'.
1216 (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
1218 * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
1219 Changed stack representation.
1221 * debug.c (scm_procedure_name): Try procedure property `name' for
1222 compiled closures aswell.
1224 * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
1226 * eval.c: scm_i_name moved to gsubr.c
1227 (scm_m_define): Record names of all kinds of procedure
1228 objects. (Earlier, only closures were recorded.)
1230 * procprop.h: Added declaration of scm_i_name.
1232 * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
1233 (scm_make_gsubr): Record names of compiled closures.
1235 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1237 * debug.c, debug.h: Removed obsolete code.
1239 * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
1240 stacks.c: Renamed regs --> scm_contregs.
1242 * print.c (scm_free_print_state): Cleanup print state before
1243 returning it to pool. It is better to do it here than in
1244 scm_prin1 since scm_prin1 is called often.
1246 * srcprop.c (scm_source_properties, scm_set_source_properties_x,
1247 s_set_source_property_x): Check that first argument is a pair or a
1250 * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
1251 scm_i_line, scm_i_column and scm_i_breakpoint global.
1253 * init.c: Added #include "backtrace.h" and #include "stacks.h".
1254 (scm_boot_guile_1): Added calls to scm_init_backtrace and
1257 * debug.h: Added debug object smob declaration and macro
1260 * configure.in: Build with backtrace.o and stacks.o if debug
1263 * Makefile.in: Added entries for new files: backtrace.c,
1264 backtrace.h, stacks.c and stacks.h.
1266 * symbols.c (scm_sym2ovcell): Fixed documentation.
1268 * _scm.h (min, max): Added.
1270 * async.c: Moved `min' macro to _scm.h.
1272 * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
1273 SCM_BACKTRACE_INDENT.
1275 * eval.c: Added new debug options `maxdepth' and `indent'.
1277 * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
1279 * print.h: Added selector SCM_PRINT_STATE.
1281 * print.c: New functions: scm_make_print_state,
1282 scm_free_print_state.
1284 * print.h: Added declarations for scm_make_print_state,
1285 scm_free_print_state.
1287 * debug.c (scm_m_start_stack): New acro.
1289 * debug.h: Small cleanup.
1291 * init.c (scm_boot_guile_1): Moved scm_init_debug below
1294 Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
1296 * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
1297 arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
1298 chars.c, chars.h, continuations.c, continuations.h, debug.c,
1299 debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
1300 eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
1301 filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
1302 gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
1303 hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
1304 kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
1305 markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
1306 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
1307 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
1308 procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
1309 root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
1310 simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
1311 stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
1312 strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
1313 struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
1314 unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
1315 version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
1316 declare functions with prototypes. (Patch thanks to Marius
1319 More prototype-related changes from Marius Vollmer:
1320 * gdb_interface.h: Wrapped header file in #ifdef/#endif
1321 * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
1322 * ports.h (ptobfuns): Added prototypes. This means some casting in
1324 * fports.c: Added casts for initializations, since the functions
1325 are defined to take FILE * as their stream argument, not SCM.
1326 * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
1327 * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
1328 to `char *str_data' to conform to prototype.
1330 Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1332 * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
1334 * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
1336 * stime.c, stime.h: use SCM_P method.
1338 Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
1340 * eval.c (scm_nconc2last): Don't accept an empty list; apply must
1341 be given at least two arguments. Insist that lst's last element
1342 be a list, but don't make any requirements of its predecessors.
1344 Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
1346 * eval.c (scm_nconc2last): Revert last change; there seems to be
1347 other stuff going on here.
1349 Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
1351 * eval.c (scm_nconc2last): Make sure that each element of lst
1352 (which is a list of argument lists, except for the tail) is a
1353 proper list, i.e., finite and terminated by '().
1355 Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
1357 * unif.c (scm_ra_set_contp): Localize `inc' declaration.
1360 * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
1361 symbolic name for the tag, scm_tc3_cons_gloc, instead of just
1364 * vectors.c (scm_make_vector): Fill vectors with the undefined
1365 value, to help make Guile Scheme code more portable to other
1368 * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
1369 * symbols.h, tags.h: Doc fixes.
1371 Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
1373 * async.c (scm_take_signal): Doc fixes.
1375 Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
1377 * numbers.c (scm_divbigint): When the remainder is zero, we don't
1378 want to subtract it from the modulus; we just want to leave it
1381 Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
1383 * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
1386 * throw.h (scm_catch_apply): Removed the `lazyp' argument.
1388 * throw.c (scm_catch_apply): Finished implementation of
1391 Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
1393 * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
1395 (scm_init_filesys): set "i/o-extensions" feature.
1398 Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
1400 * Makefile.in (root.o): Correct dependencies.
1402 Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
1404 * Makefile.in: Added dependency entry for root.o.
1406 * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
1407 throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
1409 * init.c (scm_start_stack): Set initial root continuation number
1412 * procs.c: New function: scm_thunk_p.
1414 * procs.h: Added declarations of scm_thunk_p.
1416 * root.c: Renamed `call-with-new-root' -->
1417 `call-with-dynamic-root'.
1418 (cwdr): Removed allocation of new root state. This should be done
1419 separately by use of scm_make_root.
1420 (scm_apply_with_dynamic_root): New function: Does what it
1421 sounds like. Needed when spawning threads.
1423 * root.h: Added member last_debug_frame to root state.
1424 Added #include "libguile/debug.h"
1426 * throw.c: Renamed scm_catch --> scm_catch_apply and added more
1427 arguments. The motivation is that code in root.c needs catch
1428 functionality, and we want to avoid code duplication.
1429 New functions: scm_catch, scm_lazy_catch. These are wrappers for
1430 scm_catch_apply. scm_lazy_catch is intended to introduce catch
1431 handlers that run without popping the stack into the dynwind
1434 * throw.h: Added prototypes for scm_catch_apply and
1437 Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1439 * root.h (scm_root, scm_set_root): Decouple thread support details
1440 by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
1441 SCM_SET_THREAD_LOCAL_DATA.
1443 * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
1444 and tortoise scanning loop.
1446 Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
1448 * Makefile.in: Rebuild dependencies.
1450 * libguile.h: #include "libguile/print.h" before "smob.h", since
1451 the latter uses the print_state structure.
1453 * throw.c (scm_ithrow): Use the correct variable when checking to
1454 see if a given element of scm_dynwinds is a valid catch.
1456 * throw.c (scm_ithrow): If scm_dynwinds has invalid list
1457 structure, abort; don't just silently ignore the garbage.
1459 * _scm.h: #include "print.h" here, since it seems to be used just
1461 * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
1462 strports.c, unif.h: Don't #include "print.h".
1464 Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1466 * feature.h (scm_loc_features): Removed external declaration.
1467 (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
1469 Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1471 * feature.c (scm_init_feature): Added threads feature (needs to be
1472 initialized here, since features doesn't exist when
1473 scm_init_threads is called).
1475 * libguile.h: Added #include "libguile/../threads/threads.h".
1476 (This is a kludge to get thread support working. This should be
1479 * configure.in, acconfig.h: Added flags for thread support.
1481 * scmsigs.c: Define `signal' to be `pthread_signal' if using
1484 * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
1485 SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
1488 * _scm.h: Added conditional #include "threads.h"
1490 * __scm.h (SCM_ASYNC_TICK): Added call to macro
1491 SCM_THREADS_SWITCHING_CODE.
1493 * init.c (scm_start_stack): Call `scm_make_root' to dynamically
1494 allocate the basic dynamic root object.
1495 (scm_boot_guile): Added call to scm_init_root.
1497 * root.c, root.h: Added root smob.
1498 (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
1499 functions: Implements dynamic roots mostly according to spec in
1500 SCM manual. Main difference is that the second argument is a
1501 throw handler rather than an error "thunk".
1503 * root.h: Added declaration of scm_init_root.
1505 * root.c: Added #include "genio.h", #include "smob.h", #include
1506 "pairs.h", #include "throw.h", #include "dynwind.h", #include
1508 (scm_init_root): Added #include "root.x".
1510 * throw.c: Added #include "stackchk.h"
1511 (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
1512 SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
1513 can be used in scm_call_with_new_root; Added reenabling of stack
1514 checking when catching a throw.
1516 Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
1518 * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
1520 * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
1521 element is not found, as per R4RS.
1523 Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
1525 * list.c: Doc fixes throughout.
1527 Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
1529 * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
1530 declare the char * to be const. Avoids a warning in rgx.c.
1532 * ports.h: spelling fix.
1534 * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
1537 * load.c (scm_sys_try_load_path): throw an error if file not found
1538 (like it says it in NEWS).
1540 Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
1542 * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
1543 PROPS slot to '(), not #f; it's an empty alist.
1545 * throw.h, throw.c: Use SCM_P instead of #if hair.
1547 Remove special support for uncaught throws; see throw.c for
1549 * throw.c (uncaught_throw): New function.
1550 (scm_ithrow): Call uncaught_throw if we don't find a throw
1551 target; don't mess with scm_bad_throw_vcell.
1552 (scm_bad_throw_vcell): Variable deleted.
1553 (scm_init_throw): Don't initialize it.
1555 * throw.c (scm_ithrow): Don't let outer key matches shadow inner
1558 Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
1560 * numbers.c (scm_istr2int): If the number is short (as most
1561 numbers are), just call scm_small_istr2int to deal with it.
1562 (scm_small_istr2int): New function, created by un-#ifdefing the
1563 non-bignum version of scm_istr2int and renaming it.
1565 Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
1567 * load.c (scm_sys_try_load): don't check whether value returned
1568 by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
1569 Change the Scheme name from %try-load to primitive-load.
1571 * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
1572 Can avoid passing a message, allowing it to be derived in the
1573 error handler (e.g., if we want to throw to the key both from
1576 Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
1578 * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
1579 references now have a new appearance which is more compact and
1580 also gives a clue about what the target of the reference is.
1581 By setting parameters in the print state, more fancy printing can
1582 be achieved. This is used by the (not yet commited) backtrace
1585 Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
1587 * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
1590 * print.c: Added #include "struct.h". Removed function
1593 * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
1594 scm_iprin1. Removed prototype for scm_prlist.
1596 * arbiters.c (prinarb),
1597 async.c (print_async),
1598 debug.c (prindebugobj, prinmemoized),
1599 eval.c (prinprom, prinmacro),
1600 filesys.c (scm_fd_print, scm_dir_print),
1602 mallocs.c (prinmalloc),
1603 numbers.c, numbers.h (scm_floprint, scm_bigprint),
1604 smob.h (scm_smobfuns),
1605 srcprop.c (prinsrcprops),
1607 unif.c, unif.h (scm_raprin1, rapr1),
1608 variable.c (prin_var): Changed argument `int writing' to
1609 `scm_print_state *pstate'.
1611 * init.c (scm_boot_guile): Moved scm_init_struct upwards so
1612 that it will be called before scm_init_print.
1614 * print.c (scm_prin1): Print states are now allocated when calling
1615 scm_prin1 and then passed around to all printing functions as an
1616 argument. A cache `print_state_pool' enables reuse of print
1618 (scm_make_print_state): New function.
1619 (scm_iprin1): Adaption to print states.
1620 (scm_iprlist): An initial "hare and tortoise" scan brings down
1621 time complexity to O (depth * N). (Better time complexity will be
1622 achieved when the printing code is completely rewritten.)
1624 Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
1626 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
1627 AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
1628 it gets done whether or not the cache variable has a value.
1630 Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
1632 Distinguish #f and ().
1633 * __scm.h: #undef SICP.
1634 * pairs.h (SCM_EOL): Delete this definition, equating it with
1636 * tags.h (SCM_EOL): Give it a new definition here; I think I found
1637 the value it used to have. Doc fixes, too.
1639 Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
1641 * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
1642 scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
1643 Lord's implementation of structs, allowing for tail arrays as
1644 described in the manual. Also fixed some bugs. (Both the interface
1645 and the implementation should be improved.)
1647 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
1649 * print.c, print.h: Closures now print like #<procedure foo (x)>.
1650 People who whish to see the source can do `(print-enable 'source)'.
1651 Removed #ifdef DEBUG_EXTENSIONS.
1653 Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1655 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
1656 integer (assuming for now accepting an integer is a good thing).
1658 * error.c, fports.c: replace use of %S in lgh_error args with %s.
1659 %S will be used instead for write'ing arguments.
1661 * unif.c (scm_transpose_array): change arguments in the SCM_WNA
1662 asserts. fix a few other asserts.
1663 (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
1664 scm_uniform_vector_ref, scm_array_set_x,
1665 scm_dimensions_to_unform_array): change args in
1666 SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
1667 strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
1668 scm_substring_fill_x): likewise.
1669 gsubr.c (scm_gsubr_apply): likewise.
1670 eval.c (SCM_APPLY): likewise.
1672 * eval.c (4 places): replace scm_everr with lgh_error or
1675 * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
1676 scm_memory_error): new procedures.
1677 scm_everr: deleted. can use scm_wta, dropping first two args.
1678 scm_error: convert NULL subr to SCM_BOOL_F.
1680 * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
1683 * stackchk.c (scm_report_stack_overflow): use lgh_error instead
1686 * error.c, error.h: new error keys: scm_arg_type_key,
1687 scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
1689 scm_wta: reimplement using lgh_error instead of scm_everr.
1691 Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
1693 * gdbint.c: scm_lread now has one more argument.
1695 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
1696 scm_port_\1; Added mutator scm_set_port_filename_x (used when
1697 loading source from non-file ports, which, e. g., happens when
1698 using the Emacs interface).
1700 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
1703 * read.c: Added code for recording of positions of source code
1704 expressions; New functions: recsexpr, scm_lreadrecparen;
1705 _scm_make_srcprops --> scm_make_srcprops
1706 (scm_flush_ws): Removed updating of positions counters. This work
1707 is already done by scm_gen_getc
1709 * read.h: Added prototype for scm_lreadrecparen
1711 * print.c: Added #include "alist.h"
1713 * eval.c: Added #include "hash.h"
1715 * eq.c: Added #include "ramap.h"
1717 * options.c: Documentation fixes.
1719 * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
1720 (scm_init_srcprop): Adjusted size of initial source-whash. Name
1721 changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
1722 --> scm_make_srcprops
1724 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
1725 _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
1726 function calls in the definition of the whash access macros.
1728 Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
1730 * init.c (scm_boot_guile): Add level of indirection to
1731 scm_boot_guile_1() to ensure that stack base pointer is properly
1732 initialized. There was no guarantee that variable i was the
1733 highest/lowest variable on stack (i.e. the call frame of
1734 scm_boot_guile was not completely protected from gc).
1736 Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
1738 * ports.h (scm_port_table): put back file_name, it will be used to
1739 support debugging. Undo related changes in fports.c, ioext.c,
1742 Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1744 * ports.h (scm_port_table): remove file_name member for now, it seems
1746 * fports.c (scm_open_file): don't set file_name in PTAB.
1747 (prinfport): don't use file_name in PTAB.
1748 * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
1749 * ports.c (scm_add_to_port_table): don't intialize file_name.
1750 (scm_port_file_name): remove for now.
1751 * gc.c (scm_gc_mark): don't mark PTAB file_name.
1753 * fports.h (scm_mkfile): prototype deleted.
1754 * fports.c (scm_mkfile): merged into scm_open_file to simplify.
1756 * debug.c, unif.c: use scm_out_of_range instead of
1757 wta for range errors (ASSERT still needs work).
1759 * error.c, error.h (scm_out_of_range): new procedure.
1761 * error.c, error.h (scm_out_of_range_key): new key.
1763 * posix.c (scm_sync): #else was missing.
1765 * error.c, error.h: append _key to names scm_num_overflow and
1768 * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
1769 of consing an empty list.
1770 (SCM_SYSERROR etc.): move into error.c, make them procedures instead
1771 of macros, saves code and string space.
1772 error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
1773 fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
1774 lower case. Rename scm_syserror_m to scm_syserror_msg.
1775 error.h: prototypes for new procedures.
1777 Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
1779 * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
1781 * error.c, error.h: setup scm_num_overflow key.
1783 * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
1784 Remove definition of SCM_OVSCM_FLOW.
1786 * fports.c (scm_open_file): use SCM_SYSERROR_M.
1788 * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
1789 explicit message and args.
1791 * error.c, error.h, __scm.h: change system_error_sym to
1794 * error.c (system_error_sym): remove leading %% from the Scheme name
1797 * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
1799 Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1801 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
1802 fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
1803 numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
1804 tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
1805 renamed. (These were introduced by unsupervised name
1808 Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1810 * print.c: Added code for detection of circular references during
1811 printing. (init_ref_stack, grow_ref_stack): New functions. Added
1812 a hook for printing of closures (accessible via print options).
1813 This leads to a split of calls to scm_iprin1 into two classes:
1814 elementary print operations (e. g. the code which prints a smob)
1815 still use scm_iprin1 while top level calls (like scm_display) use
1816 scm_prin1. scm_prin1 begins by clearing the data structure used
1817 to record reference information.
1819 * print.h: Added declarations of scm_prin1 and scm_prlist.
1821 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
1823 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
1825 * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
1827 * error.c (err_head): scm_iprin1 --> scm_prin1
1829 * debug.c: Adjusted header comment.
1833 Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
1835 * strerror.c: Doc fix.
1837 Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1839 * gdbint.c (gdb_read): Now possible to run during GC.
1840 (unmark_port, remark_port): New functions.
1842 * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
1844 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
1845 of allocating a new string object. Also, increase size by
1846 the factor 2 instead of 1.5.
1848 Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
1850 * __scm.h (SCM_P): Corrected to run under traditional C.
1852 * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
1855 * async.c: Calls to scm_sysintern corrected.
1857 * async.h (scm_async_clock): Redundant declaration removed.
1859 * continuations.c (scm_dynthrow): Redundant declaration removed.
1861 * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
1862 Definition typos corrected.
1864 * debug.h: Missing declarations of functions in debug.c added
1867 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
1868 Missing declarations to functions in eval.c added.
1870 * filesys.c: Possibly uninitialized variable rv.
1872 * gc.h (scm_object_addr, scm_unhash_name): Missing
1873 declarations of functions defined in gc.c added.
1875 * genio.c: Possible typos str_data -> wstr_data. ???
1877 * genio.c: Possibly unintended shadowing of local variable
1878 `int c' (gotos out of scope of inner `c'). ???
1880 * init.c: Uninitialized `SCM last' may be used.
1882 * ioext.h: (scm_sys_isatty_p): Typo.
1884 * list.h (scm_list_head): Missing prototype for function in
1887 * numbers.c (scm_two_doubles): Changed from extern to static
1888 (is used only within numbers.c).
1890 * numbers.h: Repeated declarations removed.
1892 * ports.h (scm_close_all_ports_except): Declaration for the
1893 function defined in ports.c added.
1895 * posix.h: Missing declarations added.
1897 * procs.h (scm_make_subr_opt): Missing declaration added.
1899 * socket.h (scm_sys_gethost): Missing declaration added.
1901 * socket.h: Redundant declarations removed (they are in fdsocket.h).
1903 * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
1904 Missing declarations added.
1906 * stime.h (scm_get_internal_real_time): Repeated declarations removed.
1908 * struct.c: Uninitialized variable `SCM answer' may be used.
1910 * unif.c (l2ra): Declaration prototype.
1912 * unif.c (scm_array_equal_p): Dummy definition removed (it is
1913 defined in ramap.c).
1915 * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
1916 Redundant declarations removed (they are in ramap.h).
1918 * variable.h (scm_make_udvariable,
1919 scm_make_undefined_variable): Declaration corrected to
1920 correspond variable.c.
1922 * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
1923 Missing declarations added.
1925 Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
1927 * Makefile.in (distclean): Don't forget to delete fd.h.
1929 Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
1931 * fd.h.in, tags.h: Trivial cleanups.
1933 * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
1934 marksweep.h just declared functions from gc.c.
1935 * gc.h, libguile.h: Don't #include "marksweep.h".
1936 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1937 marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
1938 dependencies updated.
1940 * libguile.h: Don't #include "files.h"; it's been deleted.
1942 * files.c (scm_sys_delete_file): Moved to filesys.c.
1943 File is now empty; deleted.
1945 * filesys.c: scm_sys_delete_file is now here. Remove
1946 #if's; they seem to rely on remnants of an old portability
1947 regimen. If the problems come up again, solve them properly,
1948 using autoconf. Specifically: Don't test M_SYSV, and #define
1949 remove to be unlink if it's #defined; don't use remove just
1950 because HAVE_STDC_HEADERS is #defined.
1951 * filesys.h: Add declarations for scm_sys_delete_file.
1952 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1953 files.o, files.h, files.c, and files.x.
1954 * init.c: Don't #include "files.h", and don't call scm_init_files.
1956 Use SCM_P instead of PROTO; the latter intrudes on the user's
1958 * params.h: Deleted; definition of SCM_P moved to...
1959 * __scm.h: ... here, where it replaces PROTO macro.
1960 * libguile.h, smob.h: Don't #include "params.h".
1961 * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
1962 smob.h: Fix prototypes accordingly.
1963 * Makefile.in: Update dependencies.
1964 (inner_h_files): Remove params.h.
1966 * gc.c: #include "gc.h"; every module should include its header,
1967 to let the compiler cross-check the declarations against the
1970 * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
1971 simpos.h: #include "libguile/__scm.h".
1973 Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
1975 * init.c: Don't forget to #include smob.h and init.h.
1976 * Makefile.in: Dependencies updated.
1978 * smob.h: Use PROTO instead of #if __STDC__.
1980 * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
1982 * __scm.h: Doc fixes.
1984 * __scm.h, libguile.h: Use "quotes" in the #includes, not
1985 <angles>; this allows `make depends' to work properly.
1987 * libguile.h: #include smob.h and pairs.h before the others; they
1988 define typedefs used by other headers.
1990 C files should #include only the header files they need, not
1991 libguile.h (which #includes all the header files); the pointless
1992 recompilation was wasting my time.
1993 * Makefile.in (all .o dependency lists): Regenerated.
1994 * libguile.h: Don't try to get a definition for size_t here...
1995 * __scm.h: Do it here.
1996 * _scm.h: Since this is the internal libguile header, put things
1997 here that all (or a majority) of the libguile files will want.
1998 Don't #include <libguile.h> here; that generates dependencies on
1999 way too much. Instead, get "__scm.h", "error.h", "pairs.h",
2000 "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
2001 "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
2003 * alist.c: Get "eq.h", "list.h", "alist.h".
2004 * append.c: Get "append.h", "list.h".
2005 * arbiters.c: Get "arbiters.h", "smob.h".
2006 * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
2007 * boolean.c: Get "boolean.h".
2008 * chars.c: Get "chars.h".
2009 * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
2011 * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
2012 "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
2013 "genio.h", "throw.h", "eval.h".
2014 * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
2015 * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
2017 * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
2018 * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
2019 "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
2020 "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
2022 * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
2023 * feature.c: Get "feature.h".
2024 * files.c: Get "files.h".
2025 * filesys.c: Get "filesys.h", "smob.h", "genio.h".
2026 * fports.c: Get "fports.h", "markers.h".
2027 * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
2028 "genio.h", "struct.h", "stackchk.h", "stime.h".
2029 * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
2030 "read.h", "strports.h", "tag.h".
2031 * genio.c: Get "genio.h", "chars.h".
2032 * gsubr.c: Get "gsubr.h", "genio.h".
2033 * hash.c: Get "hash.h", "chars.h".
2034 * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
2035 * init.c: Get everyone who has an scm_init_mumble function:
2036 "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
2037 "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
2038 "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
2039 "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
2040 "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
2041 "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
2042 "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
2043 "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
2044 "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
2045 "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
2046 "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
2047 "async.h", "arbiters.h", "append.h", "alist.h".
2048 * ioext.c: Get "ioext.h", "fports.h".
2049 * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
2050 * list.c: Get "list.h", "eq.h".
2051 * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
2052 * mallocs.c: Get "smob.h", "genio.h".
2053 * markers.c: Get "markers.h".
2054 * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
2056 * numbers.c: Get "unif.h", "genio.h".
2057 * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
2058 * options.c: Get "options.h".
2059 * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
2060 "markers.h", "chars.h", "genio.h".
2061 * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
2062 "read.h", "scmsigs.h", "genio.h", "fports.h".
2063 * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
2064 "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
2066 * procprop.c: Get "procprop.h", "eval.h", "alist.h".
2067 * procs.c: Get "procs.h".
2068 * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
2069 "chars.h", "smob.h", "unif.h".
2070 * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
2071 "eval.h", "genio.h", "chars.h".
2072 * root.c: Get "root.h", "stackchk.h".
2073 * scmsigs.c: Get "scmsigs.h".
2074 * sequences.c: Get "sequences.h".
2075 * simpos.c: Get "simpos.h", "scmsigs.h".
2076 * smob.c: Get "smob.h".
2077 * socket.c: Get "socket.h", "feature.h".
2078 * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
2079 "alist.h", "smob.h".
2080 * stackchk.c: Get "stackchk.h", "genio.h".
2081 * stime.c: Get "stime.h"."libguile/continuations.h".
2082 * strings.c: Get "strings.h", "chars.h".
2083 * strop.c: Get "strop.h", "chars.h".
2084 * strorder.c: Get "strorder.h", "chars.h".
2085 * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
2086 * struct.c: Get "struct.h", "chars.h".
2087 * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
2088 "variable.h", "eval.h", "chars.h".
2089 * tag.c: Get "tag.h", "struct.h", "chars.h".
2090 * throw.c: Get "throw.h", "continuations.h", "debug.h",
2091 "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
2092 * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
2093 "smob.h", "genio.h", "eval.h", "chars.h".
2094 * variable.c: Get "variable.h", "smob.h", "genio.h".
2095 * vectors.c: Get "vectors.h", "eq.h".
2096 * version.c: Get "version.h".
2097 * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
2098 * weaks.c: Get "weaks.h".
2100 * stackchk.h: #include "libguile/debug.h",
2102 * print.h, read.h: #include "options.h", since everyone who uses
2103 either of these files will need that.
2105 * smob.h: #include "ports.h", "genio.h", and "print.h", since
2106 anyone who uses this file will need them to define the smob
2107 printing functions. Also, get markers.h, since people will need
2108 to #define the mark functions.
2110 * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
2111 * ports.h: ... to here.
2113 * ports.h (scm_port_table_size): Explicitly give type as 'int';
2114 don't rely on archaic C default type rules.
2116 * fports.h: #include "libguile/ports.h", since you need that in
2117 order to parse this.
2119 * genio.h: #include "libguile/print.h", because you need that to
2120 parse this; don't bother #including "ports.h", since print.h gets
2123 * error.h: Don't #include "pairs.h"; _scm.h will do that now.
2125 * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
2126 this; it's now a reference to an element of *scm_root.
2128 * debug.h: Don't #include "options.h"; the compiler won't be able
2129 to find that once the headers are installed; instead, #include
2130 "libguile/options.h".
2131 * gc.h: Same, with marksweep.h.
2132 * mbstrings.h: Same, with symbols.h.
2133 * scmhob.h: Same, with _scm.h.
2134 * smob.h: Same, with params.h.
2136 * Makefile.in (depends): Don't nuke scmconfig.h and the generated
2137 C files; there's no need for this, and it forces recompilations
2140 Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
2142 * error.c (scm_error): declare scm_error_callback.
2144 * error.h: prototype for scm_error_callback.
2146 * __scm.h: define lgh_error.
2147 (SCM_SYSERROR): redefine using lgh_error.
2149 Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
2151 * error.c (scm_error): new procedure.
2153 * error.h: prototype for scm_error.
2155 * Makefile.in (install): install scmconfig.h from the current
2156 directory, not $(srcdir).
2158 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
2160 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
2161 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
2162 feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
2163 hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
2164 mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
2165 posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
2166 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
2167 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
2168 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
2169 vports.h, weaks.h: #include "libguile/__scm.h", not
2170 <libguile/__scm.h>. This allows 'gcc -MM' to determine which
2171 dependencies are within libguile properly.
2173 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
2175 * Makefile.in (.c.x): Simplify; there's no need to run this rule
2176 when scmconfig.h doesn't exist.
2178 * load.c (scm_sys_try_load): Correct spelling.
2180 * feature.c (scm_loc_features): Make this static.
2182 * Makefile.in (libpath.h): Omit trailing slash from path. We
2183 shouldn't require it of users, so why put it here?
2185 Move code to initialize and search %load-path from ice-9 to C
2186 code, so we can use the load-path to find the ice-9 boot code;
2187 this makes it easier to run Guile without installing it. See
2188 corresponding changes in guile/Makefile.in.
2189 * feature.c: Move stuff concerned with the load path to load.c.
2190 (scm_compiled_library_path): Deleted.
2191 Don't #include libpath.h here.
2192 * feature.h: Don't mention scm_compiled_library_path.
2193 * load.c: #include "libpath.h" here, as well as <sys/types.h>,
2194 <sys/stat.h>, and <unistd.h> (if present).
2195 (R_OK): #define if the system hasn't deigned to.
2196 (scm_loc_load_path): New variable.
2197 (scm_init_load_path, scm_sys_search_load_path,
2198 scm_sys_try_load_path): New functions.
2199 (scm_init_load): Initialize scm_loc_load_path to point to the
2200 value cell of the Scheme %load-path variable.
2201 * load.h: Add declarations for scm_sys_search_load_path,
2202 scm_sys_try_load_path.
2203 * init.c: Call scm_init_load_path.
2204 * Makefile.in (feature.o, load.o): Dependencies updated.
2206 * load.c, load.h: Rewrite using PROTO macro.
2208 Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2210 * gc.c (scm_cellp): New function: C predicate to determine if an
2211 SCM value can be regarded as a pointer to a cell on the heap.
2213 * gc.h: Added declaration of scm_cellp.
2215 * gdb_interface.h: New file: The GDB interface header from the GDB
2218 * gdbint.c: New file: GDB interface.
2220 * gdbint.h: New file: GDB interface.
2222 * libguile.h: Added #include <libguile/gdbint.h>.
2224 * init.c (scm_boot_guile): Added scm_init_gdbint.
2226 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
2227 Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
2228 found if object files and source are kept separate).
2230 Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
2232 * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
2234 Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
2236 * configure.in: Don't substitute the values of TCL_SRC_DIR and
2237 TK_SRC_DIR; they're not relevant any more.
2239 * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
2240 * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
2242 Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
2244 * PLUGIN/guile.config (xtra_cflags): Include .. in the header
2245 search path, so we can find the <libguile/MUMBLE.h> headers.
2247 * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
2249 * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
2250 implicit in the .c.o rule.
2251 (.c.x): Don't mention ALL_CFLAGS here; its value is included in
2254 Put the library path in a header file, instead of passing it on
2255 the command line in every compilation.
2256 * Makefile.in (libpath.h): New target.
2257 (feature.o): Depend on libpath.h.
2258 (clean): Delete libpath.h.
2259 (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
2260 * feature.c: ... #include "libpath.h" here.
2261 * .cvsignore: Ignore libpath.h.
2263 Don't install the unwashed masses of Guile header files in the
2264 main #include path; put most of them in a subdirectory called
2265 'libguile'. This avoids naming conflicts between Guile header
2266 files and system header files (of which there were a few).
2267 * Makefile.in (pkgincludedir): Deleted.
2268 (innerincludedir): New variable; this and $(includedir) are enough.
2269 (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
2270 (installed_h_files): Divide this up. Now this variable lists
2271 those header files which should go into $(includedir) (i.e. appear
2272 directly in the #include path), and ...
2273 (inner_h_files): ... this new variable says which files appear in
2274 a subdirectory, and are referred to as <libguile/mumble.h>.
2275 (h_files): List them both.
2276 (install): Create innerincludedir, not pkgincludedir. Put
2277 the installed_h_files and inner_h_files in their proper places.
2278 (uninstall): Corresponding changes.
2279 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
2280 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
2281 feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
2282 ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
2283 mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
2284 print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
2285 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
2286 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
2287 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
2288 vports.h, weaks.h: Find __scm.h in its new location.
2289 * __scm.h: Find scmconfig.h and tags.h in their new locations
2290 (they're both "inner" files).
2292 Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
2294 * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
2296 Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
2298 * posix.c: Doc fixes.
2300 Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
2302 * socket.c: Don't include a prototype for inet_aton; just use a
2303 K&R style declaration, to avoid warnings but minimize the chance
2304 of conflicts with the system.
2306 On NextStep, <utime.h> doesn't define struct utime, unless we
2307 #define _POSIX_SOURCE before #including it.
2308 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
2309 * acconfig.h: New comment text for above CPP symbol.
2310 * configure.in: Call it.
2311 * posix.c: #define _POSIX_SOURCE if it seems necessary.
2313 * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
2315 * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
2316 testing for __EMX__.
2318 * posix.c: #include <libc.h>, if it exists.
2320 * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
2321 don't even know if the latter exists.
2323 * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
2324 s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
2325 s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
2327 * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
2329 (scm_init_posix): Use them when initializing the Scheme constants
2332 Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
2334 * Makefile.in (libdir, includedir, bindir): Use the
2335 autoconf-supplied values, instead of deriving them ourselves.
2336 (pkgincludedir, datadir, pkgdatadir): New variables.
2337 (install, uninstall): Put the header files in a special
2338 subdirectory, not in the main search path.
2340 * Makefile.in (ALL_CFLAGS): Provide the proper value for
2341 LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
2343 * Makefile.in (IMPLPATH): Deleted; never used.
2345 * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
2346 on the Tcl/Tk source any more.
2347 (INCLUDE_CFLAGS): Remove references to the above.
2349 * Makefile.in (version.o): Corrected dependencies.
2351 Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
2353 * libguile.h: #include "version.h"
2355 * init.c (scm_boot_guile): Call scm_init_version.
2356 * gscm.c (gscm_run_scm): Call scm_init_version.
2358 * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
2359 GUILE_VERSION): AC_DEFINE these.
2360 (acconfig.h): #undef the above symbols.
2362 * Makefile.in (libobjs): Add version.o.
2363 (installed_h_files): Add version.h.
2364 (c_files): Add version.c.
2365 (gen_c_files): Add version.x.
2366 (version.o): New rule.
2367 (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
2368 chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
2369 fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
2370 genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
2371 mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
2372 objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
2373 procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
2374 simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
2375 strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
2376 throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
2377 weaks.o): Add version.h to dependency lists.
2378 (markers.o): Remove duplicate rule.
2380 * version.h: New file.
2382 * version.c: New file.
2384 Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
2386 * symbols.c (scm_strhash): scm_downcase is now a function, not an
2387 array; use it appropriately. Since GCC is quite happy to
2388 subscript functions, it never warned us about this; we should use
2389 -Wpointer-arith in the future. I guess we never tested
2392 Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
2394 * socket.c: Doc and copyright fixes.
2396 Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2398 * debug.c: Fixed and improved gdb support.
2400 Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2402 * socket.c: Added declaration of inet_aton to avoid compiler
2403 warning. (Hope this solution is correct.)
2405 * stime.c: Added declaration of ftime. (This is missing in
2408 Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
2410 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
2412 * Makefile.in (c_files): add strerror.c.
2414 * strerror.c: new file from Emacs' sysdep.c.
2415 maybe configure should also check for sys_errlist.
2417 * configure.in (AC_REPLACE_FUNCS): add strerror.
2419 Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2421 * debug.c (scm_init_debug): Added initialization for
2422 scm_evaluator_traps.
2424 * debug.h, debug.c: Various name changes.
2425 (Mostly prefixing with SCM_.) Renamed "debug-options" -->
2426 "debug-options-interface". See commentary in options.c.
2428 * options.h, options.c: Options now have documentation strings.
2429 Also added a long explanatory commentary.
2431 * eval.c, print.h, print.c, read.h, read.c: Modifications to
2434 * gscm.c, init.c, root.c, throw.c: Bug fixes:
2435 last_debug_info_frame is now updated in all cases.
2437 * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
2440 Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2442 * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
2443 Added option STACK_CHECKING.
2445 Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
2447 * Makefile.in: Added {debug,options,srcprop}.{h,c}
2449 * __scm.h: Removed symbols for debugging support.
2451 * acconfig.h: Added symbols for debugging support.
2453 * configure.in: Added user option for debugging support.
2454 --enable-debug will include the debugging code into libguile.a.
2456 * continuations.c (scm_make_cont): Enlarged the #if 0 around
2457 scm_relocate_chunk_to_heap.
2459 * debug.c: New file: low-level debugging support. It also
2460 includes support for debugging with gdb. (The extensions to gdb
2461 are written by Per Bothner at Cygnus.)
2463 * debug.h: New file: low-level debugging support.
2465 * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
2466 argument pairs. Extensive modifications to the debugging
2467 evaluator. Added "SECTION:" commentaries to clarify what happens
2468 when, during double compilation. Renamed EVALIMP --> EVALIM.
2469 Renamed EVAL --> XEVAL. Removed function evalcar. Defined
2470 evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
2471 the beginning of the file. New procedure: scm_unmemocopy.
2472 Added some global state variables needed by the debugging
2473 evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
2474 check_entry, check_apply, check_exit, debug_options and
2475 evaluator_traps. New acro: undefine.
2477 * eval.h: Renamed EVAL --> XEVAL.
2479 * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
2480 --> scm_make_weak_key_hash_table.
2482 * init.c (scm_restart_stack, scm_boot_guile): Added initialization
2483 of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
2485 * libguile.h: Conditionally include debug.h
2487 * objprop.c (scm_object_properties, scm_set_object_properties_x):
2488 scm_object_properties shouldn't return handle. `handle' now gets
2489 initialized in scm_set_object_properties_x. scm_object_properties
2490 doesn't any longer create an entry in scm_object_whash.
2492 * options.c: New file: handling of run time options.
2494 * options.h: New file: handling of run time options.
2496 * posix.c (scm_getpgrp): Cast pointer to getpgrp.
2498 * print.c: New procedure: scm_print_options
2500 * print.h: Defines for print options.
2502 * read.c: New procedure: scm_read_options
2504 * read.h: Defines for reader options.
2506 * root.h: Added scm_source_whash among scm_sys_protects.
2508 * srcprop.c: New file: source properties.
2510 * srcprop.h: New file: source properties.
2512 * throw.c (jbsmob): Jump buffers are now correctly allocated.
2513 (Bug found by A. Green.)
2515 * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
2517 * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
2519 Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
2521 * libguile.h: #include "objprop.h"; I guess this was forgotten.
2523 * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
2524 and should be called by the final client.
2526 Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
2528 * gc.h: Use the PROTO macro when declaring functions.
2529 * gc.c: Use the PROTO macro when declaring static functions.
2530 Remove the CPP hair around function definitions.
2532 * gc.c (scm_init_storage): Initialize scm_asyncs.
2534 * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
2535 preprocessor symbol; "__scm.h" is where it might get #defined.
2536 * __scm.h: Similar: #include <scmconfig.h> before testing
2539 * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
2541 Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
2543 * init.c (scm_boot_guile): Add init_func argument; call
2544 (*init_func) instead of calling scm_appinit; it's ucky to
2545 hard-code names for the user's procedures.
2546 * init.h (scm_boot_guile): Adjust declaration.
2548 * __scm.h (PROTO): New macro, for declaring functions with
2551 * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
2552 eliminate all the __STDC__ conditionals.
2553 (scm_boot_guile): Add declaration.
2554 * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
2555 Remove __STDC__ conditionals around function definitions; the
2556 declarations in init.h will provide the same information, more
2559 * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
2560 complain about it in the error message; the error message is
2561 adequate without that note, and there's nothing the user can do
2564 Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
2566 * Makefile.in (ancillary): Drop def.sed.
2568 * posix.c (scm_init_posix): Use numeric values, rather than
2569 CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
2570 F_OK. The symbols aren't available on some systems, and I'm
2571 pretty sure their values are fixed by common widespread practice.
2572 * ioext.c (scm_init_ioext): Code here defined them too; remove it.
2574 More functions unavailable on some systems.
2575 * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
2576 tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
2578 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
2579 * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
2580 scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
2581 bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
2582 stub that signals an error as the #else.
2584 * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
2586 Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
2588 * Fixes motivated by Petr Adamek <adamek@mit.edu>:
2590 * unif.c: include ramap.h.
2592 * read.c (endif): case_insensative_p renamed case_insensitive_p.
2594 * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
2596 * ports.c: include sys/ioctl.h.
2598 * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
2600 * configure.in: check for sys/ioctl.h.
2602 * ports.c: include <malloc.h> not "malloc.h".
2604 * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
2606 * fports.c: remove ttyname and tmpnam declarations.
2608 * posix.c: fewer ttyname declarations.
2610 * fports.c: include <string.h> not "string.h".
2612 * init.c, ioext.c: include string.h and unistd.h.
2614 * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
2616 * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
2617 genio.c, simpos.c, vports.c: include string.h.
2619 * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
2621 * fdsocket.c (getsockopt, setsockopt): change type of optlen from
2623 (scm_addr_buffer_size): change type from scm_sizet to int.
2624 (accept, getsockname, getpeername, recvfrom): change type of tmp_size
2625 from scm_sizet to int.
2627 * error.c: include unistd.h.
2629 * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
2632 * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
2634 * __scm.hd, def.sed: deleted.
2636 Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
2638 Changes for NeXT, suggested by Robert Brown.
2639 * configure.in: Call AC_TYPE_MODE_T.
2640 (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
2641 NeXT. Put header file list in alphabetical order.
2642 * configure, scmconfig.h.in: Regenerated.
2643 * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
2645 * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
2648 * acconfig.h: New file, providing documentation for the CPP
2649 symbols defined in configure.in
2650 * acconfig-1.5.h: Removed; superceded by the above.
2652 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
2654 * ioext.c (scm_sys_fdopen): fix the port-table assignment.
2656 * fports.c (scm_open_file): don't return #f, throw error.
2658 * ioext.c (fileno): renamed from %fileno.
2659 (soft-fileno): deleted.
2661 * ports.c (scm_port_revealed): don't need to check for -1 from
2663 (scm_set_port_revealed_x): return unspecified, not #f.
2665 * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
2667 * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
2669 * scmconfig.h.in: add HAVE_STRUCT_LINGER.
2671 * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
2673 Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
2675 * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
2676 This is necessary on Ultrix, and doesn't hurt portability.
2678 * Makefile.in (dist-dir): New target, implementing a new dist system.
2679 (installed_h_files): Put in alphabetical order.
2680 Remove duplicate entries for markers.h and unif.h.
2681 (c_files): Remove duplicate entries for markers.c.
2682 (ancillary): Renamed from anillery; all uses changed. Remove
2683 PLUGIN; it's a directory, and needs special treatment in dist-dir.
2684 Remove all the ../doc/* files; doc/Makefile.in handles that.
2686 * Makefile.in (libobjs): Remove duplicate entry for markers.o.
2688 * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
2689 every if must have an else, or else the whole command has a
2690 non-zero exit code whenever the if's condition is false.
2692 Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
2694 * posix.c: include string.h.
2696 Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
2698 * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
2701 * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
2702 Remove leading % from scheme names.
2703 Do not return error values, call SCM_SYSERROR or similar.
2705 * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
2707 Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
2709 * struct.c (scm_init_struct): new file.
2711 Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
2713 * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
2714 (scm_list_head): added list-head for rapidly chopping argument
2715 lists off of longer lists (and similar).
2717 Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
2719 * objprop.c (scm_object_property): assq the cdr of the whash
2720 handle for obj, not the handle itself.
2722 Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
2724 * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
2725 weak hash tables last of all marking to avoid an obscure gc bug.
2726 WARNING: circular lists stored in a weak hash table will hose us.
2728 Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
2730 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
2731 new functions similar to scm_substring_move_left_x and
2732 scm_substring_move_right_x.
2734 Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
2736 * init.c (scm_boot_guile): prevent gc with scm_block_gc not
2739 Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
2741 * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
2743 Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
2745 * strports.c (scm_strprint_obj): convenience function. C for
2746 (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
2748 * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
2749 removed to a separate library
2751 * init.c (scm_boot_guile): copied from guile-tcl.c.
2752 Initialization specific to tcl interpreters removed.
2754 Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
2756 * ports.c (scm_ports_prehistory): size malloced here doesn't
2757 matter so long as it is non-0 (got rid of "* 4").
2759 Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
2761 * gscm.h: gscm_mkarray eliminated (presumably was not being used
2762 since its definition was bogus).
2764 Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
2766 * mallocs.[ch]: back again (for rx at least).
2768 Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
2770 * ports.c: removed functions relating to the mapping between ports
2771 and descriptors. (That stuff is unix-specific and should be collected
2772 in a separate library).
2774 * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
2775 (Tom Mckay@avanticorp.com)
2777 Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
2779 * gc.c (scm_gc_sweep): Immediates in weak vectors were not
2780 handled correctly (SCM_FREEP was applied to them) -- test for
2781 NIMP. Keys in weak hash tables were spuriously (though harmlessly)
2782 being overwritten with #f. (brown@grettir.bibliotech.com)
2784 Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
2786 * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
2787 for a specific symbol or for all symbols.
2789 Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
2791 * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
2792 keys and weak values confused).
2794 Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
2796 * list.c (scm_last_pair): map '()=>'()
2798 Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
2800 * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
2801 Generalized assoc and hash-table functions.
2802 Factored pairs.c into multiple files.
2804 Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
2806 * gscm.c (gscm_run_scm): got rid of objprop.
2808 Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
2810 * genio.c (scm_getc):
2811 NOTE: fgetc may not be interruptable.
2813 * procprop.c (scm_stand_in_scm_proc):
2814 NOTE: don't use a alist here.
2815 (scm_set_procedure_properties_x): fix type checking throughout this file.
2817 * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
2819 * ports.c (scm_remove_from_port_table): adjust scm_mallocated
2820 after freeing part of the port table.
2822 Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
2824 * strports.c (scm_mkstrport):
2825 * vports.c (scm_make_soft_port): allocate a port table entry
2826 (possibly triggering gc) before setting the tag of the corresponding
2829 * pairs.c (scm_delq_x): never throw an error.
2831 * vectors.c (scm_make_vector): made the default vector fill argument
2832 into '() (much more useful than the previous value, "#unspecified")
2834 Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
2836 * ports.c (scm_add_to_port_table): Added fields
2837 to port table entries: file_name, line_num, col.
2838 Update these in open_file, gen_getc and gen_ungetc.
2839 Added procedures to access those fields.
2841 Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
2843 * procs.c (scm_make_subr_opt): new entry point for making
2846 Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
2848 * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
2850 Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
2852 * numbers.c (scm_exact_p): This function no longer
2853 implements "integer?".
2855 Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
2857 * gc.c (scm_gc_end): simulate a signal at the end of each GC.
2858 (scm_gc_stats): return an assoc of useful data. Replaces "room"
2859 and the stats reporting formerlly built into repl.
2861 * repl.[ch]: removed.
2862 GC statistics keeping moved to gc.c.
2863 Other statistics keeping can be done from Scheme.
2864 REPLS are now written in Scheme.
2866 Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
2868 * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
2869 conservatively marked objects).
2871 * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
2873 * error.c (scm_init_error): init system_error_sym here, not in repl.c.
2875 * feature.c (scm_compiled_library_path): moved here from repl.c.
2876 This file is for stuff relating specifically to Scheme libraries
2879 * eval.c (scm_m_define): don't give warning about redefinition, don't
2882 NOTE: this should throw a resumable exception with parameters --
2883 the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
2885 * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
2887 * error.c: scm_warn eliminated.
2889 * read.c (scm_lreadr): extra right paren gets an error, not a warning.
2891 * repl.c, marksweep.c, gc.c (various):
2892 lose exit_report, growth_mon.
2894 * gscm.c: got rid of verbosity functions.
2896 Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
2898 * throw.c (scm_ithrow): guard against the bad-throw hook changing
2899 between the call to procedurep and use.
2901 * error.c (scm_everr):
2903 * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
2906 * strports.c: don't reveal the port's string to the caller
2907 because it changes size.
2909 (stputc stwrite): check/change the strings length with interrupts
2912 * objprop.c (scm_set_object_property_x &c): use the generic
2913 hashing functions and be threadsafe.
2915 * eval.c (scm_unmemocar): do this operation in a thread-safe way.
2916 (per suggestion jaffer@gnu.ai.mit.edu).
2918 * mbstrings.c (scm_multi_byte_string): guard against argument list
2921 * strings.c (scm_make_string): loop cleanup
2923 * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
2926 * weaks.c (scm_weak_vector): guard against argument list
2929 * variable.c (scm_builtin_variable): check for/make a built-in
2932 * vectors.c (scm_vector): while filling the new array,
2933 guard against a list of fill elements that grows after
2934 the vector is allocated.
2936 * hashtab.c -- new file: general hash table
2937 functions. hash, hashq, hashv, hashx.
2939 * tags.h: made wvect an option bit of vector.
2941 Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
2943 * symbols.c: made the basic symbol table operations atomic.
2945 * root.c &c.: collected stack-specific global state.
2946 linum/colnum etc *should* be port-specific state.
2948 * struct.c (scm_init_struct): init the first struct type during
2949 initialization to fix a race condition.
2951 * continuations.c (scm_dynthrow): pass throwval in the 'regs'
2952 object, not in a global.
2953 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2955 * throw.c (_scm_throw): Pass throwval on the stack, not in a global
2956 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2958 * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
2959 and C symbols to begin with SCM_ or scm_.
2961 Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
2963 * gsubr.c (scm_gsubr_apply): statically allocate the
2964 array of arguments (bothner@cygnus.com).
2966 Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
2968 * scmsigs.c: Simplified to use async rountines.
2970 * async.c: New support for interrupt handlers.
2972 Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
2974 * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
2975 set the multi_byte flag correctly in symbols. This is wrong.
2976 intern_obbary_soft and msymbolize should take an extra parameter.
2977 Also, weird multibyte symbols don't print correctly.
2978 The weird symbol syntax is also a bit bogus (emacs doesn't quite
2981 Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
2983 * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
2984 use the system symhash. == #t means create an uninterned symbol.
2986 Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
2988 * strings.c (scm_make_shared_substring): build'em.
2989 It might better to keep a table of these and use one
2990 less cons-pair per shared-substring.
2992 Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
2994 * strings.c (scm_string_shared_substring): create shared
2995 substrings. (Doesn't handle mb strings yet).
2997 * mbstrings.c (scm_print_mb_string): handle RO strings.
2999 * print.c (scm_iprin1): print substrings as their non-substring
3000 counterparts (dubious).
3002 * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
3005 * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
3007 * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
3009 * eq.c (scm_equal_p): handle RO and MB strings.
3011 * symbols.c (scm_string_to_symbol):
3012 (scm_string_to_obarray_symbol):
3013 * strop.c (scm_i_index):
3015 (scm_string_null_p):
3016 (scm_string_to_list):
3017 * strings.c (scm_string_length):
3020 (scm_string_append):
3021 * simpos.c (scm_system):
3023 * fports.c (scm_open_file):
3024 * strorder.c (scm_string_equal_p):
3025 (scm_string_ci_equal_p):
3026 (scm_string_less_p):
3027 (scm_string_ci_less_p):
3028 * pairs.c (scm_obj_length):
3029 * mbstrings.c (scm_multi_byte_string_length):
3031 Use RO string macros for RO strings.
3033 Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
3035 * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
3037 * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
3038 index/rindex. Do handle embedded \000 characters.
3040 Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
3042 * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
3043 Eliminate a (presumed) warning on some systems.
3045 * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
3046 (Mikael Djurfeldt <mdj@nada.kth.se>)
3048 Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
3050 * eval.c (scm_map): added argument type checking.
3051 (kawai@sail.t.u-tokyo.ac.jp)
3053 * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
3054 for C++. (Seth Alves <alves@gryphon.com>)
3056 (gscm_cstr): uses an uninitialized local variable causing
3057 segv. (kawai@sail.t.u-tokyo.ac.jp)
3060 * lvectors.c (scm_get_lvector_hook):
3061 In guile-ii, the lvector code was broken. It was fixed in guile-iii.
3062 It seems to me like if it is broken again in guile-iv...Here is a patch.
3063 "! || (LENGTH (keyvec) == 0))"
3064 (From: Mikael Djurfeldt <mdj@nada.kth.se>)
3067 * gscm.c (gscm_sys_default_verbosity):
3068 incorrectly declared for non-__STDC__
3069 (Tom_Mckay@avanticorp.com)
3071 * ports.c (scm_setfileno): Tweak the macro a bit
3072 to make it easier to port to systems that use
3073 more than a single structure field to hold a descriptor.
3075 * debug.c (change_mode): Avoid GNUCism "int foo[n];"
3076 Give a warning, not an error, for unrecognized modes.
3078 * eval.c (SCM_CEVAL):
3079 static char scm_s_for_each[];
3080 static char scm_s_map[];
3083 * strings.c (scm_string_p):
3084 static char s_string[];
3087 * struct.c (scm_sys_struct_set_x):
3088 static char s_sys_make_struct[];
3089 static char s_sys_struct_ref[];
3090 static char s_sys_struct_set_x[];
3091 Rearrange code to eliminate those forward decls for the sake of
3094 * variable.c (make_vcell_variable): static char s_make_variable[];
3097 * fports.c (scm_port_mode):
3098 chars modes[3] = "";
3102 (Tom_Mckay@avanticorp.com)
3105 * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
3106 scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
3107 (Tom_Mckay@avanticorp.com)
3109 * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
3110 scm_num_eq_p() was scm_equal_p().
3111 (Tom_Mckay@avanticorp.com)
3113 * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
3114 (Tom_Mckay@avanticorp.com)
3116 Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
3118 * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
3119 (Tom_Mckay@avanticorp.com)
3121 * strop.c (scm_substring_fill_x):
3122 Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
3123 (Tom_Mckay@avanticorp.com)
3125 * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
3126 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
3128 * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
3129 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
3131 * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
3132 can turn into an obscure gc bug.
3134 * chars.c (scm_char_p): fixed PROC call.
3136 * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
3139 Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
3141 * elisp.c (new file): dynamic scoping and other bits for
3142 elisp. Don't use this yet unless you specificly want to
3143 hack on elisp emulation.
3145 * dynwind.c (scm_dowinds): When entering or leaving a dynamic
3146 scope created by scm_with_dynamic_bindings_operation_x, swap
3147 the bindings of that scope with the corresponding globals.
3149 * continuations.c (scm_make_cont): when a continuation is captured,
3150 relocate the continuation stack chunks registered on the wind chain
3153 Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
3155 * eval.c (SCM_CEVAL): if the function position evaluates
3156 to a macro, process it accordingly. (Previously, macros were
3157 handled only if the function position was a symbol naming a
3158 variable bound to a macro).
3160 Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
3162 * eval.c (scm_m_set): allow multi-variable set! like
3165 Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
3167 * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
3168 STREAM of ports into the port table and replaced it with a
3171 * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
3173 * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
3175 * mbstrings.c (new file): functions on multi-byte strings.
3177 * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
3178 for multi-byte strings. Moved the string tag.
3180 * chars.h chars.c repl.c (many functions): made scm_upcase and
3181 scm_downcase functions that are safe for extended character sets.
3183 Changed the range of integer->char.
3185 Changed the type of SCM_ICHR.
3187 Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
3189 * guile.c: Changed init file name from "SCM_INIT_PATH" to
3192 Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
3194 * guile.c (gscm_is_gscm_type): New function. (Without this how will we
3195 know that it's safe to pass an object to gscm_get_type?)
3196 (gscm_get_type): Fix tyop in error message.
3198 * variable.c (scm_variable_ref): fixed assertion test.
3199 (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
3201 * gscm.h: fixed several prototypes, notably gscm_vref.
3202 Add gscm_is_eq and temporarily commented out gscm_eq (see
3203 the note in gscm.h near gscm_eq if this change effects your
3205 (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
3207 * pairs.c (scm_obj_length): see next entry.
3209 * gscm.h (gscm_obj_length): A way to get an integer
3210 length for lists, strings, symbols (treated as strings),
3211 and vectors. Returns -1 on error.
3213 * eq.c (scm_equal_p): fixed smob case.
3214 (William Gribble <grib@arlut.utexas.edu>)
3216 * Makefile.in (X_CFLAGS): defined.
3217 (William Gribble <grib@arlut.utexas.edu>)
3219 * gscm.h (gscm_2_double): provided now
3220 (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
3222 Tue Jun 13 01:04:09 1995 gnu