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