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