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