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