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