1 Tue Jan 7 15:04:06 1997 Mikael Djurfeldt <mdj@kenneth>
3 * socket.c (scm_recvfrom): Added missing semicolon.
5 Mon Jan 6 20:39:08 1997 Gary Houston <ghouston@actrix.gen.nz>
7 * socket.c (scm_recvfrom): allow buff_or_size to be a list containing
8 the buffer and start and end positions for SCSH networking
11 Sun Jan 5 13:53:53 1997 Jim Blandy <jimb@floss.cyclic.com>
13 * configure.in: Revert previous change to this file; the problem
14 is due to transient automake weirdness.
17 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in, not
18 PLUGIN/guile.libs. configure generates the latter from the former.
19 * Makefile.in: Rebuilt.
21 * configure.in: Call AM_PROG_INSTALL; the automake manual says we
22 need this if we install scripts, like guile-snarf.
25 Thu Jan 2 01:56:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
27 * Makefile.am (EXTRA_DIST): Added DYNAMIC-LINKING
29 Sat Dec 28 19:14:01 1996 Gary Houston <ghouston@actrix.gen.nz>
31 * socket.c (scm_addr_vector): fix faulty scm_listify.
33 Sat Dec 28 13:55:58 1996 Marius Vollmer <mvo@zagadka.ping.de>
35 * read.c (scm_lreadr): Encountering EOF after skipping a SCSH
36 style block comment is no longer considered an error.
38 Fri Dec 27 13:44:23 1996 Marius Vollmer <mvo@zagadka.ping.de>
40 * PLUGIN/guile.libs.in: New file.
41 * PLUGIN/guile.libs: Removed from repository.
42 * configure.in: Create PLUGIN/guile.libs from
43 PLUGIN/guile.libs.in. This is for including additonal libraries
44 needed for dynamic linking.
45 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in
46 instead of PLUGIN/guile.libs.
48 * Makefile.am: Added explicit dependency "dynl.o: dynl.x".
50 Sun Dec 22 23:06:14 1996 Jim Blandy <jimb@floss.cyclic.com>
52 * list.c (scm_delq_x, scm_delv_x, scm_delete_x): Delete all
53 occurrences of the given element from the list, not just the
54 first. This is how the Emacs Lisp functions behave, how the
55 analogous Common Lisp functions behave, and (I believe) how the
56 older Maclisp functions worked. I realize that this change may
57 break code, but it seemed better to break it before the Guile
60 * gc.c (scm_protect_object, scm_unprotect_object): New functions.
61 Their prototypes were already present in gc.h, but they weren't
63 (scm_init_storage): Initialize scm_protects.
64 * root.c (scm_protects): New element of scm_sys_protects.
66 * net_db.h (scm_init_net_db): Fix spelling from scm_init_netdb.
68 Sat Dec 21 15:38:32 1996 Jim Blandy <jimb@floss.cyclic.com>
70 * libguile.h: Added #include "libguile/net_db.h".
72 * libguile.h: Don't #include "libguile/libpath.h", contrary to Oct
73 30 change. That file is only meant for communication between the
74 configuration process and load.c. If code linked against libguile
75 wants to get at the paths mentioned in libpath.h, it can call
76 functions declared in load.h.
78 Sat Dec 21 14:50:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
80 * libguile.h: Removed #include "libguile/fdsocket.h"
82 * net_db.c: Added #include <sys/socket.h>.
84 Sat Dec 21 00:33:03 1996 Gary Houston <ghouston@actrix.gen.nz>
86 * filesys.c (scm_input_waiting_p): use select in preference to
87 FIONREAD, since the latter doesn't detect EOF.
88 Throw error if neither select nor FIONREAD available.
90 * socket.c (scm_connect): take a port, not a fd object.
91 (scm_fill_sockaddr): throw an error if fam is not recognised.
92 (scm_bind): use scm_fill_sockaddr.
93 (scm_listen): take a port, not a fd object.
94 (scm_accept): take and return a port. return #f in the car if
96 (scm_sock_fd_to_port): new procedure.
97 (scm_socket): use scm_sock_fd_to_port.
98 (scm_addr_vector): throw error if unrecognised address type.
99 take an extra argument with the calling procedure name.
100 (scm_getsockname): take a port. return #f if address can't be got.
101 (scm_getpeername): take a port. return #f if address can't be got.
102 (scm_recvfrom): take a port. return #f for address component if can't
104 (scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
105 scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
107 Fri Dec 20 23:06:53 1996 Jim Blandy <jimb@floss.cyclic.com>
109 * throw.c (scm_internal_catch): Make body funcs and handler funcs
110 use separate data pointers, to allow them to be designed
111 independently and reused.
112 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message):
113 Renamed from catch_body, catch_handler, and uncaught_throw; made
115 (struct scm_catch_body_data): Renamed from catch_body_data; moved
117 (scm_catch): Use the above.
118 (scm_throw): Don't bother printing a message for an uncaught
119 throw; we establish a default handler in init.
120 * throw.h (scm_internal_catch): Prototype updated.
121 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message): New
123 (struct scm_body_thunk_data): New structure, used as data
124 argument to scm_body_thunk.
125 * init.c (struct main_func_closure): New structure, packaging up
126 the data to pass to the user's main function.
127 (scm_boot_guile): Create one. Pass it to scm_boot_guile_1.
128 (scm_boot_guile_1): Pass it through to invoke_main_func. Use
129 scm_internal_catch to establish a catch-all handler, using
130 scm_handle_by_message. This replaces the special-case code in
132 (invoke_main_func): Body function for scm_internal_catch; invoke
133 the user's main function, using the main_func_closure pointer to
134 decide what to pass it.
135 * root.c (struct cwdr_body_data): Remove handler_proc member.
136 (cwdr): Use scm_handle_by_proc instead of cwdr_handler.
137 (cwdr_handler): Removed.
139 Thu Dec 19 00:00:26 1996 Gary Houston <ghouston@actrix.gen.nz>
141 * socket.h (SCM_P): update bind prototype.
142 * socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
144 (scm_socket): return a port, not a file descriptor object.
145 include "fports.h" and <unistd.h>
146 (scm_bind): take a port, not a file descriptor object.
147 take an extra argument for address args.
149 * net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
150 INADDR_NONE, INADDR_LOOPBACK.
152 Tue Dec 17 22:58:26 1996 Gary Houston <ghouston@actrix.gen.nz>
154 * init.c: include net_db.h and not fdsocket.h.
155 (scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
157 * Makefile.am: corresponding changes.
158 * socket.h: renamed from fdsocket.h, fix names.
159 * net_db.h: renamed from socket.h, fix names.
160 * socket.c: renamed from fdsocket.c.
161 remove _sys from procedure names.
162 (scm_init_socket): rename from scm_init_fdsocket. include socket.x.
163 add "socket" to features list.
164 * net_db.c: renamed from socket.c.
165 remove _sys from procedure names.
166 (scm_init_net_db): rename from scm_init_socket. include net_db.x.
167 add "net-db" to features list.
168 include "net_db.h". don't include <sys/socket.h> or
171 Thu Dec 19 14:03:24 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
173 * tags.h (scm_tags): Removed comma at end of last enumerator.
175 Thu Dec 19 02:54:59 1996 Jim Blandy <jimb@floss.cyclic.com>
177 Don't use GCC extensions to allocate space for debugging frames.
178 (Here he goes again! Why do we put up with this?!)
179 * debug.h (scm_debug_frame): Make the 'vect' member a pointer to
180 an scm_debug_info structure, not an in-line array of them. Add
181 'info' member, to say how many vect elements we've used, for eval
183 * eval.c (SCM_CEVAL): Use alloca to allocate space for vect. Use
184 a new variable debug_info_end to mark the end of vect, instead of
185 the address of the 'info' pointer itself.
186 [DEVAL] (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Remove casts of
187 &debug to scm_debug_frame *; debug is a real scm_debug_frame now.
188 (SCM_APPLY): Explicitly allocate space for debug.vect.
189 * debug.c (scm_m_start_stack): Same, for vframe.vect.
190 * stacks.c: Adjusted for new debug frame structure.
191 (RELOC_INFO, RELOC_FRAME): New macros.
192 (stack_depth, read_frames): Use them, and new scm_debug_frame
193 element 'info', instead of magically knowing that eval frames have
194 an info pointer sitting after vect.
195 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Use
197 (scm_init_stacks): Formatting tweaks.
199 Wed Dec 18 14:57:57 1996 Jim Blandy <jimb@floss.cyclic.com>
201 Give GCC more control flow information, so it can be sure that
202 variables aren't used uninitialized.
203 * error.h (scm_error, scm_syserror, scm_syserror_msg,
204 scm_sysmissing, scm_num_overflow, scm_out_of_range,
205 scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
206 scm_misc_error): Tell GCC that these functions never return.
207 * struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
208 out the field type, call abort if SCM_ASSERT returns, to placate
210 * stacks.c (scm_make_stack, scm_last_stack_frame): abort if
211 scm_wta ever returns. We can't handle this case anyway, and this
212 gives the optimizer more information.
213 * unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
214 scm_wta ever returns.
216 In some cases, the code is fine, but GCC isn't smart enough to
217 figure that out; this usually happens when one variable is only
218 initialized and used when a particular condition holds true, and
219 we know that condition will never change within a given invocation
220 of the function. In this case, we simply initialize the variables
221 to placate the compiler, hopefully to a value which will cause a
222 crash if it is ever actually used.
223 * print.c (scm_iprin1): Initialize mw_pos.
224 * read.c (scm_lreadrecparen): Initialize tl2, ans2.
225 * throw.c (scm_ithrow): Initialize dynpair.
226 * unif.c (scm_uniform_vector_ref): Initialize cra.
227 * struct.c (init_struct): Initialize prot.
228 * mbstrings.c (scm_print_mb_symbol): Initialize mw_pos and inc.
230 * strports.c (scm_eval_0str): Don't return uninitialized garbage
231 if EXPR contains no expressions.
233 Wed Dec 18 11:43:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
235 * eval.c, debug.h: Revert changes of Dec 16 and Nov 21. They
236 cause an infinite loop (???). So much for the algebraic
237 equivalency of variable-sized arrays and alloca...
239 Tue Dec 17 20:29:03 1996 Marius Vollmer <mvo@zagadka.ping.de>
241 * backtrace.c (scm_display_error): Bugfix: scm_procedure_p returns
242 a SCM boolean, not a C boolean.
244 Sat Dec 14 23:21:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
246 * gc.c (SCM_MTRIGGER_HYSTERESIS): New memory management parameter.
247 (scm_must_malloc, scm_must_realloc): Added a hysteresis to the
248 rules for raising scm_mtrigger. Previously, unfortunate but not
249 unlikely circumstances could result in almost constant invokation
250 of the gc. Now, this situations should be less likely, but they
251 are not prevented completely.
253 Tue Dec 17 16:19:07 1996 Jim Blandy <jimb@totoro.cyclic.com>
255 * numbers.c (scm_fuck): Procedure removed; looks like old test
257 * numbers.h: Prototype removed.
259 Mon Dec 16 18:20:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
261 * debug.h (scm_debug_frame): Change `vect' member from an in-line
262 array to a pointer, to match my Nov 21 change in eval.c.
264 Fri Dec 13 16:12:14 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
266 * libguile.h: Added #include "libguile/backtrace.h", #include
269 * strings.c (scm_string scm_make_string scm_string_ref
270 scm_string_set_x scm_string_equal_p scm_string_append):
271 Bugfix according to scm patch from Aubrey Jaffer:
272 Corrected long-standing
273 (not (eqv? (integer->char 128)
274 (string-ref (make-string 1 (integer->char 128)) 0)))
275 bug found by John Kozak <jk@noontide.demon.co.uk>.
277 * strports.c, strports.h: Make scm_eval_0str return the value of
278 the last expression evaluated (previously, it returned void).
280 * strports.c, strports.h: New function: scm_read_0str. Does what
283 Tue Dec 10 23:38:43 1996 Gary Houston <ghouston@actrix.gen.nz>
285 * simpos.c (scm_getenv): return #f if string can't be found in the
286 environment instead of throwing an exception, for compatibility
287 with numerous other systems.
289 Mon Dec 9 23:23:35 1996 Tom Tromey <tromey@cygnus.com>
291 * Makefile.am (.c.x): Use guile-snarf.
292 * configure.in (AC_OUTPUT): Generate guile-snarf; make it
294 * guile-snarf.in: New file, resurrected from old guile-snarf.sh.
296 Mon Dec 9 18:36:50 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
298 * backtrace.c (scm_display_error_message): Made non-static, and
299 renamed from display_error_message.
300 * backtrace.h (scm_display_error_message): Added extern decl.
301 * throw.c (uncaught_throw): Use it to display the error message.
303 Mon Dec 9 10:10:38 1996 Tom Tromey <tromey@cygnus.com>
305 * inet_aton.c: Use #if 0, not #ifdef 0.
307 Mon Dec 9 06:36:48 1996 Gary Houston <ghouston@actrix.gen.nz>
309 * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
310 to convert the returned value.
311 (scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
314 Sun Dec 8 21:06:38 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
316 Add new interface to catch/throw, usable from C as well as
318 * throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
319 (scm_internal_catch): New function, replaces...
320 (scm_catch_apply): Deleted.
321 * throw.c (scm_catch_apply): Deleted; replaced with a more general
322 mechanism which is a bit more code, but can be used nicely from C
323 and implement the Scheme semantics as well.
324 (scm_internal_catch): This is the replacement; it's named after
325 the analogous function in Emacs.
326 (scm_catch): Reimplemented in terms of the above.
327 (struct catch_body_data, catch_body, catch_handler): New
328 functions, used by scm_catch.
329 * root.c (cwdr): Reimplemented in terms of scm_internal_catch.
330 (struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
331 support for new cwdr.
333 * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
336 Sun Dec 8 17:55:34 1996 Marius Vollmer <mvo@zagadka.ping.de>
338 * acconfig.h: Added DYNAMIC_LINKING symbol.
339 * configure.in: Add option and checks for dynamic linking.
340 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c,
341 dynl.h: New files for dynamic linking support.
342 * Makefile.am (libguile_a_SOURCES):
344 (modinclude_HEADERS): Added "dynl.h".
345 (EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
347 * init.c (scm_boot_guile_1): Call
348 scm_init_dynamic_linking to initialize dynamic linking support.
350 Thu Dec 5 22:47:53 1996 Marius Vollmer <mvo@zagadka.ping.de>
352 * init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
353 (as we Schemers say). It needs to be global, so that I can tweak
354 it for the proper operation of unexec.
355 (scm_boot_guile_1_live): New variable, see above.
357 Sun Dec 1 00:00:49 1996 Tom Tromey <tromey@cygnus.com>
359 * guile-snarf.sh: Removed.
360 * PLUGIN/guile.libs: Added dependency for -lm.
361 * acinclude.m4: Renamed from aclocal.m4.
362 * PLUGIN/greet: Removed.
363 * Makefile.am, aclocal.m4: New files.
364 * configure.in: Updated for Automake.
366 Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
368 * eval.c (scm_definedp): Use top_level_lookup_closure_var
369 and not top_level_lookup_thunk_var.
371 Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
373 * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
375 Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
377 * eval.c (scm_definedp): Incompatibly changed to be a builtin
378 Scheme function, instead of syntax. Single argument is now a
381 Thu Nov 21 20:26:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
383 * ramap.c (scm_ra_sum, scm_ra_difference, scm_ra_product,
384 scm_ra_divide): Properly terminate statements passed as arguments
385 to IVDEP macros. (Thanks to Bernard Urban.)
387 * eval.c (SCM_CEVAL): Use alloca, not GCC's extensions for arrays
388 with non-constant sizes. (Thanks to Bernard Urban.)
390 Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
392 It's an "eval closure", not an "eval thunk." A thunk is a
393 function of no arguments.
394 * root.h (struct scm_root_state): Renamed
395 top_level_lookup_closure_var from top_level_lookup_thunk_var.
396 (scm_top_level_lookup_closure_var): Renamed from
397 scm_top_level_lookup_thunk_var.
398 * root.c (mark_root): Uses changed.
399 * gdbint.c (gdb_eval, gdb_binding): Uses changed.
400 * init.c (scm_start_stack): Uses changed.
401 * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
402 Change scheme-visible name to *top-level-lookup-closure* from
403 *top-level-lookup-thunk*.
405 Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
407 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
408 pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
410 Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
412 * gc.c (struct scm_heap_seg_data): Doc fixes.
414 * gc.c (scm_gc_sweep): Empty all segments' freelists before
415 sweeping. Then, prepend each segment's free cells to its
416 freelist, rather than wiping out the old value. (Thanks to Marius
419 * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
420 scm_check_freelist, scm_debug_newcell): New functions and
421 variables, for debugging freelist problems.
422 * pairs.h (SCM_NEWCELL): New debugging version added.
423 * gc.h (scm_debug_newcell): Added extern declaration, used by
424 debugging version of SCM_NEWCELL.
426 Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
428 On some systems <libc.h> conflicts with <unistd.h>, and should not
430 * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
431 * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
432 * configure.in: Call it.
433 * posix.c, filesys.c: Use its results to decide whether or not to
435 * configure, scmconfig.h.in: Rebuilt with autoconf and
438 Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
440 * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
441 pointer to the stdio stream before calling scm_setbuf0, so the
442 latter will be able to retrieve it. I'm surprised this didn't
443 segfault earlier. (Thanks to Christopher Lee.)
445 Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
447 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
450 Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
452 * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
453 number of stack narrowing specifier pairs. The first specifier in
454 a pair controls inner border, the second the outer border. A
455 number means cut that number of frames, a procedure object means
456 cut until that object is found in operator position in a frame.
458 * root.c (cwdr): Bugfix.
460 * read.c: Recording of positions disabled by default.
462 * procs.c (scm_closure_p): New function.
464 * posix.c (scm_tmpnam): New function.
466 * load.c: Added #include "throw.h".
467 (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
470 * load.c, load.h (scm_read_and_eval_x): New function.
472 * eval.c: Renamed debug option "deval" to "debug".
474 (scm_eval_x): `eval!' is no longer accessible from the scheme
475 level. Motivation: We can't allow operations which introduce
476 glocs into the scheme level. Guile's type system can't handle
477 these as data. Use `eval' or `read-and-eval!' as replacement.
479 * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
480 SCM_CONSP since this is a macro!; Set vframe.prev to
481 scm_last_debug_frame instead of 0. In this way we can look
482 "above" the virtual start stack frame if we wish.
483 (scm_debug_hang): New function: Useful for debugging Guile in
484 certain tricky situations. Will probably be removed later...
486 * debug.h: Changed semantics of debug option "backtrace". This
487 option now only indicates whether we want automatic backtrace at
490 Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
492 * ports.c: #include "filesys.h"
493 (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
495 * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
496 Motivation: This is system specific code which is related to file
497 I/O. It also may use select. Added code by Gary Houston to
498 detect presence of character in stdio buffers.
500 * libguile.h: #include "libguile/libpath.h"
502 * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
503 SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
504 SCM_SITE_DIR; Install libpath.h among the other include files.
506 * load.c, load.h (scm_sys_package_data_dir): New function.
508 Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
510 * stacks.h: Bugfix: Don't use tail-array length field as stack
511 length field! This screwed GC.
513 Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
515 * _scm.h: Added #ifndef around definition of macros min and max.
517 * __scm.h: Added hooks for threads to plugin to in ints protection
518 macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
519 SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
520 the main code in these macros duplicated and spread over multiple
521 files. Renamed SCM_THREADS_SWITCHING_CODE ->
522 SCM_THREAD_SWITCHING_CODE.
524 Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
527 * guile-snarf.sh: New file.
528 * Makefile.in (inner_h_files): Added snarf.h
529 (ancillary, install, uninstall, distclean): Added actions for
531 (.c.x): Use guile-snarf.
532 (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
533 (gen_c_files): Note that these depend on guile-snarf.
534 * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
535 now in "snarf.h". Added #include "snarf.h" to get them.
536 * libguile.h: Added #include "snarf.h".
537 (Patches applied and tweaked by Jim Blandy.)
539 Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
541 * socket.c: Use K&R style declaration for 'close'; the GNU coding
542 standards suggest against providing prototypes for system
543 functions. Thanks to Greg Troxel.
545 Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
547 * strports.c (scm_eval_0str): New function.
548 #include "read.h", to get prototype for scm_read.
549 * Makefile.in (strports.o): Update dependencies.
550 * strports.h: New prototype.
552 * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
553 scheme name from "int?" to "integer?". It seems to do the job.
554 * numbers.h: Rename prototype too.
555 * scmhob.h (intp): Change definition to refer to scm_integer_p. I
558 * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
559 scm_num_eq_p): Rename these according to R4RS conventions: call
560 them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
561 to making libguile R4RS compliant without ice-9...
563 * load.c (scm_sys_search_load_path): Search for files under all
564 extensions listed in the %load-extensions variable. If FILENAME
565 is absolute, return it unchanged, without searching the load path.
566 (scm_loc_load_extensions): New variable, pointing to
567 %load-extensions' value cell.
568 (scm_init_load): Initialize it, and the value it points to.
569 (scm_primitive_load_path): Improve error reporting.
571 * load.c (scm_loc_load_hook): New variable, pointing to value cell
572 of new Scheme variable %load-hook.
573 (scm_primitive_load): Apply %load-hook to filename.
575 Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
577 * configure.in: add tests for figuring out whether buffered data
578 is available in a FILE structure, which is needed by char-ready.
580 * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
583 * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
584 exceptions using misc_error instead of syserror. It seems a bit
585 odd to throw an exception if a string can't be found in the
586 environment, but it's consistent with open-file, stat etc.
587 (simpos.h): remove sys_ from getenv.
589 * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
590 occurs, throw an error instead of returning errno. Return value
592 (numerous in posix.c and posix.h): removed superfluous sys_ from names.
594 Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
596 * filesys.c (scm_stat2scm): derive file type and permissions from
597 the stat mode and append them to the returned vector.
598 There isn't much overhead in doing this and it avoids the need to
599 work with S_IRUSR et al. in Scheme.
600 Define symbols scm_sym_regular etc.
601 (scm_init_filesys): don't intern S_IRUSR etc.
603 * load.c: change s_try_load and s_try_load_path to s_primitive_load
604 and s_primitive_load_path.
606 * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
608 * error.h: don't declare error symbols. prototype for scm_misc_error.
610 * stackchk.c (scm_stack_overflow_key): defined here instead of in
613 * error.c: use SCM_SYMBOL to set up error keys.
614 scm_misc_error: new procedure.
616 Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
618 * read.c (scm_lreadr): Recognize SCSH-style block comments; text
619 between `#!' and `!#' is ignored.
620 (skip_scsh_block_comment): New function.
622 * feature.c (scm_set_program_arguments): New argument, FIRST.
623 * feature.h: Update prototype.
624 * init.c (scm_boot_guile_1): Pass new argument to
625 scm_set_program_arguments.
627 Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
629 * init.c (scm_start_stack): Don't initialize scm_progargs here.
630 (scm_boot_guile): Call scm_set_program_arguments here, later than
631 the old initialization.
633 * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
634 initialization procedure.
635 - Delete in, out, err arguments; there are other perfectly good
636 ways to override these when desired.
637 - Delete result argument; this function shouldn't ever return.
638 - Rename init_func argument to main_func, for less confusion.
639 - Delete boot_cmd argument; main_func is more general.
640 -Add 'closure' argument, to help people pass data to main_func
641 without resorting to global variables.
642 - Abort if reentered; don't bother returning an error code.
643 - Call scm_init_standard_ports to set up the default/current
644 standard ports; no need to pass them to scm_start_stack.
645 - Remove code to evaluate the boot_cmd, and start the repl; let
646 the user do something like that in main_func if they want.
647 - Remove code to package up a return value; main_func can do any
649 - Call exit (0), instead of returning.
650 (scm_start_stack): Don't initialize the I/O ports here; that's
651 weird. Delete in, out, err arguments. Move guts to
652 scm_init_standard_ports, scm_stdio_to_port.
653 (scm_init_standard_ports): New function, to set up current and
654 default standard ports.
655 (scm_start_stack, scm_restart_stack): Make these static.
656 * init.h (scm_boot_guile): Adjust declaration.
657 (scm_start_stack, scm_restart_stack): Remove externally
658 visible declarations for these.
659 (enum scm_boot_status): Removed; now scm_boot_guile never returns.
661 * fports.c (scm_stdio_to_port): New function. Its guts used to be
662 written out several times in scm_start_stack.
663 * fports.h: New declaration for the above.
665 * feature.c (scm_set_program_arguments): New function.
666 * feature.h: New declaration for the above.
668 * ports.c: Formatting tweak.
670 Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
672 * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
673 ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
674 for obtaining the address of a car or cdr field. Motivation:
675 &SCM_CXR make assumptions about the internal structure of the
678 * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
679 Motivation: see SCM_CXRLOC.
681 * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
682 srcprop.h, tags.h, throw.c, unif.c: Added new selectors
683 SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
684 Motivation: Safer use. Some other macros are defined in terms of
685 these operations. If these are defined using the SCM_SETCXR
686 (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
687 to inefficiency and an <e1> with side-effects could potentially
688 break. Also, these particular operations are heavily utilized in
689 the garbage collector. In unoptimized code there will be a
692 * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
693 eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
694 ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
695 pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
696 procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
697 strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
698 vports.c: Cleaned up use of pairs: Don't make any special
699 assumptions about the internal structure of selectors and
700 mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
701 SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
702 (Among other things, this change makes it easier to build Guile
703 with certain compilers which have problems with casted lvalues.)
705 Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
707 * stacks.c: Improve selection of relevant stack frames when making
708 a stack object. Introduce one level of indirection in the stack
709 object to make it possible to "narrow" to a certain region of the
710 stack. This facilitates making use of more clever algorithms (not
711 implemented) for selecting relevant frames and gives a cleaner
712 design since selection of frames can be done independently of
713 extraction of frames from the real stack.
714 (scm_stack_id): Also take #t as argument which means look at
717 * stacks.h: In struct scm_stack: Turn field frames into a pointer.
718 Turn n_tail into an integer directly representing current number
719 of frames in stack. Add field tail.
721 * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
723 * debug.c (scm_make_memoized): Made it available at scheme level.
724 (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
725 SCM_NIMP before applying heavier predicates in argument checking.
726 (scm_local_eval): Also take memoized object as argument.
728 * backtrace.c (scm_display_error): Just a safety measure: Stacks
729 aren't created with zero length, but should such a strange
730 creature suddenly turn up...
732 Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
734 * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
735 `del', for the sake of C++ compilers. (Patch applied by JimB.)
737 Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
739 * variable.c (scm_make_variable): Make the name hint optional, as
741 (anonymous_variable_sym): Renamed from variable_sym. All uses
744 * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
745 from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
746 of scm_primitive_load_path was also changed to
747 "primitive-load-path", from "%try-load-path". Callers changed.
748 We'd like to respect the convention that a function named
749 "try-mumble" should behave just like the function called "mumble",
750 but return #f instead of signalling some error.
751 * load.h: Rename prototypes.
753 Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
755 * print.c (make_print_state, grow_print_state), print.h: Modified
756 the print state representation: Don't use a tail array for
757 recording of circular references. Resizing of the print state
758 structure invalidates the print state pointer. To avoid passing
759 around an indirect print state reference to all printing
760 functions, we instead let the print state reference a resizable
763 Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
765 * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
766 Don't crash when passed an improper list terminated by a
769 Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
771 Allocate data for structures on an eight-byte boundary, as
772 required by the tagging system.
773 * struct.c (alloc_struct): New function.
774 (scm_make_struct, scm_make_vtable_vtable): Call it.
775 * struct.h (scm_struct_n_extra_words): Bump to 3.
776 (scm_struct_i_ptr): New "field".
777 * gc.c (scm_gc_sweep): When we need to free the data, use the
778 information stored by alloc_struct to find the beginning of the
779 block allocated to the structure, so we can free it.
781 Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
783 * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
786 * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
787 (scm_debug_info): New member: id.
789 * stacks.c: Stacks are now represented as structs; Stacks have an
790 id given to them by `start-stack'.
791 (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
793 * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
794 Changed stack representation.
796 * debug.c (scm_procedure_name): Try procedure property `name' for
797 compiled closures aswell.
799 * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
801 * eval.c: scm_i_name moved to gsubr.c
802 (scm_m_define): Record names of all kinds of procedure
803 objects. (Earlier, only closures were recorded.)
805 * procprop.h: Added declaration of scm_i_name.
807 * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
808 (scm_make_gsubr): Record names of compiled closures.
810 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
812 * debug.c, debug.h: Removed obsolete code.
814 * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
815 stacks.c: Renamed regs --> scm_contregs.
817 * print.c (scm_free_print_state): Cleanup print state before
818 returning it to pool. It is better to do it here than in
819 scm_prin1 since scm_prin1 is called often.
821 * srcprop.c (scm_source_properties, scm_set_source_properties_x,
822 s_set_source_property_x): Check that first argument is a pair or a
825 * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
826 scm_i_line, scm_i_column and scm_i_breakpoint global.
828 * init.c: Added #include "backtrace.h" and #include "stacks.h".
829 (scm_boot_guile_1): Added calls to scm_init_backtrace and
832 * debug.h: Added debug object smob declaration and macro
835 * configure.in: Build with backtrace.o and stacks.o if debug
838 * Makefile.in: Added entries for new files: backtrace.c,
839 backtrace.h, stacks.c and stacks.h.
841 * symbols.c (scm_sym2ovcell): Fixed documentation.
843 * _scm.h (min, max): Added.
845 * async.c: Moved `min' macro to _scm.h.
847 * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
848 SCM_BACKTRACE_INDENT.
850 * eval.c: Added new debug options `maxdepth' and `indent'.
852 * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
854 * print.h: Added selector SCM_PRINT_STATE.
856 * print.c: New functions: scm_make_print_state,
857 scm_free_print_state.
859 * print.h: Added declarations for scm_make_print_state,
860 scm_free_print_state.
862 * debug.c (scm_m_start_stack): New acro.
864 * debug.h: Small cleanup.
866 * init.c (scm_boot_guile_1): Moved scm_init_debug below
869 Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
871 * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
872 arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
873 chars.c, chars.h, continuations.c, continuations.h, debug.c,
874 debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
875 eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
876 filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
877 gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
878 hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
879 kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
880 markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
881 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
882 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
883 procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
884 root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
885 simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
886 stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
887 strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
888 struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
889 unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
890 version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
891 declare functions with prototypes. (Patch thanks to Marius
894 More prototype-related changes from Marius Vollmer:
895 * gdb_interface.h: Wrapped header file in #ifdef/#endif
896 * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
897 * ports.h (ptobfuns): Added prototypes. This means some casting in
899 * fports.c: Added casts for initializations, since the functions
900 are defined to take FILE * as their stream argument, not SCM.
901 * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
902 * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
903 to `char *str_data' to conform to prototype.
905 Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
907 * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
909 * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
911 * stime.c, stime.h: use SCM_P method.
913 Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
915 * eval.c (scm_nconc2last): Don't accept an empty list; apply must
916 be given at least two arguments. Insist that lst's last element
917 be a list, but don't make any requirements of its predecessors.
919 Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
921 * eval.c (scm_nconc2last): Revert last change; there seems to be
922 other stuff going on here.
924 Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
926 * eval.c (scm_nconc2last): Make sure that each element of lst
927 (which is a list of argument lists, except for the tail) is a
928 proper list, i.e., finite and terminated by '().
930 Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
932 * unif.c (scm_ra_set_contp): Localize `inc' declaration.
935 * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
936 symbolic name for the tag, scm_tc3_cons_gloc, instead of just
939 * vectors.c (scm_make_vector): Fill vectors with the undefined
940 value, to help make Guile Scheme code more portable to other
943 * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
944 * symbols.h, tags.h: Doc fixes.
946 Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
948 * async.c (scm_take_signal): Doc fixes.
950 Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
952 * numbers.c (scm_divbigint): When the remainder is zero, we don't
953 want to subtract it from the modulus; we just want to leave it
956 Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
958 * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
961 * throw.h (scm_catch_apply): Removed the `lazyp' argument.
963 * throw.c (scm_catch_apply): Finished implementation of
966 Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
968 * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
970 (scm_init_filesys): set "i/o-extensions" feature.
973 Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
975 * Makefile.in (root.o): Correct dependencies.
977 Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
979 * Makefile.in: Added dependency entry for root.o.
981 * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
982 throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
984 * init.c (scm_start_stack): Set initial root continuation number
987 * procs.c: New function: scm_thunk_p.
989 * procs.h: Added declarations of scm_thunk_p.
991 * root.c: Renamed `call-with-new-root' -->
992 `call-with-dynamic-root'.
993 (cwdr): Removed allocation of new root state. This should be done
994 separately by use of scm_make_root.
995 (scm_apply_with_dynamic_root): New function: Does what it
996 sounds like. Needed when spawning threads.
998 * root.h: Added member last_debug_frame to root state.
999 Added #include "libguile/debug.h"
1001 * throw.c: Renamed scm_catch --> scm_catch_apply and added more
1002 arguments. The motivation is that code in root.c needs catch
1003 functionality, and we want to avoid code duplication.
1004 New functions: scm_catch, scm_lazy_catch. These are wrappers for
1005 scm_catch_apply. scm_lazy_catch is intended to introduce catch
1006 handlers that run without popping the stack into the dynwind
1009 * throw.h: Added prototypes for scm_catch_apply and
1012 Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1014 * root.h (scm_root, scm_set_root): Decouple thread support details
1015 by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
1016 SCM_SET_THREAD_LOCAL_DATA.
1018 * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
1019 and tortoise scanning loop.
1021 Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
1023 * Makefile.in: Rebuild dependencies.
1025 * libguile.h: #include "libguile/print.h" before "smob.h", since
1026 the latter uses the print_state structure.
1028 * throw.c (scm_ithrow): Use the correct variable when checking to
1029 see if a given element of scm_dynwinds is a valid catch.
1031 * throw.c (scm_ithrow): If scm_dynwinds has invalid list
1032 structure, abort; don't just silently ignore the garbage.
1034 * _scm.h: #include "print.h" here, since it seems to be used just
1036 * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
1037 strports.c, unif.h: Don't #include "print.h".
1039 Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1041 * feature.h (scm_loc_features): Removed external declaration.
1042 (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
1044 Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1046 * feature.c (scm_init_feature): Added threads feature (needs to be
1047 initialized here, since features doesn't exist when
1048 scm_init_threads is called).
1050 * libguile.h: Added #include "libguile/../threads/threads.h".
1051 (This is a kludge to get thread support working. This should be
1054 * configure.in, acconfig.h: Added flags for thread support.
1056 * scmsigs.c: Define `signal' to be `pthread_signal' if using
1059 * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
1060 SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
1063 * _scm.h: Added conditional #include "threads.h"
1065 * __scm.h (SCM_ASYNC_TICK): Added call to macro
1066 SCM_THREADS_SWITCHING_CODE.
1068 * init.c (scm_start_stack): Call `scm_make_root' to dynamically
1069 allocate the basic dynamic root object.
1070 (scm_boot_guile): Added call to scm_init_root.
1072 * root.c, root.h: Added root smob.
1073 (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
1074 functions: Implements dynamic roots mostly according to spec in
1075 SCM manual. Main difference is that the second argument is a
1076 throw handler rather than an error "thunk".
1078 * root.h: Added declaration of scm_init_root.
1080 * root.c: Added #include "genio.h", #include "smob.h", #include
1081 "pairs.h", #include "throw.h", #include "dynwind.h", #include
1083 (scm_init_root): Added #include "root.x".
1085 * throw.c: Added #include "stackchk.h"
1086 (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
1087 SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
1088 can be used in scm_call_with_new_root; Added reenabling of stack
1089 checking when catching a throw.
1091 Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
1093 * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
1095 * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
1096 element is not found, as per R4RS.
1098 Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
1100 * list.c: Doc fixes throughout.
1102 Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
1104 * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
1105 declare the char * to be const. Avoids a warning in rgx.c.
1107 * ports.h: spelling fix.
1109 * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
1112 * load.c (scm_sys_try_load_path): throw an error if file not found
1113 (like it says it in NEWS).
1115 Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
1117 * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
1118 PROPS slot to '(), not #f; it's an empty alist.
1120 * throw.h, throw.c: Use SCM_P instead of #if hair.
1122 Remove special support for uncaught throws; see throw.c for
1124 * throw.c (uncaught_throw): New function.
1125 (scm_ithrow): Call uncaught_throw if we don't find a throw
1126 target; don't mess with scm_bad_throw_vcell.
1127 (scm_bad_throw_vcell): Variable deleted.
1128 (scm_init_throw): Don't initialize it.
1130 * throw.c (scm_ithrow): Don't let outer key matches shadow inner
1133 Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
1135 * numbers.c (scm_istr2int): If the number is short (as most
1136 numbers are), just call scm_small_istr2int to deal with it.
1137 (scm_small_istr2int): New function, created by un-#ifdefing the
1138 non-bignum version of scm_istr2int and renaming it.
1140 Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
1142 * load.c (scm_sys_try_load): don't check whether value returned
1143 by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
1144 Change the Scheme name from %try-load to primitive-load.
1146 * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
1147 Can avoid passing a message, allowing it to be derived in the
1148 error handler (e.g., if we want to throw to the key both from
1151 Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
1153 * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
1154 references now have a new appearance which is more compact and
1155 also gives a clue about what the target of the reference is.
1156 By setting parameters in the print state, more fancy printing can
1157 be achieved. This is used by the (not yet commited) backtrace
1160 Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
1162 * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
1165 * print.c: Added #include "struct.h". Removed function
1168 * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
1169 scm_iprin1. Removed prototype for scm_prlist.
1171 * arbiters.c (prinarb),
1172 async.c (print_async),
1173 debug.c (prindebugobj, prinmemoized),
1174 eval.c (prinprom, prinmacro),
1175 filesys.c (scm_fd_print, scm_dir_print),
1177 mallocs.c (prinmalloc),
1178 numbers.c, numbers.h (scm_floprint, scm_bigprint),
1179 smob.h (scm_smobfuns),
1180 srcprop.c (prinsrcprops),
1182 unif.c, unif.h (scm_raprin1, rapr1),
1183 variable.c (prin_var): Changed argument `int writing' to
1184 `scm_print_state *pstate'.
1186 * init.c (scm_boot_guile): Moved scm_init_struct upwards so
1187 that it will be called before scm_init_print.
1189 * print.c (scm_prin1): Print states are now allocated when calling
1190 scm_prin1 and then passed around to all printing functions as an
1191 argument. A cache `print_state_pool' enables reuse of print
1193 (scm_make_print_state): New function.
1194 (scm_iprin1): Adaption to print states.
1195 (scm_iprlist): An initial "hare and tortoise" scan brings down
1196 time complexity to O (depth * N). (Better time complexity will be
1197 achieved when the printing code is completely rewritten.)
1199 Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
1201 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
1202 AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
1203 it gets done whether or not the cache variable has a value.
1205 Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
1207 Distinguish #f and ().
1208 * __scm.h: #undef SICP.
1209 * pairs.h (SCM_EOL): Delete this definition, equating it with
1211 * tags.h (SCM_EOL): Give it a new definition here; I think I found
1212 the value it used to have. Doc fixes, too.
1214 Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
1216 * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
1217 scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
1218 Lord's implementation of structs, allowing for tail arrays as
1219 described in the manual. Also fixed some bugs. (Both the interface
1220 and the implementation should be improved.)
1222 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
1224 * print.c, print.h: Closures now print like #<procedure foo (x)>.
1225 People who whish to see the source can do `(print-enable 'source)'.
1226 Removed #ifdef DEBUG_EXTENSIONS.
1228 Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1230 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
1231 integer (assuming for now accepting an integer is a good thing).
1233 * error.c, fports.c: replace use of %S in lgh_error args with %s.
1234 %S will be used instead for write'ing arguments.
1236 * unif.c (scm_transpose_array): change arguments in the SCM_WNA
1237 asserts. fix a few other asserts.
1238 (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
1239 scm_uniform_vector_ref, scm_array_set_x,
1240 scm_dimensions_to_unform_array): change args in
1241 SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
1242 strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
1243 scm_substring_fill_x): likewise.
1244 gsubr.c (scm_gsubr_apply): likewise.
1245 eval.c (SCM_APPLY): likewise.
1247 * eval.c (4 places): replace scm_everr with lgh_error or
1250 * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
1251 scm_memory_error): new procedures.
1252 scm_everr: deleted. can use scm_wta, dropping first two args.
1253 scm_error: convert NULL subr to SCM_BOOL_F.
1255 * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
1258 * stackchk.c (scm_report_stack_overflow): use lgh_error instead
1261 * error.c, error.h: new error keys: scm_arg_type_key,
1262 scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
1264 scm_wta: reimplement using lgh_error instead of scm_everr.
1266 Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
1268 * gdbint.c: scm_lread now has one more argument.
1270 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
1271 scm_port_\1; Added mutator scm_set_port_filename_x (used when
1272 loading source from non-file ports, which, e. g., happens when
1273 using the Emacs interface).
1275 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
1278 * read.c: Added code for recording of positions of source code
1279 expressions; New functions: recsexpr, scm_lreadrecparen;
1280 _scm_make_srcprops --> scm_make_srcprops
1281 (scm_flush_ws): Removed updating of positions counters. This work
1282 is already done by scm_gen_getc
1284 * read.h: Added prototype for scm_lreadrecparen
1286 * print.c: Added #include "alist.h"
1288 * eval.c: Added #include "hash.h"
1290 * eq.c: Added #include "ramap.h"
1292 * options.c: Documentation fixes.
1294 * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
1295 (scm_init_srcprop): Adjusted size of initial source-whash. Name
1296 changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
1297 --> scm_make_srcprops
1299 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
1300 _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
1301 function calls in the definition of the whash access macros.
1303 Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
1305 * init.c (scm_boot_guile): Add level of indirection to
1306 scm_boot_guile_1() to ensure that stack base pointer is properly
1307 initialized. There was no guarantee that variable i was the
1308 highest/lowest variable on stack (i.e. the call frame of
1309 scm_boot_guile was not completely protected from gc).
1311 Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
1313 * ports.h (scm_port_table): put back file_name, it will be used to
1314 support debugging. Undo related changes in fports.c, ioext.c,
1317 Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
1319 * ports.h (scm_port_table): remove file_name member for now, it seems
1321 * fports.c (scm_open_file): don't set file_name in PTAB.
1322 (prinfport): don't use file_name in PTAB.
1323 * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
1324 * ports.c (scm_add_to_port_table): don't intialize file_name.
1325 (scm_port_file_name): remove for now.
1326 * gc.c (scm_gc_mark): don't mark PTAB file_name.
1328 * fports.h (scm_mkfile): prototype deleted.
1329 * fports.c (scm_mkfile): merged into scm_open_file to simplify.
1331 * debug.c, unif.c: use scm_out_of_range instead of
1332 wta for range errors (ASSERT still needs work).
1334 * error.c, error.h (scm_out_of_range): new procedure.
1336 * error.c, error.h (scm_out_of_range_key): new key.
1338 * posix.c (scm_sync): #else was missing.
1340 * error.c, error.h: append _key to names scm_num_overflow and
1343 * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
1344 of consing an empty list.
1345 (SCM_SYSERROR etc.): move into error.c, make them procedures instead
1346 of macros, saves code and string space.
1347 error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
1348 fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
1349 lower case. Rename scm_syserror_m to scm_syserror_msg.
1350 error.h: prototypes for new procedures.
1352 Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
1354 * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
1356 * error.c, error.h: setup scm_num_overflow key.
1358 * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
1359 Remove definition of SCM_OVSCM_FLOW.
1361 * fports.c (scm_open_file): use SCM_SYSERROR_M.
1363 * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
1364 explicit message and args.
1366 * error.c, error.h, __scm.h: change system_error_sym to
1369 * error.c (system_error_sym): remove leading %% from the Scheme name
1372 * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
1374 Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1376 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
1377 fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
1378 numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
1379 tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
1380 renamed. (These were introduced by unsupervised name
1383 Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1385 * print.c: Added code for detection of circular references during
1386 printing. (init_ref_stack, grow_ref_stack): New functions. Added
1387 a hook for printing of closures (accessible via print options).
1388 This leads to a split of calls to scm_iprin1 into two classes:
1389 elementary print operations (e. g. the code which prints a smob)
1390 still use scm_iprin1 while top level calls (like scm_display) use
1391 scm_prin1. scm_prin1 begins by clearing the data structure used
1392 to record reference information.
1394 * print.h: Added declarations of scm_prin1 and scm_prlist.
1396 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
1398 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
1400 * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
1402 * error.c (err_head): scm_iprin1 --> scm_prin1
1404 * debug.c: Adjusted header comment.
1408 Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
1410 * strerror.c: Doc fix.
1412 Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1414 * gdbint.c (gdb_read): Now possible to run during GC.
1415 (unmark_port, remark_port): New functions.
1417 * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
1419 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
1420 of allocating a new string object. Also, increase size by
1421 the factor 2 instead of 1.5.
1423 Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
1425 * __scm.h (SCM_P): Corrected to run under traditional C.
1427 * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
1430 * async.c: Calls to scm_sysintern corrected.
1432 * async.h (scm_async_clock): Redundant declaration removed.
1434 * continuations.c (scm_dynthrow): Redundant declaration removed.
1436 * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
1437 Definition typos corrected.
1439 * debug.h: Missing declarations of functions in debug.c added
1442 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
1443 Missing declarations to functions in eval.c added.
1445 * filesys.c: Possibly uninitialized variable rv.
1447 * gc.h (scm_object_addr, scm_unhash_name): Missing
1448 declarations of functions defined in gc.c added.
1450 * genio.c: Possible typos str_data -> wstr_data. ???
1452 * genio.c: Possibly unintended shadowing of local variable
1453 `int c' (gotos out of scope of inner `c'). ???
1455 * init.c: Uninitialized `SCM last' may be used.
1457 * ioext.h: (scm_sys_isatty_p): Typo.
1459 * list.h (scm_list_head): Missing prototype for function in
1462 * numbers.c (scm_two_doubles): Changed from extern to static
1463 (is used only within numbers.c).
1465 * numbers.h: Repeated declarations removed.
1467 * ports.h (scm_close_all_ports_except): Declaration for the
1468 function defined in ports.c added.
1470 * posix.h: Missing declarations added.
1472 * procs.h (scm_make_subr_opt): Missing declaration added.
1474 * socket.h (scm_sys_gethost): Missing declaration added.
1476 * socket.h: Redundant declarations removed (they are in fdsocket.h).
1478 * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
1479 Missing declarations added.
1481 * stime.h (scm_get_internal_real_time): Repeated declarations removed.
1483 * struct.c: Uninitialized variable `SCM answer' may be used.
1485 * unif.c (l2ra): Declaration prototype.
1487 * unif.c (scm_array_equal_p): Dummy definition removed (it is
1488 defined in ramap.c).
1490 * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
1491 Redundant declarations removed (they are in ramap.h).
1493 * variable.h (scm_make_udvariable,
1494 scm_make_undefined_variable): Declaration corrected to
1495 correspond variable.c.
1497 * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
1498 Missing declarations added.
1500 Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
1502 * Makefile.in (distclean): Don't forget to delete fd.h.
1504 Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
1506 * fd.h.in, tags.h: Trivial cleanups.
1508 * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
1509 marksweep.h just declared functions from gc.c.
1510 * gc.h, libguile.h: Don't #include "marksweep.h".
1511 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1512 marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
1513 dependencies updated.
1515 * libguile.h: Don't #include "files.h"; it's been deleted.
1517 * files.c (scm_sys_delete_file): Moved to filesys.c.
1518 File is now empty; deleted.
1520 * filesys.c: scm_sys_delete_file is now here. Remove
1521 #if's; they seem to rely on remnants of an old portability
1522 regimen. If the problems come up again, solve them properly,
1523 using autoconf. Specifically: Don't test M_SYSV, and #define
1524 remove to be unlink if it's #defined; don't use remove just
1525 because HAVE_STDC_HEADERS is #defined.
1526 * filesys.h: Add declarations for scm_sys_delete_file.
1527 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1528 files.o, files.h, files.c, and files.x.
1529 * init.c: Don't #include "files.h", and don't call scm_init_files.
1531 Use SCM_P instead of PROTO; the latter intrudes on the user's
1533 * params.h: Deleted; definition of SCM_P moved to...
1534 * __scm.h: ... here, where it replaces PROTO macro.
1535 * libguile.h, smob.h: Don't #include "params.h".
1536 * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
1537 smob.h: Fix prototypes accordingly.
1538 * Makefile.in: Update dependencies.
1539 (inner_h_files): Remove params.h.
1541 * gc.c: #include "gc.h"; every module should include its header,
1542 to let the compiler cross-check the declarations against the
1545 * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
1546 simpos.h: #include "libguile/__scm.h".
1548 Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
1550 * init.c: Don't forget to #include smob.h and init.h.
1551 * Makefile.in: Dependencies updated.
1553 * smob.h: Use PROTO instead of #if __STDC__.
1555 * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
1557 * __scm.h: Doc fixes.
1559 * __scm.h, libguile.h: Use "quotes" in the #includes, not
1560 <angles>; this allows `make depends' to work properly.
1562 * libguile.h: #include smob.h and pairs.h before the others; they
1563 define typedefs used by other headers.
1565 C files should #include only the header files they need, not
1566 libguile.h (which #includes all the header files); the pointless
1567 recompilation was wasting my time.
1568 * Makefile.in (all .o dependency lists): Regenerated.
1569 * libguile.h: Don't try to get a definition for size_t here...
1570 * __scm.h: Do it here.
1571 * _scm.h: Since this is the internal libguile header, put things
1572 here that all (or a majority) of the libguile files will want.
1573 Don't #include <libguile.h> here; that generates dependencies on
1574 way too much. Instead, get "__scm.h", "error.h", "pairs.h",
1575 "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
1576 "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
1578 * alist.c: Get "eq.h", "list.h", "alist.h".
1579 * append.c: Get "append.h", "list.h".
1580 * arbiters.c: Get "arbiters.h", "smob.h".
1581 * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
1582 * boolean.c: Get "boolean.h".
1583 * chars.c: Get "chars.h".
1584 * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
1586 * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
1587 "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
1588 "genio.h", "throw.h", "eval.h".
1589 * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
1590 * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
1592 * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
1593 * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
1594 "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
1595 "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
1597 * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
1598 * feature.c: Get "feature.h".
1599 * files.c: Get "files.h".
1600 * filesys.c: Get "filesys.h", "smob.h", "genio.h".
1601 * fports.c: Get "fports.h", "markers.h".
1602 * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
1603 "genio.h", "struct.h", "stackchk.h", "stime.h".
1604 * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
1605 "read.h", "strports.h", "tag.h".
1606 * genio.c: Get "genio.h", "chars.h".
1607 * gsubr.c: Get "gsubr.h", "genio.h".
1608 * hash.c: Get "hash.h", "chars.h".
1609 * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
1610 * init.c: Get everyone who has an scm_init_mumble function:
1611 "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
1612 "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
1613 "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
1614 "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
1615 "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
1616 "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
1617 "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
1618 "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
1619 "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
1620 "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
1621 "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
1622 "async.h", "arbiters.h", "append.h", "alist.h".
1623 * ioext.c: Get "ioext.h", "fports.h".
1624 * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
1625 * list.c: Get "list.h", "eq.h".
1626 * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
1627 * mallocs.c: Get "smob.h", "genio.h".
1628 * markers.c: Get "markers.h".
1629 * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
1631 * numbers.c: Get "unif.h", "genio.h".
1632 * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
1633 * options.c: Get "options.h".
1634 * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
1635 "markers.h", "chars.h", "genio.h".
1636 * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
1637 "read.h", "scmsigs.h", "genio.h", "fports.h".
1638 * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
1639 "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
1641 * procprop.c: Get "procprop.h", "eval.h", "alist.h".
1642 * procs.c: Get "procs.h".
1643 * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
1644 "chars.h", "smob.h", "unif.h".
1645 * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
1646 "eval.h", "genio.h", "chars.h".
1647 * root.c: Get "root.h", "stackchk.h".
1648 * scmsigs.c: Get "scmsigs.h".
1649 * sequences.c: Get "sequences.h".
1650 * simpos.c: Get "simpos.h", "scmsigs.h".
1651 * smob.c: Get "smob.h".
1652 * socket.c: Get "socket.h", "feature.h".
1653 * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
1654 "alist.h", "smob.h".
1655 * stackchk.c: Get "stackchk.h", "genio.h".
1656 * stime.c: Get "stime.h"."libguile/continuations.h".
1657 * strings.c: Get "strings.h", "chars.h".
1658 * strop.c: Get "strop.h", "chars.h".
1659 * strorder.c: Get "strorder.h", "chars.h".
1660 * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
1661 * struct.c: Get "struct.h", "chars.h".
1662 * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
1663 "variable.h", "eval.h", "chars.h".
1664 * tag.c: Get "tag.h", "struct.h", "chars.h".
1665 * throw.c: Get "throw.h", "continuations.h", "debug.h",
1666 "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
1667 * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
1668 "smob.h", "genio.h", "eval.h", "chars.h".
1669 * variable.c: Get "variable.h", "smob.h", "genio.h".
1670 * vectors.c: Get "vectors.h", "eq.h".
1671 * version.c: Get "version.h".
1672 * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
1673 * weaks.c: Get "weaks.h".
1675 * stackchk.h: #include "libguile/debug.h",
1677 * print.h, read.h: #include "options.h", since everyone who uses
1678 either of these files will need that.
1680 * smob.h: #include "ports.h", "genio.h", and "print.h", since
1681 anyone who uses this file will need them to define the smob
1682 printing functions. Also, get markers.h, since people will need
1683 to #define the mark functions.
1685 * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
1686 * ports.h: ... to here.
1688 * ports.h (scm_port_table_size): Explicitly give type as 'int';
1689 don't rely on archaic C default type rules.
1691 * fports.h: #include "libguile/ports.h", since you need that in
1692 order to parse this.
1694 * genio.h: #include "libguile/print.h", because you need that to
1695 parse this; don't bother #including "ports.h", since print.h gets
1698 * error.h: Don't #include "pairs.h"; _scm.h will do that now.
1700 * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
1701 this; it's now a reference to an element of *scm_root.
1703 * debug.h: Don't #include "options.h"; the compiler won't be able
1704 to find that once the headers are installed; instead, #include
1705 "libguile/options.h".
1706 * gc.h: Same, with marksweep.h.
1707 * mbstrings.h: Same, with symbols.h.
1708 * scmhob.h: Same, with _scm.h.
1709 * smob.h: Same, with params.h.
1711 * Makefile.in (depends): Don't nuke scmconfig.h and the generated
1712 C files; there's no need for this, and it forces recompilations
1715 Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
1717 * error.c (scm_error): declare scm_error_callback.
1719 * error.h: prototype for scm_error_callback.
1721 * __scm.h: define lgh_error.
1722 (SCM_SYSERROR): redefine using lgh_error.
1724 Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
1726 * error.c (scm_error): new procedure.
1728 * error.h: prototype for scm_error.
1730 * Makefile.in (install): install scmconfig.h from the current
1731 directory, not $(srcdir).
1733 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
1735 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
1736 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
1737 feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
1738 hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
1739 mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
1740 posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
1741 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
1742 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
1743 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
1744 vports.h, weaks.h: #include "libguile/__scm.h", not
1745 <libguile/__scm.h>. This allows 'gcc -MM' to determine which
1746 dependencies are within libguile properly.
1748 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
1750 * Makefile.in (.c.x): Simplify; there's no need to run this rule
1751 when scmconfig.h doesn't exist.
1753 * load.c (scm_sys_try_load): Correct spelling.
1755 * feature.c (scm_loc_features): Make this static.
1757 * Makefile.in (libpath.h): Omit trailing slash from path. We
1758 shouldn't require it of users, so why put it here?
1760 Move code to initialize and search %load-path from ice-9 to C
1761 code, so we can use the load-path to find the ice-9 boot code;
1762 this makes it easier to run Guile without installing it. See
1763 corresponding changes in guile/Makefile.in.
1764 * feature.c: Move stuff concerned with the load path to load.c.
1765 (scm_compiled_library_path): Deleted.
1766 Don't #include libpath.h here.
1767 * feature.h: Don't mention scm_compiled_library_path.
1768 * load.c: #include "libpath.h" here, as well as <sys/types.h>,
1769 <sys/stat.h>, and <unistd.h> (if present).
1770 (R_OK): #define if the system hasn't deigned to.
1771 (scm_loc_load_path): New variable.
1772 (scm_init_load_path, scm_sys_search_load_path,
1773 scm_sys_try_load_path): New functions.
1774 (scm_init_load): Initialize scm_loc_load_path to point to the
1775 value cell of the Scheme %load-path variable.
1776 * load.h: Add declarations for scm_sys_search_load_path,
1777 scm_sys_try_load_path.
1778 * init.c: Call scm_init_load_path.
1779 * Makefile.in (feature.o, load.o): Dependencies updated.
1781 * load.c, load.h: Rewrite using PROTO macro.
1783 Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1785 * gc.c (scm_cellp): New function: C predicate to determine if an
1786 SCM value can be regarded as a pointer to a cell on the heap.
1788 * gc.h: Added declaration of scm_cellp.
1790 * gdb_interface.h: New file: The GDB interface header from the GDB
1793 * gdbint.c: New file: GDB interface.
1795 * gdbint.h: New file: GDB interface.
1797 * libguile.h: Added #include <libguile/gdbint.h>.
1799 * init.c (scm_boot_guile): Added scm_init_gdbint.
1801 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
1802 Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
1803 found if object files and source are kept separate).
1805 Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
1807 * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
1809 Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
1811 * configure.in: Don't substitute the values of TCL_SRC_DIR and
1812 TK_SRC_DIR; they're not relevant any more.
1814 * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
1815 * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
1817 Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
1819 * PLUGIN/guile.config (xtra_cflags): Include .. in the header
1820 search path, so we can find the <libguile/MUMBLE.h> headers.
1822 * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
1824 * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
1825 implicit in the .c.o rule.
1826 (.c.x): Don't mention ALL_CFLAGS here; its value is included in
1829 Put the library path in a header file, instead of passing it on
1830 the command line in every compilation.
1831 * Makefile.in (libpath.h): New target.
1832 (feature.o): Depend on libpath.h.
1833 (clean): Delete libpath.h.
1834 (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
1835 * feature.c: ... #include "libpath.h" here.
1836 * .cvsignore: Ignore libpath.h.
1838 Don't install the unwashed masses of Guile header files in the
1839 main #include path; put most of them in a subdirectory called
1840 'libguile'. This avoids naming conflicts between Guile header
1841 files and system header files (of which there were a few).
1842 * Makefile.in (pkgincludedir): Deleted.
1843 (innerincludedir): New variable; this and $(includedir) are enough.
1844 (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
1845 (installed_h_files): Divide this up. Now this variable lists
1846 those header files which should go into $(includedir) (i.e. appear
1847 directly in the #include path), and ...
1848 (inner_h_files): ... this new variable says which files appear in
1849 a subdirectory, and are referred to as <libguile/mumble.h>.
1850 (h_files): List them both.
1851 (install): Create innerincludedir, not pkgincludedir. Put
1852 the installed_h_files and inner_h_files in their proper places.
1853 (uninstall): Corresponding changes.
1854 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
1855 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
1856 feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
1857 ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
1858 mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
1859 print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
1860 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
1861 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
1862 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
1863 vports.h, weaks.h: Find __scm.h in its new location.
1864 * __scm.h: Find scmconfig.h and tags.h in their new locations
1865 (they're both "inner" files).
1867 Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
1869 * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
1871 Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
1873 * posix.c: Doc fixes.
1875 Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
1877 * socket.c: Don't include a prototype for inet_aton; just use a
1878 K&R style declaration, to avoid warnings but minimize the chance
1879 of conflicts with the system.
1881 On NextStep, <utime.h> doesn't define struct utime, unless we
1882 #define _POSIX_SOURCE before #including it.
1883 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
1884 * acconfig.h: New comment text for above CPP symbol.
1885 * configure.in: Call it.
1886 * posix.c: #define _POSIX_SOURCE if it seems necessary.
1888 * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
1890 * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
1891 testing for __EMX__.
1893 * posix.c: #include <libc.h>, if it exists.
1895 * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
1896 don't even know if the latter exists.
1898 * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
1899 s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
1900 s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
1902 * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
1904 (scm_init_posix): Use them when initializing the Scheme constants
1907 Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
1909 * Makefile.in (libdir, includedir, bindir): Use the
1910 autoconf-supplied values, instead of deriving them ourselves.
1911 (pkgincludedir, datadir, pkgdatadir): New variables.
1912 (install, uninstall): Put the header files in a special
1913 subdirectory, not in the main search path.
1915 * Makefile.in (ALL_CFLAGS): Provide the proper value for
1916 LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
1918 * Makefile.in (IMPLPATH): Deleted; never used.
1920 * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
1921 on the Tcl/Tk source any more.
1922 (INCLUDE_CFLAGS): Remove references to the above.
1924 * Makefile.in (version.o): Corrected dependencies.
1926 Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
1928 * libguile.h: #include "version.h"
1930 * init.c (scm_boot_guile): Call scm_init_version.
1931 * gscm.c (gscm_run_scm): Call scm_init_version.
1933 * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
1934 GUILE_VERSION): AC_DEFINE these.
1935 (acconfig.h): #undef the above symbols.
1937 * Makefile.in (libobjs): Add version.o.
1938 (installed_h_files): Add version.h.
1939 (c_files): Add version.c.
1940 (gen_c_files): Add version.x.
1941 (version.o): New rule.
1942 (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
1943 chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
1944 fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
1945 genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
1946 mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
1947 objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
1948 procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
1949 simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
1950 strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
1951 throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
1952 weaks.o): Add version.h to dependency lists.
1953 (markers.o): Remove duplicate rule.
1955 * version.h: New file.
1957 * version.c: New file.
1959 Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
1961 * symbols.c (scm_strhash): scm_downcase is now a function, not an
1962 array; use it appropriately. Since GCC is quite happy to
1963 subscript functions, it never warned us about this; we should use
1964 -Wpointer-arith in the future. I guess we never tested
1967 Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
1969 * socket.c: Doc and copyright fixes.
1971 Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1973 * debug.c: Fixed and improved gdb support.
1975 Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1977 * socket.c: Added declaration of inet_aton to avoid compiler
1978 warning. (Hope this solution is correct.)
1980 * stime.c: Added declaration of ftime. (This is missing in
1983 Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
1985 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
1987 * Makefile.in (c_files): add strerror.c.
1989 * strerror.c: new file from Emacs' sysdep.c.
1990 maybe configure should also check for sys_errlist.
1992 * configure.in (AC_REPLACE_FUNCS): add strerror.
1994 Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1996 * debug.c (scm_init_debug): Added initialization for
1997 scm_evaluator_traps.
1999 * debug.h, debug.c: Various name changes.
2000 (Mostly prefixing with SCM_.) Renamed "debug-options" -->
2001 "debug-options-interface". See commentary in options.c.
2003 * options.h, options.c: Options now have documentation strings.
2004 Also added a long explanatory commentary.
2006 * eval.c, print.h, print.c, read.h, read.c: Modifications to
2009 * gscm.c, init.c, root.c, throw.c: Bug fixes:
2010 last_debug_info_frame is now updated in all cases.
2012 * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
2015 Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2017 * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
2018 Added option STACK_CHECKING.
2020 Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
2022 * Makefile.in: Added {debug,options,srcprop}.{h,c}
2024 * __scm.h: Removed symbols for debugging support.
2026 * acconfig.h: Added symbols for debugging support.
2028 * configure.in: Added user option for debugging support.
2029 --enable-debug will include the debugging code into libguile.a.
2031 * continuations.c (scm_make_cont): Enlarged the #if 0 around
2032 scm_relocate_chunk_to_heap.
2034 * debug.c: New file: low-level debugging support. It also
2035 includes support for debugging with gdb. (The extensions to gdb
2036 are written by Per Bothner at Cygnus.)
2038 * debug.h: New file: low-level debugging support.
2040 * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
2041 argument pairs. Extensive modifications to the debugging
2042 evaluator. Added "SECTION:" commentaries to clarify what happens
2043 when, during double compilation. Renamed EVALIMP --> EVALIM.
2044 Renamed EVAL --> XEVAL. Removed function evalcar. Defined
2045 evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
2046 the beginning of the file. New procedure: scm_unmemocopy.
2047 Added some global state variables needed by the debugging
2048 evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
2049 check_entry, check_apply, check_exit, debug_options and
2050 evaluator_traps. New acro: undefine.
2052 * eval.h: Renamed EVAL --> XEVAL.
2054 * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
2055 --> scm_make_weak_key_hash_table.
2057 * init.c (scm_restart_stack, scm_boot_guile): Added initialization
2058 of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
2060 * libguile.h: Conditionally include debug.h
2062 * objprop.c (scm_object_properties, scm_set_object_properties_x):
2063 scm_object_properties shouldn't return handle. `handle' now gets
2064 initialized in scm_set_object_properties_x. scm_object_properties
2065 doesn't any longer create an entry in scm_object_whash.
2067 * options.c: New file: handling of run time options.
2069 * options.h: New file: handling of run time options.
2071 * posix.c (scm_getpgrp): Cast pointer to getpgrp.
2073 * print.c: New procedure: scm_print_options
2075 * print.h: Defines for print options.
2077 * read.c: New procedure: scm_read_options
2079 * read.h: Defines for reader options.
2081 * root.h: Added scm_source_whash among scm_sys_protects.
2083 * srcprop.c: New file: source properties.
2085 * srcprop.h: New file: source properties.
2087 * throw.c (jbsmob): Jump buffers are now correctly allocated.
2088 (Bug found by A. Green.)
2090 * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
2092 * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
2094 Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
2096 * libguile.h: #include "objprop.h"; I guess this was forgotten.
2098 * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
2099 and should be called by the final client.
2101 Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
2103 * gc.h: Use the PROTO macro when declaring functions.
2104 * gc.c: Use the PROTO macro when declaring static functions.
2105 Remove the CPP hair around function definitions.
2107 * gc.c (scm_init_storage): Initialize scm_asyncs.
2109 * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
2110 preprocessor symbol; "__scm.h" is where it might get #defined.
2111 * __scm.h: Similar: #include <scmconfig.h> before testing
2114 * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
2116 Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
2118 * init.c (scm_boot_guile): Add init_func argument; call
2119 (*init_func) instead of calling scm_appinit; it's ucky to
2120 hard-code names for the user's procedures.
2121 * init.h (scm_boot_guile): Adjust declaration.
2123 * __scm.h (PROTO): New macro, for declaring functions with
2126 * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
2127 eliminate all the __STDC__ conditionals.
2128 (scm_boot_guile): Add declaration.
2129 * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
2130 Remove __STDC__ conditionals around function definitions; the
2131 declarations in init.h will provide the same information, more
2134 * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
2135 complain about it in the error message; the error message is
2136 adequate without that note, and there's nothing the user can do
2139 Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
2141 * Makefile.in (ancillary): Drop def.sed.
2143 * posix.c (scm_init_posix): Use numeric values, rather than
2144 CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
2145 F_OK. The symbols aren't available on some systems, and I'm
2146 pretty sure their values are fixed by common widespread practice.
2147 * ioext.c (scm_init_ioext): Code here defined them too; remove it.
2149 More functions unavailable on some systems.
2150 * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
2151 tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
2153 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
2154 * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
2155 scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
2156 bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
2157 stub that signals an error as the #else.
2159 * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
2161 Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
2163 * Fixes motivated by Petr Adamek <adamek@mit.edu>:
2165 * unif.c: include ramap.h.
2167 * read.c (endif): case_insensative_p renamed case_insensitive_p.
2169 * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
2171 * ports.c: include sys/ioctl.h.
2173 * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
2175 * configure.in: check for sys/ioctl.h.
2177 * ports.c: include <malloc.h> not "malloc.h".
2179 * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
2181 * fports.c: remove ttyname and tmpnam declarations.
2183 * posix.c: fewer ttyname declarations.
2185 * fports.c: include <string.h> not "string.h".
2187 * init.c, ioext.c: include string.h and unistd.h.
2189 * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
2191 * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
2192 genio.c, simpos.c, vports.c: include string.h.
2194 * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
2196 * fdsocket.c (getsockopt, setsockopt): change type of optlen from
2198 (scm_addr_buffer_size): change type from scm_sizet to int.
2199 (accept, getsockname, getpeername, recvfrom): change type of tmp_size
2200 from scm_sizet to int.
2202 * error.c: include unistd.h.
2204 * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
2207 * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
2209 * __scm.hd, def.sed: deleted.
2211 Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
2213 Changes for NeXT, suggested by Robert Brown.
2214 * configure.in: Call AC_TYPE_MODE_T.
2215 (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
2216 NeXT. Put header file list in alphabetical order.
2217 * configure, scmconfig.h.in: Regenerated.
2218 * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
2220 * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
2223 * acconfig.h: New file, providing documentation for the CPP
2224 symbols defined in configure.in
2225 * acconfig-1.5.h: Removed; superceded by the above.
2227 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
2229 * ioext.c (scm_sys_fdopen): fix the port-table assignment.
2231 * fports.c (scm_open_file): don't return #f, throw error.
2233 * ioext.c (fileno): renamed from %fileno.
2234 (soft-fileno): deleted.
2236 * ports.c (scm_port_revealed): don't need to check for -1 from
2238 (scm_set_port_revealed_x): return unspecified, not #f.
2240 * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
2242 * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
2244 * scmconfig.h.in: add HAVE_STRUCT_LINGER.
2246 * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
2248 Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
2250 * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
2251 This is necessary on Ultrix, and doesn't hurt portability.
2253 * Makefile.in (dist-dir): New target, implementing a new dist system.
2254 (installed_h_files): Put in alphabetical order.
2255 Remove duplicate entries for markers.h and unif.h.
2256 (c_files): Remove duplicate entries for markers.c.
2257 (ancillary): Renamed from anillery; all uses changed. Remove
2258 PLUGIN; it's a directory, and needs special treatment in dist-dir.
2259 Remove all the ../doc/* files; doc/Makefile.in handles that.
2261 * Makefile.in (libobjs): Remove duplicate entry for markers.o.
2263 * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
2264 every if must have an else, or else the whole command has a
2265 non-zero exit code whenever the if's condition is false.
2267 Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
2269 * posix.c: include string.h.
2271 Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
2273 * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
2276 * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
2277 Remove leading % from scheme names.
2278 Do not return error values, call SCM_SYSERROR or similar.
2280 * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
2282 Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
2284 * struct.c (scm_init_struct): new file.
2286 Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
2288 * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
2289 (scm_list_head): added list-head for rapidly chopping argument
2290 lists off of longer lists (and similar).
2292 Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
2294 * objprop.c (scm_object_property): assq the cdr of the whash
2295 handle for obj, not the handle itself.
2297 Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
2299 * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
2300 weak hash tables last of all marking to avoid an obscure gc bug.
2301 WARNING: circular lists stored in a weak hash table will hose us.
2303 Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
2305 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
2306 new functions similar to scm_substring_move_left_x and
2307 scm_substring_move_right_x.
2309 Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
2311 * init.c (scm_boot_guile): prevent gc with scm_block_gc not
2314 Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
2316 * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
2318 Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
2320 * strports.c (scm_strprint_obj): convenience function. C for
2321 (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
2323 * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
2324 removed to a separate library
2326 * init.c (scm_boot_guile): copied from guile-tcl.c.
2327 Initialization specific to tcl interpreters removed.
2329 Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
2331 * ports.c (scm_ports_prehistory): size malloced here doesn't
2332 matter so long as it is non-0 (got rid of "* 4").
2334 Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
2336 * gscm.h: gscm_mkarray eliminated (presumably was not being used
2337 since its definition was bogus).
2339 Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
2341 * mallocs.[ch]: back again (for rx at least).
2343 Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
2345 * ports.c: removed functions relating to the mapping between ports
2346 and descriptors. (That stuff is unix-specific and should be collected
2347 in a separate library).
2349 * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
2350 (Tom Mckay@avanticorp.com)
2352 Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
2354 * gc.c (scm_gc_sweep): Immediates in weak vectors were not
2355 handled correctly (SCM_FREEP was applied to them) -- test for
2356 NIMP. Keys in weak hash tables were spuriously (though harmlessly)
2357 being overwritten with #f. (brown@grettir.bibliotech.com)
2359 Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
2361 * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
2362 for a specific symbol or for all symbols.
2364 Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
2366 * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
2367 keys and weak values confused).
2369 Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
2371 * list.c (scm_last_pair): map '()=>'()
2373 Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
2375 * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
2376 Generalized assoc and hash-table functions.
2377 Factored pairs.c into multiple files.
2379 Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
2381 * gscm.c (gscm_run_scm): got rid of objprop.
2383 Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
2385 * genio.c (scm_getc):
2386 NOTE: fgetc may not be interruptable.
2388 * procprop.c (scm_stand_in_scm_proc):
2389 NOTE: don't use a alist here.
2390 (scm_set_procedure_properties_x): fix type checking throughout this file.
2392 * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
2394 * ports.c (scm_remove_from_port_table): adjust scm_mallocated
2395 after freeing part of the port table.
2397 Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
2399 * strports.c (scm_mkstrport):
2400 * vports.c (scm_make_soft_port): allocate a port table entry
2401 (possibly triggering gc) before setting the tag of the corresponding
2404 * pairs.c (scm_delq_x): never throw an error.
2406 * vectors.c (scm_make_vector): made the default vector fill argument
2407 into '() (much more useful than the previous value, "#unspecified")
2409 Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
2411 * ports.c (scm_add_to_port_table): Added fields
2412 to port table entries: file_name, line_num, col.
2413 Update these in open_file, gen_getc and gen_ungetc.
2414 Added procedures to access those fields.
2416 Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
2418 * procs.c (scm_make_subr_opt): new entry point for making
2421 Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
2423 * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
2425 Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
2427 * numbers.c (scm_exact_p): This function no longer
2428 implements "integer?".
2430 Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
2432 * gc.c (scm_gc_end): simulate a signal at the end of each GC.
2433 (scm_gc_stats): return an assoc of useful data. Replaces "room"
2434 and the stats reporting formerlly built into repl.
2436 * repl.[ch]: removed.
2437 GC statistics keeping moved to gc.c.
2438 Other statistics keeping can be done from Scheme.
2439 REPLS are now written in Scheme.
2441 Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
2443 * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
2444 conservatively marked objects).
2446 * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
2448 * error.c (scm_init_error): init system_error_sym here, not in repl.c.
2450 * feature.c (scm_compiled_library_path): moved here from repl.c.
2451 This file is for stuff relating specifically to Scheme libraries
2454 * eval.c (scm_m_define): don't give warning about redefinition, don't
2457 NOTE: this should throw a resumable exception with parameters --
2458 the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
2460 * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
2462 * error.c: scm_warn eliminated.
2464 * read.c (scm_lreadr): extra right paren gets an error, not a warning.
2466 * repl.c, marksweep.c, gc.c (various):
2467 lose exit_report, growth_mon.
2469 * gscm.c: got rid of verbosity functions.
2471 Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
2473 * throw.c (scm_ithrow): guard against the bad-throw hook changing
2474 between the call to procedurep and use.
2476 * error.c (scm_everr):
2478 * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
2481 * strports.c: don't reveal the port's string to the caller
2482 because it changes size.
2484 (stputc stwrite): check/change the strings length with interrupts
2487 * objprop.c (scm_set_object_property_x &c): use the generic
2488 hashing functions and be threadsafe.
2490 * eval.c (scm_unmemocar): do this operation in a thread-safe way.
2491 (per suggestion jaffer@gnu.ai.mit.edu).
2493 * mbstrings.c (scm_multi_byte_string): guard against argument list
2496 * strings.c (scm_make_string): loop cleanup
2498 * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
2501 * weaks.c (scm_weak_vector): guard against argument list
2504 * variable.c (scm_builtin_variable): check for/make a built-in
2507 * vectors.c (scm_vector): while filling the new array,
2508 guard against a list of fill elements that grows after
2509 the vector is allocated.
2511 * hashtab.c -- new file: general hash table
2512 functions. hash, hashq, hashv, hashx.
2514 * tags.h: made wvect an option bit of vector.
2516 Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
2518 * symbols.c: made the basic symbol table operations atomic.
2520 * root.c &c.: collected stack-specific global state.
2521 linum/colnum etc *should* be port-specific state.
2523 * struct.c (scm_init_struct): init the first struct type during
2524 initialization to fix a race condition.
2526 * continuations.c (scm_dynthrow): pass throwval in the 'regs'
2527 object, not in a global.
2528 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2530 * throw.c (_scm_throw): Pass throwval on the stack, not in a global
2531 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2533 * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
2534 and C symbols to begin with SCM_ or scm_.
2536 Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
2538 * gsubr.c (scm_gsubr_apply): statically allocate the
2539 array of arguments (bothner@cygnus.com).
2541 Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
2543 * scmsigs.c: Simplified to use async rountines.
2545 * async.c: New support for interrupt handlers.
2547 Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
2549 * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
2550 set the multi_byte flag correctly in symbols. This is wrong.
2551 intern_obbary_soft and msymbolize should take an extra parameter.
2552 Also, weird multibyte symbols don't print correctly.
2553 The weird symbol syntax is also a bit bogus (emacs doesn't quite
2556 Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
2558 * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
2559 use the system symhash. == #t means create an uninterned symbol.
2561 Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
2563 * strings.c (scm_make_shared_substring): build'em.
2564 It might better to keep a table of these and use one
2565 less cons-pair per shared-substring.
2567 Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
2569 * strings.c (scm_string_shared_substring): create shared
2570 substrings. (Doesn't handle mb strings yet).
2572 * mbstrings.c (scm_print_mb_string): handle RO strings.
2574 * print.c (scm_iprin1): print substrings as their non-substring
2575 counterparts (dubious).
2577 * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
2580 * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
2582 * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
2584 * eq.c (scm_equal_p): handle RO and MB strings.
2586 * symbols.c (scm_string_to_symbol):
2587 (scm_string_to_obarray_symbol):
2588 * strop.c (scm_i_index):
2590 (scm_string_null_p):
2591 (scm_string_to_list):
2592 * strings.c (scm_string_length):
2595 (scm_string_append):
2596 * simpos.c (scm_system):
2598 * fports.c (scm_open_file):
2599 * strorder.c (scm_string_equal_p):
2600 (scm_string_ci_equal_p):
2601 (scm_string_less_p):
2602 (scm_string_ci_less_p):
2603 * pairs.c (scm_obj_length):
2604 * mbstrings.c (scm_multi_byte_string_length):
2606 Use RO string macros for RO strings.
2608 Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
2610 * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
2612 * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
2613 index/rindex. Do handle embedded \000 characters.
2615 Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
2617 * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
2618 Eliminate a (presumed) warning on some systems.
2620 * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
2621 (Mikael Djurfeldt <mdj@nada.kth.se>)
2623 Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
2625 * eval.c (scm_map): added argument type checking.
2626 (kawai@sail.t.u-tokyo.ac.jp)
2628 * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
2629 for C++. (Seth Alves <alves@gryphon.com>)
2631 (gscm_cstr): uses an uninitialized local variable causing
2632 segv. (kawai@sail.t.u-tokyo.ac.jp)
2635 * lvectors.c (scm_get_lvector_hook):
2636 In guile-ii, the lvector code was broken. It was fixed in guile-iii.
2637 It seems to me like if it is broken again in guile-iv...Here is a patch.
2638 "! || (LENGTH (keyvec) == 0))"
2639 (From: Mikael Djurfeldt <mdj@nada.kth.se>)
2642 * gscm.c (gscm_sys_default_verbosity):
2643 incorrectly declared for non-__STDC__
2644 (Tom_Mckay@avanticorp.com)
2646 * ports.c (scm_setfileno): Tweak the macro a bit
2647 to make it easier to port to systems that use
2648 more than a single structure field to hold a descriptor.
2650 * debug.c (change_mode): Avoid GNUCism "int foo[n];"
2651 Give a warning, not an error, for unrecognized modes.
2653 * eval.c (SCM_CEVAL):
2654 static char scm_s_for_each[];
2655 static char scm_s_map[];
2658 * strings.c (scm_string_p):
2659 static char s_string[];
2662 * struct.c (scm_sys_struct_set_x):
2663 static char s_sys_make_struct[];
2664 static char s_sys_struct_ref[];
2665 static char s_sys_struct_set_x[];
2666 Rearrange code to eliminate those forward decls for the sake of
2669 * variable.c (make_vcell_variable): static char s_make_variable[];
2672 * fports.c (scm_port_mode):
2673 chars modes[3] = "";
2677 (Tom_Mckay@avanticorp.com)
2680 * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
2681 scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
2682 (Tom_Mckay@avanticorp.com)
2684 * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
2685 scm_num_eq_p() was scm_equal_p().
2686 (Tom_Mckay@avanticorp.com)
2688 * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
2689 (Tom_Mckay@avanticorp.com)
2691 Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
2693 * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
2694 (Tom_Mckay@avanticorp.com)
2696 * strop.c (scm_substring_fill_x):
2697 Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
2698 (Tom_Mckay@avanticorp.com)
2700 * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
2701 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
2703 * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
2704 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
2706 * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
2707 can turn into an obscure gc bug.
2709 * chars.c (scm_char_p): fixed PROC call.
2711 * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
2714 Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
2716 * elisp.c (new file): dynamic scoping and other bits for
2717 elisp. Don't use this yet unless you specificly want to
2718 hack on elisp emulation.
2720 * dynwind.c (scm_dowinds): When entering or leaving a dynamic
2721 scope created by scm_with_dynamic_bindings_operation_x, swap
2722 the bindings of that scope with the corresponding globals.
2724 * continuations.c (scm_make_cont): when a continuation is captured,
2725 relocate the continuation stack chunks registered on the wind chain
2728 Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
2730 * eval.c (SCM_CEVAL): if the function position evaluates
2731 to a macro, process it accordingly. (Previously, macros were
2732 handled only if the function position was a symbol naming a
2733 variable bound to a macro).
2735 Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
2737 * eval.c (scm_m_set): allow multi-variable set! like
2740 Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
2742 * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
2743 STREAM of ports into the port table and replaced it with a
2746 * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
2748 * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
2750 * mbstrings.c (new file): functions on multi-byte strings.
2752 * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
2753 for multi-byte strings. Moved the string tag.
2755 * chars.h chars.c repl.c (many functions): made scm_upcase and
2756 scm_downcase functions that are safe for extended character sets.
2758 Changed the range of integer->char.
2760 Changed the type of SCM_ICHR.
2762 Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
2764 * guile.c: Changed init file name from "SCM_INIT_PATH" to
2767 Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
2769 * guile.c (gscm_is_gscm_type): New function. (Without this how will we
2770 know that it's safe to pass an object to gscm_get_type?)
2771 (gscm_get_type): Fix tyop in error message.
2773 * variable.c (scm_variable_ref): fixed assertion test.
2774 (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
2776 * gscm.h: fixed several prototypes, notably gscm_vref.
2777 Add gscm_is_eq and temporarily commented out gscm_eq (see
2778 the note in gscm.h near gscm_eq if this change effects your
2780 (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
2782 * pairs.c (scm_obj_length): see next entry.
2784 * gscm.h (gscm_obj_length): A way to get an integer
2785 length for lists, strings, symbols (treated as strings),
2786 and vectors. Returns -1 on error.
2788 * eq.c (scm_equal_p): fixed smob case.
2789 (William Gribble <grib@arlut.utexas.edu>)
2791 * Makefile.in (X_CFLAGS): defined.
2792 (William Gribble <grib@arlut.utexas.edu>)
2794 * gscm.h (gscm_2_double): provided now
2795 (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
2797 Tue Jun 13 01:04:09 1995 gnu