1 Sat Dec 21 14:50:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3 * net_db.c: Added #include <sys/socket.h>.
5 Sat Dec 21 00:33:03 1996 Gary Houston <ghouston@actrix.gen.nz>
7 * filesys.c (scm_input_waiting_p): use select in preference to
8 FIONREAD, since the latter doesn't detect EOF.
9 Throw error if neither select nor FIONREAD available.
11 * socket.c (scm_connect): take a port, not a fd object.
12 (scm_fill_sockaddr): throw an error if fam is not recognised.
13 (scm_bind): use scm_fill_sockaddr.
14 (scm_listen): take a port, not a fd object.
15 (scm_accept): take and return a port. return CDR in the car if
17 (scm_sock_fd_to_port): new procedure.
18 (scm_socket): use scm_sock_fd_to_port.
19 (scm_addr_vector): throw error if unrecognised address type.
20 take an extra argument with the calling procedure name.
21 (scm_getsockname): take a port. return #f if address can't be got.
22 (scm_getpeername): take a port. return #f if address can't be got.
23 (scm_recvfrom): take a port. return #f for address component if can't
25 (scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
26 scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
28 Fri Dec 20 23:06:53 1996 Jim Blandy <jimb@floss.cyclic.com>
30 * throw.c (scm_internal_catch): Make body funcs and handler funcs
31 use separate data pointers, to allow them to be designed
32 independently and reused.
33 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message):
34 Renamed from catch_body, catch_handler, and uncaught_throw; made
36 (struct scm_catch_body_data): Renamed from catch_body_data; moved
38 (scm_catch): Use the above.
39 (scm_throw): Don't bother printing a message for an uncaught
40 throw; we establish a default handler in init.
41 * throw.h (scm_internal_catch): Prototype updated.
42 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message): New
44 (struct scm_body_thunk_data): New structure, used as data
45 argument to scm_body_thunk.
46 * init.c (struct main_func_closure): New structure, packaging up
47 the data to pass to the user's main function.
48 (scm_boot_guile): Create one. Pass it to scm_boot_guile_1.
49 (scm_boot_guile_1): Pass it through to invoke_main_func. Use
50 scm_internal_catch to establish a catch-all handler, using
51 scm_handle_by_message. This replaces the special-case code in
53 (invoke_main_func): Body function for scm_internal_catch; invoke
54 the user's main function, using the main_func_closure pointer to
55 decide what to pass it.
56 * root.c (struct cwdr_body_data): Remove handler_proc member.
57 (cwdr): Use scm_handle_by_proc instead of cwdr_handler.
58 (cwdr_handler): Removed.
60 Thu Dec 19 00:00:26 1996 Gary Houston <ghouston@actrix.gen.nz>
62 * socket.h (SCM_P): update bind prototype.
63 * socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
65 (scm_socket): return a port, not a file descriptor object.
66 include "fports.h" and <unistd.h>
67 (scm_bind): take a port, not a file descriptor object.
68 take an extra argument for address args.
70 * net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
71 INADDR_NONE, INADDR_LOOPBACK.
73 Tue Dec 17 22:58:26 1996 Gary Houston <ghouston@actrix.gen.nz>
75 * init.c: include net_db.h and not fdsocket.h.
76 (scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
78 * Makefile.am: corresponding changes.
79 * socket.h: renamed from fdsocket.h, fix names.
80 * net_db.h: renamed from socket.h, fix names.
81 * socket.c: renamed from fdsocket.c.
82 remove _sys from procedure names.
83 (scm_init_socket): rename from scm_init_fdsocket. include socket.x.
84 add "socket" to features list.
85 * net_db.c: renamed from socket.c.
86 remove _sys from procedure names.
87 (scm_init_net_db): rename from scm_init_socket. include net_db.x.
88 add "net-db" to features list.
89 include "net_db.h". don't include <sys/socket.h> or
92 Thu Dec 19 14:03:24 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
94 * tags.h (scm_tags): Removed comma at end of last enumerator.
96 Thu Dec 19 02:54:59 1996 Jim Blandy <jimb@floss.cyclic.com>
98 Don't use GCC extensions to allocate space for debugging frames.
99 (Here he goes again! Why do we put up with this?!)
100 * debug.h (scm_debug_frame): Make the 'vect' member a pointer to
101 an scm_debug_info structure, not an in-line array of them. Add
102 'info' member, to say how many vect elements we've used, for eval
104 * eval.c (SCM_CEVAL): Use alloca to allocate space for vect. Use
105 a new variable debug_info_end to mark the end of vect, instead of
106 the address of the 'info' pointer itself.
107 [DEVAL] (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Remove casts of
108 &debug to scm_debug_frame *; debug is a real scm_debug_frame now.
109 (SCM_APPLY): Explicitly allocate space for debug.vect.
110 * debug.c (scm_m_start_stack): Same, for vframe.vect.
111 * stacks.c: Adjusted for new debug frame structure.
112 (RELOC_INFO, RELOC_FRAME): New macros.
113 (stack_depth, read_frames): Use them, and new scm_debug_frame
114 element 'info', instead of magically knowing that eval frames have
115 an info pointer sitting after vect.
116 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Use
118 (scm_init_stacks): Formatting tweaks.
120 Wed Dec 18 14:57:57 1996 Jim Blandy <jimb@floss.cyclic.com>
122 Give GCC more control flow information, so it can be sure that
123 variables aren't used uninitialized.
124 * error.h (scm_error, scm_syserror, scm_syserror_msg,
125 scm_sysmissing, scm_num_overflow, scm_out_of_range,
126 scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
127 scm_misc_error): Tell GCC that these functions never return.
128 * struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
129 out the field type, call abort if SCM_ASSERT returns, to placate
131 * stacks.c (scm_make_stack, scm_last_stack_frame): abort if
132 scm_wta ever returns. We can't handle this case anyway, and this
133 gives the optimizer more information.
134 * unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
135 scm_wta ever returns.
137 In some cases, the code is fine, but GCC isn't smart enough to
138 figure that out; this usually happens when one variable is only
139 initialized and used when a particular condition holds true, and
140 we know that condition will never change within a given invocation
141 of the function. In this case, we simply initialize the variables
142 to placate the compiler, hopefully to a value which will cause a
143 crash if it is ever actually used.
144 * print.c (scm_iprin1): Initialize mw_pos.
145 * read.c (scm_lreadrecparen): Initialize tl2, ans2.
146 * throw.c (scm_ithrow): Initialize dynpair.
147 * unif.c (scm_uniform_vector_ref): Initialize cra.
148 * struct.c (init_struct): Initialize prot.
149 * mbstrings.c (scm_print_mb_symbol): Initialize mw_pos and inc.
151 * strports.c (scm_eval_0str): Don't return uninitialized garbage
152 if EXPR contains no expressions.
154 Wed Dec 18 11:43:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
156 * eval.c, debug.h: Revert changes of Dec 16 and Nov 21. They
157 cause an infinite loop (???). So much for the algebraic
158 equivalency of variable-sized arrays and alloca...
160 Tue Dec 17 20:29:03 1996 Marius Vollmer <mvo@zagadka.ping.de>
162 * backtrace.c (scm_display_error): Bugfix: scm_procedure_p returns
163 a SCM boolean, not a C boolean.
165 Sat Dec 14 23:21:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
167 * gc.c (SCM_MTRIGGER_HYSTERESIS): New memory management parameter.
168 (scm_must_malloc, scm_must_realloc): Added a hysteresis to the
169 rules for raising scm_mtrigger. Previously, unfortunate but not
170 unlikely circumstances could result in almost constant invokation
171 of the gc. Now, this situations should be less likely, but they
172 are not prevented completely.
174 Tue Dec 17 16:19:07 1996 Jim Blandy <jimb@totoro.cyclic.com>
176 * numbers.c (scm_fuck): Procedure removed; looks like old test
178 * numbers.h: Prototype removed.
180 Mon Dec 16 18:20:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
182 * debug.h (scm_debug_frame): Change `vect' member from an in-line
183 array to a pointer, to match my Nov 21 change in eval.c.
185 Fri Dec 13 16:12:14 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
187 * libguile.h: Added #include "libguile/backtrace.h", #include
190 * strings.c (scm_string scm_make_string scm_string_ref
191 scm_string_set_x scm_string_equal_p scm_string_append):
192 Bugfix according to scm patch from Aubrey Jaffer:
193 Corrected long-standing
194 (not (eqv? (integer->char 128)
195 (string-ref (make-string 1 (integer->char 128)) 0)))
196 bug found by John Kozak <jk@noontide.demon.co.uk>.
198 * * strports.c, strports.h: Make scm_eval_0str return the value of
199 the last expression evaluated (previously, it returned void).
201 * * strports.c, strports.h: New function: scm_read_0str. Does what
204 Tue Dec 10 23:38:43 1996 Gary Houston <ghouston@actrix.gen.nz>
206 * simpos.c (scm_getenv): return #f if string can't be found in the
207 environment instead of throwing an exception, for compatibility
208 with numerous other systems.
210 Mon Dec 9 23:23:35 1996 Tom Tromey <tromey@cygnus.com>
212 * Makefile.am (.c.x): Use guile-snarf.
213 * configure.in (AC_OUTPUT): Generate guile-snarf; make it
215 * guile-snarf.in: New file, resurrected from old guile-snarf.sh.
217 Mon Dec 9 18:36:50 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
219 * backtrace.c (scm_display_error_message): Made non-static, and
220 renamed from display_error_message.
221 * backtrace.h (scm_display_error_message): Added extern decl.
222 * throw.c (uncaught_throw): Use it to display the error message.
224 Mon Dec 9 10:10:38 1996 Tom Tromey <tromey@cygnus.com>
226 * inet_aton.c: Use #if 0, not #ifdef 0.
228 Mon Dec 9 06:36:48 1996 Gary Houston <ghouston@actrix.gen.nz>
230 * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
231 to convert the returned value.
232 (scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
235 Sun Dec 8 21:06:38 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
237 Add new interface to catch/throw, usable from C as well as
239 * throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
240 (scm_internal_catch): New function, replaces...
241 (scm_catch_apply): Deleted.
242 * throw.c (scm_catch_apply): Deleted; replaced with a more general
243 mechanism which is a bit more code, but can be used nicely from C
244 and implement the Scheme semantics as well.
245 (scm_internal_catch): This is the replacement; it's named after
246 the analogous function in Emacs.
247 (scm_catch): Reimplemented in terms of the above.
248 (struct catch_body_data, catch_body, catch_handler): New
249 functions, used by scm_catch.
250 * root.c (cwdr): Reimplemented in terms of scm_internal_catch.
251 (struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
252 support for new cwdr.
254 * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
257 Sun Dec 8 17:55:34 1996 Marius Vollmer <mvo@zagadka.ping.de>
259 * acconfig.h: Added DYNAMIC_LINKING symbol.
260 * configure.in: Add option and checks for dynamic linking.
261 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c,
262 dynl.h: New files for dynamic linking support.
263 * Makefile.am (libguile_a_SOURCES):
265 (modinclude_HEADERS): Added "dynl.h".
266 (EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
268 * init.c (scm_boot_guile_1): Call
269 scm_init_dynamic_linking to initialize dynamic linking support.
271 Thu Dec 5 22:47:53 1996 Marius Vollmer <mvo@zagadka.ping.de>
273 * init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
274 (as we Schemers say). It needs to be global, so that I can tweak
275 it for the proper operation of unexec.
276 (scm_boot_guile_1_live): New variable, see above.
278 Sun Dec 1 00:00:49 1996 Tom Tromey <tromey@cygnus.com>
280 * guile-snarf.sh: Removed.
281 * PLUGIN/guile.libs: Added dependency for -lm.
282 * acinclude.m4: Renamed from aclocal.m4.
283 * PLUGIN/greet: Removed.
284 * Makefile.am, aclocal.m4: New files.
285 * configure.in: Updated for Automake.
287 Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
289 * eval.c (scm_definedp): Use top_level_lookup_closure_var
290 and not top_level_lookup_thunk_var.
292 Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
294 * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
296 Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
298 * eval.c (scm_definedp): Incompatibly changed to be a builtin
299 Scheme function, instead of syntax. Single argument is now a
302 Thu Nov 21 20:26:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
304 * ramap.c (scm_ra_sum, scm_ra_difference, scm_ra_product,
305 scm_ra_divide): Properly terminate statements passed as arguments
306 to IVDEP macros. (Thanks to Bernard Urban.)
308 * eval.c (SCM_CEVAL): Use alloca, not GCC's extensions for arrays
309 with non-constant sizes. (Thanks to Bernard Urban.)
311 Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
313 It's an "eval closure", not an "eval thunk." A thunk is a
314 function of no arguments.
315 * root.h (struct scm_root_state): Renamed
316 top_level_lookup_closure_var from top_level_lookup_thunk_var.
317 (scm_top_level_lookup_closure_var): Renamed from
318 scm_top_level_lookup_thunk_var.
319 * root.c (mark_root): Uses changed.
320 * gdbint.c (gdb_eval, gdb_binding): Uses changed.
321 * init.c (scm_start_stack): Uses changed.
322 * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
323 Change scheme-visible name to *top-level-lookup-closure* from
324 *top-level-lookup-thunk*.
326 Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
328 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
329 pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
331 Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
333 * gc.c (struct scm_heap_seg_data): Doc fixes.
335 * gc.c (scm_gc_sweep): Empty all segments' freelists before
336 sweeping. Then, prepend each segment's free cells to its
337 freelist, rather than wiping out the old value. (Thanks to Marius
340 * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
341 scm_check_freelist, scm_debug_newcell): New functions and
342 variables, for debugging freelist problems.
343 * pairs.h (SCM_NEWCELL): New debugging version added.
344 * gc.h (scm_debug_newcell): Added extern declaration, used by
345 debugging version of SCM_NEWCELL.
347 Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
349 On some systems <libc.h> conflicts with <unistd.h>, and should not
351 * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
352 * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
353 * configure.in: Call it.
354 * posix.c, filesys.c: Use its results to decide whether or not to
356 * configure, scmconfig.h.in: Rebuilt with autoconf and
359 Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
361 * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
362 pointer to the stdio stream before calling scm_setbuf0, so the
363 latter will be able to retrieve it. I'm surprised this didn't
364 segfault earlier. (Thanks to Christopher Lee.)
366 Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
368 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
371 Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
373 * * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
374 number of stack narrowing specifier pairs. The first specifier in
375 a pair controls inner border, the second the outer border. A
376 number means cut that number of frames, a procedure object means
377 cut until that object is found in operator position in a frame.
379 * root.c (cwdr): Bugfix.
381 * * read.c: Recording of positions disabled by default.
383 * * procs.c (scm_closure_p): New function.
385 * * posix.c (scm_tmpnam): New function.
387 * load.c: Added #include "throw.h".
388 * (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
391 * * load.c, load.h (scm_read_and_eval_x): New function.
393 * * eval.c: Renamed debug option "deval" to "debug".
395 * (scm_eval_x): `eval!' is no longer accessible from the scheme
396 level. Motivation: We can't allow operations which introduce
397 glocs into the scheme level. Guile's type system can't handle
398 these as data. Use `eval' or `read-and-eval!' as replacement.
400 * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
401 SCM_CONSP since this is a macro!; Set vframe.prev to
402 scm_last_debug_frame instead of 0. In this way we can look
403 "above" the virtual start stack frame if we wish.
404 (scm_debug_hang): New function: Useful for debugging Guile in
405 certain tricky situations. Will probably be removed later...
407 * * debug.h: Changed semantics of debug option "backtrace". This
408 option now only indicates whether we want automatic backtrace at
411 Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
413 * ports.c: #include "filesys.h"
414 (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
416 * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
417 Motivation: This is system specific code which is related to file
418 I/O. It also may use select. Added code by Gary Houston to
419 detect presence of character in stdio buffers.
421 * libguile.h: #include "libguile/libpath.h"
423 * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
424 SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
425 SCM_SITE_DIR; Install libpath.h among the other include files.
427 * load.c, load.h (scm_sys_package_data_dir): New function.
429 Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
431 * stacks.h: Bugfix: Don't use tail-array length field as stack
432 length field! This screwed GC.
434 Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
436 * _scm.h: Added #ifndef around definition of macros min and max.
438 * __scm.h: Added hooks for threads to plugin to in ints protection
439 macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
440 SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
441 the main code in these macros duplicated and spread over multiple
442 files. Renamed SCM_THREADS_SWITCHING_CODE ->
443 SCM_THREAD_SWITCHING_CODE.
445 Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
448 * guile-snarf.sh: New file.
449 * Makefile.in (inner_h_files): Added snarf.h
450 (ancillary, install, uninstall, distclean): Added actions for
452 (.c.x): Use guile-snarf.
453 (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
454 (gen_c_files): Note that these depend on guile-snarf.
455 * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
456 now in "snarf.h". Added #include "snarf.h" to get them.
457 * libguile.h: Added #include "snarf.h".
458 (Patches applied and tweaked by Jim Blandy.)
460 Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
462 * socket.c: Use K&R style declaration for 'close'; the GNU coding
463 standards suggest against providing prototypes for system
464 functions. Thanks to Greg Troxel.
466 Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
468 * strports.c (scm_eval_0str): New function.
469 #include "read.h", to get prototype for scm_read.
470 * Makefile.in (strports.o): Update dependencies.
471 * strports.h: New prototype.
473 * * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
474 scheme name from "int?" to "integer?". It seems to do the job.
475 * numbers.h: Rename prototype too.
476 * scmhob.h (intp): Change definition to refer to scm_integer_p. I
479 * * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
480 scm_num_eq_p): Rename these according to R4RS conventions: call
481 them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
482 to making libguile R4RS compliant without ice-9...
484 * * load.c (scm_sys_search_load_path): Search for files under all
485 extensions listed in the %load-extensions variable. If FILENAME
486 is absolute, return it unchanged, without searching the load path.
487 * (scm_loc_load_extensions): New variable, pointing to
488 %load-extensions' value cell.
489 (scm_init_load): Initialize it, and the value it points to.
490 (scm_primitive_load_path): Improve error reporting.
492 * * load.c (scm_loc_load_hook): New variable, pointing to value cell
493 of new Scheme variable %load-hook.
494 (scm_primitive_load): Apply %load-hook to filename.
496 Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
498 * configure.in: add tests for figuring out whether buffered data
499 is available in a FILE structure, which is needed by char-ready.
501 * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
504 * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
505 exceptions using misc_error instead of syserror. It seems a bit
506 odd to throw an exception if a string can't be found in the
507 environment, but it's consistent with open-file, stat etc.
508 (simpos.h): remove sys_ from getenv.
510 * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
511 occurs, throw an error instead of returning errno. Return value
513 (numerous in posix.c and posix.h): removed superfluous sys_ from names.
515 Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
517 * filesys.c (scm_stat2scm): derive file type and permissions from
518 the stat mode and append them to the returned vector.
519 There isn't much overhead in doing this and it avoids the need to
520 work with S_IRUSR et al. in Scheme.
521 Define symbols scm_sym_regular etc.
522 (scm_init_filesys): don't intern S_IRUSR etc.
524 * load.c: change s_try_load and s_try_load_path to s_primitive_load
525 and s_primitive_load_path.
527 * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
529 * error.h: don't declare error symbols. prototype for scm_misc_error.
531 * stackchk.c (scm_stack_overflow_key): defined here instead of in
534 * error.c: use SCM_SYMBOL to set up error keys.
535 scm_misc_error: new procedure.
537 Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
539 * read.c (scm_lreadr): Recognize SCSH-style block comments; text
540 between `#!' and `!#' is ignored.
541 (skip_scsh_block_comment): New function.
543 * feature.c (scm_set_program_arguments): New argument, FIRST.
544 * feature.h: Update prototype.
545 * init.c (scm_boot_guile_1): Pass new argument to
546 scm_set_program_arguments.
548 Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
550 * init.c (scm_start_stack): Don't initialize scm_progargs here.
551 (scm_boot_guile): Call scm_set_program_arguments here, later than
552 the old initialization.
554 * * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
555 initialization procedure.
556 - Delete in, out, err arguments; there are other perfectly good
557 ways to override these when desired.
558 - Delete result argument; this function shouldn't ever return.
559 - Rename init_func argument to main_func, for less confusion.
560 - Delete boot_cmd argument; main_func is more general.
561 -Add 'closure' argument, to help people pass data to main_func
562 without resorting to global variables.
563 - Abort if reentered; don't bother returning an error code.
564 - Call scm_init_standard_ports to set up the default/current
565 standard ports; no need to pass them to scm_start_stack.
566 - Remove code to evaluate the boot_cmd, and start the repl; let
567 the user do something like that in main_func if they want.
568 - Remove code to package up a return value; main_func can do any
570 - Call exit (0), instead of returning.
571 (scm_start_stack): Don't initialize the I/O ports here; that's
572 weird. Delete in, out, err arguments. Move guts to
573 scm_init_standard_ports, scm_stdio_to_port.
574 (scm_init_standard_ports): New function, to set up current and
575 default standard ports.
576 (scm_start_stack, scm_restart_stack): Make these static.
577 * init.h (scm_boot_guile): Adjust declaration.
578 (scm_start_stack, scm_restart_stack): Remove externally
579 visible declarations for these.
580 (enum scm_boot_status): Removed; now scm_boot_guile never returns.
582 * * fports.c (scm_stdio_to_port): New function. Its guts used to be
583 written out several times in scm_start_stack.
584 * fports.h: New declaration for the above.
586 * * feature.c (scm_set_program_arguments): New function.
587 * feature.h: New declaration for the above.
589 * ports.c: Formatting tweak.
591 Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
593 * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
594 ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
595 for obtaining the address of a car or cdr field. Motivation:
596 &SCM_CXR make assumptions about the internal structure of the
599 * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
600 Motivation: see SCM_CXRLOC.
602 * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
603 srcprop.h, tags.h, throw.c, unif.c: Added new selectors
604 SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
605 Motivation: Safer use. Some other macros are defined in terms of
606 these operations. If these are defined using the SCM_SETCXR
607 (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
608 to inefficiency and an <e1> with side-effects could potentially
609 break. Also, these particular operations are heavily utilized in
610 the garbage collector. In unoptimized code there will be a
613 * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
614 eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
615 ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
616 pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
617 procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
618 strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
619 vports.c: Cleaned up use of pairs: Don't make any special
620 assumptions about the internal structure of selectors and
621 mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
622 SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
623 (Among other things, this change makes it easier to build Guile
624 with certain compilers which have problems with casted lvalues.)
626 Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
628 * stacks.c: Improve selection of relevant stack frames when making
629 a stack object. Introduce one level of indirection in the stack
630 object to make it possible to "narrow" to a certain region of the
631 stack. This facilitates making use of more clever algorithms (not
632 implemented) for selecting relevant frames and gives a cleaner
633 design since selection of frames can be done independently of
634 extraction of frames from the real stack.
635 (scm_stack_id): Also take #t as argument which means look at
638 * stacks.h: In struct scm_stack: Turn field frames into a pointer.
639 Turn n_tail into an integer directly representing current number
640 of frames in stack. Add field tail.
642 * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
644 * debug.c (scm_make_memoized): Made it available at scheme level.
645 (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
646 SCM_NIMP before applying heavier predicates in argument checking.
647 (scm_local_eval): Also take memoized object as argument.
649 * backtrace.c (scm_display_error): Just a safety measure: Stacks
650 aren't created with zero length, but should such a strange
651 creature suddenly turn up...
653 Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
655 * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
656 `del', for the sake of C++ compilers. (Patch applied by JimB.)
658 Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
660 * variable.c (scm_make_variable): Make the name hint optional, as
662 (anonymous_variable_sym): Renamed from variable_sym. All uses
665 * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
666 from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
667 of scm_primitive_load_path was also changed to
668 "primitive-load-path", from "%try-load-path". Callers changed.
669 We'd like to respect the convention that a function named
670 "try-mumble" should behave just like the function called "mumble",
671 but return #f instead of signalling some error.
672 * load.h: Rename prototypes.
674 Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
676 * print.c (make_print_state, grow_print_state), print.h: Modified
677 the print state representation: Don't use a tail array for
678 recording of circular references. Resizing of the print state
679 structure invalidates the print state pointer. To avoid passing
680 around an indirect print state reference to all printing
681 functions, we instead let the print state reference a resizable
684 Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
686 * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
687 Don't crash when passed an improper list terminated by a
690 Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
692 Allocate data for structures on an eight-byte boundary, as
693 required by the tagging system.
694 * struct.c (alloc_struct): New function.
695 (scm_make_struct, scm_make_vtable_vtable): Call it.
696 * struct.h (scm_struct_n_extra_words): Bump to 3.
697 (scm_struct_i_ptr): New "field".
698 * gc.c (scm_gc_sweep): When we need to free the data, use the
699 information stored by alloc_struct to find the beginning of the
700 block allocated to the structure, so we can free it.
702 Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
704 * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
707 * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
708 (scm_debug_info): New member: id.
710 * stacks.c: Stacks are now represented as structs; Stacks have an
711 id given to them by `start-stack'.
712 (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
714 * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
715 Changed stack representation.
717 * debug.c (scm_procedure_name): Try procedure property `name' for
718 compiled closures aswell.
720 * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
722 * eval.c: scm_i_name moved to gsubr.c
723 (scm_m_define): Record names of all kinds of procedure
724 objects. (Earlier, only closures were recorded.)
726 * procprop.h: Added declaration of scm_i_name.
728 * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
729 (scm_make_gsubr): Record names of compiled closures.
731 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
733 * debug.c, debug.h: Removed obsolete code.
735 * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
736 stacks.c: Renamed regs --> scm_contregs.
738 * print.c (scm_free_print_state): Cleanup print state before
739 returning it to pool. It is better to do it here than in
740 scm_prin1 since scm_prin1 is called often.
742 * srcprop.c (scm_source_properties, scm_set_source_properties_x,
743 s_set_source_property_x): Check that first argument is a pair or a
746 * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
747 scm_i_line, scm_i_column and scm_i_breakpoint global.
749 * init.c: Added #include "backtrace.h" and #include "stacks.h".
750 (scm_boot_guile_1): Added calls to scm_init_backtrace and
753 * debug.h: Added debug object smob declaration and macro
756 * configure.in: Build with backtrace.o and stacks.o if debug
759 * Makefile.in: Added entries for new files: backtrace.c,
760 backtrace.h, stacks.c and stacks.h.
762 * symbols.c (scm_sym2ovcell): Fixed documentation.
764 * _scm.h (min, max): Added.
766 * async.c: Moved `min' macro to _scm.h.
768 * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
769 SCM_BACKTRACE_INDENT.
771 * eval.c: Added new debug options `maxdepth' and `indent'.
773 * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
775 * print.h: Added selector SCM_PRINT_STATE.
777 * print.c: New functions: scm_make_print_state,
778 scm_free_print_state.
780 * print.h: Added declarations for scm_make_print_state,
781 scm_free_print_state.
783 * * debug.c (scm_m_start_stack): New acro.
785 * debug.h: Small cleanup.
787 * init.c (scm_boot_guile_1): Moved scm_init_debug below
790 Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
792 * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
793 arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
794 chars.c, chars.h, continuations.c, continuations.h, debug.c,
795 debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
796 eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
797 filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
798 gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
799 hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
800 kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
801 markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
802 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
803 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
804 procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
805 root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
806 simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
807 stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
808 strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
809 struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
810 unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
811 version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
812 declare functions with prototypes. (Patch thanks to Marius
815 More prototype-related changes from Marius Vollmer:
816 * gdb_interface.h: Wrapped header file in #ifdef/#endif
817 * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
818 * ports.h (ptobfuns): Added prototypes. This means some casting in
820 * fports.c: Added casts for initializations, since the functions
821 are defined to take FILE * as their stream argument, not SCM.
822 * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
823 * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
824 to `char *str_data' to conform to prototype.
826 Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
828 * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
830 * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
832 * stime.c, stime.h: use SCM_P method.
834 Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
836 * eval.c (scm_nconc2last): Don't accept an empty list; apply must
837 be given at least two arguments. Insist that lst's last element
838 be a list, but don't make any requirements of its predecessors.
840 Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
842 * eval.c (scm_nconc2last): Revert last change; there seems to be
843 other stuff going on here.
845 Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
847 * eval.c (scm_nconc2last): Make sure that each element of lst
848 (which is a list of argument lists, except for the tail) is a
849 proper list, i.e., finite and terminated by '().
851 Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
853 * unif.c (scm_ra_set_contp): Localize `inc' declaration.
856 * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
857 symbolic name for the tag, scm_tc3_cons_gloc, instead of just
860 * vectors.c (scm_make_vector): Fill vectors with the undefined
861 value, to help make Guile Scheme code more portable to other
864 * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
865 * symbols.h, tags.h: Doc fixes.
867 Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
869 * async.c (scm_take_signal): Doc fixes.
871 Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
873 * numbers.c (scm_divbigint): When the remainder is zero, we don't
874 want to subtract it from the modulus; we just want to leave it
877 Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
879 * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
882 * throw.h (scm_catch_apply): Removed the `lazyp' argument.
884 * throw.c (scm_catch_apply): Finished implementation of
887 Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
889 * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
891 (scm_init_filesys): set "i/o-extensions" feature.
894 Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
896 * Makefile.in (root.o): Correct dependencies.
898 Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
900 * Makefile.in: Added dependency entry for root.o.
902 * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
903 throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
905 * init.c (scm_start_stack): Set initial root continuation number
908 * procs.c: New function: scm_thunk_p.
910 * procs.h: Added declarations of scm_thunk_p.
912 * root.c: Renamed `call-with-new-root' -->
913 `call-with-dynamic-root'.
914 (cwdr): Removed allocation of new root state. This should be done
915 separately by use of scm_make_root.
916 (scm_apply_with_dynamic_root): New function: Does what it
917 sounds like. Needed when spawning threads.
919 * root.h: Added member last_debug_frame to root state.
920 Added #include "libguile/debug.h"
922 * throw.c: Renamed scm_catch --> scm_catch_apply and added more
923 arguments. The motivation is that code in root.c needs catch
924 functionality, and we want to avoid code duplication.
925 New functions: scm_catch, scm_lazy_catch. These are wrappers for
926 scm_catch_apply. scm_lazy_catch is intended to introduce catch
927 handlers that run without popping the stack into the dynwind
930 * throw.h: Added prototypes for scm_catch_apply and
933 Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
935 * root.h (scm_root, scm_set_root): Decouple thread support details
936 by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
937 SCM_SET_THREAD_LOCAL_DATA.
939 * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
940 and tortoise scanning loop.
942 Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
944 * Makefile.in: Rebuild dependencies.
946 * libguile.h: #include "libguile/print.h" before "smob.h", since
947 the latter uses the print_state structure.
949 * throw.c (scm_ithrow): Use the correct variable when checking to
950 see if a given element of scm_dynwinds is a valid catch.
952 * throw.c (scm_ithrow): If scm_dynwinds has invalid list
953 structure, abort; don't just silently ignore the garbage.
955 * _scm.h: #include "print.h" here, since it seems to be used just
957 * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
958 strports.c, unif.h: Don't #include "print.h".
960 Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
962 * feature.h (scm_loc_features): Removed external declaration.
963 (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
965 Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
967 * feature.c (scm_init_feature): Added threads feature (needs to be
968 initialized here, since features doesn't exist when
969 scm_init_threads is called).
971 * libguile.h: Added #include "libguile/../threads/threads.h".
972 (This is a kludge to get thread support working. This should be
975 * configure.in, acconfig.h: Added flags for thread support.
977 * scmsigs.c: Define `signal' to be `pthread_signal' if using
980 * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
981 SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
984 * _scm.h: Added conditional #include "threads.h"
986 * __scm.h (SCM_ASYNC_TICK): Added call to macro
987 SCM_THREADS_SWITCHING_CODE.
989 * init.c (scm_start_stack): Call `scm_make_root' to dynamically
990 allocate the basic dynamic root object.
991 (scm_boot_guile): Added call to scm_init_root.
993 * * root.c, root.h: Added root smob.
994 (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
995 functions: Implements dynamic roots mostly according to spec in
996 SCM manual. Main difference is that the second argument is a
997 throw handler rather than an error "thunk".
999 * root.h: Added declaration of scm_init_root.
1001 * root.c: Added #include "genio.h", #include "smob.h", #include
1002 "pairs.h", #include "throw.h", #include "dynwind.h", #include
1004 (scm_init_root): Added #include "root.x".
1006 * throw.c: Added #include "stackchk.h"
1007 (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
1008 SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
1009 can be used in scm_call_with_new_root; Added reenabling of stack
1010 checking when catching a throw.
1012 Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
1014 * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
1016 * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
1017 element is not found, as per R4RS.
1019 Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
1021 * list.c: Doc fixes throughout.
1023 Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
1025 * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
1026 declare the char * to be const. Avoids a warning in rgx.c.
1028 * ports.h: spelling fix.
1030 * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
1033 * load.c (scm_sys_try_load_path): throw an error if file not found
1034 (like it says it in NEWS).
1036 Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
1038 * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
1039 PROPS slot to '(), not #f; it's an empty alist.
1041 * throw.h, throw.c: Use SCM_P instead of #if hair.
1043 Remove special support for uncaught throws; see throw.c for
1045 * throw.c (uncaught_throw): New function.
1046 (scm_ithrow): Call uncaught_throw if we don't find a throw
1047 target; don't mess with scm_bad_throw_vcell.
1048 (scm_bad_throw_vcell): Variable deleted.
1049 (scm_init_throw): Don't initialize it.
1051 * throw.c (scm_ithrow): Don't let outer key matches shadow inner
1054 Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
1056 * numbers.c (scm_istr2int): If the number is short (as most
1057 numbers are), just call scm_small_istr2int to deal with it.
1058 (scm_small_istr2int): New function, created by un-#ifdefing the
1059 non-bignum version of scm_istr2int and renaming it.
1061 Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
1063 * load.c (scm_sys_try_load): don't check whether value returned
1064 by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
1065 Change the Scheme name from %try-load to primitive-load.
1067 * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
1068 Can avoid passing a message, allowing it to be derived in the
1069 error handler (e.g., if we want to throw to the key both from
1072 Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
1074 * * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
1075 references now have a new appearance which is more compact and
1076 also gives a clue about what the target of the reference is.
1077 By setting parameters in the print state, more fancy printing can
1078 be achieved. This is used by the (not yet commited) backtrace
1081 Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
1083 * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
1086 * print.c: Added #include "struct.h". Removed function
1089 * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
1090 scm_iprin1. Removed prototype for scm_prlist.
1092 * arbiters.c (prinarb),
1093 async.c (print_async),
1094 debug.c (prindebugobj, prinmemoized),
1095 eval.c (prinprom, prinmacro),
1096 filesys.c (scm_fd_print, scm_dir_print),
1098 mallocs.c (prinmalloc),
1099 numbers.c, numbers.h (scm_floprint, scm_bigprint),
1100 smob.h (scm_smobfuns),
1101 srcprop.c (prinsrcprops),
1103 unif.c, unif.h (scm_raprin1, rapr1),
1104 variable.c (prin_var): Changed argument `int writing' to
1105 `scm_print_state *pstate'.
1107 * init.c (scm_boot_guile): Moved scm_init_struct upwards so
1108 that it will be called before scm_init_print.
1110 * print.c (scm_prin1): Print states are now allocated when calling
1111 scm_prin1 and then passed around to all printing functions as an
1112 argument. A cache `print_state_pool' enables reuse of print
1114 (scm_make_print_state): New function.
1115 (scm_iprin1): Adaption to print states.
1116 (scm_iprlist): An initial "hare and tortoise" scan brings down
1117 time complexity to O (depth * N). (Better time complexity will be
1118 achieved when the printing code is completely rewritten.)
1120 Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
1122 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
1123 AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
1124 it gets done whether or not the cache variable has a value.
1126 Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
1128 Distinguish #f and ().
1129 * __scm.h: #undef SICP.
1130 * pairs.h (SCM_EOL): Delete this definition, equating it with
1132 * tags.h (SCM_EOL): Give it a new definition here; I think I found
1133 the value it used to have. Doc fixes, too.
1135 Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
1137 * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
1138 scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
1139 Lord's implementation of structs, allowing for tail arrays as
1140 described in the manual. Also fixed some bugs. (Both the interface
1141 and the implementation should be improved.)
1143 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
1145 * print.c, print.h: Closures now print like #<procedure foo (x)>.
1146 People who whish to see the source can do `(print-enable 'source)'.
1147 Removed #ifdef DEBUG_EXTENSIONS.
1149 Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1151 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
1152 integer (assuming for now accepting an integer is a good thing).
1154 * error.c, fports.c: replace use of %S in lgh_error args with %s.
1155 %S will be used instead for write'ing arguments.
1157 * unif.c (scm_transpose_array): change arguments in the SCM_WNA
1158 asserts. fix a few other asserts.
1159 (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
1160 scm_uniform_vector_ref, scm_array_set_x,
1161 scm_dimensions_to_unform_array): change args in
1162 SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
1163 strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
1164 scm_substring_fill_x): likewise.
1165 gsubr.c (scm_gsubr_apply): likewise.
1166 eval.c (SCM_APPLY): likewise.
1168 * eval.c (4 places): replace scm_everr with lgh_error or
1171 * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
1172 scm_memory_error): new procedures.
1173 * scm_everr: deleted. can use scm_wta, dropping first two args.
1174 scm_error: convert NULL subr to SCM_BOOL_F.
1176 * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
1179 * stackchk.c (scm_report_stack_overflow): use lgh_error instead
1182 * error.c, error.h: new error keys: scm_arg_type_key,
1183 scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
1185 scm_wta: reimplement using lgh_error instead of scm_everr.
1187 Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
1189 * gdbint.c: scm_lread now has one more argument.
1191 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
1192 scm_port_\1; Added mutator scm_set_port_filename_x (used when
1193 loading source from non-file ports, which, e. g., happens when
1194 using the Emacs interface).
1196 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
1199 * read.c: Added code for recording of positions of source code
1200 expressions; New functions: recsexpr, scm_lreadrecparen;
1201 _scm_make_srcprops --> scm_make_srcprops
1202 (scm_flush_ws): Removed updating of positions counters. This work
1203 is already done by scm_gen_getc
1205 * read.h: Added prototype for scm_lreadrecparen
1207 * print.c: Added #include "alist.h"
1209 * eval.c: Added #include "hash.h"
1211 * eq.c: Added #include "ramap.h"
1213 * options.c: Documentation fixes.
1215 * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
1216 (scm_init_srcprop): Adjusted size of initial source-whash. Name
1217 changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
1218 --> scm_make_srcprops
1220 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
1221 _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
1222 function calls in the definition of the whash access macros.
1224 Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
1226 * init.c (scm_boot_guile): Add level of indirection to
1227 scm_boot_guile_1() to ensure that stack base pointer is properly
1228 initialized. There was no guarantee that variable i was the
1229 highest/lowest variable on stack (i.e. the call frame of
1230 scm_boot_guile was not completely protected from gc).
1232 Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
1234 * ports.h (scm_port_table): put back file_name, it will be used to
1235 support debugging. Undo related changes in fports.c, ioext.c,
1238 Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1240 * ports.h (scm_port_table): remove file_name member for now, it seems
1242 * fports.c (scm_open_file): don't set file_name in PTAB.
1243 (prinfport): don't use file_name in PTAB.
1244 * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
1245 * ports.c (scm_add_to_port_table): don't intialize file_name.
1246 (scm_port_file_name): remove for now.
1247 * gc.c (scm_gc_mark): don't mark PTAB file_name.
1249 * fports.h (scm_mkfile): prototype deleted.
1250 * fports.c (scm_mkfile): merged into scm_open_file to simplify.
1252 * debug.c, unif.c: use scm_out_of_range instead of
1253 wta for range errors (ASSERT still needs work).
1255 * error.c, error.h (scm_out_of_range): new procedure.
1257 * error.c, error.h (scm_out_of_range_key): new key.
1259 * posix.c (scm_sync): #else was missing.
1261 * error.c, error.h: append _key to names scm_num_overflow and
1264 * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
1265 of consing an empty list.
1266 (SCM_SYSERROR etc.): move into error.c, make them procedures instead
1267 of macros, saves code and string space.
1268 error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
1269 fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
1270 lower case. Rename scm_syserror_m to scm_syserror_msg.
1271 error.h: prototypes for new procedures.
1273 Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
1275 * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
1277 * error.c, error.h: setup scm_num_overflow key.
1279 * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
1280 Remove definition of SCM_OVSCM_FLOW.
1282 * fports.c (scm_open_file): use SCM_SYSERROR_M.
1284 * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
1285 explicit message and args.
1287 * error.c, error.h, __scm.h: change system_error_sym to
1290 * error.c (system_error_sym): remove leading %% from the Scheme name
1293 * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
1295 Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1297 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
1298 fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
1299 numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
1300 tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
1301 renamed. (These were introduced by unsupervised name
1304 Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1306 * * print.c: Added code for detection of circular references during
1307 printing. (init_ref_stack, grow_ref_stack): New functions. Added
1308 a hook for printing of closures (accessible via print options).
1309 This leads to a split of calls to scm_iprin1 into two classes:
1310 elementary print operations (e. g. the code which prints a smob)
1311 still use scm_iprin1 while top level calls (like scm_display) use
1312 scm_prin1. scm_prin1 begins by clearing the data structure used
1313 to record reference information.
1315 * print.h: Added declarations of scm_prin1 and scm_prlist.
1317 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
1319 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
1321 * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
1323 * error.c (err_head): scm_iprin1 --> scm_prin1
1325 * debug.c: Adjusted header comment.
1329 Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
1331 * strerror.c: Doc fix.
1333 Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1335 * gdbint.c (gdb_read): Now possible to run during GC.
1336 (unmark_port, remark_port): New functions.
1338 * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
1340 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
1341 of allocating a new string object. Also, increase size by
1342 the factor 2 instead of 1.5.
1344 Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
1346 * __scm.h (SCM_P): Corrected to run under traditional C.
1348 * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
1351 * async.c: Calls to scm_sysintern corrected.
1353 * async.h (scm_async_clock): Redundant declaration removed.
1355 * continuations.c (scm_dynthrow): Redundant declaration removed.
1357 * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
1358 Definition typos corrected.
1360 * debug.h: Missing declarations of functions in debug.c added
1363 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
1364 Missing declarations to functions in eval.c added.
1366 * filesys.c: Possibly uninitialized variable rv.
1368 * gc.h (scm_object_addr, scm_unhash_name): Missing
1369 declarations of functions defined in gc.c added.
1371 * genio.c: Possible typos str_data -> wstr_data. ???
1373 * genio.c: Possibly unintended shadowing of local variable
1374 `int c' (gotos out of scope of inner `c'). ???
1376 * init.c: Uninitialized `SCM last' may be used.
1378 * ioext.h: (scm_sys_isatty_p): Typo.
1380 * list.h (scm_list_head): Missing prototype for function in
1383 * numbers.c (scm_two_doubles): Changed from extern to static
1384 (is used only within numbers.c).
1386 * numbers.h: Repeated declarations removed.
1388 * ports.h (scm_close_all_ports_except): Declaration for the
1389 function defined in ports.c added.
1391 * posix.h: Missing declarations added.
1393 * procs.h (scm_make_subr_opt): Missing declaration added.
1395 * socket.h (scm_sys_gethost): Missing declaration added.
1397 * socket.h: Redundant declarations removed (they are in fdsocket.h).
1399 * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
1400 Missing declarations added.
1402 * stime.h (scm_get_internal_real_time): Repeated declarations removed.
1404 * struct.c: Uninitialized variable `SCM answer' may be used.
1406 * unif.c (l2ra): Declaration prototype.
1408 * unif.c (scm_array_equal_p): Dummy definition removed (it is
1409 defined in ramap.c).
1411 * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
1412 Redundant declarations removed (they are in ramap.h).
1414 * variable.h (scm_make_udvariable,
1415 scm_make_undefined_variable): Declaration corrected to
1416 correspond variable.c.
1418 * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
1419 Missing declarations added.
1421 Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
1423 * Makefile.in (distclean): Don't forget to delete fd.h.
1425 Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
1427 * fd.h.in, tags.h: Trivial cleanups.
1429 * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
1430 marksweep.h just declared functions from gc.c.
1431 * gc.h, libguile.h: Don't #include "marksweep.h".
1432 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1433 marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
1434 dependencies updated.
1436 * libguile.h: Don't #include "files.h"; it's been deleted.
1438 * files.c (scm_sys_delete_file): Moved to filesys.c.
1439 File is now empty; deleted.
1441 * filesys.c: scm_sys_delete_file is now here. Remove
1442 #if's; they seem to rely on remnants of an old portability
1443 regimen. If the problems come up again, solve them properly,
1444 using autoconf. Specifically: Don't test M_SYSV, and #define
1445 remove to be unlink if it's #defined; don't use remove just
1446 because HAVE_STDC_HEADERS is #defined.
1447 * filesys.h: Add declarations for scm_sys_delete_file.
1448 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1449 files.o, files.h, files.c, and files.x.
1450 * init.c: Don't #include "files.h", and don't call scm_init_files.
1452 Use SCM_P instead of PROTO; the latter intrudes on the user's
1454 * params.h: Deleted; definition of SCM_P moved to...
1455 * __scm.h: ... here, where it replaces PROTO macro.
1456 * libguile.h, smob.h: Don't #include "params.h".
1457 * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
1458 smob.h: Fix prototypes accordingly.
1459 * Makefile.in: Update dependencies.
1460 (inner_h_files): Remove params.h.
1462 * gc.c: #include "gc.h"; every module should include its header,
1463 to let the compiler cross-check the declarations against the
1466 * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
1467 simpos.h: #include "libguile/__scm.h".
1469 Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
1471 * init.c: Don't forget to #include smob.h and init.h.
1472 * Makefile.in: Dependencies updated.
1474 * smob.h: Use PROTO instead of #if __STDC__.
1476 * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
1478 * __scm.h: Doc fixes.
1480 * __scm.h, libguile.h: Use "quotes" in the #includes, not
1481 <angles>; this allows `make depends' to work properly.
1483 * libguile.h: #include smob.h and pairs.h before the others; they
1484 define typedefs used by other headers.
1486 C files should #include only the header files they need, not
1487 libguile.h (which #includes all the header files); the pointless
1488 recompilation was wasting my time.
1489 * Makefile.in (all .o dependency lists): Regenerated.
1490 * libguile.h: Don't try to get a definition for size_t here...
1491 * __scm.h: Do it here.
1492 * _scm.h: Since this is the internal libguile header, put things
1493 here that all (or a majority) of the libguile files will want.
1494 Don't #include <libguile.h> here; that generates dependencies on
1495 way too much. Instead, get "__scm.h", "error.h", "pairs.h",
1496 "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
1497 "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
1499 * alist.c: Get "eq.h", "list.h", "alist.h".
1500 * append.c: Get "append.h", "list.h".
1501 * arbiters.c: Get "arbiters.h", "smob.h".
1502 * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
1503 * boolean.c: Get "boolean.h".
1504 * chars.c: Get "chars.h".
1505 * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
1507 * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
1508 "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
1509 "genio.h", "throw.h", "eval.h".
1510 * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
1511 * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
1513 * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
1514 * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
1515 "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
1516 "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
1518 * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
1519 * feature.c: Get "feature.h".
1520 * files.c: Get "files.h".
1521 * filesys.c: Get "filesys.h", "smob.h", "genio.h".
1522 * fports.c: Get "fports.h", "markers.h".
1523 * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
1524 "genio.h", "struct.h", "stackchk.h", "stime.h".
1525 * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
1526 "read.h", "strports.h", "tag.h".
1527 * genio.c: Get "genio.h", "chars.h".
1528 * gsubr.c: Get "gsubr.h", "genio.h".
1529 * hash.c: Get "hash.h", "chars.h".
1530 * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
1531 * init.c: Get everyone who has an scm_init_mumble function:
1532 "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
1533 "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
1534 "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
1535 "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
1536 "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
1537 "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
1538 "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
1539 "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
1540 "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
1541 "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
1542 "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
1543 "async.h", "arbiters.h", "append.h", "alist.h".
1544 * ioext.c: Get "ioext.h", "fports.h".
1545 * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
1546 * list.c: Get "list.h", "eq.h".
1547 * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
1548 * mallocs.c: Get "smob.h", "genio.h".
1549 * markers.c: Get "markers.h".
1550 * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
1552 * numbers.c: Get "unif.h", "genio.h".
1553 * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
1554 * options.c: Get "options.h".
1555 * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
1556 "markers.h", "chars.h", "genio.h".
1557 * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
1558 "read.h", "scmsigs.h", "genio.h", "fports.h".
1559 * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
1560 "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
1562 * procprop.c: Get "procprop.h", "eval.h", "alist.h".
1563 * procs.c: Get "procs.h".
1564 * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
1565 "chars.h", "smob.h", "unif.h".
1566 * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
1567 "eval.h", "genio.h", "chars.h".
1568 * root.c: Get "root.h", "stackchk.h".
1569 * scmsigs.c: Get "scmsigs.h".
1570 * sequences.c: Get "sequences.h".
1571 * simpos.c: Get "simpos.h", "scmsigs.h".
1572 * smob.c: Get "smob.h".
1573 * socket.c: Get "socket.h", "feature.h".
1574 * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
1575 "alist.h", "smob.h".
1576 * stackchk.c: Get "stackchk.h", "genio.h".
1577 * stime.c: Get "stime.h"."libguile/continuations.h".
1578 * strings.c: Get "strings.h", "chars.h".
1579 * strop.c: Get "strop.h", "chars.h".
1580 * strorder.c: Get "strorder.h", "chars.h".
1581 * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
1582 * struct.c: Get "struct.h", "chars.h".
1583 * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
1584 "variable.h", "eval.h", "chars.h".
1585 * tag.c: Get "tag.h", "struct.h", "chars.h".
1586 * throw.c: Get "throw.h", "continuations.h", "debug.h",
1587 "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
1588 * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
1589 "smob.h", "genio.h", "eval.h", "chars.h".
1590 * variable.c: Get "variable.h", "smob.h", "genio.h".
1591 * vectors.c: Get "vectors.h", "eq.h".
1592 * version.c: Get "version.h".
1593 * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
1594 * weaks.c: Get "weaks.h".
1596 * stackchk.h: #include "libguile/debug.h",
1598 * print.h, read.h: #include "options.h", since everyone who uses
1599 either of these files will need that.
1601 * smob.h: #include "ports.h", "genio.h", and "print.h", since
1602 anyone who uses this file will need them to define the smob
1603 printing functions. Also, get markers.h, since people will need
1604 to #define the mark functions.
1606 * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
1607 * ports.h: ... to here.
1609 * ports.h (scm_port_table_size): Explicitly give type as 'int';
1610 don't rely on archaic C default type rules.
1612 * fports.h: #include "libguile/ports.h", since you need that in
1613 order to parse this.
1615 * genio.h: #include "libguile/print.h", because you need that to
1616 parse this; don't bother #including "ports.h", since print.h gets
1619 * error.h: Don't #include "pairs.h"; _scm.h will do that now.
1621 * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
1622 this; it's now a reference to an element of *scm_root.
1624 * debug.h: Don't #include "options.h"; the compiler won't be able
1625 to find that once the headers are installed; instead, #include
1626 "libguile/options.h".
1627 * gc.h: Same, with marksweep.h.
1628 * mbstrings.h: Same, with symbols.h.
1629 * scmhob.h: Same, with _scm.h.
1630 * smob.h: Same, with params.h.
1632 * Makefile.in (depends): Don't nuke scmconfig.h and the generated
1633 C files; there's no need for this, and it forces recompilations
1636 Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
1638 * error.c (scm_error): declare scm_error_callback.
1640 * error.h: prototype for scm_error_callback.
1642 * __scm.h: define lgh_error.
1643 (SCM_SYSERROR): redefine using lgh_error.
1645 Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
1647 * error.c (scm_error): new procedure.
1649 * error.h: prototype for scm_error.
1651 * Makefile.in (install): install scmconfig.h from the current
1652 directory, not $(srcdir).
1654 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
1656 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
1657 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
1658 feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
1659 hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
1660 mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
1661 posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
1662 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
1663 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
1664 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
1665 vports.h, weaks.h: #include "libguile/__scm.h", not
1666 <libguile/__scm.h>. This allows 'gcc -MM' to determine which
1667 dependencies are within libguile properly.
1669 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
1671 * Makefile.in (.c.x): Simplify; there's no need to run this rule
1672 when scmconfig.h doesn't exist.
1674 * load.c (scm_sys_try_load): Correct spelling.
1676 * feature.c (scm_loc_features): Make this static.
1678 * Makefile.in (libpath.h): Omit trailing slash from path. We
1679 shouldn't require it of users, so why put it here?
1681 Move code to initialize and search %load-path from ice-9 to C
1682 code, so we can use the load-path to find the ice-9 boot code;
1683 this makes it easier to run Guile without installing it. See
1684 corresponding changes in guile/Makefile.in.
1685 * feature.c: Move stuff concerned with the load path to load.c.
1686 (scm_compiled_library_path): Deleted.
1687 Don't #include libpath.h here.
1688 * feature.h: Don't mention scm_compiled_library_path.
1689 * load.c: #include "libpath.h" here, as well as <sys/types.h>,
1690 <sys/stat.h>, and <unistd.h> (if present).
1691 (R_OK): #define if the system hasn't deigned to.
1692 (scm_loc_load_path): New variable.
1693 (scm_init_load_path, scm_sys_search_load_path,
1694 scm_sys_try_load_path): New functions.
1695 (scm_init_load): Initialize scm_loc_load_path to point to the
1696 value cell of the Scheme %load-path variable.
1697 * load.h: Add declarations for scm_sys_search_load_path,
1698 scm_sys_try_load_path.
1699 * init.c: Call scm_init_load_path.
1700 * Makefile.in (feature.o, load.o): Dependencies updated.
1702 * load.c, load.h: Rewrite using PROTO macro.
1704 Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1706 * gc.c (scm_cellp): New function: C predicate to determine if an
1707 SCM value can be regarded as a pointer to a cell on the heap.
1709 * gc.h: Added declaration of scm_cellp.
1711 * gdb_interface.h: New file: The GDB interface header from the GDB
1714 * gdbint.c: New file: GDB interface.
1716 * gdbint.h: New file: GDB interface.
1718 * libguile.h: Added #include <libguile/gdbint.h>.
1720 * init.c (scm_boot_guile): Added scm_init_gdbint.
1722 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
1723 Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
1724 found if object files and source are kept separate).
1726 Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
1728 * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
1730 Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
1732 * configure.in: Don't substitute the values of TCL_SRC_DIR and
1733 TK_SRC_DIR; they're not relevant any more.
1735 * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
1736 * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
1738 Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
1740 * PLUGIN/guile.config (xtra_cflags): Include .. in the header
1741 search path, so we can find the <libguile/MUMBLE.h> headers.
1743 * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
1745 * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
1746 implicit in the .c.o rule.
1747 (.c.x): Don't mention ALL_CFLAGS here; its value is included in
1750 Put the library path in a header file, instead of passing it on
1751 the command line in every compilation.
1752 * Makefile.in (libpath.h): New target.
1753 (feature.o): Depend on libpath.h.
1754 (clean): Delete libpath.h.
1755 (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
1756 * feature.c: ... #include "libpath.h" here.
1757 * .cvsignore: Ignore libpath.h.
1759 * Don't install the unwashed masses of Guile header files in the
1760 main #include path; put most of them in a subdirectory called
1761 'libguile'. This avoids naming conflicts between Guile header
1762 files and system header files (of which there were a few).
1763 * Makefile.in (pkgincludedir): Deleted.
1764 (innerincludedir): New variable; this and $(includedir) are enough.
1765 (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
1766 (installed_h_files): Divide this up. Now this variable lists
1767 those header files which should go into $(includedir) (i.e. appear
1768 directly in the #include path), and ...
1769 (inner_h_files): ... this new variable says which files appear in
1770 a subdirectory, and are referred to as <libguile/mumble.h>.
1771 (h_files): List them both.
1772 (install): Create innerincludedir, not pkgincludedir. Put
1773 the installed_h_files and inner_h_files in their proper places.
1774 (uninstall): Corresponding changes.
1775 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
1776 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
1777 feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
1778 ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
1779 mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
1780 print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
1781 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
1782 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
1783 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
1784 vports.h, weaks.h: Find __scm.h in its new location.
1785 * __scm.h: Find scmconfig.h and tags.h in their new locations
1786 (they're both "inner" files).
1788 Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
1790 * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
1792 Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
1794 * posix.c: Doc fixes.
1796 Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
1798 * socket.c: Don't include a prototype for inet_aton; just use a
1799 K&R style declaration, to avoid warnings but minimize the chance
1800 of conflicts with the system.
1802 On NextStep, <utime.h> doesn't define struct utime, unless we
1803 #define _POSIX_SOURCE before #including it.
1804 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
1805 * acconfig.h: New comment text for above CPP symbol.
1806 * configure.in: Call it.
1807 * posix.c: #define _POSIX_SOURCE if it seems necessary.
1809 * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
1811 * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
1812 testing for __EMX__.
1814 * posix.c: #include <libc.h>, if it exists.
1816 * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
1817 don't even know if the latter exists.
1819 * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
1820 s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
1821 s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
1823 * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
1825 (scm_init_posix): Use them when initializing the Scheme constants
1828 Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
1830 * Makefile.in (libdir, includedir, bindir): Use the
1831 autoconf-supplied values, instead of deriving them ourselves.
1832 (pkgincludedir, datadir, pkgdatadir): New variables.
1833 (install, uninstall): Put the header files in a special
1834 subdirectory, not in the main search path.
1836 * Makefile.in (ALL_CFLAGS): Provide the proper value for
1837 LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
1839 * Makefile.in (IMPLPATH): Deleted; never used.
1841 * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
1842 on the Tcl/Tk source any more.
1843 (INCLUDE_CFLAGS): Remove references to the above.
1845 * Makefile.in (version.o): Corrected dependencies.
1847 Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
1849 * libguile.h: #include "version.h"
1851 * init.c (scm_boot_guile): Call scm_init_version.
1852 * gscm.c (gscm_run_scm): Call scm_init_version.
1854 * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
1855 GUILE_VERSION): AC_DEFINE these.
1856 (acconfig.h): #undef the above symbols.
1858 * Makefile.in (libobjs): Add version.o.
1859 (installed_h_files): Add version.h.
1860 (c_files): Add version.c.
1861 (gen_c_files): Add version.x.
1862 (version.o): New rule.
1863 (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
1864 chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
1865 fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
1866 genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
1867 mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
1868 objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
1869 procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
1870 simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
1871 strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
1872 throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
1873 weaks.o): Add version.h to dependency lists.
1874 (markers.o): Remove duplicate rule.
1876 * version.h: New file.
1878 * version.c: New file.
1880 Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
1882 * symbols.c (scm_strhash): scm_downcase is now a function, not an
1883 array; use it appropriately. Since GCC is quite happy to
1884 subscript functions, it never warned us about this; we should use
1885 -Wpointer-arith in the future. I guess we never tested
1888 Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
1890 * socket.c: Doc and copyright fixes.
1892 Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1894 * debug.c: Fixed and improved gdb support.
1896 Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1898 * socket.c: Added declaration of inet_aton to avoid compiler
1899 warning. (Hope this solution is correct.)
1901 * stime.c: Added declaration of ftime. (This is missing in
1904 Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
1906 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
1908 * Makefile.in (c_files): add strerror.c.
1910 * strerror.c: new file from Emacs' sysdep.c.
1911 maybe configure should also check for sys_errlist.
1913 * configure.in (AC_REPLACE_FUNCS): add strerror.
1915 Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1917 * debug.c (scm_init_debug): Added initialization for
1918 scm_evaluator_traps.
1920 * debug.h, debug.c: Various name changes.
1921 (Mostly prefixing with SCM_.) Renamed "debug-options" -->
1922 "debug-options-interface". See commentary in options.c.
1924 * options.h, options.c: Options now have documentation strings.
1925 Also added a long explanatory commentary.
1927 * eval.c, print.h, print.c, read.h, read.c: Modifications to
1930 * gscm.c, init.c, root.c, throw.c: Bug fixes:
1931 last_debug_info_frame is now updated in all cases.
1933 * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
1936 Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1938 * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
1939 Added option STACK_CHECKING.
1941 Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
1943 * Makefile.in: Added {debug,options,srcprop}.{h,c}
1945 * __scm.h: Removed symbols for debugging support.
1947 * acconfig.h: Added symbols for debugging support.
1949 * * configure.in: Added user option for debugging support.
1950 --enable-debug will include the debugging code into libguile.a.
1952 * continuations.c (scm_make_cont): Enlarged the #if 0 around
1953 scm_relocate_chunk_to_heap.
1955 * * debug.c: New file: low-level debugging support. It also
1956 includes support for debugging with gdb. (The extensions to gdb
1957 are written by Per Bothner at Cygnus.)
1959 * debug.h: New file: low-level debugging support.
1961 * * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
1962 argument pairs. Extensive modifications to the debugging
1963 evaluator. Added "SECTION:" commentaries to clarify what happens
1964 when, during double compilation. Renamed EVALIMP --> EVALIM.
1965 Renamed EVAL --> XEVAL. Removed function evalcar. Defined
1966 evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
1967 the beginning of the file. New procedure: scm_unmemocopy.
1968 Added some global state variables needed by the debugging
1969 evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
1970 check_entry, check_apply, check_exit, debug_options and
1971 evaluator_traps. New acro: undefine.
1973 * eval.h: Renamed EVAL --> XEVAL.
1975 * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
1976 --> scm_make_weak_key_hash_table.
1978 * init.c (scm_restart_stack, scm_boot_guile): Added initialization
1979 of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
1981 * libguile.h: Conditionally include debug.h
1983 * * objprop.c (scm_object_properties, scm_set_object_properties_x):
1984 scm_object_properties shouldn't return handle. `handle' now gets
1985 initialized in scm_set_object_properties_x. scm_object_properties
1986 doesn't any longer create an entry in scm_object_whash.
1988 * * options.c: New file: handling of run time options.
1990 * options.h: New file: handling of run time options.
1992 * posix.c (scm_getpgrp): Cast pointer to getpgrp.
1994 * * print.c: New procedure: scm_print_options
1996 * print.h: Defines for print options.
1998 * * read.c: New procedure: scm_read_options
2000 * read.h: Defines for reader options.
2002 * root.h: Added scm_source_whash among scm_sys_protects.
2004 * * srcprop.c: New file: source properties.
2006 * srcprop.h: New file: source properties.
2008 * throw.c (jbsmob): Jump buffers are now correctly allocated.
2009 (Bug found by A. Green.)
2011 * * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
2013 * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
2015 Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
2017 * libguile.h: #include "objprop.h"; I guess this was forgotten.
2019 * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
2020 and should be called by the final client.
2022 Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
2024 * gc.h: Use the PROTO macro when declaring functions.
2025 * gc.c: Use the PROTO macro when declaring static functions.
2026 Remove the CPP hair around function definitions.
2028 * gc.c (scm_init_storage): Initialize scm_asyncs.
2030 * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
2031 preprocessor symbol; "__scm.h" is where it might get #defined.
2032 * __scm.h: Similar: #include <scmconfig.h> before testing
2035 * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
2037 Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
2039 * * init.c (scm_boot_guile): Add init_func argument; call
2040 (*init_func) instead of calling scm_appinit; it's ucky to
2041 hard-code names for the user's procedures.
2042 * init.h (scm_boot_guile): Adjust declaration.
2044 * __scm.h (PROTO): New macro, for declaring functions with
2047 * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
2048 eliminate all the __STDC__ conditionals.
2049 (scm_boot_guile): Add declaration.
2050 * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
2051 Remove __STDC__ conditionals around function definitions; the
2052 declarations in init.h will provide the same information, more
2055 * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
2056 complain about it in the error message; the error message is
2057 adequate without that note, and there's nothing the user can do
2060 Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
2062 * Makefile.in (ancillary): Drop def.sed.
2064 * posix.c (scm_init_posix): Use numeric values, rather than
2065 CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
2066 F_OK. The symbols aren't available on some systems, and I'm
2067 pretty sure their values are fixed by common widespread practice.
2068 * ioext.c (scm_init_ioext): Code here defined them too; remove it.
2070 More functions unavailable on some systems.
2071 * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
2072 tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
2074 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
2075 * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
2076 scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
2077 bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
2078 stub that signals an error as the #else.
2080 * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
2082 Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
2084 * Fixes motivated by Petr Adamek <adamek@mit.edu>:
2086 * unif.c: include ramap.h.
2088 * read.c (endif): case_insensative_p renamed case_insensitive_p.
2090 * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
2092 * ports.c: include sys/ioctl.h.
2094 * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
2096 * configure.in: check for sys/ioctl.h.
2098 * ports.c: include <malloc.h> not "malloc.h".
2100 * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
2102 * fports.c: remove ttyname and tmpnam declarations.
2104 * posix.c: fewer ttyname declarations.
2106 * fports.c: include <string.h> not "string.h".
2108 * init.c, ioext.c: include string.h and unistd.h.
2110 * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
2112 * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
2113 genio.c, simpos.c, vports.c: include string.h.
2115 * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
2117 * fdsocket.c (getsockopt, setsockopt): change type of optlen from
2119 (scm_addr_buffer_size): change type from scm_sizet to int.
2120 (accept, getsockname, getpeername, recvfrom): change type of tmp_size
2121 from scm_sizet to int.
2123 * error.c: include unistd.h.
2125 * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
2128 * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
2130 * __scm.hd, def.sed: deleted.
2132 Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
2134 Changes for NeXT, suggested by Robert Brown.
2135 * configure.in: Call AC_TYPE_MODE_T.
2136 (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
2137 NeXT. Put header file list in alphabetical order.
2138 * configure, scmconfig.h.in: Regenerated.
2139 * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
2141 * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
2144 * acconfig.h: New file, providing documentation for the CPP
2145 symbols defined in configure.in
2146 * acconfig-1.5.h: Removed; superceded by the above.
2148 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
2150 * ioext.c (scm_sys_fdopen): fix the port-table assignment.
2152 * * fports.c (scm_open_file): don't return #f, throw error.
2154 * * ioext.c (fileno): renamed from %fileno.
2155 (soft-fileno): deleted.
2157 * ports.c (scm_port_revealed): don't need to check for -1 from
2159 (scm_set_port_revealed_x): return unspecified, not #f.
2161 * * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
2163 * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
2165 * scmconfig.h.in: add HAVE_STRUCT_LINGER.
2167 * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
2169 Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
2171 * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
2172 This is necessary on Ultrix, and doesn't hurt portability.
2174 * Makefile.in (dist-dir): New target, implementing a new dist system.
2175 (installed_h_files): Put in alphabetical order.
2176 Remove duplicate entries for markers.h and unif.h.
2177 (c_files): Remove duplicate entries for markers.c.
2178 (ancillary): Renamed from anillery; all uses changed. Remove
2179 PLUGIN; it's a directory, and needs special treatment in dist-dir.
2180 Remove all the ../doc/* files; doc/Makefile.in handles that.
2182 * Makefile.in (libobjs): Remove duplicate entry for markers.o.
2184 * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
2185 every if must have an else, or else the whole command has a
2186 non-zero exit code whenever the if's condition is false.
2188 Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
2190 * posix.c: include string.h.
2192 Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
2194 * * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
2197 * * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
2198 Remove leading % from scheme names.
2199 Do not return error values, call SCM_SYSERROR or similar.
2201 * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
2203 Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
2205 * struct.c (scm_init_struct): new file.
2207 Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
2209 * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
2210 (scm_list_head): added list-head for rapidly chopping argument
2211 lists off of longer lists (and similar).
2213 Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
2215 * objprop.c (scm_object_property): assq the cdr of the whash
2216 handle for obj, not the handle itself.
2218 Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
2220 * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
2221 weak hash tables last of all marking to avoid an obscure gc bug.
2222 WARNING: circular lists stored in a weak hash table will hose us.
2224 Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
2226 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
2227 new functions similar to scm_substring_move_left_x and
2228 scm_substring_move_right_x.
2230 Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
2232 * init.c (scm_boot_guile): prevent gc with scm_block_gc not
2235 Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
2237 * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
2239 Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
2241 * strports.c (scm_strprint_obj): convenience function. C for
2242 (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
2244 * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
2245 removed to a separate library
2247 * init.c (scm_boot_guile): copied from guile-tcl.c.
2248 Initialization specific to tcl interpreters removed.
2250 Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
2252 * ports.c (scm_ports_prehistory): size malloced here doesn't
2253 matter so long as it is non-0 (got rid of "* 4").
2255 Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
2257 * gscm.h: gscm_mkarray eliminated (presumably was not being used
2258 since its definition was bogus).
2260 Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
2262 * mallocs.[ch]: back again (for rx at least).
2264 Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
2266 * ports.c: removed functions relating to the mapping between ports
2267 and descriptors. (That stuff is unix-specific and should be collected
2268 in a separate library).
2270 * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
2271 (Tom Mckay@avanticorp.com)
2273 Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
2275 * gc.c (scm_gc_sweep): Immediates in weak vectors were not
2276 handled correctly (SCM_FREEP was applied to them) -- test for
2277 NIMP. Keys in weak hash tables were spuriously (though harmlessly)
2278 being overwritten with #f. (brown@grettir.bibliotech.com)
2280 Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
2282 * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
2283 for a specific symbol or for all symbols.
2285 Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
2287 * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
2288 keys and weak values confused).
2290 Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
2292 * list.c (scm_last_pair): map '()=>'()
2294 Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
2296 * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
2297 Generalized assoc and hash-table functions.
2298 Factored pairs.c into multiple files.
2300 Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
2302 * gscm.c (gscm_run_scm): got rid of objprop.
2304 Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
2306 * genio.c (scm_getc):
2307 NOTE: fgetc may not be interruptable.
2309 * procprop.c (scm_stand_in_scm_proc):
2310 NOTE: don't use a alist here.
2311 (scm_set_procedure_properties_x): fix type checking throughout this file.
2313 * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
2315 * ports.c (scm_remove_from_port_table): adjust scm_mallocated
2316 after freeing part of the port table.
2318 Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
2320 * strports.c (scm_mkstrport):
2321 * vports.c (scm_make_soft_port): allocate a port table entry
2322 (possibly triggering gc) before setting the tag of the corresponding
2325 * pairs.c (scm_delq_x): never throw an error.
2327 * vectors.c (scm_make_vector): made the default vector fill argument
2328 into '() (much more useful than the previous value, "#unspecified")
2330 Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
2332 * ports.c (scm_add_to_port_table): Added fields
2333 to port table entries: file_name, line_num, col.
2334 Update these in open_file, gen_getc and gen_ungetc.
2335 Added procedures to access those fields.
2337 Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
2339 * procs.c (scm_make_subr_opt): new entry point for making
2342 Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
2344 * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
2346 Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
2348 * numbers.c (scm_exact_p): This function no longer
2349 implements "integer?".
2351 Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
2353 * gc.c (scm_gc_end): simulate a signal at the end of each GC.
2354 (scm_gc_stats): return an assoc of useful data. Replaces "room"
2355 and the stats reporting formerlly built into repl.
2357 * repl.[ch]: removed.
2358 GC statistics keeping moved to gc.c.
2359 Other statistics keeping can be done from Scheme.
2360 REPLS are now written in Scheme.
2362 Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
2364 * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
2365 conservatively marked objects).
2367 * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
2369 * error.c (scm_init_error): init system_error_sym here, not in repl.c.
2371 * feature.c (scm_compiled_library_path): moved here from repl.c.
2372 This file is for stuff relating specifically to Scheme libraries
2375 * eval.c (scm_m_define): don't give warning about redefinition, don't
2378 NOTE: this should throw a resumable exception with parameters --
2379 the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
2381 * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
2383 * error.c: scm_warn eliminated.
2385 * read.c (scm_lreadr): extra right paren gets an error, not a warning.
2387 * repl.c, marksweep.c, gc.c (various):
2388 lose exit_report, growth_mon.
2390 * gscm.c: got rid of verbosity functions.
2392 Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
2394 * throw.c (scm_ithrow): guard against the bad-throw hook changing
2395 between the call to procedurep and use.
2397 * error.c (scm_everr):
2399 * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
2402 * strports.c: don't reveal the port's string to the caller
2403 because it changes size.
2405 (stputc stwrite): check/change the strings length with interrupts
2408 * objprop.c (scm_set_object_property_x &c): use the generic
2409 hashing functions and be threadsafe.
2411 * eval.c (scm_unmemocar): do this operation in a thread-safe way.
2412 (per suggestion jaffer@gnu.ai.mit.edu).
2414 * mbstrings.c (scm_multi_byte_string): guard against argument list
2417 * strings.c (scm_make_string): loop cleanup
2419 * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
2422 * weaks.c (scm_weak_vector): guard against argument list
2425 * variable.c (scm_builtin_variable): check for/make a built-in
2428 * vectors.c (scm_vector): while filling the new array,
2429 guard against a list of fill elements that grows after
2430 the vector is allocated.
2432 * hashtab.c -- new file: general hash table
2433 functions. hash, hashq, hashv, hashx.
2435 * tags.h: made wvect an option bit of vector.
2437 Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
2439 * symbols.c: made the basic symbol table operations atomic.
2441 * root.c &c.: collected stack-specific global state.
2442 linum/colnum etc *should* be port-specific state.
2444 * struct.c (scm_init_struct): init the first struct type during
2445 initialization to fix a race condition.
2447 * continuations.c (scm_dynthrow): pass throwval in the 'regs'
2448 object, not in a global.
2449 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2451 * throw.c (_scm_throw): Pass throwval on the stack, not in a global
2452 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2454 * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
2455 and C symbols to begin with SCM_ or scm_.
2457 Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
2459 * gsubr.c (scm_gsubr_apply): statically allocate the
2460 array of arguments (bothner@cygnus.com).
2462 Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
2464 * scmsigs.c: Simplified to use async rountines.
2466 * async.c: New support for interrupt handlers.
2468 Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
2470 * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
2471 set the multi_byte flag correctly in symbols. This is wrong.
2472 intern_obbary_soft and msymbolize should take an extra parameter.
2473 Also, weird multibyte symbols don't print correctly.
2474 The weird symbol syntax is also a bit bogus (emacs doesn't quite
2477 Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
2479 * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
2480 use the system symhash. == #t means create an uninterned symbol.
2482 Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
2484 * strings.c (scm_make_shared_substring): build'em.
2485 It might better to keep a table of these and use one
2486 less cons-pair per shared-substring.
2488 Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
2490 * strings.c (scm_string_shared_substring): create shared
2491 substrings. (Doesn't handle mb strings yet).
2493 * mbstrings.c (scm_print_mb_string): handle RO strings.
2495 * print.c (scm_iprin1): print substrings as their non-substring
2496 counterparts (dubious).
2498 * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
2501 * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
2503 * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
2505 * eq.c (scm_equal_p): handle RO and MB strings.
2507 * symbols.c (scm_string_to_symbol):
2508 (scm_string_to_obarray_symbol):
2509 * strop.c (scm_i_index):
2511 (scm_string_null_p):
2512 (scm_string_to_list):
2513 * strings.c (scm_string_length):
2516 (scm_string_append):
2517 * simpos.c (scm_system):
2519 * fports.c (scm_open_file):
2520 * strorder.c (scm_string_equal_p):
2521 (scm_string_ci_equal_p):
2522 (scm_string_less_p):
2523 (scm_string_ci_less_p):
2524 * pairs.c (scm_obj_length):
2525 * mbstrings.c (scm_multi_byte_string_length):
2527 Use RO string macros for RO strings.
2529 Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
2531 * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
2533 * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
2534 index/rindex. Do handle embedded \000 characters.
2536 Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
2538 * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
2539 Eliminate a (presumed) warning on some systems.
2541 * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
2542 (Mikael Djurfeldt <mdj@nada.kth.se>)
2544 Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
2546 * eval.c (scm_map): added argument type checking.
2547 (kawai@sail.t.u-tokyo.ac.jp)
2549 * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
2550 for C++. (Seth Alves <alves@gryphon.com>)
2552 (gscm_cstr): uses an uninitialized local variable causing
2553 segv. (kawai@sail.t.u-tokyo.ac.jp)
2556 * lvectors.c (scm_get_lvector_hook):
2557 In guile-ii, the lvector code was broken. It was fixed in guile-iii.
2558 It seems to me like if it is broken again in guile-iv...Here is a patch.
2559 "! || (LENGTH (keyvec) == 0))"
2560 (From: Mikael Djurfeldt <mdj@nada.kth.se>)
2563 * gscm.c (gscm_sys_default_verbosity):
2564 incorrectly declared for non-__STDC__
2565 (Tom_Mckay@avanticorp.com)
2567 * ports.c (scm_setfileno): Tweak the macro a bit
2568 to make it easier to port to systems that use
2569 more than a single structure field to hold a descriptor.
2571 * debug.c (change_mode): Avoid GNUCism "int foo[n];"
2572 Give a warning, not an error, for unrecognized modes.
2574 * eval.c (SCM_CEVAL):
2575 static char scm_s_for_each[];
2576 static char scm_s_map[];
2579 * strings.c (scm_string_p):
2580 static char s_string[];
2583 * struct.c (scm_sys_struct_set_x):
2584 static char s_sys_make_struct[];
2585 static char s_sys_struct_ref[];
2586 static char s_sys_struct_set_x[];
2587 Rearrange code to eliminate those forward decls for the sake of
2590 * variable.c (make_vcell_variable): static char s_make_variable[];
2593 * fports.c (scm_port_mode):
2594 chars modes[3] = "";
2598 (Tom_Mckay@avanticorp.com)
2601 * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
2602 scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
2603 (Tom_Mckay@avanticorp.com)
2605 * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
2606 scm_num_eq_p() was scm_equal_p().
2607 (Tom_Mckay@avanticorp.com)
2609 * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
2610 (Tom_Mckay@avanticorp.com)
2612 Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
2614 * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
2615 (Tom_Mckay@avanticorp.com)
2617 * strop.c (scm_substring_fill_x):
2618 Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
2619 (Tom_Mckay@avanticorp.com)
2621 * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
2622 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
2624 * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
2625 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
2627 * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
2628 can turn into an obscure gc bug.
2630 * chars.c (scm_char_p): fixed PROC call.
2632 * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
2635 Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
2637 * elisp.c (new file): dynamic scoping and other bits for
2638 elisp. Don't use this yet unless you specificly want to
2639 hack on elisp emulation.
2641 * dynwind.c (scm_dowinds): When entering or leaving a dynamic
2642 scope created by scm_with_dynamic_bindings_operation_x, swap
2643 the bindings of that scope with the corresponding globals.
2645 * continuations.c (scm_make_cont): when a continuation is captured,
2646 relocate the continuation stack chunks registered on the wind chain
2649 Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
2651 * eval.c (SCM_CEVAL): if the function position evaluates
2652 to a macro, process it accordingly. (Previously, macros were
2653 handled only if the function position was a symbol naming a
2654 variable bound to a macro).
2656 Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
2658 * eval.c (scm_m_set): allow multi-variable set! like
2661 Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
2663 * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
2664 STREAM of ports into the port table and replaced it with a
2667 * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
2669 * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
2671 * mbstrings.c (new file): functions on multi-byte strings.
2673 * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
2674 for multi-byte strings. Moved the string tag.
2676 * chars.h chars.c repl.c (many functions): made scm_upcase and
2677 scm_downcase functions that are safe for extended character sets.
2679 Changed the range of integer->char.
2681 Changed the type of SCM_ICHR.
2683 Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
2685 * guile.c: Changed init file name from "SCM_INIT_PATH" to
2688 Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
2690 * guile.c (gscm_is_gscm_type): New function. (Without this how will we
2691 know that it's safe to pass an object to gscm_get_type?)
2692 (gscm_get_type): Fix tyop in error message.
2694 * variable.c (scm_variable_ref): fixed assertion test.
2695 (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
2697 * gscm.h: fixed several prototypes, notably gscm_vref.
2698 Add gscm_is_eq and temporarily commented out gscm_eq (see
2699 the note in gscm.h near gscm_eq if this change effects your
2701 (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
2703 * pairs.c (scm_obj_length): see next entry.
2705 * gscm.h (gscm_obj_length): A way to get an integer
2706 length for lists, strings, symbols (treated as strings),
2707 and vectors. Returns -1 on error.
2709 * eq.c (scm_equal_p): fixed smob case.
2710 (William Gribble <grib@arlut.utexas.edu>)
2712 * Makefile.in (X_CFLAGS): defined.
2713 (William Gribble <grib@arlut.utexas.edu>)
2715 * gscm.h (gscm_2_double): provided now
2716 (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
2718 Tue Jun 13 01:04:09 1995 gnu