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