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