* Makefile.in: Rebuilt.
[bpt/guile.git] / libguile / ChangeLog
1 Tue Oct 14 22:03:06 1997 Tom Tromey <tromey@cygnus.com>
2
3 * Makefile.in: Rebuilt.
4 * Makefile.am (libguile_la_SOURCES): Removed extchrs.c,
5 mbstrings.c.
6 (modinclude_HEADERS): Removed extchrs.h, mbstrings.h.
7 * unif.c (scm_vector_set_length_x): Don't handle multibyte
8 strings.
9 * tag.c (scm_utag_mb_string, scm_utag_mb_substring): Removed.
10 (scm_tag): Don't handle multibyte strings.
11 * read.c: Don't include mbstrings.h.
12 (scm_lreadr): Don't handle multibyte ports.
13 * kw.c: Don't include mbstrings.h.
14 * init.c: Don't include mbstrings.h.
15 (scm_boot_guile_1): Don't init mbstrings module.
16 * hash.c (scm_hasher): Don't handle mbstrings.
17 * gscm.c (gscm_run_scm): Don't init mbstrings module.
18 * gc.c (scm_gc_mark): Don't handle mbstrings.
19 (scm_gc_sweep): Likewise.
20 * eval.c (SCM_CEVAL): Don't handle mbstrings.
21 * eq.c (scm_equal_p): Use SCM_TYP7S, not SCM_TYP7SD.
22 * tags.h (SCM_TYP7SD): Removed.
23 (SCM_TYP7D): Removed.
24 (scm_tc7_mb_string): Removed.
25 (scm_tc7_mb_substring): Removed.
26 * print.c (scm_iprin1): Handle char printing directly. Don't
27 handle mbstrings.
28 Don't include "mbstrings.h".
29 * symbols.c (scm_intern_obarray_soft, scm_string_to_symbol,
30 scm_string_to_obarray_symbol, msymbolize): Don't set symbol's
31 multi-byte flag.
32 Don't include "mbstrings.h".
33 * symbols.h (SCM_SYMBOL_MULTI_BYTE_STRINGP): Removed.
34 (SCM_SYMBOL_SLOTS): Define as 4.
35 (SCM_ROSTRINGP): Use SCM_TYP7S, not SCM_TYP7SD.
36 * arbiters.c, backtrace.c, debug.c, dynl.c, eval.c, fluids.c,
37 gc.c, gsubr.c, ioext.c, kw.c, mallocs.c, numbers.c, ports.c,
38 print.c, read.c, regex-posix.c, root.c, srcprop.c, stackchk.c,
39 struct.c, threads.c, throw.c, unif.c, variable.c: Use new
40 ("gen"-less) I/O function names.
41 * ports.c (scm_add_to_port_table): Don't set port's
42 representation.
43 * ports.h (scm_port_representation_type): Removed.
44 (scm_string_representation_type): Removed.
45 (struct scm_port_table ): Removed representation field.
46 (SCM_PORT_REPRESENTATION): Removed.
47 (SCM_SET_PORT_REPRESENTATION): Removed.
48 * genio.h: Use new function names.
49 * genio.c: Don't include "extchrs.h".
50 (scm_gen_putc, scm_gen_puts, scm_gen_write, scm_get_getc):
51 Removed.
52 (scm_putc, scm_puts, scm_lfwrite): No longer static.
53 (scm_getc): No longer static; handle line and column changes.
54 (scm_ungetc): Renamed from scm_gen_ungetc.
55 (scm_do_read_line): Renamed from scm_gen_read_line.
56 * libguile.h: Don't include "extchrs.h" or "mbstrings.h"
57 * extchrs.h, extchrs.c, mbstrings.h, mbstrings.c: Removed.
58
59 1997-10-12 Mark Galassi <rosalia@cygnus.com>
60
61 * gh_test_repl.c (c_vector_test): same as gh_test_c.c
62
63 * gh_test_c.c (c_vector_test): some improvements on the vector
64 routines test.
65
66 * gh.h (gh_vector): this used to exist but do the wrong thing.
67 Now it (almost) does the right thing, though it takes a list
68 instead of the individual arguments. I need to see how it could
69 be done right.
70 (gh_list_to_vector): added this function as a macro. Corresponds
71 to Scheme's (list->vector ...).
72 (gh_vector_to_list): added this function as a macro. Corresponds
73 to Scheme's (vector->list ...).
74
75 * gh_data.c (gh_vector_ref): renamed from gh_vref to
76 gh_vector_ref, so that it resembles the Scheme routines more.
77 (gh_vector_set): renamed from gh_vset to gh_vector_set, so that it
78 resembles the Scheme routines more.
79 (gh_make_vector): this used to be (stupidly) called gh_vector().
80 This is the right name, since it does the same thing as the Scheme
81 (make-vector ...) procedure.
82
83 Sun Oct 12 14:41:39 1997 Mikael Djurfeldt <mdj@kenneth>
84
85 * ports.h: #include "libguile/print.h"
86
87 * eval.c (SCM_CEVAL, scm_apply): Completed GOOPS support code;
88 Some indentation fixes.
89
90 * objects.h (SCM_METACLASS_STANDARD_LAYOUT): Printer field is no
91 longer a user field; New field: class_flags.
92
93 * objets.c, objects.h: New metaclass: scm_metaclass_operator.
94
95 Tue Oct 7 09:37:24 1997 Mark Galassi <rosalia@cygnus.com>
96
97 * gh_data.c (gh_bool2scm): new function which replaces
98 gh_int2scmb(), which is now tagged as obsolete.
99
100 1997-10-03 Mikael Djurfeldt <mdj@nada.kth.se>
101
102 * print.h (SCM_PRINT_STATE_P): Removed SCM_NIMP test. (NIMP
103 macros should by convention not test for NIMPness.)
104 (SCM_COERCE_OPORT): Adjust indentation.
105
106 * print.c (scm_valid_oport_value_p): Adjusted indentation; Added
107 SCM_NIMP test before SCM_PRINT_STATE_P.
108
109 * struct.c, struct.h, gc.c: Renamed:
110 scm_struct_i_layout --> scm_vtable_index_layout
111 scm_struct_i_vcell --> scm_vtable_index_vcell
112 scm_struct_i_vtable --> scm_vtable_index_vtable
113 scm_struct_i_printer --> scm_vtable_index_printer
114 scm_struct_i_vtable_offset --> scm_vtable_offset_user
115
116 * struct.c (scm_print_struct): Use new printer slot; Default
117 printing: Also output hex code of vtable so that type identity
118 will be indicated as well.
119 (scm_init_struct): Updated required_vtable_fields to "pruosrpw";
120 Removed struct_printer_var; Removed struct-vtable-offset;
121 (vtable-index-layout, vtable-index-vtable, vtable-index-printer,
122 vtable-offset-user): New constants.
123
124 * struct.h (scm_struct_i_vtable_offset): Bumped from 3 to 4.
125 (scm_struct_i_printer, SCM_STRUCT_PRINTER): New slot in vtables.
126 If this slot contains a procedure, use that to print structures of
127 the type represented by this vtable.
128
129 * print.c (scm_iprin1): Don't print arguments of macro
130 transformers. (They are always: exp env.); Bugfix: Unmemoize
131 transformer source with correct environment.
132
133 1997-10-02 Marius Vollmer <mvo@zagadka.ping.de>
134
135 Streamlining of call-with-dynamic-root:
136
137 * root.c (cwdr_inner_body, cwdr_body): Remove "inner" from name,
138 there is now only one catch.
139 (cwdr_outer_body): Removed.
140 (cwdr_handler): New function.
141 (scm_internal_cwdr): New function to perform the function of cwdr
142 but take args that are more useful to C code. Also, the handler
143 is now invoked *outside* of the new dynamic root, like the docs
144 say. We no longer have to catch absolutely all errors, the caller
145 is responsible for using a handler that does not throw, if he
146 wants that.
147 (cwdr): Reimplemented in terms of scm_internal_cwdr.
148 * root.h (scm_internal_cwdr): New prototype.
149
150 Even more but risky streamlining:
151
152 * root.c (USE_STACKJMPBUF): New define to activate a stack-based
153 allocation of the jumpbuf of a root continuation. The changes
154 below are controlled by it. They are now deactivated.
155 (scm_internal_cwdr): Allocate the scm_contregs on the stack. Set
156 the JMPBUF of the scm_rootcont to NULL before returning.
157
158 * gc.c (scm_gc_sweep): Free the SCM_VELTS of a scm_tc7_contin only
159 when they are non-NULL.
160 (scm_gc_mark): Likewise, mark only when non-NULL.
161
162 Make dynamic linking work on Dec Unix. (Thanks to Clark McGrew)
163 * dynl.c: Include "dynl-dl.c" also when HAVE_DLOPEN is defined.
164
165 * gc.c (scm_done_malloc): New function.
166 gc.h (scm_done_malloc): New prototype.
167
168 * print.h (SCM_PRINT_STATE_P, SCM_COERCE_OPORT): New macros.
169 (struct scm_print_state) [revealed]: New field.
170 (scm_print_state_vtable): Make visible to the outside world for
171 type checking purposes.
172 (scm_valid_oport_value_p): New prototype.
173
174 * print.c (scm_valid_oport_value_p): New function to check whether
175 a certain value is acceptable as a port argument.
176 (scm_print_state_vtable): New variable.
177 (scm_free_print_state): Set `revealed' field to false.
178 (scm_iprin1): Call user supplied closure printer with
179 scm_printer_apply. Print in the traditional way when there isn't
180 one or when it returns #f.
181 (scm_prin1, scm_display, scm_write, scm_newline, scm_write_char):
182 Accept a port/print-state pair in addition to just a port.
183 (scm_prin1): Don't return the print_state to the pool when it has
184 been `revealed'.
185 (scm_printer_apply): Set `revealed' field of print_state to true.
186 (scm_init_print): Set scm_print_state_vtable.
187 (print_state_fluid, print_state_fluid_num): Removed.
188
189 * throw.h (scm_handle_by_proc_catching_all): New prototype
190 throw.c (scm_handle_by_proc_catching_all): New function
191
192 Mon Sep 29 23:54:09 1997 Jim Blandy <jimb@totoro.red-bean.com>
193
194 * Makefile.in: Regenerated with automake 1.2c.
195
196 Sun Sep 28 21:35:42 1997 Radey Shouman <shouman@zianet.com>
197
198 * ramap.c (scm_array_index_map_x): Fixed for zero-rank arguments,
199 was looping endlessly.
200
201 Sun Sep 28 00:04:29 1997 Jim Blandy <jimb@totoro.red-bean.com>
202
203 * strports.c (scm_eval_string): Don't close the port.
204
205 * stime.c (bdtime2c): Use SCM_LENGTH, not scm_vector_length; the
206 former returns a nice normal integer. (Thanks to Daniel
207 Risacher.)
208
209 Sat Sep 27 20:19:34 1997 Jim Blandy <jimb@totoro.red-bean.com>
210
211 * Makefile.am (libpath.h): Include the value of the THREAD_LIBS
212 makefile variable as a build parameter called LIBS. The
213 build-guile program will use this, for the time being.
214 * Makefile.in: Regenerated.
215
216 Thanks to Shiro Kawai:
217 * gc.c (scm_gc_mark): Pass NULL to scm_wta as the subroutine name.
218 * ports.h (scm_ptobfuns): The fgets method returns a char *, not
219 an SCM.
220
221 * Makefile.in: Regenerated with automake 1.2a.
222
223 * script.c (scm_compile_shell_switches): If we hit the -c or --
224 arguments, don't set the car of (command-line) to scm_usage_name,
225 the prettified name of the guile executable; give it the full
226 path, the way shells usually handle $0.
227
228 Wed Sep 24 22:09:52 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
229
230 * ramap.c (scm_array_map): Renamed to scm_array_map_x. Removed
231 Scheme-level name `array-map' and renamed `serial-array-map' to
232 `serial-array-map!'.
233
234 * backtrace.c: Introduced exception handlers which now enclose
235 `display-error' and `display-backtrace' so that error reporting
236 won't get into infinite loops if an error occurs during displaying
237 of the error. This can very easily happen with user supplied
238 print call-back routines.
239
240 Tue Sep 23 12:43:17 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
241
242 * ramap.c: Added alias `array-map!' for `array-map'. (Probably,
243 the names `serial-array-map' and `array-map' should be removed.)
244
245 Mon Sep 22 01:21:54 1997 Mikael Djurfeldt <mdj@kenneth>
246
247 * init.c (scm_boot_guile_1): Added scm_init_objects ().
248 Added #include "objects.h"
249
250 * eval.c (scm_makprom): Added SCM_DEFER_INTS and SCM_ALLOW_INTS.
251 Add #include "feature.h".
252
253 * Makefile.am (libguile_la_SOURCES): Added objects.c.
254 (modinclude_HEADERS): Added objects.h.
255
256 * ports.h (SCM_EOF_OBJECT_P): New macro predicate.
257 This test is needed at many places in the code and should be
258 abstracted. (Motivated by the need of this test in libguiletk.)
259
260 * ports.c (scm_eof_object_p), vports.c (sfgetc), strports.c
261 (scm_eval_string), load.c (scm_primitive_load,
262 scm_read_and_eval_x), gh_eval.c (gh_eval_str):
263 Use SCM_EOF_OBJECT_P.
264
265 * eval.c (scm_init_eval): Add feature `delay'.
266
267 Tue Sep 16 02:12:02 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
268
269 * scmhob.h: Removed.
270
271 Mon Sep 15 20:42:03 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
272
273 * list.h (SCM_LISTn): New macros. Make list creation in C code
274 prettier. The idea comes from STk.
275
276 * sequences.h, sequences.c, append.h, append.c: Removed. These
277 files implemented non-R4RS operations which would encourage
278 non-portable programming style and less easy-to-read code.
279
280 * Makefile.am (sequences.h, sequences.c, append.h, append.c):
281 Removed.
282
283 * libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include
284 sequences.h, #include append.h.
285
286 * init.c (scm_boot_guile_1): Removed calls to scm_init_append and
287 scm_init_sequences.
288
289 * gh.h, gh_list.c: Renamed gh_list_length --> gh_length.
290
291 * list.h, list.c: Renamed scm_list_length --> scm_length, scm
292
293 * stime.c (bdtime2c): Changed scm_obj_length --> scm_vector_length.
294
295 Sat Sep 13 00:21:41 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
296
297 * eval.c: Added #include "objects.h"
298
299 * tags.h (scm_tc16_object, scm_tc16_entity): Smobtags for objects
300 and entities.
301
302 * smob.c (scm_smob_prehistory): Create two objectsmobs with
303 adjacent smob numbers.
304
305 Thu Sep 11 00:59:17 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
306
307 * procprop.h: Added declaration of scm_i_inner_name.
308
309 * gsubr.c: New global symbol scm_i_inner_name.
310
311 * debug.c (scm_procedure_name): Try procedure property
312 `inner-name' if `name' fails.
313
314 * print.c (scm_iprin1): Use scm_macro_name.
315
316 * eval.c (scm_m_define): Give names to macros as well; Only the
317 first top-level definition gives a procedure/macro a name.
318 Otherwise confusing names can turn up in backtraces.
319 (SCM_CEVAL): SCM_IM_DEFINE: Set `inner-name' property instead of
320 `name'; Give names to macros as well.
321
322 * procs.c (scm_closure_p), print.c (scm_iprin1), eval.c
323 (scm_macro_transformer): Use SCM_CLOSUREP instead of
324 scm_closure_p.
325
326 Wed Sep 10 20:52:18 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
327
328 * * eval.c (macro?, macro-type, macro-name, macro-transfomer): New
329 procedures;
330 (prinmacro): Removed. The code has been moved/merged into print.c
331 in order to decrease code redundancy. We want macros to print in
332 a way equivalent to procedures, and it would be silly to duplicate
333 the required code. (We don't want to maintain two places.)
334 (macrosmob): Print field is now a NULL pointer.
335
336 * eval.h (scm_macro_p, scm_macro_type, scm_macro_name,
337 scm_macro_transformer): New prototypes.
338 (scm_tc16_macro): Declared.
339
340 * * print.c (scm_iprin1): Added code for printing of macros. Macros
341 are now printed in a way equivalent to procedures.
342
343 Sat Sep 6 12:20:42 1997 Mikael Djurfeldt <mdj@kenneth>
344
345 * procs.h (scm_closure_p): Added declaration.
346
347 Fri Sep 5 13:36:14 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
348
349 * gc.c (scm_gc_mark): Fixed "rogue pointer in heap" message:
350 Shouldn't pass "heap" as the subr name.
351
352 Tue Sep 2 18:14:30 1997 Jim Blandy <jimb@totoro.red-bean.com>
353
354 * gh_predicates.c (gh_boolean_p, gh_symbol_p, gh_char_p,
355 gh_vector_p, gh_pair_p, gh_number_p, gh_string_p, gh_procedure_p,
356 gh_list_p, gh_inexact_p, gh_exact_p, gh_eq_p, gh_eqv_p,
357 gh_equal_p): Use SCM_NFALSEP, instead of testing against
358 SCM_BOOL_T. Any non-false value is true.
359
360 Tue Sep 2 00:27:07 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
361
362 * symbols.h (scm_builtin_bindings, scm_builtin_weak_bindings,
363 scm_gensym): Added prototypes.
364
365 * symbols.c (scm_gensym): New function. This will speed up
366 certain types of applications (such as macro systems) which
367 generate lots of symbols.
368
369 Mon Sep 1 22:30:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
370
371 * numbers.c (logand, logior, logxor): Handle 0 or 1 arguments.
372
373 Sat Aug 30 18:56:19 1997 Gary Houston <ghouston@actrix.gen.nz>
374
375 * unif.c (scm_shap2ra): tighten the checking of the array dimension
376 specifier, since (2) or (2 . 3) would cause SEGV.
377 (scm_transpose_array): more argument checking fixes.
378
379 Thu Aug 28 23:48:53 1997 Jim Blandy <jimb@totoro.red-bean.com>
380
381 * Makefile.in: Regenerated.
382
383 Wed Aug 27 17:44:44 1997 Jim Blandy <jimb@totoro.red-bean.com>
384
385 * Makefile.in: Regenerated, so it uses "tar", not "gtar".
386
387 Mon Aug 25 13:47:25 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
388
389 * error.c, error.h (scm_error_callback): Removed (see NEWS).
390
391 Sun Aug 24 01:25:35 1997 Mikael Djurfeldt <mdj@kenneth>
392
393 * regex-posix.c: If <regex.h> can't be found, try <rxposix.h> or
394 <rx/rxposix.h>. (This is in order to accomodate for the GNU Rx
395 library.)
396
397 * ramap.c (scm_ra_matchp, scm_array_fill_int, racp, ramap_1,
398 ramap_2o, scm_array_index_map_x, raeql_1, scm_array_equal_p),
399 unif.c (scm_vector_set_length_x, scm_uniform_vector_length,
400 scm_array_p, scm_array_rank, scm_array_dimensions,
401 scm_enclose_array, scm_array_in_bounds_p, scm_uniform_vector_ref,
402 scm_cvref, scm_array_set_x, scm_array_contents, scm_array_to_list,
403 scm_array_prototype): Added case scm_tc7_wvect.
404
405 Sat Aug 23 18:45:44 1997 Gary Houston <ghouston@actrix.gen.nz>
406
407 * errno.h: prototype for scm_strerror.
408 * error.c (scm_strerror): new procedure.
409
410 Mon Aug 18 14:58:22 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
411
412 * list.c (scm_list_append_x): Allow non-pair as last argument.
413 This is consistent with the R4RS append and is probably the
414 correct behaviour as specified by R2RS. (Thanks to Radey Shouman)
415
416 Sat Aug 16 18:42:15 1997 Gary Houston <ghouston@actrix.gen.nz>
417
418 * stime.h: prototype for scm_times.
419 * stime.c (scm_times): new procedure.
420 * ioext.c (scm_fseek): if the first argument is a file descriptor
421 call lseek.
422 (scm_ftell): if the first argument is a file descriptor call lseek
423 (sic).
424 * filesys.h: prototypes for scm_open_fdes, scm_fsync.
425 * filesys.c (scm_chmod): if the first argument is a file descriptor,
426 call fchmod.
427 (scm_chown): if the first argument is a port or file descriptor,
428 call fchown.
429 (scm_truncate_file): new procedure.
430 Add DEFER/ALLOW INTS to a few other procedures.
431 (scm_fsync): new procedure.
432 (scm_open_fdes): new procedure.
433 (scm_open): use scm_open_fdes. If mode isn't specified, 666 will
434 now be used.
435 (scm_fcntl): the first argument can now be a file descriptor. The
436 third argument is now optional.
437
438 * posix.c (scm_execl, scm_execlp): make the filename argument
439 compulsory, since omitting it causes SEGV.
440 (scm_sync): return unspecified instead of #f.
441 (scm_execle): new procedure.
442 (environ_list_to_c): new procedure.
443 (scm_environ): use environ_list_to_c. disable interrupts.
444 (scm_convert_exec_args): take pos and subr arguments and
445 improve error checking.
446
447 1997-08-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
448
449 * stacks.c (scm_make_stack), coop-threads.c, mit-pthreads.c
450 (scm_call_with_new_thread): Bugfix: SCM_WNA should go as third
451 argument to SCM_ASSERT. Furthermore, the name of the function
452 should be passed as first argument when signalling
453 SCM_WNA. (Thanks to Thomas Morgan)
454
455 * gsubr.c (scm_gsubr_apply): From Radey Shouman
456 <shouman@zianet.com>: "The switch in scm_gsubr_apply that
457 dispatches on the number of actual args has a default case
458 reporting an internal error. This is a vestige from a version
459 that mallocated a SCM vector to hold the arguments. In the
460 current version this check is too late: if it ever happens we will
461 have already overstepped the bounds of the array.
462
463 Also, the patch [...] adds a check for too many actual arguments."
464
465 mdj: Removed check for "internal programming error".
466
467 Wed Aug 13 15:38:44 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
468
469 * gh_io.c (gh_write): New function.
470
471 * gh_eval.c (catch_with_saved_stack): Removed. Replaced by:
472 throw.c (scm_internal_stack_catch): New sibling to the other catch
473 functions. Code moved from gh_eval.c.
474 throw.h: Added header.
475 gh_eval.c (gh_eval_str_with_stack_saving_handler): Renamed call to
476 scm_internal_stack_catch.
477
478 Tue Jul 29 01:03:08 1997 Gary Houston <ghouston@actrix.gen.nz>
479
480 * ioext.h: fix up prototypes.
481 * ioext.c (scm_dup_to_fdes): renamed from scm_primitive_dup2.
482 Scheme name is now dup->fdes.
483 (scm_dup_to_fdes): make the second argument optional and
484 fold in the functionality of scm_primitive_dup.
485 (scm_primitive_dup): deleted.
486
487 Mon Jul 28 05:24:42 1997 Gary Houston <ghouston@actrix.gen.nz>
488
489 * fports.h (SCM_P): prototypes for scm_setvbuf, scm_setfileno.
490 * fports.c (scm_setbuf0): don't disable the setbuf if MSDOS or
491 ultrix are defined. Use setvbuf instead of setbuf.
492 (scm_setvbuf): new procedure.
493 (scm_init_fports): intern _IOFBF, _IOLBF, _IONBF.
494 (scm_setfileno): moved from ioext.c.
495 (scm_fgets): cast SCM_STREAM to (FILE *), remove unused lp variable.
496 (top of file): Delete 25 lines of probably obsolete CPP hair for MSDOS.
497
498 Sun Jul 27 10:54:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
499
500 * fluids.c (scm_fluid_p): New function.
501 * fluids.h (scm_fluid_p): New prototype.
502
503 Sat Jul 26 21:33:37 1997 Marius Vollmer <mvo@zagadka.ping.de>
504
505 * print.c (scm_iprin1): Enter printed structures into the print
506 state as nested data while they are printed.
507 (print_state_fluid, print_state_fluid_num): New variables.
508 (scm_init_print): Initialize them.
509 (scm_iprin): If print_state_fluid carries a print_state, use that
510 instead of creating a new one.
511 (scm_printer_apply, apply_stub, struct apply_data): New
512 definitions to help with calling printer functions written in
513 Scheme.
514 * print.h (scm_printer_apply): New prototype.
515
516 * struct.c (scm_print_struct): Use scm_printer_apply to call the
517 user defined struct printer.
518
519 * dynwind.c (scm_dowinds): Handle fluids on the wind list.
520 * fluids.h (scm_internal_with_fluids, scm_with_fluids,
521 scm_swap_fluids, scm_swap_fluids_reverse): New prototypes.
522 * fluids.c (scm_internal_with_fluids, scm_with_fluids,
523 scm_swap_fluids, scm_swap_fluids_reverse): New functions.
524
525 Fri Jul 25 12:05:46 1997 Marius Vollmer <mvo@zagadka.ping.de>
526
527 * fluids.c (scm_fluid_ref, scm_fluid_set_x): Fixed use of
528 SCM_ASSERT: arg comes before pos.
529
530 Fri Jul 25 17:00:38 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
531
532 * eval.c (scm_apply): Handle the case when a tc7_sybr_2 is applied
533 to a list of length zero correctly.
534
535 Wed Jul 23 16:17:46 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
536
537 Supply an `fgets' method for port objects to do fast line i/o.
538 * ioext.c (scm_read_line): New function.
539 * genio.c (scm_gen_read_line): New function.
540 * fports.c (scm_fgets): New function.
541 (scm_fptob, scm_pipob): Add scm_fgets method.
542 * ports.c (fgets_void_port, scm_generic_fgets): New functions.
543 (void_port_ptob): Add void fgets method.
544 (scm_newptob): Initialize fgets method from ptob struct.
545 * ports.h (scm_ptobfuns): Add fgets method.
546 * vports.c (scm_sfptob): Supply generic fgets method.
547 * strports.c (scm_stptob): Supply generic fgets method.
548
549 Mon Jul 21 04:03:42 1997 Gary Houston <ghouston@actrix.gen.nz>
550
551 * ioext.h: removed scm_duplicate_port prototype.
552
553 * ioext.c (scm_primitive_dup2): return the new file descriptor
554 instead of SCM_UNSPECIFIED, since similarity to scm_primitive_dup
555 is convenient.
556 (scm_fdopen): bug fix: don't try to make port unbuffered until its
557 stream has been set.
558 (scm_duplicate_port): deleted, there's now an implementation in
559 boot-9.scm.
560 (scm_primitive_dup2): do nothing if newfd == oldfd.
561
562 Sun Jul 20 03:55:49 1997 Gary Houston <ghouston@actrix.gen.nz>
563
564 * filesys.c (scm_close): oops, don't call SCM_INUM twice on the
565 argument.
566
567 * ioext.h: new prototypes.
568 * ioext.c (scm_primitive_dup, scm_primitive_dup2): new procedures.
569
570 * fluids.c (next_fluid_num): don't do
571 SCM_THREAD_CRITICAL_SECTION_START/END unless USE_THREADS is defined.
572
573 * ports.h: prototypes too.
574 * ports.c (scm_mode_bits, scm_port_mode): moved from fports.c.
575
576 * fports.h: prototype too.
577 * fports.c (scm_evict_ports): moved from ioext.c.
578
579 Sat Jul 19 04:56:52 1997 Gary Houston <ghouston@actrix.gen.nz>
580
581 * ports.c (scm_close_port): return a boolean instead of unspecified.
582 throw an error if an error other than EBADF occurs.
583
584 * filesys.h: scm_close prototype.
585 * filesys.c (scm_close): new procedure, can close file descriptors
586 and ports (scsh compatible).
587
588 * ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
589 optional argument.
590
591 Fri Jul 18 11:19:53 1997 Marius Vollmer <mvo@zagadka.ping.de>
592
593 * fluids.c, fluid.h: New files.
594 * Makefile.am (libguile_la_SOURCES): Added "fluids.c".
595 (modinclude_HEADERS): Added "fluids.h"
596
597 * init.c: Include "fluids.h". (scm_boot_guile_1): Added call to
598 scm_init_fluids to initialize the fluid machine.
599 (scm_start_stack): Initialize the fluids of the first root with
600 scm_make_initial_fluids.
601
602 * root.h: Added "fluids" member to scm_root_state.
603 * root.c: Include "fluids.h". (scm_mark_root): Mark "fluids".
604 (scm_make_root): Call scm_copy_fluids to make fluid bindings
605 unique for the new root when it has a parent.
606
607 * smob.h: Include "libguile/print.h" to make scm_print_state
608 visible.
609
610 * dynl.c (free_dynl_obj): New function to free the dynamic object
611 data. (dynl_smob): Use it.
612 * dynl.c (scm_dynamic_link): Moved allocating of the memory for
613 the dynamic object data below the linking of the object to avoid
614 memory leak when the linking code throws an error. Now the code
615 leaks a whole dynamically linked library when must_malloc throws,
616 but that should be much less likely.
617
618 Fri Jul 11 00:19:47 1997 Jim Blandy <jimb@floss.red-bean.com>
619
620 Changes to compile under gnu-win32, from Marcus Daniels:
621 * stime.c (tzset): If tzset isn't provided, make it a NOP.
622 (scm_localtime): Change SCM_EOF to SCM_EOL.
623 (scm_mktime): Likewise.
624 * socket.c: Don't include sys/un.h unless autoconf tells
625 us Unix domain sockets are available.
626 (scm_fill_sockaddr): Ignore Unix domain code.
627 (scm_addr_vector): Likewise.
628 (scm_init_addr_buffer): Likewise.
629 (scm_socketpair): Don't include unless socketpair was
630 found during autoconf.
631 * simpos.c (SYSTNAME): Treat cygwin like Unix.
632 * scmsigs.c (scm_pause): Don't include unless pause was found
633 during autoconf.
634 * posix.c (scm_getgroups): Don't include unless support function
635 was found during autoconf (in this case, getgroups).
636 (scm_setpwent): For setpwent.
637 (scm_setegid): For setegid.
638 * net_db.c (scm_inet_netof): Don't include unless support
639 function was found during autoconf (in this case, inet_netof).
640 (scm_lnaof): For inet_lnaof.
641 (scm_inet_makeaddr): For inet_makeaddr.
642 (scm_getnet): For getnetent, getnetbyname, getnetbyaddr.
643 (scm_getproto): For getprotoent.
644 (scm_getserv): For getservent.
645 (scm_sethost): For sethostent, endhostent.
646 (scm_setnet): For setnetent, endnetent.
647 (scm_setproto): For setprotoent, endprotoent.
648 (scm_setserv): For setservent, endservent.
649 * scmconfig.h.in: Regenerated.
650
651 Thu Jul 10 00:22:24 1997 Jim Blandy <jimb@floss.red-bean.com>
652
653 * stime.c (scm_localtime, scm_mktime): Pass SCM_EOL to
654 scm_misc_error, not SCM_EOF.
655
656 * error.c (scm_wta): Pass SCM_EOL to scm_misc_error as the list of
657 arguments for formatting the error message, not SCM_BOOL_F. I
658 think this is left over from the (eq? '() #f) days.
659
660 * read.c (recsexpr): Give this a dummy definition if
661 DEBUG_EXTENSIONS isn't #defined.
662
663 Fri Jul 4 23:42:17 1997 Marius Vollmer <mvo@zagadka.ping.de>
664
665 * coop-threads.c (scm_wait_condition_variable): Lock mutex again
666 after waiting.
667
668 Thu Jul 3 16:31:24 1997 Marius Vollmer <mvo@zagadka.ping.de>
669
670 * root.c (cwdr_outer_body): Bugfix: Pass `c' instead of `&c' to
671 scm_internal_catch.
672
673 Sat Jun 28 16:14:09 1997 Tim Pierce <twp@twp.tezcat.com>
674
675 * Makefile.am (libguile_la_LIBADD): Remove @ALLOCA@, since
676 alloca.lo will be included in @LIBLOBJS@. Something better than
677 this should be possible.
678 * Makefile.in: Regenerated.
679
680 Sat Jun 28 03:40:15 1997 Gary Houston <ghouston@actrix.gen.nz>
681
682 * simpos.h: prototype for scm_primitive_exit.
683 * simpos.c (scm_primitive_exit): new procedure, terminates the
684 process without unwinding the stack.
685
686 Sat Jun 28 03:45:25 1997 Tim Pierce <twp@twp.tezcat.com>
687
688 * regex-posix.c (scm_make_regexp): Make `flags' a variable-length
689 argument and logior its components together, so the user doesn't
690 have to do this explicitly. Also, if regexp/basic is supplied, then
691 turn off REG_EXTENDED.
692 (scm_init_regex_posix): New regexp/basic symbol.
693 (REG_BASIC): #define this if it is not already present.
694
695 Fri Jun 27 20:36:35 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
696
697 * Makefile.am (libguile_la_LIBADD): Include @ALLOCA@.
698 (MOSTLYCLEANFILES): New target, changed from CLEANFILES.
699 (CLEANFILES): New target, clean versiondat.h, libpath.h.
700 (DISTCLEANFILES): New target, clean *.x.
701 * Makefile.in: Regenerated.
702
703 Tue Jun 24 00:29:07 1997 Jim Blandy <jimb@floss.red-bean.com>
704
705 * script.c (scm_compile_shell_switches): Add 1997 to copyright
706 years in usage message.
707
708 * Makefile.am (libguile_la_LDFLAGS): Bump library version.
709 * Makefile.in: Regenerated.
710
711 * regex-posix.c (scm_init_regex_posix): Delete the regexp/nosub
712 flag; I don't think we support it.
713 (scm_make_regexp): Make sure the user doesn't pass the
714 regexp/nosub flag.
715
716 * regex-posix.c (scm_make_regexp, scm_regexp_exec): Add optional
717 FLAGS arguments.
718 (scm_init_regex_posix): Define constants for the REG_mumble flags;
719 name them according to the SCSH convention: regexp/mumble.
720
721 * regex-posix.h (scm_make_regexp, scm_regexp_exec): Update prototypes.
722
723 Mon Jun 23 18:44:49 1997 Jim Blandy <jimb@floss.red-bean.com>
724
725 * Makefile.am (libpath.h): Include the values of all the standard
726 Makefile directory variables. Print a message, but don't print
727 all the commands.
728 (versiondat.h): Print a message, but don't print all the commands.
729 * load.c: #include "alist.h".
730 (init_build_info): New function.
731 (scm_init_load): Call it.
732 * Makefile.in: Regenerated.
733
734 Sun Jun 22 19:12:58 1997 Jim Blandy <jimb@floss.red-bean.com>
735
736 * root.c: Establish a reliable catch-all handler for the new root.
737 After all the Scheme handler function might signal an error too,
738 and we don't want to lose that.
739 (cwdr_inner_body): Renamed from cwdr_body.
740 (cwdr_outer_body): New function, to establish the user's handler,
741 and pass control to cwdr_inner_body.
742 (cwdr): Establish the reliable catch-all handler here, and pass
743 control to cwdr_outer_body.
744 (struct cwdr_body_data): New field, handler, to allow cwdr to pass
745 the user's handler through to cwdr_outer_body.
746 * throw.c (scm_handle_by_message): Move guts into....
747 (handler_message): New static function.
748 (scm_handle_by_message_noexit): New function.
749 * throw.h (scm_handle_by_message_noexit): New prototype.
750
751 * __scm.h: (SCM_FENCE): New macro: optimizer will not move code
752 across this. Only works on GCC. Otherwise, we hope for the best.
753 (SCM_DEFER_INTS, SCM_ALLOW_INTS): Use FENCE appropriately. I have
754 the feeling that real thread systems will not need this...
755
756 Sun Jun 22 15:46:35 1997 Jim Blandy <jimb@floss.red-bean.com>
757
758 Try to detect when people are using one version of libguile and a
759 different version of ice-9. People have been skewing things and
760 sending in bug reports.
761 * Makefile.am (versiondat.h): New file to generate.
762 * version.c: #include "versiondat.h", to get version info.
763 (scm_libguile_config_stamp): New function.
764 * script.c: #include "version.h".
765 (scm_compile_switches): Call scm_version to get version number.
766 * scmconfig.h.in, Makefile.in: Regenerated.
767 * Makefile.in: Regenerated.
768
769 * Makefile.am (ETAGS_ARGS): Catch SCM_PROC, etc. so we can find
770 primitive definitions under their Scheme names.
771
772 * Makefile.am (libguile_la_LDFLAGS): Update library version to
773 1:2. Helps avoid confusion between installed and uninstalled libs.
774
775 * scmconfig.h.in: Regenerated. (Needed after June 3 change to
776 ../configure.in.)
777
778 * gdb_interface.h (GDB_INTERFACE): Remove semicolon and trailing
779 backslash from definition; this should be used like: GDB_INTERFACE;
780
781 Sun Jun 22 04:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
782
783 * ioext.c (scm_duplicate_port): bug fix: don't try to make the
784 new port unbuffered until its stream has been set.
785
786 Sat Jun 21 18:44:03 1997 Gary Houston <ghouston@actrix.gen.nz>
787
788 * ports.h: new prototype.
789 * ports.c (scm_flush_all_ports): new procedure, scsh compatible.
790
791 Sat Jun 21 00:25:03 1997 Jim Blandy <jimb@floss.red-bean.com>
792
793 Make things compile neatly under Sun's C compiler.
794 * dynl.c (scm_dynamic_func): Cast return value from sysdep_dynl_func.
795 * extchrs.c (xmbtowc): Make the second arg a normal char, not
796 unsigned, because that's what the ANSI function takes.
797 * extchrs.h (xmbtowc): Corresponding change to prototype.
798 * genio.c (scm_gen_getc): Make buf plain chars. Nobody wants
799 uchars here.
800 * mbstrings.c (scm_mb_ilength): Use ANSI arg syntax. Make DATA
801 argument plain char *.
802 * strings.c (scm_string): Use SCM_ROCHARS, since c is a plain
803 char.
804 * tag.c (scm_tag): Remove unreachable statement.
805 * unif.c (scm_array_to_list): If we want to shift a 1 bit to the
806 top of the word, it should be unsigned.
807
808 * eval.c (scm_lookupcar1): Don't declare var2 unless USE_THREADS
809 is defined, to avoid warnings; it's only used in the
810 conflict-checking code. Which might go away anyway.
811 (SCM_CEVAL): All goto's targeting the `dispatch' label are in
812 conditionals; put the label definition in an #if too, to stifle
813 warnings.
814
815 * Makefile.am (EXTRA_DIST): Include ChangeLog-gh and
816 ChangeLog-threads in the distribution.
817 * Makefile.in: Regenerated.
818
819 Fri Jun 20 10:03:41 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
820
821 * guile-snarf.in: Changed regexp to support CPPs that insert
822 whitespace between lexical tokens (which munges the `%%%' snarf
823 cookie).
824
825 Tue Jun 17 13:49:56 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
826
827 * load.c (scm_init_load_path): Append $(datadir)/guile to
828 %load-path, so modules do not have to be installed in Guile's
829 current version directory.
830
831 Mon Jun 16 17:20:55 1997 Marius Vollmer <mvo@zagadka.ping.de>
832
833 * dynl.c (scm_dynamic_call, scm_dynamic_args_call): Wrap dynamic
834 function call in SCM_DEFER_INTS/SCM_ALLOW_INTS.
835 (scm_dynamic_link, scm_dynamic_unlink, scm_dynamic_func): Always
836 call the sysdep functions with deferred ints.
837 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c (sysdep_dynl_link,
838 sysdep_dynl_unlink, sysdep_dynl_func): Expect to be called with
839 deferred interrupts and insert SCM_ALLOW_INTS before throwing an
840 error.
841
842 * dynl.c (scm_dynamic_unlink, scm_dynamic_call): Return
843 SCM_UNSPECIFIED.
844
845 Sat Jun 14 19:00:58 1997 Gary Houston <ghouston@actrix.gen.nz>
846
847 * scmsigs.c (sys_deliver_signals): add a comment about a probable bug.
848
849 Wed Jun 11 00:33:00 1997 Jim Blandy <jimb@floss.red-bean.com>
850
851 * Makefile.in: Regenerated after xtra_PLUGIN_guile_libs change in
852 ../configure.in.
853
854 Sun Jun 8 14:37:26 1997 Marius Vollmer <mvo@zagadka.ping.de>
855
856 * eval.c (scm_lookupcar1): New procedure to cope with a race
857 condition during lookup (when using threads).
858 (scm_lookupcar): Implement in terms of scm_lookupcar1.
859 (SCM_CEVAL): Use scm_lookupcar1 instead of scm_lookupcar in one
860 place.
861
862 Fri Jun 6 19:05:07 1997 Jim Blandy <jimb@totoro.cyclic.com>
863
864 * regex-posix.c (scm_regexp_exec): Use the `start' argument if
865 supplied. (Change from Tim Pierce.)
866
867 Thu Jun 5 16:38:19 1997 Marius Vollmer <mvo@zagadka.ping.de>
868
869 * struct.c (init_struct): Forget to mention this in the "Wed Jun 4
870 23:47:01 1997" changelog: Slots are now initialized with `#f' by
871 default and not `()'. `#f' is the canonical non-value in Scheme,
872 right?
873
874 Wed Jun 4 23:47:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
875
876 * struct.c (struct_printer): New variable that holds a handle on
877 the Scheme variable *struct-printer*. This variable can be set by
878 Scheme code to override the printing of structures.
879 (scm_print_struct): If struct_printer is set, call it. If it is
880 not set, or returns #f, print the structure in the old fashion.
881 Include "eval.h" for scm_apply.
882
883 Tue Jun 3 23:01:39 1997 Marius Vollmer <mvo@zagadka.ping.de>
884
885 * struct.c (scm_struct_ref, scm_struct_set_x): Use
886 scm_struct_i_n_words to get the number of fields, not
887 -scm_struct_n_extra_words.
888
889 On the route to fancier struct printing:
890 * struct.c (scm_print_struct): New function to print a structure.
891 Include "genio.h" to support it. This function doesn't do
892 anything interesting right now, but I think it should be here
893 anyway.
894 * struct.h: Include "print.h" and add prototype for
895 scm_print_struct.
896 * print.c (scm_iprin1): Call scm_print_struct instead of trying to
897 print structures ourself.
898
899 Sun Jun 1 07:58:41 1997 Gary Houston <ghouston@actrix.gen.nz>
900
901 * scmsigs.c (sys_deliver_signals): bug fix: reset got_signal[i]
902 before applying the handler in case it doesn't return.
903
904 Sat May 31 18:57:51 1997 Gary Houston <ghouston@actrix.gen.nz>
905
906 * scmsigs.h, async.h: updated.
907
908 * _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL
909 loop.
910
911 * posix.c (scm_uname): interpret only negative values as an error.
912 Solaris normally returns a positive value.
913
914 * script.c (scm_compile_shell_switches): if we are not going into
915 an interactive repl, set scm_mask_ints to zero so that asyncs can
916 run.
917
918 * simpos.c (scm_system): don't ignore/unignore signals around
919 the "system" call.
920
921 * posix.c (scm_open_pipe): don't ignore/unignore signals around
922 the "popen" call.
923
924 * init.c (scm_boot_guile_1): don't call scm_init_signals, it's
925 done in boot-9.scm instead.
926
927 * scmsigs.c, async.c: Major rewriting of signal handling code.
928 (scm_sigaction): new procedure.
929 (scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the
930 timing.
931 (scm_raise): return unspecified, throw error on failure.
932
933 Thu May 29 02:47:36 1997 Jim Blandy <jimb@floss.cyclic.com>
934
935 * regex-posix.c (scm_init_regex_posix): Register the "regex"
936 feature, to help boot-9.scm decide whether to import the regex
937 module.
938
939 Thu May 29 02:19:40 1997 Jim Blandy <jimb@floss.cyclic.com>
940
941 * eval.c: Include scmconfig.h at the beginning of the file so that
942 HAVE_ALLOCA_H may properly be defined. Thanks to Bill Janssen for
943 pointing this out.
944
945 * regex-posix.c: #include "_scm.h" before conditionally #including
946 <regex.h>; the former defines HAVE_REGCOMP.
947
948 * regex-posix.c: #include <regex.h> conditionally, so the file is
949 CPP'able (for dependency scanning) even on systems that don't have
950 a <regex.h> header.
951
952 Tue May 27 23:48:38 1997 Jim Blandy <jimb@floss.cyclic.com>
953
954 Add new R4RS-compliant syntax for keywords.
955 * read.c (scm_lreadr): Recognize `#:' as a prefix for keywords,
956 regardless of the setting of the `keywords' read option.
957 * kw.c (prin_kw): Print keywords using the `#:' syntax, so they
958 can be re-read no matter what the setting of the `keywords' read
959 option.
960
961 Tue May 27 22:47:31 1997 Tim Pierce <twp@twp.tezcat.com>
962
963 Add support for POSIX regular expressions.
964
965 * regex-posix.c, regex-posix.h: New files. (Some code
966 is taken liberally from rx/rgx.c in the old Guile dist.)
967
968 * init.c: Include regex-posix.h.
969 (scm_boot_guile_1): Call scm_init_regex_posix.
970
971 * Makefile.am (EXTRA_libguile_la_SOURCES, modinclude_HEADERS):
972 Add regex-posix.[ch] sources.
973 * Makefile.in: Regenerated.
974
975 * scmconfig.h.in: Add HAVE_REGCOMP macro. (automake is supposed
976 to do this automatically? It didn't for me, bleh.)
977
978 Mon May 26 18:51:29 1997 Jim Blandy <jimb@floss.cyclic.com>
979
980 * fports.c (print_pipe_port): New function.
981 (scm_fptob): Use print_pipe_port instead of scm_prinport; the
982 latter doesn't even take the right arguments.
983
984 * Makefile.am: Increment shared lib revision number. I think
985 sometimes the uninstalled Guile finds the installed shared lib;
986 Gord says doing this might help. As things turned out, I can't
987 say whether it does.
988 * Makefile.in: Regenerated.
989
990 * gh_init.c (gh_enter): Cast c_main_prog to a void * before
991 passing it as the closure argument to scm_boot_guile. (Bill
992 Janssen)
993
994 * ports.c (print_void_port, putc_void_port, puts_void_port,
995 write_void_port, flush_void_port, getc_void_port, close_void_port,
996 noop0): Use ANSI prototypes instead of K&R declarations, so the
997 initialization of void_port_ptob gets aggressively type-checked.
998 Fix arguments of print_void_port and write_void_port. (Bill
999 Janssen)
1000
1001 * COPYING, __scm.h, _scm.h, alist.c, alist.h, append.c, append.h,
1002 appinit.c, arbiters.c, arbiters.h, async.c, async.h, backtrace.c,
1003 backtrace.h, boolean.c, boolean.h, chars.c, chars.h,
1004 continuations.c, continuations.h, coop-defs.h, coop-threads.c,
1005 coop-threads.c.cygnus, coop-threads.h, coop-threads.h.cygnus,
1006 coop.c, debug.c, debug.h, dynl-dl.c, dynl-dld.c, dynl-shl.c,
1007 dynl-vms.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, eq.h,
1008 error.c, error.h, eval.c, eval.h, extchrs.h, feature.c, feature.h,
1009 filesys.c, filesys.h, fports.c, fports.h, fsu-pthreads.h, gc.c,
1010 gc.h, gdbint.c, gdbint.h, genio.c, genio.h, gh.h, gh_data.c,
1011 gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c,
1012 gh_predicates.c, gh_test_c.c, gh_test_repl.c, gscm.c, gscm.h,
1013 gsubr.c, gsubr.h, guile.c, hash.c, hash.h, hashtab.c, hashtab.h,
1014 init.c, init.h, ioext.c, ioext.h, kw.c, kw.h, libguile.h, list.c,
1015 list.h, load.c, load.h, mallocs.c, mallocs.h, markers.c,
1016 markers.h, mbstrings.c, mbstrings.h, mit-pthreads.c,
1017 mit-pthreads.h, net_db.c, net_db.h, numbers.c, numbers.h,
1018 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
1019 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
1020 procprop.h, procs.c, procs.h, putenv.c, ramap.c, ramap.h, read.c,
1021 read.h, root.c, root.h, scmhob.h, scmsigs.c, scmsigs.h, script.c,
1022 script.h, sequences.c, sequences.h, simpos.c, simpos.h, smob.c,
1023 smob.h, snarf.h, socket.c, socket.h, srcprop.c, srcprop.h,
1024 stackchk.c, stackchk.h, stacks.c, stacks.h, stime.c, stime.h,
1025 strings.c, strings.h, strop.c, strop.h, strorder.c, strorder.h,
1026 strports.c, strports.h, struct.c, struct.h, symbols.c, symbols.h,
1027 tag.c, tag.h, tags.h, threads.c, threads.h, throw.c, throw.h,
1028 unif.c, unif.h, variable.c, variable.h, vectors.c, vectors.h,
1029 version.c, version.h, vports.c, vports.h, weaks.c, weaks.h: New
1030 address for FSF.
1031
1032 Mon May 26 12:37:30 1997 Jim Blandy <jimb@floss.cyclic.com>
1033
1034 * script.c (scm_find_executable): Use prototype-style definition
1035 here; apparently it's not quite right to have const in a prototype
1036 and then use a K&R declaration. I wonder if stuff like this will
1037 go away if we compile with -Wrequire-prototypes, or whatever that
1038 is... (Bernard URBAN)
1039
1040 * scmhob.h: New text from Bernard URBAN.
1041
1042 Sat May 17 17:14:36 1997 Jim Blandy <jimb@floss.cyclic.com>
1043
1044 * script.c: Don't #define const on hpux. Configure takes care of
1045 this. (Thanks to Larry Schwimmer.)
1046
1047 * script.c: Use the HAVE_UNISTD_H symbol provided by autoconf to
1048 decide whether to #include <unistd.h>, instead of listing a bunch
1049 of systems. Don't #include stdio twice. Removed dyked-out
1050 definition of scm_find_impl_file.
1051
1052 Fri May 16 03:06:08 1997 Jim Blandy <jimb@floss.cyclic.com>
1053
1054 * Makefile.am (libguile_la_LDFLAGS): Update libguile's shared
1055 library version info to 1:0.
1056 * Makefile.in: Regenerated.
1057
1058 * backtrace.c, backtrace.h, debug.c, debug.h, eq.c,
1059 gdb_interface.h, gdbint.c, gdbint.h, gh_data.c, gh_init.c,
1060 gh_io.c, gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c,
1061 init.c, net_db.c, options.c, options.h, ports.c, print.c, read.c,
1062 script.h, snarf.h, srcprop.c, srcprop.h, stacks.c, stacks.h,
1063 throw.c: Update copyright years; these files have been worked on
1064 significantly in 1997, but only had copyright years for 1996.
1065 Also, change name of copyright holder on some from Mikael
1066 Djurfeldt to Free Software Foundation; he has signed papers
1067 assigning the changes to the FSF.
1068
1069 * script.c (scm_shell_usage): Pass FATAL to exit. There's no
1070 reason not to give the user the option.
1071
1072 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
1073 Return #f on end-of-file when scanning table (i.e. when called
1074 with no arguments). Try to catch errors, when we can.
1075 * posix.c (scm_getgrgid, scm_getpwuid): Same.
1076
1077 * script.h (scm_shell_usage, scm_compile_shell_switches): New
1078 external declarations. These are useful.
1079
1080 Thu May 15 05:21:36 1997 Gary Houston <ghouston@actrix.gen.nz>
1081
1082 * posix.c: don't include <sys/select.h> or define macros for
1083 select, since they were not used in this file.
1084
1085 * filesys.c (scm_select): make the fifth parameter microseconds,
1086 not milliseconds. let the fourth parameter be either a real value
1087 or an integer or #f. The first, second and third arguments can
1088 now be vectors: the type of the corresponding return set will be
1089 the same.
1090 (set_element, get_element): new static procedures.
1091
1092 Wed May 14 12:18:12 1997 Jim Blandy <jimb@floss.cyclic.com>
1093
1094 * strports.c (scm_eval_string): New function.
1095 (scm_eval_0str): Trivially re-implemented in terms of
1096 scm_eval_string.
1097 * strports.h (scm_eval_string): New extern decl.
1098
1099 * net_db.c (h_errno): Add extern decl for this.
1100
1101 * fports.c (local_pclose): New function.
1102 (scm_pipob): Use it in the initializer here.
1103
1104 From Tim Pierce:
1105 * net_db.c (scm_gethost, scm_getproto, scm_getnet, scm_getserv):
1106 Use a meaningful error message when signalling an error. For
1107 this, scm_gethost must check h_errno rather than errno.
1108
1109 Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
1110
1111 * Makefile.in: Regenerated, using automake-1.1p.
1112
1113 Tue May 13 04:34:52 1997 Gary Houston <ghouston@actrix.gen.nz>
1114
1115 * socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify,
1116 not SCM_UNSPECIFIED.
1117
1118 * script.c (scm_compile_shell_switches): don't append (quit) if
1119 interactive.
1120 (scm_shell): call scm_exit_status and exit on the result of the
1121 evaluation.
1122
1123 Mon May 12 17:23:58 1997 Jim Blandy <jimb@floss.cyclic.com>
1124
1125 Ensure that shared substrings are handled properly when passed to
1126 a system call or other foreign function. Many thanks to Tim
1127 Pierce!
1128 * symbols.h (SCM_COERCE_SUBSTR): new macro.
1129 * filesys.c (scm_chmod, scm_rename, scm_delete_file, scm_mkdir,
1130 scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink,
1131 scm_lstat), ports.c (scm_sys_make_void_port), posix.c (scm_utime,
1132 scm_putenv, scm_setlocale, scm_mknod), stime.c (setzone,
1133 scm_strftime), vports.c (scm_make_soft_port), backtrace.c
1134 (scm_display_error_message): use RO macros when strings may be RO.
1135 * error.c (scm_error_scm), filesys.c (scm_chown, scm_chmod,
1136 scm_rename, scm_delete_file, scm_mkdir, scm_rmdir, scm_opendir,
1137 scm_chdir, scm_symlink, scm_readlink, scm_lstat), ioext.c
1138 (scm_freopen, scm_duplicate_port, scm_fdopen), net_db.c
1139 (scm_gethost, scm_getnet, scm_getproto, scm_getserv), ports.c
1140 (scm_sys_make_void_port), posix.c (scm_getgrgid, scm_utime,
1141 scm_setlocale, scm_mknod), stime.c (setzone, scm_strptime,
1142 scm_strftime), vports.c (scm_make_soft_port): use
1143 SCM_COERCE_SUBSTR to make sure shared substrings are
1144 null-terminated.
1145
1146 Mon May 12 15:33:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
1147
1148 * error.c (scm_error): Add newline to error message.
1149
1150 * init.c (scm_init_standard_ports): Doc fix.
1151
1152 Thu May 8 14:38:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
1153
1154 * dynl-shl.c: Completely replaced with new code from Bernard
1155 URBAN.
1156
1157 * script.c (scm_ice_9_already_loaded): New variable.
1158 (scm_compile_shell_switches): Use it.
1159
1160 Mon May 5 20:35:08 1997 Gary Houston <ghouston@actrix.gen.nz>
1161
1162 * filesys.c (scm_input_waiting_p): add missing third argument to
1163 scm_misc_error.
1164
1165 * stime.c (scm_localtime): copy the result of localtime before
1166 calling gmtime in case they share a buffer.
1167 (scm_localtime, scm_mktime): throw an error if neither HAVE_TM_ZONE
1168 nor HAVE_TZNAME.
1169
1170 Fri May 2 19:07:11 1997 Gary Houston <ghouston@actrix.gen.nz>
1171
1172 * eq.c (scm_equal_p): use SCM_TYP7SD (y) not SCM_TYP7SD (x).
1173
1174 Thu May 1 17:01:45 1997 Jim Blandy <jimb@floss.cyclic.com>
1175
1176 * Makefile.am (check-local): New target, which causes 'make check'
1177 to run gh_test_c and gh_test_repl, with some trivial input.
1178 * Makefile.in: Rgnrtd.
1179
1180 Tue Apr 29 19:00:40 1997 Marius Vollmer <mvo@zagadka.ping.de>
1181
1182 * dynl.c (print_dynl_obj): Indicate whether the dynamic object has
1183 been unlinked.
1184
1185 Mon Apr 28 06:10:14 1997 Gary Houston <ghouston@actrix.gen.nz>
1186
1187 * async.c (scm_sys_tick_async_thunk): commented out. I'm not
1188 sure how this was supposed to work.
1189 (scm_async_click): don't send SCM_TICK_SIGNAL.
1190 (scm_init_async): don't initialize %tick-thunk.
1191
1192 * the following change doesn't affect the Scheme interface:
1193 gc-thunk is called at the end of garbage collection. however it's
1194 no longer implemented by pretending it's a signal.
1195
1196 * gc.c (scm_gc_end): don't call scm_take_signal. instead mark the
1197 system async corresponding to scm_gc_thunk.
1198 * async.h: declare scm_gc_async.
1199 * async.c (scm_sys_gc_async_thunk): apply the thunk named by
1200 gc-thunk directly, instead of going through a signal handler.
1201 (scm_gc_async): new variable, points to the GC system-async.
1202 (scm_init_async): save the GC async as scm_gc_async instead
1203 of using system_signal_asyncs.
1204 (scm_gc_vcell): new variable, stores the gc-thunk vcell.
1205
1206 Mon Apr 28 19:14:44 1997 Jim Blandy <jimb@floss.cyclic.com>
1207
1208 * Makefile.am (libpath.h, cpp_err_symbols.c, cpp_sig_symbols.c):
1209 Don't screw up if we're interrupted.
1210 * Makefile.in: Regeneradet.
1211
1212 Sun Apr 27 17:57:15 1997 Jim Blandy <jimb@floss.cyclic.com>
1213
1214 * aclocal.m4: Removed; unnecessary, given changes of Apr 24.
1215
1216 * Makefile.am (modincludedir): Use "ice-9" instead of "@module@";
1217 we're not using AM_INIT_GUILE_MODULE any more.
1218 * Makefile.in: Reneregated.
1219
1220 Thu Apr 24 00:41:08 1997 Jim Blandy <jimb@floss.cyclic.com>
1221
1222 Functions for finding variable bindings, grace à Tim Pierce.
1223 * gh_data.c (gh_lookup, gh_module_lookup): New functions.
1224 * gh.h (gh_lookup, gh_module_lookup): New prototypes.
1225
1226 Get 'make dist' to work again.
1227 * Makefile.am (EXTRA_DIST): Remove PLUGIN files.
1228 * Makefile.in: Regenerated, like a surry without a fringe on top.
1229
1230 Changes for reduced Guile distribution: one configure script,
1231 no plugins.
1232 * configure.in, configure: Removed.
1233 * acconfig.h, acinclude.m4: Moved to parent directory, where the
1234 real configure script lives.
1235 * Makefile.in, scmconfig.h.in: Regenerated.
1236
1237 * init.c: #include "script.h", to get prototype for script.c's
1238 init function.
1239
1240 Wed Apr 23 21:25:39 1997 Jim Blandy <jimb@floss.cyclic.com>
1241
1242 * gh_data.c (gh_scm2newstr, gh_symbol2newstr): Use
1243 scm_must_malloc, not raw malloc.
1244
1245 * script.c (scm_compile_shell_switches): Dyke out debugging output
1246 code.
1247
1248 Mon Apr 21 05:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
1249
1250 * eq.c (scm_equal_p): use "SCM_TYP7SD", not "SCM (TYP7SD".
1251
1252 * stime.c: include both <sys/times.h> and <sys/timeb.h> if the
1253 system has them. Hope this is safe. Previously
1254 sys/timeb.h was included if HAVE_FTIME was defined or if
1255 HAVE_SYS_TIMEB_H was defined but HAVE_SYS_TIMES_H was not,
1256 but IRIX iris 5.3 apparently has ftime but not sys/timeb.h.
1257
1258 * ioext.c (scm_setfileno): add missing third argument to
1259 scm_misc_error call.
1260
1261 Sun Apr 20 15:09:31 1997 Jim Blandy <jimb@totoro.cyclic.com>
1262
1263 * eq.c (scm_equal_p): Correctly compare strings of different
1264 varieties. (Thanks to Tim Pierce.)
1265
1266 Sat Apr 19 03:59:02 1997 Jim Blandy <jimb@floss.cyclic.com>
1267
1268 * read.c (skip_scsh_block_comment): SCSH says the !# that ends a
1269 #! block comment must occur on a line all by itself.
1270
1271 Move most of the guts of shell command processing into libguile,
1272 so guile.c can be very small (and eventuallly auto-generated. (I
1273 mean, generated mechanically, not self-generated. Hmm.))
1274 * guile.c, script.c, script.h: New source files.
1275 * init.c (scm_boot_guile_1): Call scm_init_script.
1276 * libguile.h: #include "script.h".
1277 * Makefile.am (bin_PROGRAMS, guile_SOURCES, guile_LDADD): New
1278 targets, for new executable.
1279 (libguile_la_SOURCES): Mention script.c.
1280 (modinclude_HEADERS): Add script.h.
1281 * configure.in: Always check for -lm, -lsocket, -lnsl, whether or
1282 not dynamic linking is enabled. This is because we're generating
1283 executables now. Move CY_AC_WITH_THREADS call after those, so the
1284 values of cy_cv_threads_libs captures the libs chosen above.
1285 * Makefile.in, configure, aclocal.m4: Regenerated.
1286
1287 * Makefile.am (EXTRA_DIST): Don't distribute gscm.c or gscm.h.
1288 We don't maintain this interface any more, and it just confuses
1289 people.
1290
1291 * alloca.c: #include <scmconfig.h>, not <config.h>.
1292 * Makefile.am (EXTRA_libguile_la_SOURCES): Mention alloca.c, so
1293 it'll get included in disties.
1294
1295 Thu Apr 17 17:45:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
1296
1297 * gscm.c, gscm.h: These aren't supported any more, and shouldn't
1298 be distributed, because they confuse people.
1299 * Makefile.am (EXTRA_DIST): Remove gscm.c, gscm.h.
1300
1301 Sat Apr 19 11:56:18 1997 Tim Pierce <twp@twp.tezcat.com>
1302
1303 * configure.in: check for presence of gethostent (not present on
1304 OpenBSD by default).
1305 * net_db.c (scm_gethost): Check HAVE_GETHOSTENT.
1306 * configure, scmconfig.h.in: Regenerated.
1307
1308 Wed Apr 16 17:52:38 1997 Jim Blandy <jimb@floss.cyclic.com>
1309
1310 * backtrace.c (scm_backtrace): Split message string across
1311 newlines properly. GCC is more tolerant of this than other
1312 compilers.
1313
1314 Mon Apr 14 20:20:14 1997 Jim Blandy <jimb@floss.cyclic.com>
1315
1316 Merge threads directory into libguile.
1317 * coop-defs.h, coop-threads.c, coop-threads.h, coop.c, threads.c,
1318 threads.h: New source files.
1319 * Makefile.am (EXTRA_libguile_la_SOURCES): Add threads.c.
1320 (noinst_HEADERS): Add coop-threads.c, coop-threads.h, coop.c
1321 here; see comment.
1322 (modinclude_HEADERS): Add threads.h, coop-defs.h.
1323 (EXTRA_DIST): Add fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
1324 coop-threads.c.cygnus, coop-threads.h.cygnus.
1325 * configure.in: If we're using threads, include threads.o in
1326 LIBOBJS.
1327 * _scm.h, libguile.h: threads.h lives in this directory now.
1328 * fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
1329 coop-threads.c.cygnus, coop-threads.h.cygnus: New files, not
1330 currently used, but brought along for information's sake.
1331 * ChangeLog-threads: log from old 'threads' directory.
1332 * Makefile.in, configure: Rebuilt.
1333
1334 Mon Apr 14 20:15:29 1997 Jim Blandy <jimb@totoro.cyclic.com>
1335
1336 * stime.c (scm_mktime): #ifndef HAVE_TM_ZONE, Use lt.tm_zone, not
1337 lt->tm_zone.
1338
1339 Mon Apr 14 01:32:57 1997 Jim Blandy <jimb@floss.cyclic.com>
1340
1341 * gh_init.c (gh_standard_handler): Return SCM_BOOL_F, not garbage.
1342
1343 Merge GH interface library into libguile.
1344 * gh.h, gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c,
1345 gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c: New files.
1346 * Makefile.am (libguile_la_SOURCES): Add gh_data.c, gh_eval.c,
1347 gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c. Move
1348 _scm.h to ...
1349 (EXTRA_libguile_la_SOURCES): ... here.
1350 (pkginclude_HEADERS): Add variable, to get gh.h installed.
1351 (THREAD_LIBS, check_ldadd, check_PROGRAMS, gh_test_c_SOURCES,
1352 gh_test_c_LDADD, gh_test_repl_SOURCES, gh_test_repl_LDADD):
1353 New variables, describing how to build the gh test programs.
1354 * configure.in: Check for -lm, -lsocket, -lnsl; we need this to
1355 build the test programs, and we probably should have been linking
1356 libguile.la against them all along, to support AIX shared libs.
1357 Add cflags for threads to CFLAGS; add libs for threads to new
1358 variable THREAD_LIBS, used in Makefile.am.
1359 * ChangeLog-gh: log from old `gh' subdirectory.
1360 * Makefile.in, configure, scmconfig.h.in: Rebuilt.
1361
1362 Sun Apr 13 23:03:55 1997 Jim Blandy <jimb@floss.cyclic.com>
1363
1364 * acconfig.h: Undo change of Apr 9; including the definition of
1365 PACKAGE in the guile headers conflicts with applications' own
1366 definitions.
1367 * scmconfig.h.in: Regenerated.
1368
1369 Fri Apr 11 14:12:13 1997 Jim Blandy <jimb@floss.cyclic.com>
1370
1371 * filesys.c (scm_fcntl): New function from Roland McGrath.
1372 (scm_init_filesys): New symbols for use with fcntl.
1373 * filesys.h: Added prototype.
1374
1375 * eval.c (SCM_APPLY): Set debug apply frame argument list correctly
1376 when PROC is receiving no arguments.
1377
1378 Fri Apr 11 19:39:32 1997 Jim Blandy <jimb@totoro.cyclic.com>
1379
1380 * filesys.c (S_ISSOCK): Define this if it's missing, but we do
1381 have S_IFSOCK. This is the case under Ultrix.
1382
1383 * posix.c (scm_status_exit_val, scm_status_exit_val,
1384 scm_status_term_sig, scm_status_stop_sig): Modified to work with
1385 Ultrix versions of WIFSTOPPED, etc., which assume that their
1386 arguments are lvalues (hmm).
1387
1388 Thu Apr 10 15:10:07 1997 Jim Blandy <jimb@floss.cyclic.com>
1389
1390 * eval.c: Doc fixes.
1391
1392 * throw.c: Doc fixes; rearranged.
1393
1394 * putenv.c: #include "libguile/scmconfig.h", not <config.h>.
1395
1396 Wed Apr 9 18:01:20 1997 Jim Blandy <jimb@floss.cyclic.com>
1397
1398 * acconfig.h: Added entry for PACKAGE.
1399 * scmconfig.h.in: Regenerated.
1400
1401 Changes to work with automake-1.1n, which has better libtool support.
1402 * Makefile.am: Use lib_LTLIBRARIES instead of lib_PROGRAMS.
1403 Use libguile_la_LIBADD instead of libguile_la_LDADD. (What's the
1404 difference here?)
1405 (libguile_la_SOURCES, modinclude_HEADERS, EXTRA_DIST): Format for
1406 readability.
1407 * Makefile.in: Rebuild.
1408
1409 Wed Apr 9 09:08:54 1997 Gary Houston <ghouston@actrix.gen.nz>
1410
1411 * stime.c (scm_mktime): take an optional zone argument.
1412 (scm_localtime): check putenv return value.
1413 (scm_strftime, scm_strptime): moved from posix.c. move #include
1414 sequences.h too.
1415 stime.h, posix.h: update prototypes.
1416 (bdtime2c, setzone, restorezone): new static procedures.
1417 (scm_mktime, scm_strftime): use them.
1418 (scm_strftime): don't call mktime before strftime. Use
1419 filltime for return value.
1420 (filltime): convert NULL zname to #f.
1421 (scm_strptime): return a count of characters consumed, not
1422 the remaining string.
1423
1424 Sun Apr 6 05:44:11 1997 Gary Houston <ghouston@actrix.gen.nz>
1425
1426 * stime.c (scm_localtime): check HAVE_TM_ZONE and HAVE_TZNAME.
1427 (scm_mktime): likewise.
1428 Declare *tzname[].
1429 Uncomment localtime and mktime.
1430
1431 * configure.in: add AC_STRUCT_TIMEZONE.
1432
1433 Sat Apr 5 23:56:40 1997 Gary Houston <ghouston@actrix.gen.nz>
1434
1435 * stime.c (scm_init_stime): don't define ticks/sec.
1436 (scm_gettimeofday): renamed from scm_time_plus_ticks (avoids multiple
1437 return value problem and is still portable.)
1438
1439 Sat Apr 5 17:59:24 1997 Jim Blandy <jimb@floss.cyclic.com>
1440
1441 * cpp_err_symbols.in: Renamed from cpp_err_symbols, to avoid
1442 make's implicit cpp_err_symbols: cpp_err_symbols.c rule.
1443 * cpp_sig_symbols.in: Renamed from cpp_sig_symbols.
1444 * Makefile.am (check_errnos, check_signals, cpp_sig_symbols.c,
1445 cpp_err_symbols.c): Corresponding changes.
1446 * Makefile.in: Regenerated.
1447
1448 Sat Apr 5 02:39:02 1997 Gary Houston <ghouston@actrix.gen.nz>
1449
1450 * posix.c (scm_putenv): don't check HAVE_PUTENV.
1451 * Makefile.am (EXTRA_libguile_la_SOURCES): add putenv.c.
1452 * configure.in: move putenv from AC_CHECK_FUNCS to AC_REPLACE_FUNCS.
1453 * putenv.c: new file, from sh-utils 1.12.
1454
1455 * posix.c (scm_environ): use malloc in place of scm_must_malloc
1456 since allocation isn't for Scheme objects.
1457 (scm_putenv): copy strings before placing in the environment.
1458
1459 * stime.c (scm_current_time): throw an error if time returns -1,
1460 instead of returning #f.
1461 (scm_get_internal_real_time, scm_get_internal_real_time): use
1462 scm_long2num for return value instead of SCM_MAKINUM.
1463
1464 * stime.h: prototypes updated.
1465
1466 * stime.c (scm_time_in_msec): apparently unused, deleted.
1467
1468 Fri Apr 4 08:53:41 1997 Gary Houston <ghouston@actrix.gen.nz>
1469
1470 * configure.in: check for gettimeofday.
1471
1472 * stime.c (scm_time_plus_ticks): new procedure, an scsh interface
1473 which may be more usefully portable than a gettimeofday interface.
1474
1475 Wed Apr 2 17:11:39 1997 Jim Blandy <jimb@totoro.cyclic.com>
1476
1477 * Makefile.am (EXTRA_DIST): It's cpp_err_symbols, not
1478 cpp_err_signals.
1479 * Makefile.in: Regenerated.
1480
1481 Mon Mar 31 03:22:37 1997 Gary Houston <ghouston@actrix.gen.nz>
1482
1483 * stime.c (filltime): recovered static procedure.
1484 (scm_localtime, scm_gmtime, scm_mktime, scm_tzset): recovered from
1485 an earlier Guile.
1486
1487 * posix.h: add prototype for scm_close_pipe, remove prototypes for
1488 scm_open_input_pipe, scm_open_output_pipe, change scm_mknod prototype.
1489
1490 * posix.c (scm_mknod): split the mode argument into type and perms
1491 arguments, like the extra fields returned by stat.
1492
1493 * fports.c (scm_pipob): set the close, free and print procedures.
1494 (scm_close_pipe): new procedure.
1495
1496 * posix.c (scm_open_input_pipe, scm_open_output_pipe): deleted,
1497 define them in boot-9.scm
1498
1499 Wed Mar 26 04:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
1500
1501 * ioext.c (scm_setfileno): throw a runtime error if SET_FILE_FD_FIELD
1502 wan't defined. Don't include fd.h.
1503
1504 * Previously fd.h was regenerated whenever configure was run,
1505 forcing a couple of files to be recompiled.
1506
1507 * fd.h.in: deleted, SET_FILE_FD_FIELD moved to ioext.c.
1508 * configure.in: AC_DEFINE FD_SETTER instead of HAVE_FD_SETTER.
1509 Check for _fileno as well as _file.
1510 Don't output fd.h.
1511 * ioext.c: don't fd.h.
1512 * acconfig.h: remove duplicate HAVE_FD_SETTER and change the
1513 other to FD_SETTER.
1514
1515 * Change the stratigy for getting information about errno
1516 (and now signal number) values, e.g., ENOSYS, SIGKILL. Instead of
1517 generating lists of symbols during the build process, which will
1518 not always work, include comprehensive lists in the distribution.
1519 To help keep the lists up to date, the "check_signals" and
1520 "check_errnos" make targets can be used.
1521
1522 * configure.in: don't check for a command to extract errno codes.
1523 * Makefile.am: update file lists, remove errnos.list and errnos.c
1524 targets, add cpp_err_symbols.c, cpp_sig_symbols.c, check_signals,
1525 check_errnos targets.
1526 (CLEANFILES): remove errnos.c and errnos.list, add
1527 cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new
1528 cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
1529 * errnos.default: deleted.
1530 * cpp_signal.c: new file.
1531 * cpp_errno.c: renamed from errnos_get.c.
1532 * cpp_err_symbols, cpp_sig_symbols: new files.
1533 * cpp_cnvt.awk: renamed from errnos_cnvt_awk.
1534 * error.c (scm_init_error): #include cpp_err_symbols instead of
1535 errnos.c.
1536 * posix.c (scm_init_posix): don't intern signal symbols. #include
1537 cpp_sig_symbols.c.
1538
1539 Tue Mar 25 04:51:10 1997 Gary Houston <ghouston@actrix.gen.nz>
1540
1541 * strop.c (scm_i_index): allow the lower bound to be equal to the
1542 length of the string, so a null string doesn't always give an error.
1543
1544 * posix.h: new prototypes.
1545 * posix.c (scm_status_exit_val, scm_status_term_sig,
1546 scm_status_stop_sig): new functions, as in scsh. They break down
1547 process status values as returned by waitpid.
1548
1549 Sat Mar 22 18:16:29 1997 Gary Houston <ghouston@actrix.gen.nz>
1550
1551 * net_db.c (scm_gethost): don't check HAVE_GETHOSTENT, since
1552 configure doesn't know about it.
1553
1554 Fri Mar 21 23:49:28 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1555
1556 * snarf.h, backtrace.c: Name change SCM_GLOBAL --> SCM_VCELL.
1557
1558 * snarf.h: Added new macros SCM_GLOBAL_SYMBOL and SCM_GLOBAL_VCELL
1559 which defines C variables with global linkage.
1560
1561 Mon Mar 17 05:57:11 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1562
1563 * snarf.h (SCM_PROC1): Bugfix: Use (void) rather than (...) for
1564 zero arg subrs.
1565
1566 Sun Mar 16 11:43:49 1997 Mikael Djurfeldt <mdj@floss.cyclic.com>
1567
1568 * eval.c (safe_setjmp): Temporarily use old setjmp until someone
1569 has time to check why this doesn't work well with continuations.
1570
1571 Sun Mar 16 05:09:55 1997 Jim Blandy <jimb@totoro.cyclic.com>
1572
1573 * Fix shell syntax error; some shells won't tolerate
1574 multiple "fi" statements on a single line. (Thanks to Fred Fish.)
1575
1576 Sat Mar 15 01:11:40 1997 Gary Houston <ghouston@actrix.gen.nz>
1577
1578 * posix.c (scm_uname): throw an error if uname fails instead
1579 of returning errno.
1580
1581 * error.h (scm_errno, scm_perror): obsolete prototypes removed.
1582
1583 * error.c (err_head, scm_errno, scm_perror): obsolete procedures
1584 removed.
1585
1586 * async.c (scm_ints_disabled): definition moved from error.c.
1587
1588 Sat Mar 15 00:06:08 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1589
1590 * acconfig.h: Removed PACKAGE.
1591
1592 * scmconfig.h.in: Regenerated.
1593
1594 * snarf.h: g++ says it's non-portable not to specify the first
1595 argument in a varargs declaration. I introduced the first
1596 argument by using preprocessor conditionals.
1597
1598 Thu Mar 13 21:28:25 1997 Gary Houston <ghouston@actrix.gen.nz>
1599
1600 * ioext.c (scm_read_delimited_x): use RO string macros for delims.
1601 (scm_freopen): use RO string macros for filename and modes.
1602 (scm_duplicate_port, scm_fdopen): use RO string macros for modes.
1603
1604 * posix.c (scm_getgrgid): simplify conversion of name to C string.
1605 (scm_mknod): use RO string macros for path.
1606
1607 * socket.c (scm_fill_sockaddr, scm_send, scm_sendto):
1608 use SCM_ROSTRINGP, SCM_ROCHARS, SCM_ROLENGTH.
1609
1610 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
1611 use SCM_ROSTRINGP and SCM_ROCHARS.
1612
1613 Thu Mar 13 18:31:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1614
1615 * unif.c (scm_array_set_x): Cast ICHR (obj) to char if storing in
1616 a scm_tc7_byvect.
1617
1618 * ramap.c (scm_ra_matchp, scm_array_fill_int, racp,
1619 scm_array_index_map_x, raeql_1, scm_array_equal_p): Completed
1620 support for byte vectors.
1621
1622 * print.c (scm_iprin1): Limit number of vector elements printed
1623 according to pstate->length.
1624
1625 Thu Mar 13 00:12:35 1997 Gary Houston <ghouston@actrix.gen.nz>
1626
1627 * backtrace.c (scm_display_error_message): don't segv if message
1628 is an immediate.
1629
1630 * error.h: prototype for scm_error_scm.
1631
1632 * error.c (scm_error_scm): new procedure, reimplements scm-error
1633 in C and uses scm_error.
1634
1635 Tue Mar 11 03:51:00 1997 Gary Houston <ghouston@actrix.gen.nz>
1636
1637 * read.c (scm_read_hash_extend): make scm_read_hash_procedures a
1638 pointer to the Scheme variable read-hash-procedures and intern it
1639 in scm_init_read. Modify scm_read_hash_extend and
1640 scm_get_hash_procedure to use the pointer.
1641
1642 Mon Mar 10 06:28:54 1997 Gary Houston <ghouston@actrix.gen.nz>
1643
1644 * read.h (SCM_N_READ_OPTIONS): increase SCM_N_READ_OPTIONS to 4.
1645 (SCM_KEYWORD_STYLE): defined.
1646
1647 * read.c (scm_read_opts): add a keywords option. This isn't a
1648 boolean option, in case someone wants to add support for DSSSL
1649 keywords too.
1650 Setup scm_keyword_prefix symbol.
1651 (scm_lreadr): Only process keywords if SCM_KEYWORD_STYLE is
1652 set to 'prefix.
1653 I've left keyword support disabled by default, since it doesn't
1654 seem to break the module system and it gives R4RS standard behaviour.
1655 It can be reactivated with (read-set! keywords 'prefix).
1656
1657 Sun Mar 9 14:14:39 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1658
1659 * arbiters.c (scm_make_arbiter): Bugfix: Must SCM_DEFER_INTS
1660 before constructing arbiter.
1661
1662 * eval.c (scm_m_define): Bugfix: Check that the object is a
1663 closure before setting the procedure property!
1664
1665 * ports.h: Removed prototype for scm_ungetc_char_ready_p.
1666
1667 * ports.c: Removed `ungetc-char-ready?'.
1668
1669 Sat Mar 8 00:27:05 1997 Gary Houston <ghouston@actrix.gen.nz>
1670
1671 * read.c (scm_init_read): intitialise scm_read_hash_procedures
1672 (idea from Mikael: make it a pair so scm_permanent object only
1673 called once.)
1674 (scm_read_hash_extend): don't call scm_permanent_object.
1675 (ideas from Mikael): if chr is already in the list, replace its
1676 procedure instead of appending it again. If proc is #f, remove
1677 it from the list.
1678 (scm_get_hash_procedure): take CDR of scm_read_hash_procedures.
1679
1680 * strports.c (scm_read_0str, scm_eval_0str): update scm_read usage.
1681
1682 * gdbint.c (gdb_read): update scm_lreadr usage.
1683
1684 * load.h: update prototypes.
1685
1686 * load.c (scm_primitive_load, scm_read_and_eval_x,
1687 scm_primitive_load_path): remove case_insensitive_p, sharp arguments.
1688
1689 * read.h: add prototype for scm_read_hash_extend. Change args for
1690 other prototypes.
1691
1692 * read.c (scm_read_hash_procedures): new variable.
1693 (scm_read_hash_extend): new procedure.
1694 (scm_get_hash_procedure): new procedure.
1695 (scm_lreadr): use scm_get_hash_procedure instead of an argument
1696 for extended # processing.
1697 (scm_read, scm_lreadr, scm_lreadrecparen, scm_lreadparen,
1698 scm_read_token): remove case_i, sharp arguments. Change callers.
1699
1700 Fri Mar 7 08:58:21 1997 Gary Houston <ghouston@actrix.gen.nz>
1701
1702 * read.h (SCM_N_READ_OPTIONS): increase to 3.
1703 (SCM_CASE_INSENSITIVE_P): define.
1704
1705 * read.c: add case-insensitive option to scm_read_opts.
1706 (scm_read_token): use SCM_CASE_INSENSITIVE_P instead of an argument
1707 to determine whether to convert symbol case.
1708 (default_case_i): definition removed.
1709 * read.c (scm_read_token): if case_i, downcase ic before doing
1710 anything with it.
1711
1712 Sat Mar 8 03:49:03 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1713
1714 * configure.in: Added configuration option `guile-debug'.
1715 Configure with --enable-guile-debug if you want a bunch of extra
1716 functions used for debugging when developing Guile.
1717
1718 * acconfig.h: Added new preprocessor symbol GUILE_DEBUG.
1719
1720 * procs.c (make-cclo): New undocumented debugging procedure: Make
1721 compiled closure with internal procedure PROC and length LENGTH.
1722 Only compiled if GUILE_DEBUG is defined.
1723
1724 * debug.c: Only include `debug-hang' if GUILE_DEBUG is defined.
1725
1726 * print.c: Put #ifdef GUILE_DEBUG around `current-pstate'.
1727
1728 * ports.c: Changed preprocessor symbol DEBUG --> GUILE_DEBUG.
1729
1730 * eval.c (SCM_CEVAL): Added code sections for handling of rpsubrs
1731 with 3 or more args internally to the evaluator.
1732
1733 Fri Mar 7 19:38:18 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1734
1735 * eval.c (SCM_CEVAL): Added code sections for handling of asubrs
1736 with 3 or more args internally to the evaluator. This is mainly
1737 because we don't want to pass entry and exit points of the
1738 debug support twice, but it also seems to increase the speed of
1739 the evaluator for such calls (e. g. (+ 1 2 3)).
1740
1741 * backtrace.c (scm_display_application): New procedure:
1742 display-application; Set fancy printing parameters individually
1743 for different types of display (backtrace, error, application).
1744 (These should of course be customizable!)
1745
1746 * debug.h (SCM_RESET_DEBUG_MODE): Bugfix: The old code didn't
1747 clear the CHECK-flags.
1748
1749 Thu Mar 6 00:53:02 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1750
1751 * tags.h, eval.c (iqq): Fixes to comments about SCM_ECONSP.
1752
1753 Wed Mar 5 23:31:21 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1754
1755 * tags.h (SCM_ECONSP, SCM_NECONSP): Bugfix: Discriminate structs
1756 from pairs with a GLOC in the car.
1757
1758 * symbols.c (msymbolize): Bugfix: Also initialize SCM_SYMBOL_HASH,
1759 otherwise `symbol-hash' will behave badly.
1760 (scm_symbol_hash): Bugfix: Must msymbolize if tc7_ssymbol, othwise
1761 we get segmentation fault!
1762
1763 * symbols.c: Added #include "weaks.h". New functions:
1764 `builtin-bindings' and `builtin-weak-bindings'. (These will be
1765 moved to an extraneous library when we split libguile.)
1766
1767 Tue Mar 4 19:50:07 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1768
1769 * filesys.c (scm_stat): stat now takes fport arguments too as
1770 documented in the manual.
1771
1772 Mon Mar 3 07:11:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1773
1774 * debug.c (scm_single_step): Bugfix: Call continuation with
1775 scm_call_continuation instead of throwing to it.
1776
1777 Mon Mar 3 09:07:56 1997 Gary Houston <ghouston@actrix.gen.nz>
1778
1779 * ports.c (scm_char_ready_p): bug fix: in SCM_PROC char-ready's
1780 argument wasn't declared to be optional.
1781
1782 Sun Mar 2 16:34:40 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1783
1784 * stime.c (scm_init_stime): Add feature "current-time".
1785
1786 Sun Mar 2 06:37:31 1997 Gary Houston <ghouston@actrix.gen.nz>
1787
1788 * throw.h: prototype for scm_exit_status.
1789 * throw.c (scm_handle_by_message): if a 'quit is caught, use its
1790 args to derive an exit status. Allows (quit) to work from a
1791 script.
1792 (scm_exit_status): new function.
1793 #include "eq.h".
1794
1795 Sat Mar 1 00:09:15 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1796
1797 * eval.c (scm_deval): Removed some old code.
1798 (ENTER_APPLY): Bugfix: Reset apply-frame trap on trap as is done
1799 with the others.
1800 (ENTER_APPLY, scm_deval): Reset trace flag on apply-frame and
1801 exit-frame traps.
1802
1803 * symbols.c (msymbolize): Bugfix: Must initialize property list to
1804 SCM_EOL.
1805
1806 * procs.c: Introduce the existent C function scm_thunk_p at the
1807 Scheme level as well.
1808
1809 Wed Feb 26 12:53:58 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1810
1811 * symbols.c, symbols.h (scm_symbol_value0): New function. Can be
1812 used from C to easily lookup the value of a symbol in the current
1813 module.
1814
1815 Tue Feb 25 00:14:10 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1816
1817 * unif.c (scm_init_unif): Added #include "unif.x". (There are two
1818 scm_init_unif in this file. This will also fix a previous problem
1819 with guile-snarf.)
1820
1821 * configure.in: Added AM_MAINTAINER_MODE
1822
1823 Fri Feb 21 23:07:26 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1824
1825 * gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to
1826 avoid warnings.
1827
1828 Fri Feb 21 18:00:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
1829
1830 * Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
1831 source files that are not always included in libguile but should
1832 have their dependencies calculated by automake. This variable is
1833 recognized by automake, no further magic is needed.
1834 (libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@. Libtool wants
1835 to deal exclusively with *.lo files, as it seems. The *.o files
1836 are built automatically when the corresponding *.lo file gets
1837 built.
1838
1839 Wed Feb 19 14:04:23 1997 Jim Blandy <jimb@floss.cyclic.com>
1840
1841 * list.h (scm_list_cdr_ref): Delete prototype; function no longer
1842 exists.
1843
1844 Thu Feb 13 21:44:07 1997 Gary Houston <ghouston@actrix.gen.nz>
1845
1846 * unif.c (scm_array_set_x): minor change to argument error checking.
1847
1848 Tue Feb 11 18:19:47 1997 Jim Blandy <jimb@floss.cyclic.com>
1849
1850 * Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
1851 inet_aton.c, srcprop.c, stacks.c, and strerror.c from this list.
1852 They should only be included in the library at configure.in's
1853 discretion.
1854 (libguile_la_LDADD): Include the appropriate .lo files here.
1855 (libguile_la_DEPENDENCIES): List the corresponding .o files here,
1856 so we know when to build them (and their .lo bretheren).
1857 * configure.in (LIBLOBJS): New substituted variable. We let
1858 configure decide which .o files to include in LIBOBJS, and then
1859 put the corresponding list of .lo files in LIBLOBJS. The latter
1860 is what we pass to libtool.
1861 * Makefile.in, configure: regenerated.
1862
1863 Mon Feb 10 00:08:08 1997 Mikael Djurfeldt <mdj@kenneth>
1864
1865 * symbols.c (scm_sysintern0): New function. Contains the core of
1866 old scm_sysintern but doesn't take a second value argument.
1867 (scm_sysintern): Now uses scm_sysintern0.
1868 (scm_sysintern_no_module_lookup): Renamed to
1869 scm_sysintern0_no_module_lookup and doesn't take a second value
1870 argument any longer.
1871
1872 * symbols.h (scm_sysintern0: Added declaration.
1873
1874 * options.c (scm_init_opts): Use scm_sysintern0 instead of
1875 scm_sysintern when interning option keys. Otherwise we risk
1876 destroying the values of already interned variables.
1877
1878 * symbols.c (scm_sym2vcell): Bugfix: Treat definedp as
1879 scheme-level boolean (use SCM_NFALSEP).
1880
1881 * backtrace.c (scm_init_backtrace): Make Scheme-level variable
1882 `the-last-stack'.
1883 (scm_backtrace): New function. (C version of old function from
1884 boot-9.scm) Motivation: Make it possible to display backtraces
1885 without depending on boot-9.scm. (I'm uncertain if this
1886 motivation is good enough...)
1887
1888 * root.h (scm_root_state): Add member the_last_stack_var.
1889 (scm_the_stack_var): Defined to scm_root->the_last_stack_var.
1890
1891 * root.c (mark_root): Mark scm_the_last_stack_var.
1892
1893 * init.c (scm_start_stack): Initialize scm_the_last_stack_var to
1894 SCM_BOOL_F.
1895
1896 Sun Feb 9 18:04:41 1997 Mikael Djurfeldt <mdj@kenneth>
1897
1898 * throw.c (mark_lazy_catch, free_lazy_catch): Removed.
1899 1. mark_lazy_catch didn't mark the smob.
1900 2. Both functions above have standard variants:
1901 (lazy_catch_funs): Changed mark_lazy_catch --> scm_mark0,
1902 free_lazy_catch --> scm_free0.
1903
1904 Fri Feb 7 17:30:26 1997 Jim Blandy <jimb@floss.cyclic.com>
1905
1906 * throw.c (scm_internal_lazy_catch): New function.
1907 (scm_lazy_catch): Rewritten to use it.
1908 (scm_ithrow): Handle the new lazy catch representation.
1909 Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
1910 that doesn't have a jmpbuf is a lazy catch clause.
1911 (tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
1912 free_lazy_catch, print_lazy_catch, lazy_catch_funs,
1913 make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
1914 smob.
1915 (scm_init_throw): Register the new lazy-catch smob type.
1916 * throw.h (scm_internal_lazy_catch): decl for new function.
1917
1918 * throw.c (scm_internal_catch): Doc fixes.
1919
1920 * alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
1921 configure.in. Including this might cause problems if applications
1922 that link against libguile include their own copies of alloca, but
1923 if they're using autoconf, they should be adding libguile to LIBS
1924 before calling AC_FUNC_ALLOCA anyway, in which case they'll find
1925 the copy in libguile, and things will be okay. (I think.)
1926
1927 Thu Feb 6 03:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
1928
1929 * strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
1930 unif.c.
1931 strop.h: move prototypes too.
1932
1933 Wed Feb 5 08:33:00 1997 Gary Houston <ghouston@actrix.gen.nz>
1934
1935 * posix.c (scm_init_posix): don't intern EINTR since it's now done
1936 elsewhere.
1937
1938 * ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR
1939 etc. I deleted them from filesys.c long ago, but didn't
1940 notice they were here too (although ineffective since
1941 sys/stat.h wasn't included).
1942
1943 Tue Feb 4 18:17:50 1997 Tom Tromey <tromey@cygnus.com>
1944
1945 * eval.c: Don't define alloca in GCC case. gcc will automatically
1946 use __builtin_alloca if appropriate.
1947
1948 Tue Feb 4 16:57:40 1997 Jim Blandy <jimb@floss.cyclic.com>
1949
1950 * eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
1951 (SCM_CEVAL, SCM_APPLY): Call it, instead of setjmp, to make sure
1952 that values of automatic variables are preserved. See comments
1953 for safe_setjmp for details.
1954
1955 Change from Thomas Morgan:
1956 * variable.c: Include eq.h.
1957 (var_equal): New function.
1958 (variable_smob): Use var_equal as the discriminator for variables.
1959
1960 * throw.c (s_throw): Remove extraneous declaration.
1961
1962 * configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
1963 * eval.c: Add necessary CPP cruft to support that.
1964 * configure, Makefile.in, scmconfig.h.in: regenerated.
1965
1966 Change from Thomas Morgan:
1967 * procprop.c (scm_procedure_properties): Convert the Scheme
1968 boolean returned by scm_procedure_p into a C boolean before using
1969 it as a condition for SCM_ASSERT.
1970 (scm_procedure_property): Likewise.
1971
1972 * simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
1973 indications of Unixness.
1974 * stime.c: Same.
1975
1976 Tue Feb 4 05:07:35 1997 Gary Houston <ghouston@actrix.gen.nz>
1977
1978 * net_db.c (scm_lnaof): change scheme name from lnaof to inet-lnaof.
1979
1980 Mon Feb 3 06:12:37 1997 Gary Houston <ghouston@actrix.gen.nz>
1981
1982 * read.c (scm_lreadr): use scm_misc_error to improve one of the
1983 "unknown # object" error messages.
1984
1985 * strop.c (scm_i_index, scm_i_rindex): combine into one procedure
1986 (scm_i_index) and declare it static. Add a 'direction' argument
1987 to indicate what way the search should go.
1988 (scm_i_index): throw out-of-range error instead of wrong-type-arg
1989 if indices are bad.
1990 (scm_string_index, scm_string_rindex): adjust usage of scm_i_index.
1991 strop.h: remove scm_i_index, scm_i_rindex prototypes.
1992
1993 Fri Jan 31 04:33:11 1997 Gary Houston <ghouston@actrix.gen.nz>
1994
1995 * ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.
1996
1997 * posix.c (scm_fork): Scheme name changed from fork to primitive-fork,
1998 to avoid clash with various scsh forks.
1999
2000 Thu Jan 30 20:14:09 1997 Mikael Djurfeldt <mdj@syk-0606.pdc.kth.se>
2001
2002 The following two changes (ramap.c, throw.c) are motivated by the
2003 apparent unportability of forward declarations of static arrays of
2004 the form `static foo bar[];'.
2005
2006 * ramap.c (scm_array_fill_x): Moved above scm_array_fill_int.
2007 (ra_rpsubrs, ra_asubrs): Moved to the top of array code.
2008
2009 * throw.c (scm_throw): Moved above scm_ithrow.
2010
2011 * options.h: Removed the extern declarations of scm_yes_sym and
2012 scm_no_sym since these are static.
2013
2014 Fri Jan 24 06:16:32 1997 Gary Houston <ghouston@actrix.gen.nz>
2015
2016 * ports.c: add SCM_PROC declarations for pt-size and pt-member.
2017
2018 * Makefile.am: remove AWK=@AWK@.
2019 Add a rule for generating errnos.list.
2020 (CLEANFILES): put errnos.list here instead of in DISTCLEANFILES.
2021
2022 * configure.in: add AC_SUBST(AWK) and AC_SUBST(ERRNO_EXTRACT).
2023 don't extract errnos, just set a variable (avoids the
2024 need to recompile error.c just because configure is run.)
2025
2026 * unif.h: update prototypes.
2027 * unif.c (scm_uniform_array_read,write): change the offset and
2028 length arguments to start and end, for consistency.
2029
2030 * __scm.h: uncomment SCM_ARG6 and SCM_ARG7, I needed SCM_ARG6.
2031
2032 * ioext.h: update prototypes.
2033 * ioext.c (scm_read_delimited_x): replaces scm_read_line and
2034 scm_read_line_x, it's a more general procedure using an
2035 interface from scsh. read-line and read-line! are now defined
2036 in boot-9.scm.
2037 Note that the new read-line trims the terminator
2038 by default, previously it was appended to the returned string. An
2039 optional argument specifies how to process the terminator (scsh
2040 compatible). For the old behaviour: (read-line port 'concat).
2041 scm_read_line, scm_read_line_x: deleted. (read-line port 'split)
2042 returns a pair, but is converted to multiple values if the scsh
2043 module is loaded.
2044
2045 socket.h: update prototypes.
2046 * socket.c (scm_recvfrom): for consistency with other procedures,
2047 take start and end as separate optional arguments.
2048 (scm_recv, scm_recvfrom): don't allow the second argument
2049 to be a size, only a buffer. Change the scheme names to
2050 recv! and recvfrom!. Don't return the buffer.
2051
2052 * ioext.h, posix.h: move prototypes too.
2053 * ioext.c, posix.c (scm_read_line, scm_read_line_x, scm_write_line:
2054 moved back from posix.c to ioext.c. Also move #includes of "genio.h"
2055 "read.h" and "unif.h".
2056 * ioext.c: include "chars.h"
2057
2058 Mon Jan 20 19:54:49 1997 Marius Vollmer <mvo@zagadka.ping.de>
2059
2060 * dynl.c: The dynamic linking and module registration functions
2061 are now defined even when dynamic linking is not available for the
2062 host system. Some of their functionality can be done without
2063 dynamic linking; when it's really needed, they throw errors.
2064
2065 Thu Jan 16 16:39:29 1997 Marius Vollmer <mvo@zagadka.ping.de>
2066
2067 * configure.in: Only define DYNAMIC_LINKING when one of the system
2068 dependent functions is detected.
2069 * dynl.c (scm_dynamic_func): New function to get the address of a
2070 function in a dynamic object.
2071 (scm_dynamic_call, scm_dynamic_args_call): Accept the values
2072 produced by scm_dynamic_func as the thing to call.
2073
2074 Sun Jan 12 21:09:42 1997 Marius Vollmer <mvo@zagadka.ping.de>
2075
2076 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c: Restructured.
2077 (scm_register_module_xxx, scm_registered_modules,
2078 scm_clear_registered_modules): New functions.
2079
2080 Sat Jan 11 21:37:15 1997 Marius Vollmer <mvo@zagadka.ping.de>
2081
2082 * symbols.c (scm_sysintern): Renamed to
2083 scm_sysintern_no_module_lookup.
2084 (scm_sysintern): New function to take the place of the old
2085 scm_sysintern. It uses the current toplevel lookup closure to give
2086 the symbol its value. This is a temporary hack to put packages
2087 like gtcltk into their own module.
2088 (scm_can_use_top_level_lookup_closure_var): New variable to tell
2089 us whether `scm_top_level_lookup_closure_var' has been initialized
2090 and is usable.
2091 * eval.c (scm_init_eval): Set it.
2092
2093 Sat Jan 18 00:03:31 1997 Gary Houston <ghouston@actrix.gen.nz>
2094
2095 * fports.c (scm_open_file): pass errno to scm_syserror_msg.
2096 * filesys.h: update prototypes. Remove macros: SCM_FD_P, SCM_FD_FLAGS,
2097 SCM_FD.
2098 * filesys.c (scm_sys_stat, scm_sys_lstat): pass errno to
2099 scm_syserror_msg.
2100 (scm_sys_read_fd, scm_sys_write_fd, scm_sys_close, scm_sys_lseek,
2101 scm_sys_dup): deleted: FD capability will be added to other
2102 procedures.
2103 Remove support for the FD object type: scm_tc16_fd, scm_fd_print,
2104 scm_fd_free, fd_smob, scm_intern_fd.
2105 (scm_open): renamed from scm_sys_open. Return a port instead of
2106 an FD object. Make the mode argument optional.
2107 (scm_sys_create): deleted, it's just a special case of open.
2108 (scm_init_filesys): move interning of constants O_CREAT etc.,
2109 here (were previously using SCM_CONST_LONG macro).
2110 Add missing constants: O_RDONLY, O_WRONLY, O_RDWR, O_CREAT.
2111 don't newsmob fd.
2112 (numerous _sys_ procedures): remove gratuitous _sys_ from names.
2113 include "fports.h" and <stdio.h>
2114 (scm_stat, scm_select): don't support FD objects.
2115
2116 * error.h: adjust scm_syserror_msg prototype.
2117 * error.c (scm_syserror_msg): take an extra argument for errno.
2118 Using the global value didn't always work, since it could be
2119 reset by procedure calls in the message or args arguments.
2120
2121 * fports.c (scm_setbuf0): call setbuf even if FIONREAD is not defined.
2122 I don't understand why the check was there (and what about the
2123 ultrix check?)
2124
2125 * strop.c (scm_string_copy): allow shared substrings to be copied.
2126
2127 * unif.h: corresponding change to prototypes.
2128 * unif.c (scm_uniform_array_read_x, scm_uniform_array_write_x):
2129 recognize two new optional arguments: offset and length. Allow
2130 the port argument to be an integer (file descriptor, for scsh).
2131 Include <unistd.h> for "read" prototype.
2132
2133 Tue Jan 14 02:42:02 1997 Gary Houston <ghouston@actrix.gen.nz>
2134
2135 * socket.c: don't include filesys.h.
2136
2137 Mon Jan 13 03:47:04 1997 Gary Houston <ghouston@actrix.gen.nz>
2138
2139 * Makefile.am: add AWK=@AWK@ (?)
2140
2141 * Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
2142 errnos_get.c.
2143 Add a rule to generate errnos.c from errnos.
2144 * error.c (scm_init_error): include errnos.c.
2145 * errnos_cnvt.awk: new file, converts the list of errno codes to
2146 C expressions.
2147 * errnos_get.c: new file.
2148 * errnos.default: new file, contains errnos to try if they can't
2149 be extracted from errno.h.
2150 * configure.in: if using GCC, try and extract errno codes from
2151 errno.h.
2152 Added AC_PROG_AWK.
2153
2154 Sat Jan 11 14:47:00 1997 Marius Vollmer <mvo@zagadka.ping.de>
2155
2156 * configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
2157 * Makefile.am: Made libguile into a libtool library.
2158 * PLUGIN/guile.config: Removed "-L ../libguile" from xtra_cflags.
2159 Set libtool_libs to indicate that libguile is a libtool library.
2160 See guile/ChangeLog for details.
2161 * .cvsignore: ignore "*.lo", the libtool library objects.
2162
2163 Wed Jan 8 06:54:54 1997 Gary Houston <ghouston@actrix.gen.nz>
2164
2165 * net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
2166 use htons in getservbyport argument.
2167
2168 Tue Jan 7 18:11:24 1997 Jim Blandy <jimb@floss.cyclic.com>
2169
2170 * ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
2171 * smob.h: (SCM_PTOBNUM): Removed entirely; this definition is a
2172 duplicate.
2173
2174 * objprop.c (scm_object_property): No need to take the CDR of the
2175 value returned by scm_object_properties, since Aug 20 change.
2176
2177 * configure.in: When checking for struct linger, #include
2178 <sys/types.h> as well as <sys/socket.h>. I've never known
2179 <sys/types.h> to cause any portability problems, and Solaris's
2180 <sys/socket.h> needs it.
2181 * configure: Rebuilt.
2182
2183 I think the Sun compiler has chosen a perverse way to interpret
2184 ANSI declarations combined with K&R definitions. We'll
2185 appease it a little bit. But when it invades France, we fight.
2186 * print.c (scm_iprlist): Change 'tlr' argument to an int.
2187 * print.h (scm_iprlist): Here too.
2188 * numbers.c (scm_divbigdig): Change definition to match
2189 declaration in numbers.h.
2190 * unif.c (scm_makflo): Change definition to match declaration in
2191 unif.h.
2192
2193 * init.c (scm_boot_guile): Don't return the value of
2194 scm_boot_guile_1. This function doesn't return a value;
2195 scm_boot_guile_1 doesn't return a value (or return at all).
2196
2197 * eval.c (unmemocopy): Add a semicolon to appease the Sun
2198 compiler.
2199
2200 * simpos.c (SYSTNAME): Add case for AIX; otherwise it won't
2201 compile. I have a feeling this function is a bad idea anyway ---
2202 one should always test for features, not systems.
2203
2204 * smob.h (SCM_SMOBNUM, SCM_PTOBNUM): Remove extraneous
2205 semicolons. Only pure luck kept this from being noticed earlier.
2206
2207 Tue Jan 7 15:04:06 1997 Mikael Djurfeldt <mdj@kenneth>
2208
2209 * socket.c (scm_recvfrom): Added missing semicolon.
2210
2211 Mon Jan 6 20:39:08 1997 Gary Houston <ghouston@actrix.gen.nz>
2212
2213 * socket.c (scm_recvfrom): allow buff_or_size to be a list containing
2214 the buffer and start and end positions for scsh networking
2215 implementation.
2216
2217 Sun Jan 5 13:53:53 1997 Jim Blandy <jimb@floss.cyclic.com>
2218
2219 * configure.in: Revert previous change to this file; the problem
2220 is due to transient automake weirdness.
2221 * configure: Rebuilt.
2222
2223 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in, not
2224 PLUGIN/guile.libs. configure generates the latter from the former.
2225 * Makefile.in: Rebuilt.
2226
2227 * configure.in: Call AM_PROG_INSTALL; the automake manual says we
2228 need this if we install scripts, like guile-snarf.
2229 * configure: Rebuilt.
2230
2231 Thu Jan 2 01:56:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
2232
2233 * Makefile.am (EXTRA_DIST): Added DYNAMIC-LINKING
2234
2235 Sat Dec 28 19:14:01 1996 Gary Houston <ghouston@actrix.gen.nz>
2236
2237 * socket.c (scm_addr_vector): fix faulty scm_listify.
2238
2239 Sat Dec 28 13:55:58 1996 Marius Vollmer <mvo@zagadka.ping.de>
2240
2241 * read.c (scm_lreadr): Encountering EOF after skipping a SCSH
2242 style block comment is no longer considered an error.
2243
2244 Fri Dec 27 13:44:23 1996 Marius Vollmer <mvo@zagadka.ping.de>
2245
2246 * PLUGIN/guile.libs.in: New file.
2247 * PLUGIN/guile.libs: Removed from repository.
2248 * configure.in: Create PLUGIN/guile.libs from
2249 PLUGIN/guile.libs.in. This is for including additonal libraries
2250 needed for dynamic linking.
2251 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in
2252 instead of PLUGIN/guile.libs.
2253
2254 * Makefile.am: Added explicit dependency "dynl.o: dynl.x".
2255
2256 Sun Dec 22 23:06:14 1996 Jim Blandy <jimb@floss.cyclic.com>
2257
2258 * list.c (scm_delq_x, scm_delv_x, scm_delete_x): Delete all
2259 occurrences of the given element from the list, not just the
2260 first. This is how the Emacs Lisp functions behave, how the
2261 analogous Common Lisp functions behave, and (I believe) how the
2262 older Maclisp functions worked. I realize that this change may
2263 break code, but it seemed better to break it before the Guile
2264 release than after.
2265
2266 * gc.c (scm_protect_object, scm_unprotect_object): New functions.
2267 Their prototypes were already present in gc.h, but they weren't
2268 implemented.
2269 (scm_init_storage): Initialize scm_protects.
2270 * root.c (scm_protects): New element of scm_sys_protects.
2271
2272 * net_db.h (scm_init_net_db): Fix spelling from scm_init_netdb.
2273
2274 Sat Dec 21 15:38:32 1996 Jim Blandy <jimb@floss.cyclic.com>
2275
2276 * libguile.h: Added #include "libguile/net_db.h".
2277
2278 * libguile.h: Don't #include "libguile/libpath.h", contrary to Oct
2279 30 change. That file is only meant for communication between the
2280 configuration process and load.c. If code linked against libguile
2281 wants to get at the paths mentioned in libpath.h, it can call
2282 functions declared in load.h.
2283
2284 Sat Dec 21 14:50:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2285
2286 * libguile.h: Removed #include "libguile/fdsocket.h"
2287
2288 * net_db.c: Added #include <sys/socket.h>.
2289
2290 Sat Dec 21 00:33:03 1996 Gary Houston <ghouston@actrix.gen.nz>
2291
2292 * filesys.c (scm_input_waiting_p): use select in preference to
2293 FIONREAD, since the latter doesn't detect EOF.
2294 Throw error if neither select nor FIONREAD available.
2295
2296 * socket.c (scm_connect): take a port, not a fd object.
2297 (scm_fill_sockaddr): throw an error if fam is not recognised.
2298 (scm_bind): use scm_fill_sockaddr.
2299 (scm_listen): take a port, not a fd object.
2300 (scm_accept): take and return a port. return #f in the car if
2301 address can't be got
2302 (scm_sock_fd_to_port): new procedure.
2303 (scm_socket): use scm_sock_fd_to_port.
2304 (scm_addr_vector): throw error if unrecognised address type.
2305 take an extra argument with the calling procedure name.
2306 (scm_getsockname): take a port. return #f if address can't be got.
2307 (scm_getpeername): take a port. return #f if address can't be got.
2308 (scm_recvfrom): take a port. return #f for address component if can't
2309 be got.
2310 (scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
2311 scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
2312
2313 Fri Dec 20 23:06:53 1996 Jim Blandy <jimb@floss.cyclic.com>
2314
2315 * throw.c (scm_internal_catch): Make body funcs and handler funcs
2316 use separate data pointers, to allow them to be designed
2317 independently and reused.
2318 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message):
2319 Renamed from catch_body, catch_handler, and uncaught_throw; made
2320 generically useful.
2321 (struct scm_catch_body_data): Renamed from catch_body_data; moved
2322 to throw.h.
2323 (scm_catch): Use the above.
2324 (scm_throw): Don't bother printing a message for an uncaught
2325 throw; we establish a default handler in init.
2326 * throw.h (scm_internal_catch): Prototype updated.
2327 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message): New
2328 decls.
2329 (struct scm_body_thunk_data): New structure, used as data
2330 argument to scm_body_thunk.
2331 * init.c (struct main_func_closure): New structure, packaging up
2332 the data to pass to the user's main function.
2333 (scm_boot_guile): Create one. Pass it to scm_boot_guile_1.
2334 (scm_boot_guile_1): Pass it through to invoke_main_func. Use
2335 scm_internal_catch to establish a catch-all handler, using
2336 scm_handle_by_message. This replaces the special-case code in
2337 scm_throw.
2338 (invoke_main_func): Body function for scm_internal_catch; invoke
2339 the user's main function, using the main_func_closure pointer to
2340 decide what to pass it.
2341 * root.c (struct cwdr_body_data): Remove handler_proc member.
2342 (cwdr): Use scm_handle_by_proc instead of cwdr_handler.
2343 (cwdr_handler): Removed.
2344
2345 Thu Dec 19 00:00:26 1996 Gary Houston <ghouston@actrix.gen.nz>
2346
2347 * socket.h (SCM_P): update bind prototype.
2348 * socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
2349 include "feature.h".
2350 (scm_socket): return a port, not a file descriptor object.
2351 include "fports.h" and <unistd.h>
2352 (scm_bind): take a port, not a file descriptor object.
2353 take an extra argument for address args.
2354
2355 * net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
2356 INADDR_NONE, INADDR_LOOPBACK.
2357
2358 Tue Dec 17 22:58:26 1996 Gary Houston <ghouston@actrix.gen.nz>
2359
2360 * init.c: include net_db.h and not fdsocket.h.
2361 (scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
2362
2363 * Makefile.am: corresponding changes.
2364 * socket.h: renamed from fdsocket.h, fix names.
2365 * net_db.h: renamed from socket.h, fix names.
2366 * socket.c: renamed from fdsocket.c.
2367 remove _sys from procedure names.
2368 (scm_init_socket): rename from scm_init_fdsocket. include socket.x.
2369 add "socket" to features list.
2370 * net_db.c: renamed from socket.c.
2371 remove _sys from procedure names.
2372 (scm_init_net_db): rename from scm_init_socket. include net_db.x.
2373 add "net-db" to features list.
2374 include "net_db.h". don't include <sys/socket.h> or
2375 <sys/un.h>.
2376
2377 Thu Dec 19 14:03:24 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2378
2379 * tags.h (scm_tags): Removed comma at end of last enumerator.
2380
2381 Thu Dec 19 02:54:59 1996 Jim Blandy <jimb@floss.cyclic.com>
2382
2383 Don't use GCC extensions to allocate space for debugging frames.
2384 (Here he goes again! Why do we put up with this?!)
2385 * debug.h (scm_debug_frame): Make the 'vect' member a pointer to
2386 an scm_debug_info structure, not an in-line array of them. Add
2387 'info' member, to say how many vect elements we've used, for eval
2388 frames.
2389 * eval.c (SCM_CEVAL): Use alloca to allocate space for vect. Use
2390 a new variable debug_info_end to mark the end of vect, instead of
2391 the address of the 'info' pointer itself.
2392 [DEVAL] (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Remove casts of
2393 &debug to scm_debug_frame *; debug is a real scm_debug_frame now.
2394 (SCM_APPLY): Explicitly allocate space for debug.vect.
2395 * debug.c (scm_m_start_stack): Same, for vframe.vect.
2396 * stacks.c: Adjusted for new debug frame structure.
2397 (RELOC_INFO, RELOC_FRAME): New macros.
2398 (stack_depth, read_frames): Use them, and new scm_debug_frame
2399 element 'info', instead of magically knowing that eval frames have
2400 an info pointer sitting after vect.
2401 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Use
2402 RELOC_FRAME.
2403 (scm_init_stacks): Formatting tweaks.
2404
2405 Wed Dec 18 14:57:57 1996 Jim Blandy <jimb@floss.cyclic.com>
2406
2407 Give GCC more control flow information, so it can be sure that
2408 variables aren't used uninitialized.
2409 * error.h (scm_error, scm_syserror, scm_syserror_msg,
2410 scm_sysmissing, scm_num_overflow, scm_out_of_range,
2411 scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
2412 scm_misc_error): Tell GCC that these functions never return.
2413 * struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
2414 out the field type, call abort if SCM_ASSERT returns, to placate
2415 the optimizer.
2416 * stacks.c (scm_make_stack, scm_last_stack_frame): abort if
2417 scm_wta ever returns. We can't handle this case anyway, and this
2418 gives the optimizer more information.
2419 * unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
2420 scm_wta ever returns.
2421
2422 In some cases, the code is fine, but GCC isn't smart enough to
2423 figure that out; this usually happens when one variable is only
2424 initialized and used when a particular condition holds true, and
2425 we know that condition will never change within a given invocation
2426 of the function. In this case, we simply initialize the variables
2427 to placate the compiler, hopefully to a value which will cause a
2428 crash if it is ever actually used.
2429 * print.c (scm_iprin1): Initialize mw_pos.
2430 * read.c (scm_lreadrecparen): Initialize tl2, ans2.
2431 * throw.c (scm_ithrow): Initialize dynpair.
2432 * unif.c (scm_uniform_vector_ref): Initialize cra.
2433 * struct.c (init_struct): Initialize prot.
2434 * mbstrings.c (scm_print_mb_symbol): Initialize mw_pos and inc.
2435
2436 * strports.c (scm_eval_0str): Don't return uninitialized garbage
2437 if EXPR contains no expressions.
2438
2439 Wed Dec 18 11:43:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
2440
2441 * eval.c, debug.h: Revert changes of Dec 16 and Nov 21. They
2442 cause an infinite loop (???). So much for the algebraic
2443 equivalency of variable-sized arrays and alloca...
2444
2445 Tue Dec 17 20:29:03 1996 Marius Vollmer <mvo@zagadka.ping.de>
2446
2447 * backtrace.c (scm_display_error): Bugfix: scm_procedure_p returns
2448 a SCM boolean, not a C boolean.
2449
2450 Sat Dec 14 23:21:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
2451
2452 * gc.c (SCM_MTRIGGER_HYSTERESIS): New memory management parameter.
2453 (scm_must_malloc, scm_must_realloc): Added a hysteresis to the
2454 rules for raising scm_mtrigger. Previously, unfortunate but not
2455 unlikely circumstances could result in almost constant invokation
2456 of the gc. Now, this situations should be less likely, but they
2457 are not prevented completely.
2458
2459 Tue Dec 17 16:19:07 1996 Jim Blandy <jimb@totoro.cyclic.com>
2460
2461 * numbers.c (scm_fuck): Procedure removed; looks like old test
2462 code.
2463 * numbers.h: Prototype removed.
2464
2465 Mon Dec 16 18:20:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
2466
2467 * debug.h (scm_debug_frame): Change `vect' member from an in-line
2468 array to a pointer, to match my Nov 21 change in eval.c.
2469
2470 Fri Dec 13 16:12:14 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2471
2472 * libguile.h: Added #include "libguile/backtrace.h", #include
2473 "libguile/stacks.h".
2474
2475 * strings.c (scm_string scm_make_string scm_string_ref
2476 scm_string_set_x scm_string_equal_p scm_string_append):
2477 Bugfix according to scm patch from Aubrey Jaffer:
2478 Corrected long-standing
2479 (not (eqv? (integer->char 128)
2480 (string-ref (make-string 1 (integer->char 128)) 0)))
2481 bug found by John Kozak <jk@noontide.demon.co.uk>.
2482
2483 * strports.c, strports.h: Make scm_eval_0str return the value of
2484 the last expression evaluated (previously, it returned void).
2485
2486 * strports.c, strports.h: New function: scm_read_0str. Does what
2487 it sounds like.
2488
2489 Tue Dec 10 23:38:43 1996 Gary Houston <ghouston@actrix.gen.nz>
2490
2491 * simpos.c (scm_getenv): return #f if string can't be found in the
2492 environment instead of throwing an exception, for compatibility
2493 with numerous other systems.
2494
2495 Mon Dec 9 23:23:35 1996 Tom Tromey <tromey@cygnus.com>
2496
2497 * Makefile.am (.c.x): Use guile-snarf.
2498 * configure.in (AC_OUTPUT): Generate guile-snarf; make it
2499 executable.
2500 * guile-snarf.in: New file, resurrected from old guile-snarf.sh.
2501
2502 Mon Dec 9 18:36:50 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
2503
2504 * backtrace.c (scm_display_error_message): Made non-static, and
2505 renamed from display_error_message.
2506 * backtrace.h (scm_display_error_message): Added extern decl.
2507 * throw.c (uncaught_throw): Use it to display the error message.
2508
2509 Mon Dec 9 10:10:38 1996 Tom Tromey <tromey@cygnus.com>
2510
2511 * inet_aton.c: Use #if 0, not #ifdef 0.
2512
2513 Mon Dec 9 06:36:48 1996 Gary Houston <ghouston@actrix.gen.nz>
2514
2515 * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
2516 to convert the returned value.
2517 (scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
2518 the offset argument.
2519
2520 Sun Dec 8 21:06:38 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
2521
2522 Add new interface to catch/throw, usable from C as well as
2523 Scheme.
2524 * throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
2525 (scm_internal_catch): New function, replaces...
2526 (scm_catch_apply): Deleted.
2527 * throw.c (scm_catch_apply): Deleted; replaced with a more general
2528 mechanism which is a bit more code, but can be used nicely from C
2529 and implement the Scheme semantics as well.
2530 (scm_internal_catch): This is the replacement; it's named after
2531 the analogous function in Emacs.
2532 (scm_catch): Reimplemented in terms of the above.
2533 (struct catch_body_data, catch_body, catch_handler): New
2534 functions, used by scm_catch.
2535 * root.c (cwdr): Reimplemented in terms of scm_internal_catch.
2536 (struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
2537 support for new cwdr.
2538
2539 * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
2540 Oct 30.
2541
2542 Sun Dec 8 17:55:34 1996 Marius Vollmer <mvo@zagadka.ping.de>
2543
2544 * acconfig.h: Added DYNAMIC_LINKING symbol.
2545 * configure.in: Add option and checks for dynamic linking.
2546 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c,
2547 dynl.h: New files for dynamic linking support.
2548 * Makefile.am (libguile_a_SOURCES):
2549 Added "dynl.c".
2550 (modinclude_HEADERS): Added "dynl.h".
2551 (EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
2552 "dynl-vms.c".
2553 * init.c (scm_boot_guile_1): Call
2554 scm_init_dynamic_linking to initialize dynamic linking support.
2555
2556 Thu Dec 5 22:47:53 1996 Marius Vollmer <mvo@zagadka.ping.de>
2557
2558 * init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
2559 (as we Schemers say). It needs to be global, so that I can tweak
2560 it for the proper operation of unexec.
2561 (scm_boot_guile_1_live): New variable, see above.
2562
2563 Sun Dec 1 00:00:49 1996 Tom Tromey <tromey@cygnus.com>
2564
2565 * guile-snarf.sh: Removed.
2566 * PLUGIN/guile.libs: Added dependency for -lm.
2567 * acinclude.m4: Renamed from aclocal.m4.
2568 * PLUGIN/greet: Removed.
2569 * Makefile.am, aclocal.m4: New files.
2570 * configure.in: Updated for Automake.
2571
2572 Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
2573
2574 * eval.c (scm_definedp): Use top_level_lookup_closure_var
2575 and not top_level_lookup_thunk_var.
2576
2577 Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
2578
2579 * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
2580
2581 Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
2582
2583 * eval.c (scm_definedp): Incompatibly changed to be a builtin
2584 Scheme function, instead of syntax. Single argument is now a
2585 symbol.
2586
2587 Thu Nov 21 20:26:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
2588
2589 * ramap.c (scm_ra_sum, scm_ra_difference, scm_ra_product,
2590 scm_ra_divide): Properly terminate statements passed as arguments
2591 to IVDEP macros. (Thanks to Bernard Urban.)
2592
2593 * eval.c (SCM_CEVAL): Use alloca, not GCC's extensions for arrays
2594 with non-constant sizes. (Thanks to Bernard Urban.)
2595
2596 Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
2597
2598 It's an "eval closure", not an "eval thunk." A thunk is a
2599 function of no arguments.
2600 * root.h (struct scm_root_state): Renamed
2601 top_level_lookup_closure_var from top_level_lookup_thunk_var.
2602 (scm_top_level_lookup_closure_var): Renamed from
2603 scm_top_level_lookup_thunk_var.
2604 * root.c (mark_root): Uses changed.
2605 * gdbint.c (gdb_eval, gdb_binding): Uses changed.
2606 * init.c (scm_start_stack): Uses changed.
2607 * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
2608 Change scheme-visible name to *top-level-lookup-closure* from
2609 *top-level-lookup-thunk*.
2610
2611 Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
2612
2613 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
2614 pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
2615
2616 Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
2617
2618 * gc.c (struct scm_heap_seg_data): Doc fixes.
2619
2620 * gc.c (scm_gc_sweep): Empty all segments' freelists before
2621 sweeping. Then, prepend each segment's free cells to its
2622 freelist, rather than wiping out the old value. (Thanks to Marius
2623 Vollmer.)
2624
2625 * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
2626 scm_check_freelist, scm_debug_newcell): New functions and
2627 variables, for debugging freelist problems.
2628 * pairs.h (SCM_NEWCELL): New debugging version added.
2629 * gc.h (scm_debug_newcell): Added extern declaration, used by
2630 debugging version of SCM_NEWCELL.
2631
2632 Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
2633
2634 On some systems <libc.h> conflicts with <unistd.h>, and should not
2635 be #included at all.
2636 * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
2637 * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
2638 * configure.in: Call it.
2639 * posix.c, filesys.c: Use its results to decide whether or not to
2640 #include <libc.h>.
2641 * configure, scmconfig.h.in: Rebuilt with autoconf and
2642 autoheader.
2643
2644 Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
2645
2646 * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
2647 pointer to the stdio stream before calling scm_setbuf0, so the
2648 latter will be able to retrieve it. I'm surprised this didn't
2649 segfault earlier. (Thanks to Christopher Lee.)
2650
2651 Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2652
2653 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
2654 of `lazy-catch'.
2655
2656 Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2657
2658 * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
2659 number of stack narrowing specifier pairs. The first specifier in
2660 a pair controls inner border, the second the outer border. A
2661 number means cut that number of frames, a procedure object means
2662 cut until that object is found in operator position in a frame.
2663
2664 * root.c (cwdr): Bugfix.
2665
2666 * read.c: Recording of positions disabled by default.
2667
2668 * procs.c (scm_closure_p): New function.
2669
2670 * posix.c (scm_tmpnam): New function.
2671
2672 * load.c: Added #include "throw.h".
2673 (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
2674 ends with '/'.
2675
2676 * load.c, load.h (scm_read_and_eval_x): New function.
2677
2678 * eval.c: Renamed debug option "deval" to "debug".
2679
2680 (scm_eval_x): `eval!' is no longer accessible from the scheme
2681 level. Motivation: We can't allow operations which introduce
2682 glocs into the scheme level. Guile's type system can't handle
2683 these as data. Use `eval' or `read-and-eval!' as replacement.
2684
2685 * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
2686 SCM_CONSP since this is a macro!; Set vframe.prev to
2687 scm_last_debug_frame instead of 0. In this way we can look
2688 "above" the virtual start stack frame if we wish.
2689 (scm_debug_hang): New function: Useful for debugging Guile in
2690 certain tricky situations. Will probably be removed later...
2691
2692 * debug.h: Changed semantics of debug option "backtrace". This
2693 option now only indicates whether we want automatic backtrace at
2694 an error.
2695
2696 Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2697
2698 * ports.c: #include "filesys.h"
2699 (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
2700
2701 * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
2702 Motivation: This is system specific code which is related to file
2703 I/O. It also may use select. Added code by Gary Houston to
2704 detect presence of character in stdio buffers.
2705
2706 * libguile.h: #include "libguile/libpath.h"
2707
2708 * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
2709 SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
2710 SCM_SITE_DIR; Install libpath.h among the other include files.
2711
2712 * load.c, load.h (scm_sys_package_data_dir): New function.
2713
2714 Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2715
2716 * stacks.h: Bugfix: Don't use tail-array length field as stack
2717 length field! This screwed GC.
2718
2719 Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2720
2721 * _scm.h: Added #ifndef around definition of macros min and max.
2722
2723 * __scm.h: Added hooks for threads to plugin to in ints protection
2724 macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
2725 SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
2726 the main code in these macros duplicated and spread over multiple
2727 files. Renamed SCM_THREADS_SWITCHING_CODE ->
2728 SCM_THREAD_SWITCHING_CODE.
2729
2730 Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
2731
2732 * snarf.h: New file.
2733 * guile-snarf.sh: New file.
2734 * Makefile.in (inner_h_files): Added snarf.h
2735 (ancillary, install, uninstall, distclean): Added actions for
2736 guile-snarf.
2737 (.c.x): Use guile-snarf.
2738 (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
2739 (gen_c_files): Note that these depend on guile-snarf.
2740 * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
2741 now in "snarf.h". Added #include "snarf.h" to get them.
2742 * libguile.h: Added #include "snarf.h".
2743 (Patches applied and tweaked by Jim Blandy.)
2744
2745 Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
2746
2747 * socket.c: Use K&R style declaration for 'close'; the GNU coding
2748 standards suggest against providing prototypes for system
2749 functions. Thanks to Greg Troxel.
2750
2751 Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
2752
2753 * strports.c (scm_eval_0str): New function.
2754 #include "read.h", to get prototype for scm_read.
2755 * Makefile.in (strports.o): Update dependencies.
2756 * strports.h: New prototype.
2757
2758 * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
2759 scheme name from "int?" to "integer?". It seems to do the job.
2760 * numbers.h: Rename prototype too.
2761 * scmhob.h (intp): Change definition to refer to scm_integer_p. I
2762 hope this is right.
2763
2764 * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
2765 scm_num_eq_p): Rename these according to R4RS conventions: call
2766 them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
2767 to making libguile R4RS compliant without ice-9...
2768
2769 * load.c (scm_sys_search_load_path): Search for files under all
2770 extensions listed in the %load-extensions variable. If FILENAME
2771 is absolute, return it unchanged, without searching the load path.
2772 (scm_loc_load_extensions): New variable, pointing to
2773 %load-extensions' value cell.
2774 (scm_init_load): Initialize it, and the value it points to.
2775 (scm_primitive_load_path): Improve error reporting.
2776
2777 * load.c (scm_loc_load_hook): New variable, pointing to value cell
2778 of new Scheme variable %load-hook.
2779 (scm_primitive_load): Apply %load-hook to filename.
2780
2781 Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
2782
2783 * configure.in: add tests for figuring out whether buffered data
2784 is available in a FILE structure, which is needed by char-ready.
2785
2786 * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
2787 FILE_CNT_READPTR.
2788
2789 * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
2790 exceptions using misc_error instead of syserror. It seems a bit
2791 odd to throw an exception if a string can't be found in the
2792 environment, but it's consistent with open-file, stat etc.
2793 (simpos.h): remove sys_ from getenv.
2794
2795 * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
2796 occurs, throw an error instead of returning errno. Return value
2797 is now unspecified.
2798 (numerous in posix.c and posix.h): removed superfluous sys_ from names.
2799
2800 Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
2801
2802 * filesys.c (scm_stat2scm): derive file type and permissions from
2803 the stat mode and append them to the returned vector.
2804 There isn't much overhead in doing this and it avoids the need to
2805 work with S_IRUSR et al. in Scheme.
2806 Define symbols scm_sym_regular etc.
2807 (scm_init_filesys): don't intern S_IRUSR etc.
2808
2809 * load.c: change s_try_load and s_try_load_path to s_primitive_load
2810 and s_primitive_load_path.
2811
2812 * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
2813
2814 * error.h: don't declare error symbols. prototype for scm_misc_error.
2815
2816 * stackchk.c (scm_stack_overflow_key): defined here instead of in
2817 error.c.
2818
2819 * error.c: use SCM_SYMBOL to set up error keys.
2820 scm_misc_error: new procedure.
2821
2822 Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
2823
2824 * read.c (scm_lreadr): Recognize SCSH-style block comments; text
2825 between `#!' and `!#' is ignored.
2826 (skip_scsh_block_comment): New function.
2827
2828 * feature.c (scm_set_program_arguments): New argument, FIRST.
2829 * feature.h: Update prototype.
2830 * init.c (scm_boot_guile_1): Pass new argument to
2831 scm_set_program_arguments.
2832
2833 Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
2834
2835 * init.c (scm_start_stack): Don't initialize scm_progargs here.
2836 (scm_boot_guile): Call scm_set_program_arguments here, later than
2837 the old initialization.
2838
2839 * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
2840 initialization procedure.
2841 - Delete in, out, err arguments; there are other perfectly good
2842 ways to override these when desired.
2843 - Delete result argument; this function shouldn't ever return.
2844 - Rename init_func argument to main_func, for less confusion.
2845 - Delete boot_cmd argument; main_func is more general.
2846 -Add 'closure' argument, to help people pass data to main_func
2847 without resorting to global variables.
2848 - Abort if reentered; don't bother returning an error code.
2849 - Call scm_init_standard_ports to set up the default/current
2850 standard ports; no need to pass them to scm_start_stack.
2851 - Remove code to evaluate the boot_cmd, and start the repl; let
2852 the user do something like that in main_func if they want.
2853 - Remove code to package up a return value; main_func can do any
2854 of that as needed.
2855 - Call exit (0), instead of returning.
2856 (scm_start_stack): Don't initialize the I/O ports here; that's
2857 weird. Delete in, out, err arguments. Move guts to
2858 scm_init_standard_ports, scm_stdio_to_port.
2859 (scm_init_standard_ports): New function, to set up current and
2860 default standard ports.
2861 (scm_start_stack, scm_restart_stack): Make these static.
2862 * init.h (scm_boot_guile): Adjust declaration.
2863 (scm_start_stack, scm_restart_stack): Remove externally
2864 visible declarations for these.
2865 (enum scm_boot_status): Removed; now scm_boot_guile never returns.
2866
2867 * fports.c (scm_stdio_to_port): New function. Its guts used to be
2868 written out several times in scm_start_stack.
2869 * fports.h: New declaration for the above.
2870
2871 * feature.c (scm_set_program_arguments): New function.
2872 * feature.h: New declaration for the above.
2873
2874 * ports.c: Formatting tweak.
2875
2876 Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
2877
2878 * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
2879 ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
2880 for obtaining the address of a car or cdr field. Motivation:
2881 &SCM_CXR make assumptions about the internal structure of the
2882 SCM_CXR selectors.
2883
2884 * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
2885 Motivation: see SCM_CXRLOC.
2886
2887 * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
2888 srcprop.h, tags.h, throw.c, unif.c: Added new selectors
2889 SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
2890 Motivation: Safer use. Some other macros are defined in terms of
2891 these operations. If these are defined using the SCM_SETCXR
2892 (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
2893 to inefficiency and an <e1> with side-effects could potentially
2894 break. Also, these particular operations are heavily utilized in
2895 the garbage collector. In unoptimized code there will be a
2896 measurable speedup.
2897
2898 * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
2899 eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
2900 ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
2901 pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
2902 procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
2903 strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
2904 vports.c: Cleaned up use of pairs: Don't make any special
2905 assumptions about the internal structure of selectors and
2906 mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
2907 SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
2908 (Among other things, this change makes it easier to build Guile
2909 with certain compilers which have problems with casted lvalues.)
2910
2911 Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2912
2913 * stacks.c: Improve selection of relevant stack frames when making
2914 a stack object. Introduce one level of indirection in the stack
2915 object to make it possible to "narrow" to a certain region of the
2916 stack. This facilitates making use of more clever algorithms (not
2917 implemented) for selecting relevant frames and gives a cleaner
2918 design since selection of frames can be done independently of
2919 extraction of frames from the real stack.
2920 (scm_stack_id): Also take #t as argument which means look at
2921 current stack.
2922
2923 * stacks.h: In struct scm_stack: Turn field frames into a pointer.
2924 Turn n_tail into an integer directly representing current number
2925 of frames in stack. Add field tail.
2926
2927 * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
2928
2929 * debug.c (scm_make_memoized): Made it available at scheme level.
2930 (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
2931 SCM_NIMP before applying heavier predicates in argument checking.
2932 (scm_local_eval): Also take memoized object as argument.
2933
2934 * backtrace.c (scm_display_error): Just a safety measure: Stacks
2935 aren't created with zero length, but should such a strange
2936 creature suddenly turn up...
2937
2938 Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
2939
2940 * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
2941 `del', for the sake of C++ compilers. (Patch applied by JimB.)
2942
2943 Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
2944
2945 * variable.c (scm_make_variable): Make the name hint optional, as
2946 documented.
2947 (anonymous_variable_sym): Renamed from variable_sym. All uses
2948 changed.
2949
2950 * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
2951 from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
2952 of scm_primitive_load_path was also changed to
2953 "primitive-load-path", from "%try-load-path". Callers changed.
2954 We'd like to respect the convention that a function named
2955 "try-mumble" should behave just like the function called "mumble",
2956 but return #f instead of signalling some error.
2957 * load.h: Rename prototypes.
2958
2959 Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2960
2961 * print.c (make_print_state, grow_print_state), print.h: Modified
2962 the print state representation: Don't use a tail array for
2963 recording of circular references. Resizing of the print state
2964 structure invalidates the print state pointer. To avoid passing
2965 around an indirect print state reference to all printing
2966 functions, we instead let the print state reference a resizable
2967 vector.
2968
2969 Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
2970
2971 * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
2972 Don't crash when passed an improper list terminated by a
2973 non-immediate value.
2974
2975 Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
2976
2977 Allocate data for structures on an eight-byte boundary, as
2978 required by the tagging system.
2979 * struct.c (alloc_struct): New function.
2980 (scm_make_struct, scm_make_vtable_vtable): Call it.
2981 * struct.h (scm_struct_n_extra_words): Bump to 3.
2982 (scm_struct_i_ptr): New "field".
2983 * gc.c (scm_gc_sweep): When we need to free the data, use the
2984 information stored by alloc_struct to find the beginning of the
2985 block allocated to the structure, so we can free it.
2986
2987 Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2988
2989 * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
2990 scm_init_stacks.
2991
2992 * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
2993 (scm_debug_info): New member: id.
2994
2995 * stacks.c: Stacks are now represented as structs; Stacks have an
2996 id given to them by `start-stack'.
2997 (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
2998
2999 * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
3000 Changed stack representation.
3001
3002 * debug.c (scm_procedure_name): Try procedure property `name' for
3003 compiled closures aswell.
3004
3005 * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
3006
3007 * eval.c: scm_i_name moved to gsubr.c
3008 (scm_m_define): Record names of all kinds of procedure
3009 objects. (Earlier, only closures were recorded.)
3010
3011 * procprop.h: Added declaration of scm_i_name.
3012
3013 * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
3014 (scm_make_gsubr): Record names of compiled closures.
3015
3016 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3017
3018 * debug.c, debug.h: Removed obsolete code.
3019
3020 * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
3021 stacks.c: Renamed regs --> scm_contregs.
3022
3023 * print.c (scm_free_print_state): Cleanup print state before
3024 returning it to pool. It is better to do it here than in
3025 scm_prin1 since scm_prin1 is called often.
3026
3027 * srcprop.c (scm_source_properties, scm_set_source_properties_x,
3028 s_set_source_property_x): Check that first argument is a pair or a
3029 memoized object.
3030
3031 * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
3032 scm_i_line, scm_i_column and scm_i_breakpoint global.
3033
3034 * init.c: Added #include "backtrace.h" and #include "stacks.h".
3035 (scm_boot_guile_1): Added calls to scm_init_backtrace and
3036 scm_init_stacks.
3037
3038 * debug.h: Added debug object smob declaration and macro
3039 definitions.
3040
3041 * configure.in: Build with backtrace.o and stacks.o if debug
3042 support enabled.
3043
3044 * Makefile.in: Added entries for new files: backtrace.c,
3045 backtrace.h, stacks.c and stacks.h.
3046
3047 * symbols.c (scm_sym2ovcell): Fixed documentation.
3048
3049 * _scm.h (min, max): Added.
3050
3051 * async.c: Moved `min' macro to _scm.h.
3052
3053 * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
3054 SCM_BACKTRACE_INDENT.
3055
3056 * eval.c: Added new debug options `maxdepth' and `indent'.
3057
3058 * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
3059
3060 * print.h: Added selector SCM_PRINT_STATE.
3061
3062 * print.c: New functions: scm_make_print_state,
3063 scm_free_print_state.
3064
3065 * print.h: Added declarations for scm_make_print_state,
3066 scm_free_print_state.
3067
3068 * debug.c (scm_m_start_stack): New acro.
3069
3070 * debug.h: Small cleanup.
3071
3072 * init.c (scm_boot_guile_1): Moved scm_init_debug below
3073 scm_init_eval.
3074
3075 Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
3076
3077 * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
3078 arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
3079 chars.c, chars.h, continuations.c, continuations.h, debug.c,
3080 debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
3081 eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
3082 filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
3083 gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
3084 hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
3085 kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
3086 markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
3087 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
3088 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
3089 procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
3090 root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
3091 simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
3092 stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
3093 strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
3094 struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
3095 unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
3096 version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
3097 declare functions with prototypes. (Patch thanks to Marius
3098 Vollmer.)
3099
3100 More prototype-related changes from Marius Vollmer:
3101 * gdb_interface.h: Wrapped header file in #ifdef/#endif
3102 * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
3103 * ports.h (ptobfuns): Added prototypes. This means some casting in
3104 fports.c.
3105 * fports.c: Added casts for initializations, since the functions
3106 are defined to take FILE * as their stream argument, not SCM.
3107 * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
3108 * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
3109 to `char *str_data' to conform to prototype.
3110
3111 Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
3112
3113 * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
3114
3115 * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
3116
3117 * stime.c, stime.h: use SCM_P method.
3118
3119 Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
3120
3121 * eval.c (scm_nconc2last): Don't accept an empty list; apply must
3122 be given at least two arguments. Insist that lst's last element
3123 be a list, but don't make any requirements of its predecessors.
3124
3125 Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
3126
3127 * eval.c (scm_nconc2last): Revert last change; there seems to be
3128 other stuff going on here.
3129
3130 Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
3131
3132 * eval.c (scm_nconc2last): Make sure that each element of lst
3133 (which is a list of argument lists, except for the tail) is a
3134 proper list, i.e., finite and terminated by '().
3135
3136 Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
3137
3138 * unif.c (scm_ra_set_contp): Localize `inc' declaration.
3139 Clarifies flow.
3140
3141 * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
3142 symbolic name for the tag, scm_tc3_cons_gloc, instead of just
3143 saying "1".
3144
3145 * vectors.c (scm_make_vector): Fill vectors with the undefined
3146 value, to help make Guile Scheme code more portable to other
3147 Schemes.
3148
3149 * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
3150 * symbols.h, tags.h: Doc fixes.
3151
3152 Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
3153
3154 * async.c (scm_take_signal): Doc fixes.
3155
3156 Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
3157
3158 * numbers.c (scm_divbigint): When the remainder is zero, we don't
3159 want to subtract it from the modulus; we just want to leave it
3160 alone.
3161
3162 Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
3163
3164 * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
3165 `scm_init_threads'.
3166
3167 * throw.h (scm_catch_apply): Removed the `lazyp' argument.
3168
3169 * throw.c (scm_catch_apply): Finished implementation of
3170 `lazy-catch'.
3171
3172 Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
3173
3174 * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
3175 check.
3176 (scm_init_filesys): set "i/o-extensions" feature.
3177 include feature.h.
3178
3179 Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
3180
3181 * Makefile.in (root.o): Correct dependencies.
3182
3183 Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
3184
3185 * Makefile.in: Added dependency entry for root.o.
3186
3187 * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
3188 throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
3189
3190 * init.c (scm_start_stack): Set initial root continuation number
3191 to 0.
3192
3193 * procs.c: New function: scm_thunk_p.
3194
3195 * procs.h: Added declarations of scm_thunk_p.
3196
3197 * root.c: Renamed `call-with-new-root' -->
3198 `call-with-dynamic-root'.
3199 (cwdr): Removed allocation of new root state. This should be done
3200 separately by use of scm_make_root.
3201 (scm_apply_with_dynamic_root): New function: Does what it
3202 sounds like. Needed when spawning threads.
3203
3204 * root.h: Added member last_debug_frame to root state.
3205 Added #include "libguile/debug.h"
3206
3207 * throw.c: Renamed scm_catch --> scm_catch_apply and added more
3208 arguments. The motivation is that code in root.c needs catch
3209 functionality, and we want to avoid code duplication.
3210 New functions: scm_catch, scm_lazy_catch. These are wrappers for
3211 scm_catch_apply. scm_lazy_catch is intended to introduce catch
3212 handlers that run without popping the stack into the dynwind
3213 chain.
3214
3215 * throw.h: Added prototypes for scm_catch_apply and
3216 scm_lazy_catch.
3217
3218 Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3219
3220 * root.h (scm_root, scm_set_root): Decouple thread support details
3221 by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
3222 SCM_SET_THREAD_LOCAL_DATA.
3223
3224 * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
3225 and tortoise scanning loop.
3226
3227 Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
3228
3229 * Makefile.in: Rebuild dependencies.
3230
3231 * libguile.h: #include "libguile/print.h" before "smob.h", since
3232 the latter uses the print_state structure.
3233
3234 * throw.c (scm_ithrow): Use the correct variable when checking to
3235 see if a given element of scm_dynwinds is a valid catch.
3236
3237 * throw.c (scm_ithrow): If scm_dynwinds has invalid list
3238 structure, abort; don't just silently ignore the garbage.
3239
3240 * _scm.h: #include "print.h" here, since it seems to be used just
3241 about everywhere.
3242 * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
3243 strports.c, unif.h: Don't #include "print.h".
3244
3245 Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3246
3247 * feature.h (scm_loc_features): Removed external declaration.
3248 (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
3249
3250 Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3251
3252 * feature.c (scm_init_feature): Added threads feature (needs to be
3253 initialized here, since features doesn't exist when
3254 scm_init_threads is called).
3255
3256 * libguile.h: Added #include "libguile/../threads/threads.h".
3257 (This is a kludge to get thread support working. This should be
3258 fixed.)
3259
3260 * configure.in, acconfig.h: Added flags for thread support.
3261
3262 * scmsigs.c: Define `signal' to be `pthread_signal' if using
3263 mit-pthreads.
3264
3265 * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
3266 SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
3267 root.c:mark_root.
3268
3269 * _scm.h: Added conditional #include "threads.h"
3270
3271 * __scm.h (SCM_ASYNC_TICK): Added call to macro
3272 SCM_THREADS_SWITCHING_CODE.
3273
3274 * init.c (scm_start_stack): Call `scm_make_root' to dynamically
3275 allocate the basic dynamic root object.
3276 (scm_boot_guile): Added call to scm_init_root.
3277
3278 * root.c, root.h: Added root smob.
3279 (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
3280 functions: Implements dynamic roots mostly according to spec in
3281 SCM manual. Main difference is that the second argument is a
3282 throw handler rather than an error "thunk".
3283
3284 * root.h: Added declaration of scm_init_root.
3285
3286 * root.c: Added #include "genio.h", #include "smob.h", #include
3287 "pairs.h", #include "throw.h", #include "dynwind.h", #include
3288 "eval.h"
3289 (scm_init_root): Added #include "root.x".
3290
3291 * throw.c: Added #include "stackchk.h"
3292 (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
3293 SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
3294 can be used in scm_call_with_new_root; Added reenabling of stack
3295 checking when catching a throw.
3296
3297 Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
3298
3299 * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
3300
3301 * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
3302 element is not found, as per R4RS.
3303
3304 Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
3305
3306 * list.c: Doc fixes throughout.
3307
3308 Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
3309
3310 * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
3311 declare the char * to be const. Avoids a warning in rgx.c.
3312
3313 * ports.h: spelling fix.
3314
3315 * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
3316 error messages.
3317
3318 * load.c (scm_sys_try_load_path): throw an error if file not found
3319 (like it says it in NEWS).
3320
3321 Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
3322
3323 * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
3324 PROPS slot to '(), not #f; it's an empty alist.
3325
3326 * throw.h, throw.c: Use SCM_P instead of #if hair.
3327
3328 Remove special support for uncaught throws; see throw.c for
3329 rationale.
3330 * throw.c (uncaught_throw): New function.
3331 (scm_ithrow): Call uncaught_throw if we don't find a throw
3332 target; don't mess with scm_bad_throw_vcell.
3333 (scm_bad_throw_vcell): Variable deleted.
3334 (scm_init_throw): Don't initialize it.
3335
3336 * throw.c (scm_ithrow): Don't let outer key matches shadow inner
3337 #t catches.
3338
3339 Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
3340
3341 * numbers.c (scm_istr2int): If the number is short (as most
3342 numbers are), just call scm_small_istr2int to deal with it.
3343 (scm_small_istr2int): New function, created by un-#ifdefing the
3344 non-bignum version of scm_istr2int and renaming it.
3345
3346 Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
3347
3348 * load.c (scm_sys_try_load): don't check whether value returned
3349 by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
3350 Change the Scheme name from %try-load to primitive-load.
3351
3352 * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
3353 Can avoid passing a message, allowing it to be derived in the
3354 error handler (e.g., if we want to throw to the key both from
3355 Scheme and C).
3356
3357 Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
3358
3359 * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
3360 references now have a new appearance which is more compact and
3361 also gives a clue about what the target of the reference is.
3362 By setting parameters in the print state, more fancy printing can
3363 be achieved. This is used by the (not yet commited) backtrace
3364 code.
3365
3366 Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
3367
3368 * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
3369 "print.h"
3370
3371 * print.c: Added #include "struct.h". Removed function
3372 scm_prlist.
3373
3374 * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
3375 scm_iprin1. Removed prototype for scm_prlist.
3376
3377 * arbiters.c (prinarb),
3378 async.c (print_async),
3379 debug.c (prindebugobj, prinmemoized),
3380 eval.c (prinprom, prinmacro),
3381 filesys.c (scm_fd_print, scm_dir_print),
3382 kw.c (print_kw),
3383 mallocs.c (prinmalloc),
3384 numbers.c, numbers.h (scm_floprint, scm_bigprint),
3385 smob.h (scm_smobfuns),
3386 srcprop.c (prinsrcprops),
3387 throw.c (prinjb),
3388 unif.c, unif.h (scm_raprin1, rapr1),
3389 variable.c (prin_var): Changed argument `int writing' to
3390 `scm_print_state *pstate'.
3391
3392 * init.c (scm_boot_guile): Moved scm_init_struct upwards so
3393 that it will be called before scm_init_print.
3394
3395 * print.c (scm_prin1): Print states are now allocated when calling
3396 scm_prin1 and then passed around to all printing functions as an
3397 argument. A cache `print_state_pool' enables reuse of print
3398 states.
3399 (scm_make_print_state): New function.
3400 (scm_iprin1): Adaption to print states.
3401 (scm_iprlist): An initial "hare and tortoise" scan brings down
3402 time complexity to O (depth * N). (Better time complexity will be
3403 achieved when the printing code is completely rewritten.)
3404
3405 Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
3406
3407 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
3408 AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
3409 it gets done whether or not the cache variable has a value.
3410
3411 Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
3412
3413 Distinguish #f and ().
3414 * __scm.h: #undef SICP.
3415 * pairs.h (SCM_EOL): Delete this definition, equating it with
3416 SCM_BOOL_F.
3417 * tags.h (SCM_EOL): Give it a new definition here; I think I found
3418 the value it used to have. Doc fixes, too.
3419
3420 Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
3421
3422 * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
3423 scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
3424 Lord's implementation of structs, allowing for tail arrays as
3425 described in the manual. Also fixed some bugs. (Both the interface
3426 and the implementation should be improved.)
3427
3428 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
3429
3430 * print.c, print.h: Closures now print like #<procedure foo (x)>.
3431 People who whish to see the source can do `(print-enable 'source)'.
3432 Removed #ifdef DEBUG_EXTENSIONS.
3433
3434 Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
3435
3436 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
3437 integer (assuming for now accepting an integer is a good thing).
3438
3439 * error.c, fports.c: replace use of %S in lgh_error args with %s.
3440 %S will be used instead for write'ing arguments.
3441
3442 * unif.c (scm_transpose_array): change arguments in the SCM_WNA
3443 asserts. fix a few other asserts.
3444 (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
3445 scm_uniform_vector_ref, scm_array_set_x,
3446 scm_dimensions_to_unform_array): change args in
3447 SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
3448 strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
3449 scm_substring_fill_x): likewise.
3450 gsubr.c (scm_gsubr_apply): likewise.
3451 eval.c (SCM_APPLY): likewise.
3452
3453 * eval.c (4 places): replace scm_everr with lgh_error or
3454 scm_wrong_num_args.
3455
3456 * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
3457 scm_memory_error): new procedures.
3458 scm_everr: deleted. can use scm_wta, dropping first two args.
3459 scm_error: convert NULL subr to SCM_BOOL_F.
3460
3461 * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
3462 SCM_ARGERR.
3463
3464 * stackchk.c (scm_report_stack_overflow): use lgh_error instead
3465 of scm_wta.
3466
3467 * error.c, error.h: new error keys: scm_arg_type_key,
3468 scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
3469 scm_misc_error_key.
3470 scm_wta: reimplement using lgh_error instead of scm_everr.
3471
3472 Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
3473
3474 * gdbint.c: scm_lread now has one more argument.
3475
3476 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
3477 scm_port_\1; Added mutator scm_set_port_filename_x (used when
3478 loading source from non-file ports, which, e. g., happens when
3479 using the Emacs interface).
3480
3481 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
3482 object.
3483
3484 * read.c: Added code for recording of positions of source code
3485 expressions; New functions: recsexpr, scm_lreadrecparen;
3486 _scm_make_srcprops --> scm_make_srcprops
3487 (scm_flush_ws): Removed updating of positions counters. This work
3488 is already done by scm_gen_getc
3489
3490 * read.h: Added prototype for scm_lreadrecparen
3491
3492 * print.c: Added #include "alist.h"
3493
3494 * eval.c: Added #include "hash.h"
3495
3496 * eq.c: Added #include "ramap.h"
3497
3498 * options.c: Documentation fixes.
3499
3500 * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
3501 (scm_init_srcprop): Adjusted size of initial source-whash. Name
3502 changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
3503 --> scm_make_srcprops
3504
3505 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
3506 _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
3507 function calls in the definition of the whash access macros.
3508
3509 Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
3510
3511 * init.c (scm_boot_guile): Add level of indirection to
3512 scm_boot_guile_1() to ensure that stack base pointer is properly
3513 initialized. There was no guarantee that variable i was the
3514 highest/lowest variable on stack (i.e. the call frame of
3515 scm_boot_guile was not completely protected from gc).
3516
3517 Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
3518
3519 * ports.h (scm_port_table): put back file_name, it will be used to
3520 support debugging. Undo related changes in fports.c, ioext.c,
3521 ports.c, gc.c.
3522
3523 Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
3524
3525 * ports.h (scm_port_table): remove file_name member for now, it seems
3526 undesirable.
3527 * fports.c (scm_open_file): don't set file_name in PTAB.
3528 (prinfport): don't use file_name in PTAB.
3529 * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
3530 * ports.c (scm_add_to_port_table): don't intialize file_name.
3531 (scm_port_file_name): remove for now.
3532 * gc.c (scm_gc_mark): don't mark PTAB file_name.
3533
3534 * fports.h (scm_mkfile): prototype deleted.
3535 * fports.c (scm_mkfile): merged into scm_open_file to simplify.
3536
3537 * debug.c, unif.c: use scm_out_of_range instead of
3538 wta for range errors (ASSERT still needs work).
3539
3540 * error.c, error.h (scm_out_of_range): new procedure.
3541
3542 * error.c, error.h (scm_out_of_range_key): new key.
3543
3544 * posix.c (scm_sync): #else was missing.
3545
3546 * error.c, error.h: append _key to names scm_num_overflow and
3547 scm_system_error.
3548
3549 * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
3550 of consing an empty list.
3551 (SCM_SYSERROR etc.): move into error.c, make them procedures instead
3552 of macros, saves code and string space.
3553 error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
3554 fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
3555 lower case. Rename scm_syserror_m to scm_syserror_msg.
3556 error.h: prototypes for new procedures.
3557
3558 Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
3559
3560 * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
3561
3562 * error.c, error.h: setup scm_num_overflow key.
3563
3564 * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
3565 Remove definition of SCM_OVSCM_FLOW.
3566
3567 * fports.c (scm_open_file): use SCM_SYSERROR_M.
3568
3569 * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
3570 explicit message and args.
3571
3572 * error.c, error.h, __scm.h: change system_error_sym to
3573 scm_system_error.
3574
3575 * error.c (system_error_sym): remove leading %% from the Scheme name
3576 "%%system-error".
3577
3578 * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
3579
3580 Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3581
3582 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
3583 fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
3584 numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
3585 tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
3586 renamed. (These were introduced by unsupervised name
3587 substitution.)
3588
3589 Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3590
3591 * print.c: Added code for detection of circular references during
3592 printing. (init_ref_stack, grow_ref_stack): New functions. Added
3593 a hook for printing of closures (accessible via print options).
3594 This leads to a split of calls to scm_iprin1 into two classes:
3595 elementary print operations (e. g. the code which prints a smob)
3596 still use scm_iprin1 while top level calls (like scm_display) use
3597 scm_prin1. scm_prin1 begins by clearing the data structure used
3598 to record reference information.
3599
3600 * print.h: Added declarations of scm_prin1 and scm_prlist.
3601
3602 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
3603
3604 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
3605
3606 * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
3607
3608 * error.c (err_head): scm_iprin1 --> scm_prin1
3609
3610 * debug.c: Adjusted header comment.
3611
3612 * tags.h: Typo.
3613
3614 Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
3615
3616 * strerror.c: Doc fix.
3617
3618 Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3619
3620 * gdbint.c (gdb_read): Now possible to run during GC.
3621 (unmark_port, remark_port): New functions.
3622
3623 * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
3624
3625 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
3626 of allocating a new string object. Also, increase size by
3627 the factor 2 instead of 1.5.
3628
3629 Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
3630
3631 * __scm.h (SCM_P): Corrected to run under traditional C.
3632
3633 * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
3634 removed.
3635
3636 * async.c: Calls to scm_sysintern corrected.
3637
3638 * async.h (scm_async_clock): Redundant declaration removed.
3639
3640 * continuations.c (scm_dynthrow): Redundant declaration removed.
3641
3642 * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
3643 Definition typos corrected.
3644
3645 * debug.h: Missing declarations of functions in debug.c added
3646 (lots).
3647
3648 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
3649 Missing declarations to functions in eval.c added.
3650
3651 * filesys.c: Possibly uninitialized variable rv.
3652
3653 * gc.h (scm_object_addr, scm_unhash_name): Missing
3654 declarations of functions defined in gc.c added.
3655
3656 * genio.c: Possible typos str_data -> wstr_data. ???
3657
3658 * genio.c: Possibly unintended shadowing of local variable
3659 `int c' (gotos out of scope of inner `c'). ???
3660
3661 * init.c: Uninitialized `SCM last' may be used.
3662
3663 * ioext.h: (scm_sys_isatty_p): Typo.
3664
3665 * list.h (scm_list_head): Missing prototype for function in
3666 list.c added.
3667
3668 * numbers.c (scm_two_doubles): Changed from extern to static
3669 (is used only within numbers.c).
3670
3671 * numbers.h: Repeated declarations removed.
3672
3673 * ports.h (scm_close_all_ports_except): Declaration for the
3674 function defined in ports.c added.
3675
3676 * posix.h: Missing declarations added.
3677
3678 * procs.h (scm_make_subr_opt): Missing declaration added.
3679
3680 * socket.h (scm_sys_gethost): Missing declaration added.
3681
3682 * socket.h: Redundant declarations removed (they are in fdsocket.h).
3683
3684 * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
3685 Missing declarations added.
3686
3687 * stime.h (scm_get_internal_real_time): Repeated declarations removed.
3688
3689 * struct.c: Uninitialized variable `SCM answer' may be used.
3690
3691 * unif.c (l2ra): Declaration prototype.
3692
3693 * unif.c (scm_array_equal_p): Dummy definition removed (it is
3694 defined in ramap.c).
3695
3696 * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
3697 Redundant declarations removed (they are in ramap.h).
3698
3699 * variable.h (scm_make_udvariable,
3700 scm_make_undefined_variable): Declaration corrected to
3701 correspond variable.c.
3702
3703 * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
3704 Missing declarations added.
3705
3706 Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
3707
3708 * Makefile.in (distclean): Don't forget to delete fd.h.
3709
3710 Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
3711
3712 * fd.h.in, tags.h: Trivial cleanups.
3713
3714 * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
3715 marksweep.h just declared functions from gc.c.
3716 * gc.h, libguile.h: Don't #include "marksweep.h".
3717 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
3718 marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
3719 dependencies updated.
3720
3721 * libguile.h: Don't #include "files.h"; it's been deleted.
3722
3723 * files.c (scm_sys_delete_file): Moved to filesys.c.
3724 File is now empty; deleted.
3725 * files.h: Deleted.
3726 * filesys.c: scm_sys_delete_file is now here. Remove
3727 #if's; they seem to rely on remnants of an old portability
3728 regimen. If the problems come up again, solve them properly,
3729 using autoconf. Specifically: Don't test M_SYSV, and #define
3730 remove to be unlink if it's #defined; don't use remove just
3731 because HAVE_STDC_HEADERS is #defined.
3732 * filesys.h: Add declarations for scm_sys_delete_file.
3733 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
3734 files.o, files.h, files.c, and files.x.
3735 * init.c: Don't #include "files.h", and don't call scm_init_files.
3736
3737 Use SCM_P instead of PROTO; the latter intrudes on the user's
3738 namespace.
3739 * params.h: Deleted; definition of SCM_P moved to...
3740 * __scm.h: ... here, where it replaces PROTO macro.
3741 * libguile.h, smob.h: Don't #include "params.h".
3742 * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
3743 smob.h: Fix prototypes accordingly.
3744 * Makefile.in: Update dependencies.
3745 (inner_h_files): Remove params.h.
3746
3747 * gc.c: #include "gc.h"; every module should include its header,
3748 to let the compiler cross-check the declarations against the
3749 definitions.
3750
3751 * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
3752 simpos.h: #include "libguile/__scm.h".
3753
3754 Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
3755
3756 * init.c: Don't forget to #include smob.h and init.h.
3757 * Makefile.in: Dependencies updated.
3758
3759 * smob.h: Use PROTO instead of #if __STDC__.
3760
3761 * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
3762
3763 * __scm.h: Doc fixes.
3764
3765 * __scm.h, libguile.h: Use "quotes" in the #includes, not
3766 <angles>; this allows `make depends' to work properly.
3767
3768 * libguile.h: #include smob.h and pairs.h before the others; they
3769 define typedefs used by other headers.
3770
3771 C files should #include only the header files they need, not
3772 libguile.h (which #includes all the header files); the pointless
3773 recompilation was wasting my time.
3774 * Makefile.in (all .o dependency lists): Regenerated.
3775 * libguile.h: Don't try to get a definition for size_t here...
3776 * __scm.h: Do it here.
3777 * _scm.h: Since this is the internal libguile header, put things
3778 here that all (or a majority) of the libguile files will want.
3779 Don't #include <libguile.h> here; that generates dependencies on
3780 way too much. Instead, get "__scm.h", "error.h", "pairs.h",
3781 "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
3782 "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
3783 "async.h".
3784 * alist.c: Get "eq.h", "list.h", "alist.h".
3785 * append.c: Get "append.h", "list.h".
3786 * arbiters.c: Get "arbiters.h", "smob.h".
3787 * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
3788 * boolean.c: Get "boolean.h".
3789 * chars.c: Get "chars.h".
3790 * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
3791 "stackchk.h".
3792 * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
3793 "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
3794 "genio.h", "throw.h", "eval.h".
3795 * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
3796 * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
3797 "stackchk.h".
3798 * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
3799 * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
3800 "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
3801 "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
3802 "debug.h".
3803 * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
3804 * feature.c: Get "feature.h".
3805 * files.c: Get "files.h".
3806 * filesys.c: Get "filesys.h", "smob.h", "genio.h".
3807 * fports.c: Get "fports.h", "markers.h".
3808 * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
3809 "genio.h", "struct.h", "stackchk.h", "stime.h".
3810 * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
3811 "read.h", "strports.h", "tag.h".
3812 * genio.c: Get "genio.h", "chars.h".
3813 * gsubr.c: Get "gsubr.h", "genio.h".
3814 * hash.c: Get "hash.h", "chars.h".
3815 * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
3816 * init.c: Get everyone who has an scm_init_mumble function:
3817 "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
3818 "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
3819 "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
3820 "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
3821 "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
3822 "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
3823 "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
3824 "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
3825 "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
3826 "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
3827 "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
3828 "async.h", "arbiters.h", "append.h", "alist.h".
3829 * ioext.c: Get "ioext.h", "fports.h".
3830 * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
3831 * list.c: Get "list.h", "eq.h".
3832 * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
3833 * mallocs.c: Get "smob.h", "genio.h".
3834 * markers.c: Get "markers.h".
3835 * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
3836 "chars.h".
3837 * numbers.c: Get "unif.h", "genio.h".
3838 * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
3839 * options.c: Get "options.h".
3840 * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
3841 "markers.h", "chars.h", "genio.h".
3842 * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
3843 "read.h", "scmsigs.h", "genio.h", "fports.h".
3844 * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
3845 "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
3846 "chars.h".
3847 * procprop.c: Get "procprop.h", "eval.h", "alist.h".
3848 * procs.c: Get "procs.h".
3849 * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
3850 "chars.h", "smob.h", "unif.h".
3851 * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
3852 "eval.h", "genio.h", "chars.h".
3853 * root.c: Get "root.h", "stackchk.h".
3854 * scmsigs.c: Get "scmsigs.h".
3855 * sequences.c: Get "sequences.h".
3856 * simpos.c: Get "simpos.h", "scmsigs.h".
3857 * smob.c: Get "smob.h".
3858 * socket.c: Get "socket.h", "feature.h".
3859 * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
3860 "alist.h", "smob.h".
3861 * stackchk.c: Get "stackchk.h", "genio.h".
3862 * stime.c: Get "stime.h"."libguile/continuations.h".
3863 * strings.c: Get "strings.h", "chars.h".
3864 * strop.c: Get "strop.h", "chars.h".
3865 * strorder.c: Get "strorder.h", "chars.h".
3866 * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
3867 * struct.c: Get "struct.h", "chars.h".
3868 * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
3869 "variable.h", "eval.h", "chars.h".
3870 * tag.c: Get "tag.h", "struct.h", "chars.h".
3871 * throw.c: Get "throw.h", "continuations.h", "debug.h",
3872 "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
3873 * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
3874 "smob.h", "genio.h", "eval.h", "chars.h".
3875 * variable.c: Get "variable.h", "smob.h", "genio.h".
3876 * vectors.c: Get "vectors.h", "eq.h".
3877 * version.c: Get "version.h".
3878 * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
3879 * weaks.c: Get "weaks.h".
3880
3881 * stackchk.h: #include "libguile/debug.h",
3882
3883 * print.h, read.h: #include "options.h", since everyone who uses
3884 either of these files will need that.
3885
3886 * smob.h: #include "ports.h", "genio.h", and "print.h", since
3887 anyone who uses this file will need them to define the smob
3888 printing functions. Also, get markers.h, since people will need
3889 to #define the mark functions.
3890
3891 * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
3892 * ports.h: ... to here.
3893
3894 * ports.h (scm_port_table_size): Explicitly give type as 'int';
3895 don't rely on archaic C default type rules.
3896
3897 * fports.h: #include "libguile/ports.h", since you need that in
3898 order to parse this.
3899
3900 * genio.h: #include "libguile/print.h", because you need that to
3901 parse this; don't bother #including "ports.h", since print.h gets
3902 that.
3903
3904 * error.h: Don't #include "pairs.h"; _scm.h will do that now.
3905
3906 * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
3907 this; it's now a reference to an element of *scm_root.
3908
3909 * debug.h: Don't #include "options.h"; the compiler won't be able
3910 to find that once the headers are installed; instead, #include
3911 "libguile/options.h".
3912 * gc.h: Same, with marksweep.h.
3913 * mbstrings.h: Same, with symbols.h.
3914 * scmhob.h: Same, with _scm.h.
3915 * smob.h: Same, with params.h.
3916
3917 * Makefile.in (depends): Don't nuke scmconfig.h and the generated
3918 C files; there's no need for this, and it forces recompilations
3919 unnecessarily.
3920
3921 Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
3922
3923 * error.c (scm_error): declare scm_error_callback.
3924
3925 * error.h: prototype for scm_error_callback.
3926
3927 * __scm.h: define lgh_error.
3928 (SCM_SYSERROR): redefine using lgh_error.
3929
3930 Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
3931
3932 * error.c (scm_error): new procedure.
3933
3934 * error.h: prototype for scm_error.
3935
3936 * Makefile.in (install): install scmconfig.h from the current
3937 directory, not $(srcdir).
3938
3939 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
3940
3941 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
3942 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
3943 feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
3944 hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
3945 mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
3946 posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
3947 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
3948 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
3949 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
3950 vports.h, weaks.h: #include "libguile/__scm.h", not
3951 <libguile/__scm.h>. This allows 'gcc -MM' to determine which
3952 dependencies are within libguile properly.
3953
3954 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
3955
3956 * Makefile.in (.c.x): Simplify; there's no need to run this rule
3957 when scmconfig.h doesn't exist.
3958
3959 * load.c (scm_sys_try_load): Correct spelling.
3960
3961 * feature.c (scm_loc_features): Make this static.
3962
3963 * Makefile.in (libpath.h): Omit trailing slash from path. We
3964 shouldn't require it of users, so why put it here?
3965
3966 Move code to initialize and search %load-path from ice-9 to C
3967 code, so we can use the load-path to find the ice-9 boot code;
3968 this makes it easier to run Guile without installing it. See
3969 corresponding changes in guile/Makefile.in.
3970 * feature.c: Move stuff concerned with the load path to load.c.
3971 (scm_compiled_library_path): Deleted.
3972 Don't #include libpath.h here.
3973 * feature.h: Don't mention scm_compiled_library_path.
3974 * load.c: #include "libpath.h" here, as well as <sys/types.h>,
3975 <sys/stat.h>, and <unistd.h> (if present).
3976 (R_OK): #define if the system hasn't deigned to.
3977 (scm_loc_load_path): New variable.
3978 (scm_init_load_path, scm_sys_search_load_path,
3979 scm_sys_try_load_path): New functions.
3980 (scm_init_load): Initialize scm_loc_load_path to point to the
3981 value cell of the Scheme %load-path variable.
3982 * load.h: Add declarations for scm_sys_search_load_path,
3983 scm_sys_try_load_path.
3984 * init.c: Call scm_init_load_path.
3985 * Makefile.in (feature.o, load.o): Dependencies updated.
3986
3987 * load.c, load.h: Rewrite using PROTO macro.
3988
3989 Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
3990
3991 * gc.c (scm_cellp): New function: C predicate to determine if an
3992 SCM value can be regarded as a pointer to a cell on the heap.
3993
3994 * gc.h: Added declaration of scm_cellp.
3995
3996 * gdb_interface.h: New file: The GDB interface header from the GDB
3997 distribution.
3998
3999 * gdbint.c: New file: GDB interface.
4000
4001 * gdbint.h: New file: GDB interface.
4002
4003 * libguile.h: Added #include <libguile/gdbint.h>.
4004
4005 * init.c (scm_boot_guile): Added scm_init_gdbint.
4006
4007 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
4008 Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
4009 found if object files and source are kept separate).
4010
4011 Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
4012
4013 * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
4014
4015 Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
4016
4017 * configure.in: Don't substitute the values of TCL_SRC_DIR and
4018 TK_SRC_DIR; they're not relevant any more.
4019
4020 * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
4021 * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
4022
4023 Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
4024
4025 * PLUGIN/guile.config (xtra_cflags): Include .. in the header
4026 search path, so we can find the <libguile/MUMBLE.h> headers.
4027
4028 * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
4029
4030 * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
4031 implicit in the .c.o rule.
4032 (.c.x): Don't mention ALL_CFLAGS here; its value is included in
4033 $(CC) already.
4034
4035 Put the library path in a header file, instead of passing it on
4036 the command line in every compilation.
4037 * Makefile.in (libpath.h): New target.
4038 (feature.o): Depend on libpath.h.
4039 (clean): Delete libpath.h.
4040 (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
4041 * feature.c: ... #include "libpath.h" here.
4042 * .cvsignore: Ignore libpath.h.
4043
4044 Don't install the unwashed masses of Guile header files in the
4045 main #include path; put most of them in a subdirectory called
4046 'libguile'. This avoids naming conflicts between Guile header
4047 files and system header files (of which there were a few).
4048 * Makefile.in (pkgincludedir): Deleted.
4049 (innerincludedir): New variable; this and $(includedir) are enough.
4050 (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
4051 (installed_h_files): Divide this up. Now this variable lists
4052 those header files which should go into $(includedir) (i.e. appear
4053 directly in the #include path), and ...
4054 (inner_h_files): ... this new variable says which files appear in
4055 a subdirectory, and are referred to as <libguile/mumble.h>.
4056 (h_files): List them both.
4057 (install): Create innerincludedir, not pkgincludedir. Put
4058 the installed_h_files and inner_h_files in their proper places.
4059 (uninstall): Corresponding changes.
4060 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
4061 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
4062 feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
4063 ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
4064 mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
4065 print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
4066 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
4067 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
4068 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
4069 vports.h, weaks.h: Find __scm.h in its new location.
4070 * __scm.h: Find scmconfig.h and tags.h in their new locations
4071 (they're both "inner" files).
4072
4073 Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
4074
4075 * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
4076
4077 Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
4078
4079 * posix.c: Doc fixes.
4080
4081 Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
4082
4083 * socket.c: Don't include a prototype for inet_aton; just use a
4084 K&R style declaration, to avoid warnings but minimize the chance
4085 of conflicts with the system.
4086
4087 On NextStep, <utime.h> doesn't define struct utime, unless we
4088 #define _POSIX_SOURCE before #including it.
4089 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
4090 * acconfig.h: New comment text for above CPP symbol.
4091 * configure.in: Call it.
4092 * posix.c: #define _POSIX_SOURCE if it seems necessary.
4093
4094 * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
4095 in the list.
4096 * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
4097 testing for __EMX__.
4098
4099 * posix.c: #include <libc.h>, if it exists.
4100
4101 * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
4102 don't even know if the latter exists.
4103
4104 * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
4105 s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
4106 s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
4107
4108 * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
4109 header files don't.
4110 (scm_init_posix): Use them when initializing the Scheme constants
4111 of the same name.
4112
4113 Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
4114
4115 * Makefile.in (libdir, includedir, bindir): Use the
4116 autoconf-supplied values, instead of deriving them ourselves.
4117 (pkgincludedir, datadir, pkgdatadir): New variables.
4118 (install, uninstall): Put the header files in a special
4119 subdirectory, not in the main search path.
4120
4121 * Makefile.in (ALL_CFLAGS): Provide the proper value for
4122 LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
4123
4124 * Makefile.in (IMPLPATH): Deleted; never used.
4125
4126 * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
4127 on the Tcl/Tk source any more.
4128 (INCLUDE_CFLAGS): Remove references to the above.
4129
4130 * Makefile.in (version.o): Corrected dependencies.
4131
4132 Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
4133
4134 * libguile.h: #include "version.h"
4135
4136 * init.c (scm_boot_guile): Call scm_init_version.
4137 * gscm.c (gscm_run_scm): Call scm_init_version.
4138
4139 * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
4140 GUILE_VERSION): AC_DEFINE these.
4141 (acconfig.h): #undef the above symbols.
4142
4143 * Makefile.in (libobjs): Add version.o.
4144 (installed_h_files): Add version.h.
4145 (c_files): Add version.c.
4146 (gen_c_files): Add version.x.
4147 (version.o): New rule.
4148 (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
4149 chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
4150 fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
4151 genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
4152 mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
4153 objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
4154 procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
4155 simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
4156 strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
4157 throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
4158 weaks.o): Add version.h to dependency lists.
4159 (markers.o): Remove duplicate rule.
4160
4161 * version.h: New file.
4162
4163 * version.c: New file.
4164
4165 Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
4166
4167 * symbols.c (scm_strhash): scm_downcase is now a function, not an
4168 array; use it appropriately. Since GCC is quite happy to
4169 subscript functions, it never warned us about this; we should use
4170 -Wpointer-arith in the future. I guess we never tested
4171 case-insensitivity.
4172
4173 Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
4174
4175 * socket.c: Doc and copyright fixes.
4176
4177 Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
4178
4179 * debug.c: Fixed and improved gdb support.
4180
4181 Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
4182
4183 * socket.c: Added declaration of inet_aton to avoid compiler
4184 warning. (Hope this solution is correct.)
4185
4186 * stime.c: Added declaration of ftime. (This is missing in
4187 Solaris 2 headers.)
4188
4189 Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
4190
4191 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
4192
4193 * Makefile.in (c_files): add strerror.c.
4194
4195 * strerror.c: new file from Emacs' sysdep.c.
4196 maybe configure should also check for sys_errlist.
4197
4198 * configure.in (AC_REPLACE_FUNCS): add strerror.
4199
4200 Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
4201
4202 * debug.c (scm_init_debug): Added initialization for
4203 scm_evaluator_traps.
4204
4205 * debug.h, debug.c: Various name changes.
4206 (Mostly prefixing with SCM_.) Renamed "debug-options" -->
4207 "debug-options-interface". See commentary in options.c.
4208
4209 * options.h, options.c: Options now have documentation strings.
4210 Also added a long explanatory commentary.
4211
4212 * eval.c, print.h, print.c, read.h, read.c: Modifications to
4213 run-time options.
4214
4215 * gscm.c, init.c, root.c, throw.c: Bug fixes:
4216 last_debug_info_frame is now updated in all cases.
4217
4218 * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
4219 checking.
4220
4221 Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
4222
4223 * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
4224 Added option STACK_CHECKING.
4225
4226 Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
4227
4228 * Makefile.in: Added {debug,options,srcprop}.{h,c}
4229
4230 * __scm.h: Removed symbols for debugging support.
4231
4232 * acconfig.h: Added symbols for debugging support.
4233
4234 * configure.in: Added user option for debugging support.
4235 --enable-debug will include the debugging code into libguile.a.
4236
4237 * continuations.c (scm_make_cont): Enlarged the #if 0 around
4238 scm_relocate_chunk_to_heap.
4239
4240 * debug.c: New file: low-level debugging support. It also
4241 includes support for debugging with gdb. (The extensions to gdb
4242 are written by Per Bothner at Cygnus.)
4243
4244 * debug.h: New file: low-level debugging support.
4245
4246 * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
4247 argument pairs. Extensive modifications to the debugging
4248 evaluator. Added "SECTION:" commentaries to clarify what happens
4249 when, during double compilation. Renamed EVALIMP --> EVALIM.
4250 Renamed EVAL --> XEVAL. Removed function evalcar. Defined
4251 evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
4252 the beginning of the file. New procedure: scm_unmemocopy.
4253 Added some global state variables needed by the debugging
4254 evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
4255 check_entry, check_apply, check_exit, debug_options and
4256 evaluator_traps. New acro: undefine.
4257
4258 * eval.h: Renamed EVAL --> XEVAL.
4259
4260 * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
4261 --> scm_make_weak_key_hash_table.
4262
4263 * init.c (scm_restart_stack, scm_boot_guile): Added initialization
4264 of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
4265
4266 * libguile.h: Conditionally include debug.h
4267
4268 * objprop.c (scm_object_properties, scm_set_object_properties_x):
4269 scm_object_properties shouldn't return handle. `handle' now gets
4270 initialized in scm_set_object_properties_x. scm_object_properties
4271 doesn't any longer create an entry in scm_object_whash.
4272
4273 * options.c: New file: handling of run time options.
4274
4275 * options.h: New file: handling of run time options.
4276
4277 * posix.c (scm_getpgrp): Cast pointer to getpgrp.
4278
4279 * print.c: New procedure: scm_print_options
4280
4281 * print.h: Defines for print options.
4282
4283 * read.c: New procedure: scm_read_options
4284
4285 * read.h: Defines for reader options.
4286
4287 * root.h: Added scm_source_whash among scm_sys_protects.
4288
4289 * srcprop.c: New file: source properties.
4290
4291 * srcprop.h: New file: source properties.
4292
4293 * throw.c (jbsmob): Jump buffers are now correctly allocated.
4294 (Bug found by A. Green.)
4295
4296 * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
4297
4298 * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
4299
4300 Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
4301
4302 * libguile.h: #include "objprop.h"; I guess this was forgotten.
4303
4304 * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
4305 and should be called by the final client.
4306
4307 Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
4308
4309 * gc.h: Use the PROTO macro when declaring functions.
4310 * gc.c: Use the PROTO macro when declaring static functions.
4311 Remove the CPP hair around function definitions.
4312
4313 * gc.c (scm_init_storage): Initialize scm_asyncs.
4314
4315 * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
4316 preprocessor symbol; "__scm.h" is where it might get #defined.
4317 * __scm.h: Similar: #include <scmconfig.h> before testing
4318 HAVE_LIMITS_H.
4319
4320 * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
4321
4322 Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
4323
4324 * init.c (scm_boot_guile): Add init_func argument; call
4325 (*init_func) instead of calling scm_appinit; it's ucky to
4326 hard-code names for the user's procedures.
4327 * init.h (scm_boot_guile): Adjust declaration.
4328
4329 * __scm.h (PROTO): New macro, for declaring functions with
4330 prototypes.
4331
4332 * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
4333 eliminate all the __STDC__ conditionals.
4334 (scm_boot_guile): Add declaration.
4335 * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
4336 Remove __STDC__ conditionals around function definitions; the
4337 declarations in init.h will provide the same information, more
4338 usefully.
4339
4340 * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
4341 complain about it in the error message; the error message is
4342 adequate without that note, and there's nothing the user can do
4343 about it.
4344
4345 Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
4346
4347 * Makefile.in (ancillary): Drop def.sed.
4348
4349 * posix.c (scm_init_posix): Use numeric values, rather than
4350 CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
4351 F_OK. The symbols aren't available on some systems, and I'm
4352 pretty sure their values are fixed by common widespread practice.
4353 * ioext.c (scm_init_ioext): Code here defined them too; remove it.
4354
4355 More functions unavailable on some systems.
4356 * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
4357 tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
4358 check for.
4359 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
4360 * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
4361 scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
4362 bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
4363 stub that signals an error as the #else.
4364
4365 * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
4366
4367 Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
4368
4369 * Fixes motivated by Petr Adamek <adamek@mit.edu>:
4370
4371 * unif.c: include ramap.h.
4372
4373 * read.c (endif): case_insensative_p renamed case_insensitive_p.
4374
4375 * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
4376
4377 * ports.c: include sys/ioctl.h.
4378
4379 * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
4380
4381 * configure.in: check for sys/ioctl.h.
4382
4383 * ports.c: include <malloc.h> not "malloc.h".
4384
4385 * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
4386
4387 * fports.c: remove ttyname and tmpnam declarations.
4388
4389 * posix.c: fewer ttyname declarations.
4390
4391 * fports.c: include <string.h> not "string.h".
4392
4393 * init.c, ioext.c: include string.h and unistd.h.
4394
4395 * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
4396
4397 * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
4398 genio.c, simpos.c, vports.c: include string.h.
4399
4400 * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
4401
4402 * fdsocket.c (getsockopt, setsockopt): change type of optlen from
4403 scm_sizet to int.
4404 (scm_addr_buffer_size): change type from scm_sizet to int.
4405 (accept, getsockname, getpeername, recvfrom): change type of tmp_size
4406 from scm_sizet to int.
4407
4408 * error.c: include unistd.h.
4409
4410 * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
4411 defined.
4412
4413 * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
4414
4415 * __scm.hd, def.sed: deleted.
4416
4417 Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
4418
4419 Changes for NeXT, suggested by Robert Brown.
4420 * configure.in: Call AC_TYPE_MODE_T.
4421 (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
4422 NeXT. Put header file list in alphabetical order.
4423 * configure, scmconfig.h.in: Regenerated.
4424 * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
4425
4426 * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
4427 for strerror.
4428
4429 * acconfig.h: New file, providing documentation for the CPP
4430 symbols defined in configure.in
4431 * acconfig-1.5.h: Removed; superceded by the above.
4432
4433 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
4434
4435 * ioext.c (scm_sys_fdopen): fix the port-table assignment.
4436
4437 * fports.c (scm_open_file): don't return #f, throw error.
4438
4439 * ioext.c (fileno): renamed from %fileno.
4440 (soft-fileno): deleted.
4441
4442 * ports.c (scm_port_revealed): don't need to check for -1 from
4443 scm_revealed_count.
4444 (scm_set_port_revealed_x): return unspecified, not #f.
4445
4446 * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
4447
4448 * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
4449
4450 * scmconfig.h.in: add HAVE_STRUCT_LINGER.
4451
4452 * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
4453
4454 Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
4455
4456 * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
4457 This is necessary on Ultrix, and doesn't hurt portability.
4458
4459 * Makefile.in (dist-dir): New target, implementing a new dist system.
4460 (installed_h_files): Put in alphabetical order.
4461 Remove duplicate entries for markers.h and unif.h.
4462 (c_files): Remove duplicate entries for markers.c.
4463 (ancillary): Renamed from anillery; all uses changed. Remove
4464 PLUGIN; it's a directory, and needs special treatment in dist-dir.
4465 Remove all the ../doc/* files; doc/Makefile.in handles that.
4466
4467 * Makefile.in (libobjs): Remove duplicate entry for markers.o.
4468
4469 * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
4470 every if must have an else, or else the whole command has a
4471 non-zero exit code whenever the if's condition is false.
4472
4473 Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
4474
4475 * posix.c: include string.h.
4476
4477 Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
4478
4479 * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
4480 have been once.
4481
4482 * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
4483 Remove leading % from scheme names.
4484 Do not return error values, call SCM_SYSERROR or similar.
4485
4486 * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
4487
4488 Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
4489
4490 * struct.c (scm_init_struct): new file.
4491
4492 Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
4493
4494 * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
4495 (scm_list_head): added list-head for rapidly chopping argument
4496 lists off of longer lists (and similar).
4497
4498 Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
4499
4500 * objprop.c (scm_object_property): assq the cdr of the whash
4501 handle for obj, not the handle itself.
4502
4503 Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
4504
4505 * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
4506 weak hash tables last of all marking to avoid an obscure gc bug.
4507 WARNING: circular lists stored in a weak hash table will hose us.
4508
4509 Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
4510
4511 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
4512 new functions similar to scm_substring_move_left_x and
4513 scm_substring_move_right_x.
4514
4515 Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
4516
4517 * init.c (scm_boot_guile): prevent gc with scm_block_gc not
4518 scm_gc_heap_lock!
4519
4520 Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
4521
4522 * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
4523
4524 Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
4525
4526 * strports.c (scm_strprint_obj): convenience function. C for
4527 (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
4528
4529 * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
4530 removed to a separate library
4531
4532 * init.c (scm_boot_guile): copied from guile-tcl.c.
4533 Initialization specific to tcl interpreters removed.
4534
4535 Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
4536
4537 * ports.c (scm_ports_prehistory): size malloced here doesn't
4538 matter so long as it is non-0 (got rid of "* 4").
4539
4540 Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
4541
4542 * gscm.h: gscm_mkarray eliminated (presumably was not being used
4543 since its definition was bogus).
4544
4545 Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
4546
4547 * mallocs.[ch]: back again (for rx at least).
4548
4549 Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
4550
4551 * ports.c: removed functions relating to the mapping between ports
4552 and descriptors. (That stuff is unix-specific and should be collected
4553 in a separate library).
4554
4555 * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
4556 (Tom Mckay@avanticorp.com)
4557
4558 Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
4559
4560 * gc.c (scm_gc_sweep): Immediates in weak vectors were not
4561 handled correctly (SCM_FREEP was applied to them) -- test for
4562 NIMP. Keys in weak hash tables were spuriously (though harmlessly)
4563 being overwritten with #f. (brown@grettir.bibliotech.com)
4564
4565 Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
4566
4567 * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
4568 for a specific symbol or for all symbols.
4569
4570 Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
4571
4572 * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
4573 keys and weak values confused).
4574
4575 Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
4576
4577 * list.c (scm_last_pair): map '()=>'()
4578
4579 Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
4580
4581 * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
4582 Generalized assoc and hash-table functions.
4583 Factored pairs.c into multiple files.
4584
4585 Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
4586
4587 * gscm.c (gscm_run_scm): got rid of objprop.
4588
4589 Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
4590
4591 * genio.c (scm_getc):
4592 NOTE: fgetc may not be interruptable.
4593
4594 * procprop.c (scm_stand_in_scm_proc):
4595 NOTE: don't use a alist here.
4596 (scm_set_procedure_properties_x): fix type checking throughout this file.
4597
4598 * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
4599
4600 * ports.c (scm_remove_from_port_table): adjust scm_mallocated
4601 after freeing part of the port table.
4602
4603 Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
4604
4605 * strports.c (scm_mkstrport):
4606 * vports.c (scm_make_soft_port): allocate a port table entry
4607 (possibly triggering gc) before setting the tag of the corresponding
4608 ports handle.
4609
4610 * pairs.c (scm_delq_x): never throw an error.
4611
4612 * vectors.c (scm_make_vector): made the default vector fill argument
4613 into '() (much more useful than the previous value, "#unspecified")
4614
4615 Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
4616
4617 * ports.c (scm_add_to_port_table): Added fields
4618 to port table entries: file_name, line_num, col.
4619 Update these in open_file, gen_getc and gen_ungetc.
4620 Added procedures to access those fields.
4621
4622 Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
4623
4624 * procs.c (scm_make_subr_opt): new entry point for making
4625 anonymous subrs.
4626
4627 Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
4628
4629 * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
4630
4631 Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
4632
4633 * numbers.c (scm_exact_p): This function no longer
4634 implements "integer?".
4635
4636 Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
4637
4638 * gc.c (scm_gc_end): simulate a signal at the end of each GC.
4639 (scm_gc_stats): return an assoc of useful data. Replaces "room"
4640 and the stats reporting formerlly built into repl.
4641
4642 * repl.[ch]: removed.
4643 GC statistics keeping moved to gc.c.
4644 Other statistics keeping can be done from Scheme.
4645 REPLS are now written in Scheme.
4646
4647 Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
4648
4649 * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
4650 conservatively marked objects).
4651
4652 * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
4653
4654 * error.c (scm_init_error): init system_error_sym here, not in repl.c.
4655
4656 * feature.c (scm_compiled_library_path): moved here from repl.c.
4657 This file is for stuff relating specifically to Scheme libraries
4658 like slib.
4659
4660 * eval.c (scm_m_define): don't give warning about redefinition, don't
4661 check verbosity.
4662
4663 NOTE: this should throw a resumable exception with parameters --
4664 the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
4665
4666 * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
4667
4668 * error.c: scm_warn eliminated.
4669
4670 * read.c (scm_lreadr): extra right paren gets an error, not a warning.
4671
4672 * repl.c, marksweep.c, gc.c (various):
4673 lose exit_report, growth_mon.
4674
4675 * gscm.c: got rid of verbosity functions.
4676
4677 Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
4678
4679 * throw.c (scm_ithrow): guard against the bad-throw hook changing
4680 between the call to procedurep and use.
4681
4682 * error.c (scm_everr):
4683 * gc.c (fixconfig):
4684 * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
4685 but less so.
4686
4687 * strports.c: don't reveal the port's string to the caller
4688 because it changes size.
4689
4690 (stputc stwrite): check/change the strings length with interrupts
4691 blocked.
4692
4693 * objprop.c (scm_set_object_property_x &c): use the generic
4694 hashing functions and be threadsafe.
4695
4696 * eval.c (scm_unmemocar): do this operation in a thread-safe way.
4697 (per suggestion jaffer@gnu.ai.mit.edu).
4698
4699 * mbstrings.c (scm_multi_byte_string): guard against argument list
4700 changing length.
4701
4702 * strings.c (scm_make_string): loop cleanup
4703
4704 * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
4705 a scheme function.
4706
4707 * weaks.c (scm_weak_vector): guard against argument list
4708 changing length.
4709
4710 * variable.c (scm_builtin_variable): check for/make a built-in
4711 variable automicly.
4712
4713 * vectors.c (scm_vector): while filling the new array,
4714 guard against a list of fill elements that grows after
4715 the vector is allocated.
4716
4717 * hashtab.c -- new file: general hash table
4718 functions. hash, hashq, hashv, hashx.
4719
4720 * tags.h: made wvect an option bit of vector.
4721
4722 Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
4723
4724 * symbols.c: made the basic symbol table operations atomic.
4725
4726 * root.c &c.: collected stack-specific global state.
4727 linum/colnum etc *should* be port-specific state.
4728
4729 * struct.c (scm_init_struct): init the first struct type during
4730 initialization to fix a race condition.
4731
4732 * continuations.c (scm_dynthrow): pass throwval in the 'regs'
4733 object, not in a global.
4734 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
4735
4736 * throw.c (_scm_throw): Pass throwval on the stack, not in a global
4737 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
4738
4739 * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
4740 and C symbols to begin with SCM_ or scm_.
4741
4742 Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
4743
4744 * gsubr.c (scm_gsubr_apply): statically allocate the
4745 array of arguments (bothner@cygnus.com).
4746
4747 Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
4748
4749 * scmsigs.c: Simplified to use async rountines.
4750
4751 * async.c: New support for interrupt handlers.
4752
4753 Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
4754
4755 * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
4756 set the multi_byte flag correctly in symbols. This is wrong.
4757 intern_obbary_soft and msymbolize should take an extra parameter.
4758 Also, weird multibyte symbols don't print correctly.
4759 The weird symbol syntax is also a bit bogus (emacs doesn't quite
4760 cope).
4761
4762 Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
4763
4764 * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
4765 use the system symhash. == #t means create an uninterned symbol.
4766
4767 Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
4768
4769 * strings.c (scm_make_shared_substring): build'em.
4770 It might better to keep a table of these and use one
4771 less cons-pair per shared-substring.
4772
4773 Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
4774
4775 * strings.c (scm_string_shared_substring): create shared
4776 substrings. (Doesn't handle mb strings yet).
4777
4778 * mbstrings.c (scm_print_mb_string): handle RO strings.
4779
4780 * print.c (scm_iprin1): print substrings as their non-substring
4781 counterparts (dubious).
4782
4783 * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
4784 strings.
4785
4786 * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
4787
4788 * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
4789
4790 * eq.c (scm_equal_p): handle RO and MB strings.
4791
4792 * symbols.c (scm_string_to_symbol):
4793 (scm_string_to_obarray_symbol):
4794 * strop.c (scm_i_index):
4795 (scm_i_rindex):
4796 (scm_string_null_p):
4797 (scm_string_to_list):
4798 * strings.c (scm_string_length):
4799 (scm_string_ref):
4800 (scm_substring):
4801 (scm_string_append):
4802 * simpos.c (scm_system):
4803 (scm_getenv):
4804 * fports.c (scm_open_file):
4805 * strorder.c (scm_string_equal_p):
4806 (scm_string_ci_equal_p):
4807 (scm_string_less_p):
4808 (scm_string_ci_less_p):
4809 * pairs.c (scm_obj_length):
4810 * mbstrings.c (scm_multi_byte_string_length):
4811
4812 Use RO string macros for RO strings.
4813
4814 Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
4815
4816 * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
4817
4818 * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
4819 index/rindex. Do handle embedded \000 characters.
4820
4821 Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
4822
4823 * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
4824 Eliminate a (presumed) warning on some systems.
4825
4826 * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
4827 (Mikael Djurfeldt <mdj@nada.kth.se>)
4828
4829 Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
4830
4831 * eval.c (scm_map): added argument type checking.
4832 (kawai@sail.t.u-tokyo.ac.jp)
4833
4834 * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
4835 for C++. (Seth Alves <alves@gryphon.com>)
4836
4837 (gscm_cstr): uses an uninitialized local variable causing
4838 segv. (kawai@sail.t.u-tokyo.ac.jp)
4839
4840
4841 * lvectors.c (scm_get_lvector_hook):
4842 In guile-ii, the lvector code was broken. It was fixed in guile-iii.
4843 It seems to me like if it is broken again in guile-iv...Here is a patch.
4844 "! || (LENGTH (keyvec) == 0))"
4845 (From: Mikael Djurfeldt <mdj@nada.kth.se>)
4846
4847
4848 * gscm.c (gscm_sys_default_verbosity):
4849 incorrectly declared for non-__STDC__
4850 (Tom_Mckay@avanticorp.com)
4851
4852 * ports.c (scm_setfileno): Tweak the macro a bit
4853 to make it easier to port to systems that use
4854 more than a single structure field to hold a descriptor.
4855
4856 * debug.c (change_mode): Avoid GNUCism "int foo[n];"
4857 Give a warning, not an error, for unrecognized modes.
4858
4859 * eval.c (SCM_CEVAL):
4860 static char scm_s_for_each[];
4861 static char scm_s_map[];
4862 not needed.
4863
4864 * strings.c (scm_string_p):
4865 static char s_string[];
4866 (see next entry)
4867
4868 * struct.c (scm_sys_struct_set_x):
4869 static char s_sys_make_struct[];
4870 static char s_sys_struct_ref[];
4871 static char s_sys_struct_set_x[];
4872 Rearrange code to eliminate those forward decls for the sake of
4873 broken compilers.
4874
4875 * variable.c (make_vcell_variable): static char s_make_variable[];
4876 isn't needed.
4877
4878 * fports.c (scm_port_mode):
4879 chars modes[3] = "";
4880 to
4881 chars modes[3];
4882 modes[0] = '\0';
4883 (Tom_Mckay@avanticorp.com)
4884
4885
4886 * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
4887 scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
4888 (Tom_Mckay@avanticorp.com)
4889
4890 * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
4891 scm_num_eq_p() was scm_equal_p().
4892 (Tom_Mckay@avanticorp.com)
4893
4894 * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
4895 (Tom_Mckay@avanticorp.com)
4896
4897 Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
4898
4899 * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
4900 (Tom_Mckay@avanticorp.com)
4901
4902 * strop.c (scm_substring_fill_x):
4903 Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
4904 (Tom_Mckay@avanticorp.com)
4905
4906 * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
4907 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
4908
4909 * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
4910 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
4911
4912 * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
4913 can turn into an obscure gc bug.
4914
4915 * chars.c (scm_char_p): fixed PROC call.
4916
4917 * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
4918 scm_vector_set.
4919
4920 Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
4921
4922 * elisp.c (new file): dynamic scoping and other bits for
4923 elisp. Don't use this yet unless you specificly want to
4924 hack on elisp emulation.
4925
4926 * dynwind.c (scm_dowinds): When entering or leaving a dynamic
4927 scope created by scm_with_dynamic_bindings_operation_x, swap
4928 the bindings of that scope with the corresponding globals.
4929
4930 * continuations.c (scm_make_cont): when a continuation is captured,
4931 relocate the continuation stack chunks registered on the wind chain
4932 to the heap.
4933
4934 Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
4935
4936 * eval.c (SCM_CEVAL): if the function position evaluates
4937 to a macro, process it accordingly. (Previously, macros were
4938 handled only if the function position was a symbol naming a
4939 variable bound to a macro).
4940
4941 Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
4942
4943 * eval.c (scm_m_set): allow multi-variable set! like
4944 (set! x 1 y 2 z 3).
4945
4946 Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
4947
4948 * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
4949 STREAM of ports into the port table and replaced it with a
4950 port-table index.
4951
4952 * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
4953
4954 * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
4955
4956 * mbstrings.c (new file): functions on multi-byte strings.
4957
4958 * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
4959 for multi-byte strings. Moved the string tag.
4960
4961 * chars.h chars.c repl.c (many functions): made scm_upcase and
4962 scm_downcase functions that are safe for extended character sets.
4963
4964 Changed the range of integer->char.
4965
4966 Changed the type of SCM_ICHR.
4967
4968 Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
4969
4970 * guile.c: Changed init file name from "SCM_INIT_PATH" to
4971 "GUILE_INIT_PATH"
4972
4973 Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
4974
4975 * guile.c (gscm_is_gscm_type): New function. (Without this how will we
4976 know that it's safe to pass an object to gscm_get_type?)
4977 (gscm_get_type): Fix tyop in error message.
4978
4979 * variable.c (scm_variable_ref): fixed assertion test.
4980 (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
4981
4982 * gscm.h: fixed several prototypes, notably gscm_vref.
4983 Add gscm_is_eq and temporarily commented out gscm_eq (see
4984 the note in gscm.h near gscm_eq if this change effects your
4985 code).
4986 (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
4987
4988 * pairs.c (scm_obj_length): see next entry.
4989
4990 * gscm.h (gscm_obj_length): A way to get an integer
4991 length for lists, strings, symbols (treated as strings),
4992 and vectors. Returns -1 on error.
4993
4994 * eq.c (scm_equal_p): fixed smob case.
4995 (William Gribble <grib@arlut.utexas.edu>)
4996
4997 * Makefile.in (X_CFLAGS): defined.
4998 (William Gribble <grib@arlut.utexas.edu>)
4999
5000 * gscm.h (gscm_2_double): provided now
5001 (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
5002
5003 Tue Jun 13 01:04:09 1995 gnu
5004 * Vrooom!
5005
5006