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