1f1fdf319d57bb1af37ef394604ec9f931d877e8
[bpt/guile.git] / libguile / ChangeLog
1 1999-09-18 Gary Houston <ghouston@freewire.co.uk>
2
3 * _scm.h, scmsigs.c: replace HAVE_RESTARTS with
4 HAVE_RESTARTABLE_SYSCALLS.
5
6 * strports.c (scm_strport_to_string): create the string from
7 pt->read_buf instead of an expression that evaluates to the
8 same thing.
9
10 * gdbint.c (gdb_print): don't just use SCM_CHARS to get a C string
11 from the port: the port's buffer may not be NUL terminated.
12
13 1999-09-16 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
14
15 * Makefile.am (.c.x): Added missing semicolon after `false'.
16
17 1999-09-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
18
19 * print.c (scm_iprin1): Turn `write' and `display' into
20 primitive generics and use their associated generic functions in
21 scm_iprin1 for GOOPS objects.
22
23 * backtrace.c: #include <unistd.h> if present.
24
25 1999-09-14 Jim Blandy <jimb@savonarola.red-bean.com>
26
27 * Makefile.am (.c.x): Don't create a subshell just to delete the
28 .x file and return false.
29 * Makefile.in: Regenerated.
30
31 1999-09-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
32
33 * feature.c (scm_create_hook): New function. Replaces
34 scm_make_named_hook which is now deprecated.
35 (scm_make_hook_with_name): New primitive.
36 (print_hook): Hooks now print in a fancy way.
37
38 1999-09-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
39
40 * __scm.h, backtrace.c, backtrace.h, debug.c, debug.h, dynl-dld.c,
41 dynwind.c, dynwind.h, eval.h, evalext.c, evalext.h, feature.c,
42 feature.h, hashtab.c, hashtab.h, objects.c, objects.h, print.c,
43 procs.c, procs.h, smob.c, smob.h, srcprop.c, strorder.c, struct.c,
44 struct.h: Updated copyright notices.
45
46 * srcprop.c (scm_source_property): Bugfix: Use SCM_NECONSP instead
47 of SCM_NCONSP. (Thanks to Greg Badros.)
48
49 * gsubr.c (scm_make_gsubr): Use scm_make_subr_opt for creation of
50 the self subr.
51
52 * eval.c, debug.h (SCM_BACKTRACE_WIDTH): New debug option: width.
53
54 * backtrace.c: Keep backtraces within specified width by
55 adaptively adjusting fancy printing parameters and cut output if
56 necessary.
57 (scm_display_application): Check args.
58
59 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
60
61 Change the name of the objects returned by OPENDIR from
62 "directory" to "directory stream". A predicate named "directory?"
63 would be confusing.
64 * filesys.c (scm_directory_stream_p): Renamed from scm_directory_p.
65 At the Scheme level, "directory?" -> "directory-stream?".
66 (scm_dir_print): Use the phrase "directory stream" in printed form.
67 * filesys.h (scm_directory_stream_p): Prototype renamed
68 accordingly.
69
70 * Makefile.am (CLEANFILES): Remove versiondat.h; that should only
71 be removed by `make distclean', since it's generated by configure.
72 * Makefile.in: Regenerated.
73 (Thanks to Robert Bihlmeyer.)
74
75 * strop.c (scm_substring_move_x): Signal an error if start1
76 doesn't come before end1. (Thanks to Karoly Lorentey).
77
78 * numbers.c (scm_istr2flo): Don't call SCM_INEXP without first
79 calling SCM_NIMP. (Thanks to Karoly Lorentey).
80
81 * version.c (scm_libguile_config_stamp): Deleted. See
82 corresponding change to ../ice-9/boot-9.scm.
83 * versiondat.h.in: Remove definition for GUILE_STAMP.
84 * version.h: Delete prototype.
85 * Makefile.in: Regenerated.
86
87 1999-09-11 Gary Houston <ghouston@easynet.co.uk>
88
89 * filesys.c (scm_directory_p): new procedure "directory?" Returns
90 a boolean indicating whether its argument is a directory
91 port as returned by opendir (thanks to Dirk Herrmann for the
92 suggestion.)
93
94 1999-09-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
95
96 * backtrace.c (display_frame_expr): Don't print a newline.
97 (display_frame): Print the newline here instead.
98 (display_backtrace_body): Don't print "Backtrace:".
99 (scm_backtrace): Print "Backtrace:" here instead.
100
101 1999-09-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
102
103 * procs.c (scm_setter): Signal WTA if handed an entity or operator
104 lacking a setter.
105
106 * feature.c, feature.h: (scm_hook_p, scm_hook_empty_p): New
107 primitives. (Thanks to Greg Badros);
108 (scm_hook_to_list): New primitive; Hooks are now smobs.
109
110 1999-09-08 Gary Houston <ghouston@easynet.co.uk>
111
112 * stime.c (bdtime2c): rewrite the ASSERTs. Accept a value
113 of #f for the 10th vector element to avoid an exception
114 seen by Bernard Urban.
115 (scm_mktime): unneeded ASSERT removed.
116
117 1999-09-07 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
118
119 * eval.c (scm_map, scm_for_each): Converted to dispatch on generic
120 if args don't match.
121
122 * __scm.h (SCM_WTA_DISPATCH_n, SCM_GASSERTn): New macros.
123
124 1999-09-06 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
125
126 * numbers.c: Converted comparison operations to dispatch on
127 generic if args don't match.
128
129 * Makefile.am (ETAGS_ARGS): Added support for GPROC and GPROC1.
130
131 1999-09-06 James Blandy <jimb@mule.m17n.org>
132
133 * guile-snarf.c: Deleted. Snarfing should respect CPP
134 conditionals, so it needs to actually run CPP. Bleah.
135
136 1999-09-05 James Blandy <jimb@mule.m17n.org>
137
138 Handle errors properly in guile-snarf. (Thanks to Han-Wen Nienhuys.)
139 * guile-snarf.in: Be sure to exit with an error if CPP does.
140 * Makefile.am (.c.x): Delete the .x file and exit with an error
141 status if guile-snarf exits with an error status.
142 * Makefile.in: Regenerated.
143
144 * snarf.h (SCM_GLOBAL_KEYWORD): Call scm_c_make_keyword, not
145 scm_makekey, which doesn't exist any more. Guess nobody's using
146 this.
147
148 * guile-snarf.c: New implementation of guile-snarf, meant to be
149 more robust than the shell script. I think it's complete, but I
150 haven't tested it at all, and I haven't changed the build process
151 to actually use it. We should compare its output against that of
152 the existing shell script, for all source files.
153
154 * guile-snarf.c (parse_args): Abort if we haven't handled some
155 character type.
156
157 1999-09-03 James Blandy <jimb@mule.m17n.org>
158
159 * load.c (scm_search_path): If the filename has any extension at
160 all, ignore the entire list of extensions. Also, don't check whether
161 the file is accessible. If the file exists, accessible or not, we
162 should return it. Inaccessible files should cause an error later.
163 (Thanks to Keisuke Nishida for the suggestions.)
164
165 1999-09-02 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
166
167 * gc.c (cleanup, scm_init_storage): Use on_exit if present and
168 atexit not available. (sunos4.1.4 needs it.)
169
170 1999-09-01 James Blandy <jimb@mule.m17n.org>
171
172 I take it all back --- bcopy does handle overlapping source and
173 destination areas correctly. At least on every system I could
174 find. But it is better to use AC_REPLACE_FUNCS than to introduce
175 new CPP conditionals.
176 * memmove.c: New file, implementing memmove in terms of bcopy.
177 * scmconfig.h.in: Regenerated.
178
179 Allocators should use the `void *' type for generic pointers.
180 * gc.c (scm_must_malloc, scm_must_realloc, scm_must_free): Change
181 argument and return types.
182 * gc.h: Corresponding changes to prototypes.
183 (Thanks to Forcer.)
184
185 1999-08-31 James Blandy <jimb@mule.m17n.org>
186
187 * numbers.c (scm_init_numbers): Claim to support the `complex'
188 feature, as expected by (ice-9 format). (Thanks to Ceri Storey.)
189
190 * Makefile.am (check-local): Set GUILE_LOAD_PATH so the tests can
191 find (ice-9 boot-9) when Guile was compiled in a separate
192 directory from the source. (Thanks to Rodney Brown.)
193 * Makefile.in: Regenerated.
194
195 * procs.c (scm_make_subr_opt): Fix typo. Remember to multiply
196 table lengths by the size of a single element when growing the
197 table. (Thanks to Bill Schottstaedt.)
198
199 1999-08-30 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
200
201 * eval.c (SCM_CEVAL): Duplicated the method dispatch code at the
202 SCM_IM_DISPATCH form instead of calling scm_mcache_lookup_cmethod
203 since that cuts down the time for type dispatch by 50%.
204
205 1999-08-30 James Blandy <jimb@mule.m17n.org>
206
207 * gh_data.c (gh_set_substr): Revert change of 1999-08-29; bcopy is
208 not a correct substitute for memmove, because it doesn't handle
209 overlapping source and destination areas on many platforms.
210 Overlaps are the primary reason to use memmove in the first place.
211 * ports.c (scm_ungetc): Same.
212 * strop.c (scm_substring_move_x): Same.
213
214 1999-08-30 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
215
216 * gc.c (scm_init_storage): Skip registration of cleanup on systems
217 which lack atexit. (Is it important that cleanup is made
218 properly? Maybe we should replace all `exit' with `scm_exit' and
219 call cleanup there?)
220
221 * struct.c, struct.h (scm_struct_free_0, scm_struct_free_light,
222 scm_struct_free_standard, scm_struct_free_entity): Declared to
223 return scm_sizet instead of size_t.
224
225 * gdbint.c, strports.c: #include <unistd.h>. (SEEK_SET is defined
226 there on sunos4.1.4.)
227
228 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
229
230 * numbers.c (scm_lcm): Bugfix: BIGDIG --> SCM_BIGDIG;
231 Account for the case when second argument is unbound.
232
233 * strorder.c (scm_string_less_p, scm_string_ci_less_p): Bugfix.
234 (Thanks to Karoly Lorentey.)
235
236 * gh_data.c, ports.c, strop.c: Alternatively use bcopy if memmove
237 isn't present. (Thanks to Suzuki Toshiya.)
238
239 * ports.c: Use ANSI C prototypes in definitions. (Thanks to
240 Bernard Urban.)
241
242 * filesys.c (scm_stat2scm): Conditionally use S_ISLNK. (Thanks to
243 Bernard Urban.)
244
245 * dynl-dl.c (RTLD_GLOBAL): Define if non-existent. (Thanks to
246 Bernard Urban and Ian Grant.)
247
248 * Makefile.am (libguile_la_LDFLAGS): Bumped libguile version
249 again. (1.3.4 will be binary incompatible with 1.3.2 because of a
250 change in the representation of entities and operators.)
251
252 1999-08-29 Gary Houston <ghouston@easynet.co.uk>
253
254 * ports.c (scm_ungetc): bugfix: if putback_buf is NULL
255 don't allocate zero bytes (thanks to Bill Schottstaedt).
256
257 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
258
259 * procs.c (scm_setter): Converted to use generic dispatch.
260
261 * eval.c, eval.h: Bugfix: scm_sym_apply was not initialized
262 correctly.
263
264 * load.c (scm_search_path): Don't try extensions which already are
265 present at the end of the filename.
266 (scm_init_load): Check .scm first. (Thanks to Keisuke Nishida.)
267
268 * stacks.c (scm_sym_apply): Removed. (Thanks to Ken Raeburn.)
269
270 Cleanup and simplification of generic method dispatch.
271 Also, the quadruple representation of entity and operator
272 procedures has been replaced with single.
273
274 * tags.h (SCM_IM_HASH_DISPATCH): Removed.
275
276 * print.c (scm_isymnames): Removed #@hash-dispatch.
277
278 * objects.c, objects.h (scm_mcache_lookup_cmethod): Moved here
279 from eval.c; Support 0 arity methods.
280 (scm_set_object_procedure_x): Removed scm_sym_atdispatch;
281 (scm_apply_generic_env): Removed.
282 Replaced slots proc0-3 with procedure.
283
284 * objects.h (SCM_OPERATOR_PROC_0, SCM_OPERATOR_PROC_1,
285 SCM_OPERATOR_PROC_2, SCM_OPERATOR_PROC_3): Replaced by
286 SCM_OPERATOR_PROCEDURE.
287 (SCM_ENTITY_PROC_0, SCM_ENTITY_PROC_1, SCM_ENTITY_PROC_2,
288 SCM_ENTITY_PROC_3): Replaced by SCM_ENTITY_PROCEDURE.
289
290 * struct.c, struct.h: Replace 4 procedure slots with one.
291 (scm_struct_i_procedure): Replaces scm_struct_i_procedure.
292
293 * gc.c (scm_gc_mark): Mark 1 procedure slot in entities instead of
294 4.
295
296 * eval.c (scm_sym_args): Removed.
297 (SCM_CEVAL): Simplified entity application.
298 Moved dispatch code to objects.c.
299
300 * procprop.c (scm_i_procedure_arity): Bugfix: Handle generics.
301
302 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
303
304 * sort.c (closureless): Use scm_eval_body.
305
306 * eval.c (SCM_APPLY): Fixed serious evaluator bug: If a closure
307 with a symbol as last form was first called normally and then via
308 `map' or some other mechanism using primitive apply, an ILOC was
309 returned.
310
311 1999-08-26 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
312
313 This change extends the representation of primitive procedures
314 with more data fields, e.g. a place for documentation and true
315 procedure properties.
316
317 * procs.c, procs.h (scm_subr_entry): New type: Stores data
318 associated with subrs.
319 (SCM_SUBRNUM, SCM_SUBR_ENTRY, SCM_SUBR_GENERIC, SCM_SUBR_PROPS,
320 SCM_SUBR_DOC): New macros.
321 (scm_subr_table): New variable.
322 (scm_mark_subr_table): New function.
323
324 * init.c (scm_boot_guile_1): Call scm_init_subr_table.
325
326 * gc.c (scm_gc_mark): Don't mark subr names here.
327 (scm_igc): Call scm_mark_subr_table.
328
329
330 This change implements a scheme for letting a generic work as a
331 shadow for a primitive procedure. If the primitive procedure
332 can't dispatch on its arguments, control is left over to the
333 generic. Normal wrong type arg errors will be generated until the
334 user has hung the first method on the primitive.
335
336 * snarf.h (SCM_GPROC, SCM_GPROC1): New macros.
337
338 * procs.c, procs.h (scm_subr_p): New function (used internally).
339
340 * gsubr.c, gsubr.h (scm_make_gsubr_with_generic): New function.
341
342 * objects.c, objects.h (scm_primitive_generic): New class.
343
344 * objects.h (SCM_CMETHOD_CODE, SCM_CMETHOD_ENV): New macros.
345
346 * print.c (scm_iprin1): Print primitive-generics.
347
348 * __scm.h (SCM_WTA_DISPATCH_1, SCM_GASSERT1,
349 SCM_WTA_DISPATCH_2, SCM_GASSERT2): New macros.
350
351 * eval.c (SCM_CEVAL, SCM_APPLY): Replace scm_wta -->
352 SCM_WTA_DISPATCH_1 for scm_cxr's (unary floating point
353 primitives). NOTE: This means that it is now *required* to use
354 SCM_GPROC1 when creating float scm_cxr's (float scm_cxr's is an
355 obscured representation that will be removed in the future anyway,
356 so backward compatibility is no problem here).
357
358 * numbers.c: Converted most numeric primitives (all but bit
359 comparison operations and bit operations) to dispatch on generic
360 if args don't match.
361
362
363 Better support for applying generic functions.
364
365 * eval.c, eval.h (scm_eval_body): New function.
366
367 * objects.c (scm_call_generic_0, scm_call_generic_1,
368 scm_call_generic_2, scm_call_generic_3, scm_apply_generic): New
369 functions.
370
371
372 Optimization of the generic function dispatch mechanism.
373
374 * eval.c (SCM_CEVAL): Apply the cmethod directly after having
375 called scm_memoize_method instead of doing a second lookup.
376
377 * objects.h (scm_memoize_method): Now returns the memoized cmethod.
378
379
380 Bugfix
381
382 * procs.c (scm_make_subr_opt): Use scm_sysintern0 instead of
383 scm_sysintern so that the binding connected with the subr name
384 isn't cleared when we give set = 0.
385
386
387 1999-08-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
388
389 More transparent handling of ports with print states.
390
391 * print.h (SCM_PORT_WITH_PS_P, SCM_PORT_WITH_PS_PORT,
392 SCM_PORT_WITH_PS_PS): Represent ports with print states as a smob
393 instead of a pair of a port and a print state. We'll need to cons
394 once extra in scm_printer_apply but the type system will be
395 cleaner, it will mix better with GOOPS, and, it will be even more
396 transparent to the user.
397
398 * print.c (scm_get_print_state): New procedure: Given an output
399 port, return the print state associated to it in the current print
400 chain, if one exists;
401 (scm_port_with_print_state): New procedure: Associate a
402 print-state with a port.
403 (scm_valid_oport_value_p): Use SCM_PORT_WITH_PS_P;
404 (scm_printer_apply): Wrap port and pstate as a smob;
405 (print_state_printer): Removed.
406
407 * objects.c (scm_class_of): Treat scm_tc16_port_with_ps as ports.
408
409 * eval.c (scm_init_eval): Use scm_make_smob_type instead of
410 scm_newsmob.
411
412 * ports.c (scm_output_port_p): Bugfix: Coerce output port before
413 testing (otherwise the port-print-state trick won't be transparent
414 to the user; one example where this caused problems was in the
415 (ice-9 format) module).
416
417 1999-08-23 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
418
419 * eval.c (SCM_CEVAL): Let the SCM_IM_SLOT_SET_X form return
420 SCM_UNSPECIFIED instead of the set value.
421
422 1999-08-20 James Blandy <jimb@mule.m17n.org>
423
424 * load.c (scm_init_load_path): Remove support for SCHEME_LOAD_PATH.
425
426 * ports.h (enum scm_port_rw_active): New enum, containing
427 SCM_PORT_READ, SCM_PORT_WRITE, and SCM_PORT_NEITHER (instead of
428 zero). The debugger knows about enums, but doesn't know about
429 #defines.
430 (typedef scm_port): Declare rw_active member to be an enum
431 scm_port_rw_active.
432 * fports.c (fport_flush, fport_end_input): Use SCM_PORT_NEITHER
433 instead of zero.
434 * ports.c (scm_add_to_port_table): Same.
435 * strports.c (st_flush, st_end_input): Same.
436
437 * ioext.c (scm_do_read_line, scm_read_line): Use scm_must_malloc,
438 scm_must_realloc, and scm_done_malloc as appropriate.
439
440 1999-08-20 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
441
442 * sort.c (quicksort): Added condition to protect the algorithm
443 from crashing the interpreter if the less predicate is buggy.
444
445 1999-08-19 Gary Houston <ghouston@easynet.co.uk>
446
447 * fports.c (fport_write): fix line-buffering mode again.
448 (scm_open_file): recognise 'l' for line-buffering.
449 (scm_setvbuf): recognise _IOLBF for line-buffering.
450
451 1999-08-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
452
453 * Makefile.am (libguile_la_LDFLAGS): Increased the version number
454 of libguile to 5.0.
455
456 * eval.c (SCM_APPLY), sort.c (closureless): Expand body when
457 evaluating closures.
458
459 1999-08-18 Gary Houston <ghouston@easynet.co.uk>
460
461 * fports.c (fport_write): use memcpy instead of strncpy, in case
462 the data contains NUL.
463
464 1999-08-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
465
466 * gh.h (gh_vector_to_list): Bugfix. (Thanks to Frank Cieslok.)
467
468 * backtrace.c, debug.c, eval.c, eval.h, gsubr.c, procprop.h,
469 read.c, srcprop.c, srcprop.h (scm_i_filename, scm_i_line,
470 scm_i_column, scm_i_copy, scm_i_name, scm_i_lambda, scm_i_source,
471 scm_i_more, scm_i_procname, scm_i_dot, scm_i_arrow, scm_i_else,
472 scm_i_unquote, scm_i_uq_splicing, scm_i_apply, scm_i_enter_frame,
473 scm_i_apply_frame, scm_i_exit_frame, scm_i_trace, scm_i_quote,
474 scm_i_begin, scm_i_if, scm_i_and, scm_i_or, scm_i_case,
475 scm_i_cond, scm_i_letstar, scm_i_do, scm_i_quasiquote,
476 scm_i_define, scm_i_letrec, scm_i_let, scm_i_atapply,
477 scm_i_atcall_cc, scm_i_breakpoint): Renamed: Consequently use
478 scm_sym_ as prefix for symbols.
479
480 * debug.c (scm_i_proc, scm_i_args, scm_i_eval_args): Removed.
481
482 * eval.c, eval.h (scm_sym_begin, scm_sym_if, scm_sym_and,
483 scm_sym_case, scm_sym_cond, scm_sym_letstar, scm_sym_do,
484 scm_sym_define, scm_sym_letrec, scm_sym_atapply,
485 scm_sym_atcall_cc): Made global.
486
487 1999-08-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
488
489 * eval.c (scm_sym_args): Made global.
490
491 * objects.c (scm_set_object_procedure_x): Disallow setting of
492 procedures for pure generic functions.
493
494 1999-08-12 Gary Houston <ghouston@easynet.co.uk>
495
496 * ports.c (scm_seek): one more: was scm_lseek. Also changed the
497 Scheme name from lseek to seek, but lseek was added recently so
498 it shouldn't be a big problem.
499 * ports.c, gdbint.c, ioext.c: changed callers.
500
501 1999-08-11 Gary Houston <ghouston@easynet.co.uk>
502
503 * fports.c (fport_input_waiting): if select is used, return 1
504 instead of whatever FD_ISSET expands to. maybe it will be useful
505 to interpret the value from the input_waiting ptob procedure as a
506 lower bound on the number of bytes available.
507
508 * Mikael asked for a few names to be changed...
509
510 * ports.c (scm_make_port_type): take the write procedure as the
511 second argument instead of the flush procedure.
512 * ports.h (scm_ptob_descriptor): rename the ptob procedures:
513 fflush -> flush, read_flush -> end_input, fclose -> close,
514 fill_buffer -> fill_input, ftruncate -> truncate,
515 input_waiting_p -> input_waiting.
516
517 * ports.c (end_input_void_port): was read_flush_void_port.
518 (scm_set_port_end_input): was scm_set_port_flush_input.
519 (scm_set_port_flush): was scm_set_port_write.
520 (scm_set_port_input_waiting): was scm_set_port_input_waiting_p
521 (scm_end_input): was scm_read_flush.
522 (scm_fill_input): was scm_fill_buffer.
523 (scm_flush): was scm_fflush.
524 * fports.c (fport_input_waiting): renamed from fport_input_waiting_p.
525 (fport_end_input): was local_read_flush.
526 (fport_flush): was local_fflush.
527 (fport_close): was local_fclose.
528 (fport_truncate): was local_ftruncate.
529 (fport_seek): was local_seek.
530 (fport_free): was local_free.
531 (fport_fill_input): was fport_fill_buffer.
532 * strports.c (st_end_input): was st_read_flush.
533 (st_truncate): was st_ftruncate.
534 * vports.c: (sf_flush): was sfflush.
535 (sf_close): was sfclose.
536 (sf_fill_input): was sf_fill_buffer.
537
538 * ports.c, fports.c, strports, vports.c, ioext.c, unif.c, filesys.c:
539 change callers.
540
541 1999-08-06 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
542
543 * eval.c (SCM_IM_DISPATCH): Rewrote dispatch protocol. Dispatch
544 forms now contain the expressions to be dispatched upon instead of
545 depending on a surrounding lambda or let; Generic function
546 dispatch has been optimized; `apply' on a generic function now
547 works a little bit strangely. It uses a trick so that the type
548 dispatch code in SCM_CEVAL can be reused.
549
550 * objects.h, objects.c (scm_apply_generic_env): Added (used by
551 apply).
552 (scm_operator_p): Added.
553 (scm_sym_atdispatch): Added.
554 (scm_set_object_procedure_x): Modified to handle the new style
555 generic functions.
556 (scm_object_procedures): New debugging procedure.
557
558 1999-08-05 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
559
560 * eval.c, eval.h (scm_sym_args): Added.
561
562 * objects.h (SCM_CLASSF_PURE_GENERIC): Added.
563
564 * feature.c, feature.h (scm_c_run_hook): Added.
565
566 * eval.c (SCM_CEVAL:SCM_IM_DISPATCH): Bugfix: Jump back to
567 cdrxnoap and loopnoap instead of begin and loop.
568
569 1999-08-04 Gary Houston <ghouston@easynet.co.uk>
570
571 * ports.c (scm_putc, scm_puts),
572 * unif.c (scm_uniform_array_write): use scm_lfwrite.
573 * ports.c (scm_putc): change type of first argument from int to char.
574
575 1999-08-04 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
576
577 * eval.c (SCM_CEVAL): Improvements to SCM_IM_DISPATCH and
578 SCM_IM_HASH_DISPATCH.
579
580 * objects.h (SCM_CLASSF_GOOPS_VALID): Added.
581 (scm_si_redfined, scm_si_hashsets): Moved.
582
583 * objects.c (scm_class_of): Use the new SCM_CLASSF_GOOPS_VALID
584 flag which combines type and status info so that the class
585 redefinition protocol has zero cost during normal execution.
586
587 1999-08-03 Gary Houston <ghouston@easynet.co.uk>
588
589 * ports.h (scm_ptob_descriptor): include a write procedure again.
590 it's more efficient for unbuffered fports (e.g., sockets.)
591
592 * ports.c (scm_puts): use ptob->write.
593 * vports.c (scm_make_sfptob): set write proc in ptob.
594 * strports.c (scm_make_stptob): set write proc in ptob.
595 * ports.c (write_void_port): new procedure.
596 * vports.c (sf_write): new procedure.
597 * ports.c (scm_lfwrite): use ptob->write.
598 * strports.c (st_write): new procedure.
599 * fports.c (fport_write): new procedure.
600 (scm_make_fptob): set write in ptob to fport_write.
601 * ports.h: prototype for scm_set_port_write.
602 * ports.c (scm_make_port_type): initialise ptob write procedure.
603 (scm_set_port_write): new proc.
604
605 1999-08-01 Jim Blandy <jimb@savonarola.red-bean.com>
606
607 * ports.c (scm_char_ready_p): Don't try to find PORT's ptab entry
608 until we've verified that it is actually a port. (Thanks to
609 Lorentey Karoly.)
610
611 1999-07-31 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
612
613 * gc.c (scm_must_malloc, scm_must_realloc): Removed unnecessary
614 code, particularly an unnecessary test (len != size, where len ==
615 size). (Was this leftovers from debugging code, or have I missed
616 something profound?)
617
618 * hashtab.c: Bugfix: Don't declare s_hash_fold without storage
619 size. (Thanks to James Dean Palmer.)
620
621 * numbers.c (scm_makdbl): Bugfix: Initialize imaginary part.
622 (Thanks to Lorentey Karoly.)
623
624 1999-07-30 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
625
626 * eval.c (scm_m_expand_body): Use scm_cons_source.
627
628 * struct.c (scm_print_struct): Use vtable name.
629
630 * print.c (scm_init_print): Set name of print state type.
631
632 * stacks.c (scm_init_stacks): Set name of stack type.
633
634 1999-07-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
635
636 * eval.c (SCM_CEVAL): Removed old implementation of internal
637 define.
638
639 * gsubr.c, procprop.h (scm_i_inner_name): Removed.
640
641 * debug.c, debug.h (scm_reverse_lookup): Added.
642 (scm_procedure_name): Use scm_reverse_lookup to lookup the name of
643 internal procedure definitions; Don't use scm_i_inner_name.
644
645 * eval.c, tags.h, print.c (SCM_IM_SLOT_REF, SCM_IM_SLOT_SET_X):
646 New isym operations.
647
648 * eval.h: Added prototypes for multi language support functions.
649
650 * eval.c (SCM_IM_DISPATCH, SCM_IM_HASH_DISPATCH): Don't use
651 improper lists in the low-level representation, since that will
652 cause a begin to be prepended at macro expansion.
653
654 * eval.c (scm_cons_source): Version of cons which copies source
655 properties from an existing cell.
656 (scm_copy_tree, SCM_CEVAL): Use scm_cons_source.
657
658 * debug.c (scm_procedure_source): Cons SCM_IM_LAMBDA onto
659 procedure source before calling scm_unmemocopy instead of faking
660 an environment.
661
662 1998-10-25 Marius Vollmer <mvo@zagadka.ping.de>
663
664 Ported `internal defines' fix from SCM. Original ChangeLog entry:
665
666 1998-07-09 Radey Shouman <radey@colorage.com>
667
668 * eval.c (ceval_1): Modifications to allow rewriting of interal
669 DEFINE to LETREC: If an ISYM is evaluated in non-tail position the
670 body of which it is the CAR is macro expanded by m_expand_body,
671 which rewrites internal DEFINE.
672
673 (m_expand_body): Added.
674
675 (m_macroexp1): Added argument to control error checking:
676 m_expand_body may speculatively expand forms in the wrong
677 environments. Made argument number checks conditional on
678 RECKLESS.
679
680 (m_body): Added, error checks bodies and inserts the ISYM tokens.
681
682 (m_lambda): (m_letstar): (m_letrec1): (m_letrec): (m_let): Now
683 call m_body.
684
685 (m_cond): (m_case): (m_quote): Modified to avoid destructively
686 changing their argument forms. Since m_expand_body
687 speculatively macro expands forms the process must be
688 reversible.
689
690 (m_ident_eqp): Fixed to use proper environment.
691
692 (renamed_ident): Added DEFER_INTS_EGC.
693
694 Added prototypes for static functions.
695
696 * eval.c
697
698 (undef_cell): New.
699
700 (scm_lookupcar1, scm_lookupcar): Added CHECK argument. When CHECK
701 is false, do not produce an error for unbound variables, return a
702 pointer to cell_undef instead.
703
704 (EVALCELLCAR, XEVALCAR): Call scm_lookupcar with check=1.
705
706 (scm_m_body): New.
707
708 (scm_m_cond, scm_m_case, scm_m_quote): Modified to avoid
709 destructively changing their argument forms. Since m_expand_body
710 speculatively macro expands forms the process must be reversible.
711
712 (scm_m_lambda): Use scm_m_body instead of bodycheck. Account for
713 SCM_IM_LET introduced by named lets.
714
715 (scm_m_letstar): Use scm_m_body instead of bodycheck.
716
717 (scm_m_letrec1, scm_letrec): Split scm_letrec into scm_letrec1 and
718 scm_letrec. scm_letrec1 does not check for a null binding and
719 takes an additional argument to specify the ISYM of the body. Use
720 scm_m_body instead of bodycheck.
721
722 (scm_m_let): Use scm_m_body instead of bodycheck.
723
724 (scm_m_expand_body, scm_macroexp): New.
725
726 (unmemocopy): Account for ISYMs introduced by scm_m_body.
727
728 (ceval, deval): Call scm_m_expand_body. Call scm_lookupcar with
729 check=1. Throw error for internal defined that have not been
730 rewritten by scm_m_expand_body.
731
732 * eval.h: Added prototypes for scm_m_expand_body and scm_macroexp.
733 Removed prototype for SCM_APPLY.
734
735 * tags.h: Added extern declaration of scm_isymnames.
736
737 1999-07-27 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
738
739 * Makefile.am (EXTRA_libguile_la_SOURCES): Added lang.c.
740
741 * lang.c: New file: Beginning of multi-language support.
742
743 * init.c (scm_boot_guile_1): Added call to scm_init_lang ().
744
745 * dynwind.c (scm_dowinds): Removed obsolete wind_key #f case.
746 (scm_dynamic_wind): Added argument checking for the after guard so
747 that we don't add garbage on the dynwind chain.
748 (scm_swap_bindings): Added.
749
750 * tags.h, print.c (SCM_IM_NIL_COND, SCM_IM_NIL_IFY, SCM_IM_T_IFY,
751 SCM_IM_0_COND, SCM_IM_0_IFY, SCM_IM_1_IFY), print.c
752 (scm_isymnames): New isyms for multi-language support.
753
754 * eval.c (scm_nil, scm_t): New symbols.
755 (nil-cond, nil-ify, t-ify, 0-cond, 0-ify, 1-ify): New special
756 forms for multi-language support.
757
758 1999-07-25 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
759
760 * random.c, random.h (scm_c_default_rstate, scm_c_uniform32):
761 Added.
762 Renamed functions in the random function library interface
763 from scm_i_XXX --> scm_c_XXX.
764
765 1999-07-25 Gary Houston <ghouston@easynet.co.uk>
766
767 * ports.c (scm_putc): fix line-buffering.
768
769 1999-07-25 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
770
771 * ports.c, ports.h, fports.c, strports.c, vports.c: Renamed
772 scm_set_ptob_XXX --> scm_set_port_XXX.
773
774 1999-07-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
775
776 * ports.c, ports.h (scm_make_port_type): New interface for
777 creation of port types (replaces scm_newptob). Just as for the
778 smobs, we need to separate the internal representation of smob
779 types from the interface, so that we easily can add new fields and
780 rearrange things without caring about backward compatibility.
781 This change was forced by the need in GOOPS to create classes
782 representing port types.
783 (scm_set_ptob_mark, scm_set_ptob_free, scm_set_ptob_print,
784 scm_set_ptob_equalp, scm_set_ptob_flush_input, scm_set_ptob_close,
785 scm_set_ptob_seek, scm_set_ptob_truncate,
786 scm_set_ptob_input_waiting_p): New setters.
787 (scm_newptob): Rewritten to use scm_make_port_type. For backward
788 compatibility.
789 (scm_ptobs): Changed type scm_ptobfuns --> scm_ptob_descriptor.
790 (scm_prinport): Removed.
791 (scm_port_print): Added.
792 (scm_print_port_mode): Added.
793 (void_port_ptob, print_void_port, close_void_port, noop0):
794 Removed. Removed #include "genio.h" Added #include "objects.h",
795 #include "smobs.h"
796
797 * fports.c (prinfport): Moved code from ports.c.
798 (local_free): Added.
799 (scm_fptob): Removed. Instead use new interface.
800 (scm_make_fptob): Added. (Need to create basic ports in a
801 specific order in ports.c.)
802
803 * strports.c (scm_stptob, prinstpt, noop0): Removed
804 (scm_make_stptob): Added.
805
806 * vports.c (scm_sfport, prinsfpt, sf_read_flush, noop0): Removed.
807 (scm_make_sfport): Added.
808
809 * filesys.c (scm_dir_print): Don't use the port printing code.
810 Instead provide specific directory printer.
811
812 * gc.c (scm_gc_sweep): Use value returned from scm_ptobs[].free.
813
814 * ioext.c (scm_redirect_port): Replaced scm_ptobfuns -->
815 scm_ptob_descriptor.
816
817 * smob.c (scm_smob_print): Handle non-existing type name nicely.
818 Removed #include "genio.h"
819
820 * objects.c (scm_make_port_classes): New function ptr.
821
822 1999-07-24 Gary Houston <ghouston@easynet.co.uk>
823
824 * gdbint.c (gdb_print, gdb_read): call scm_truncate_file.
825
826 * ports.c (scm_truncate_file): renamed from scm_ftruncate.
827 allow the 1st argument to be a fdes or filename as well as a
828 port (as in the filesys.c version).
829
830 * filesys.c (scm_truncate_file): removed.
831
832 1999-07-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
833
834 * readline.c, readline.h: Removed.
835
836 * objects.c, objects.h (scm_port_class): Added.
837 (scm_class_of): Look up port class in scm_port_class.
838 (SCM_IN_PCLASS_INDEX, SCM_OUT_PCLASS_INDEX,
839 SCM_INOUT_PCLASS_INDEX): Added.
840
841
842 * Makefile.am: Removed genio.c, genio.x.
843
844 * genio.c: Removed.
845
846 1999-07-23 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
847
848 * init.c: Make sure that scm_post_boot_init_modules is called only
849 once. (Important when using a dumped image.; Thanks to Bernard
850 Urban.)
851
852 1999-07-19 Jim Blandy <jimb@savonarola.red-bean.com>
853
854 * guardians.c (scm_guardian_zombify): Separate scanning for
855 zombies from marking the pairs of the free list.
856
857 * guardians.c (scm_guardian_zombify): Don't set marks manually ---
858 use the macros. (Thanks to Michael Livshin.)
859
860 * eval.c (scm_m_lambda): Let bodycheck check the body of the
861 lambda. Let your sins be purified by the blood of the lambda.
862 (Thanks to Eric Hanchrow.)
863
864 * net_db.c (h_errno): Don't declare this if it's #defined. Eew.
865 (Thanks to Valdis Kletnieks.)
866
867 Fixes for EMX from Mikael Ståldal.
868
869 * filesys.c: #include <io.h>, if we have it.
870 * scmconfig.h.in: Regenerated.
871
872 * stime.c (ftime): Delete declaration for this function --- let
873 the system supply it.
874
875 Cleanups from John Bley.
876
877 * gdbint.c: Don't include <stdio.h> and "_scm.h" twice.
878
879 * gsubr.c: Don't include "gsubr.h" twice.
880
881 Cleanups for compilation on Irix 6, from David Kaelbling.
882
883 * regex-posix.c (scm_regexp_error_msg): Change `rx' argument to
884 regex_t pointer. This is what the callers have, mostly.
885 (scm_regexp_exec): Don't forget to pass the `rx' argument to
886 scm_regexp_error_msg.
887
888 * scmsigs.c (scm_sigaction): Cast SIG_DFL and SIG_IGN to SCM, not
889 int. That way, if we get a warning on this line, it's more likely
890 that we're really missing bits we care about.
891
892 * snarf.h (SCM_CONST_LONG): Remove trailing semicolon from
893 definition.
894
895 * tags.h (SCM_IMP, SCM_NCONSP, SCM_NCELLP, SCM_ITAG3, SCM_TYP3,
896 SCM_TYP7, SCM_TYP7S, SCM_TYP16, SCM_TYP16S, SCM_GCTYP16,
897 SCM_GCMARKP, SCM_GC8MARKP): Don't cast to int. Either SCM or no
898 cast at all is more appropriate in every case. At the moment, we
899 assume everywhere that SCM is an integral type anyway.
900
901 1999-07-14 Gary Houston <ghouston@easynet.co.uk>
902
903 * unif.c (scm_uniform_array_read_x), ports.c (scm_getc): increment
904 read_pos after scm_fill_buffer.
905
906 * ioext.c (scm_do_read_line): simplify by ignoring the fill_buffer
907 return char.
908
909 * vports.c (sf_fill_buffer), strports.c (stfill_buffer),
910 fports.c (fport_fill_buffer): implement the interface change.
911
912 * ports.c (scm_fill_buffer): interface change: no longer increments
913 read_pos past the character that's returned. it seems clearer to
914 leave it to the caller to decide what to do (thanks Jim).
915
916 * vports.c (sf_fill_buffer): put the read char into the buffer
917 as well as returning it.
918
919 * ports.c (scm_grow_port_cbuf): residue of this deleted procedure
920 deleted.
921
922 1999-07-13 Gary Houston <ghouston@easynet.co.uk>
923
924 * strports.c (scm_strprint_obj): simplify. start with initial
925 buffer size of 0.
926 (st_seek): don't allow string to be extended if seeking past
927 the end of a read-only port.
928
929 1999-07-12 Gary Houston <ghouston@easynet.co.uk>
930
931 * strports.c (st_seek): change the resize checks.
932
933 * ports.c (scm_ftruncate): throw error if offset works out negative.
934
935 * strports.c (st_flush): increase string size in blocks of
936 SCM_WRITE_BLOCK instead of 1. set read_end to read_pos if
937 it's greater and reset read_buf_size.
938 (scm_mkstrport): set rw_randow if only writing, since read_buf needs
939 to be maintained for output ports too (it holds the written
940 part of the string, while write_buf may have unwritten buffer
941 chars.)
942 (st_truncate): rewritten.
943 (top of file): added a few notes.
944
945 1999-07-10 Jim Blandy <jimb@savonarola.red-bean.com>
946
947 Patch from Greg Badros:
948 * snarf.h (SCM_PROC, SCM_PROC1): Use __cplusplus or
949 GUILE_CPLUSPLUS_SNARF macros to force adding a cast to the last
950 (function pointer) argument to scm_make_gsubr and scm_make_subr
951 calls. This avoids warnings in C++ programs using guile-snarf.
952
953 1999-07-06 Gary Houston <ghouston@easynet.co.uk>
954
955 * strports.c (st_grow_port): set pt->read_pos. set
956 pt->read_buf_size one less than pt->write_buf_size if there's
957 an unwritten char at the end of the string. similarly for
958 pt->read_end.
959 (st_resize_port): renamed from st_grow_port.
960 (st_seek): simplify by assuming that pt->write_pos == pt->read_pos.
961 seek from read_end instead of write_end for SEEK_END.
962 (st_ftruncate): calculate current length using readbuf, not write
963 buf.
964 (scm_strport_to_string): use read_buf_size for length.
965 (stfill_buffer): don't re-initialise the readbuf.
966
967 1999-07-05 Gary Houston <ghouston@easynet.co.uk>
968
969 * strports.c (scm_strport_to_string): new procedure.
970 (scm_call_with_output_string, scm_strprint_obj): use
971 scm_strport_to_string.
972 used SCM_INUM0 instead of SCM_MAKINUM (0) in a few places.
973
974 1999-07-08 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
975
976 * symbols.c (scm_gensym): Bugfix. (Thanks to Johannes Hjorth.)
977
978 Fri Jun 25 22:14:32 1999 Greg Badros <gjb@cs.washington.edu>
979
980 * smob.c: added scm_make_smob_type_mfpe (), scm_set_smob_mfpe ();
981 use scm_make_smob_type_mfpe to initialize "free", "flo", "bigpos",
982 and "bigneg" smob types.
983
984 * smob.h: Add do ... while(0) idiom to SCM_NEWSMOB. Added
985 SCM_RETURN_NEWSMOB macro. Added protos for new functions in
986 smob.c.
987
988 * *.c: Use scm_make_smob_type_mfpe, instead of scm_newsmob, and
989 use SCM_NEWSMOB or SCM_RETURN_NEWSMOB in constructors instead of
990 SCM_NEWCELL and setting the CAR/CDR by hand.
991
992 1999-07-04 Gary Houston <ghouston@easynet.co.uk>
993
994 * ports.c (scm_putc): call scm_read_flush.
995 (scm_puts): likewise.
996 (scm_lfwrite): likewise.
997 (scm_lseek): likewise.
998 (scm_ftruncate): likewise.
999 * unif.c (scm_uniform_array_write): likewise.
1000 * ioext.c (scm_redirect_port): likewise.
1001
1002 * ports.c (scm_fill_buffer): don't take pt argument. change callers.
1003 (read_flush_void_port): new proc, for void port ptob.
1004
1005 * vports.c (sf_read_flush): likewise.
1006 * strports.c (st_read_flush): take offset arg.
1007 * fports.c (local_read_flush): use offset, don't reset putback
1008 buffer here.
1009
1010 * ports.h (scm_ptobfuns): let read_flush take an offset argument,
1011 which is the number of chars from the putback buffer.
1012
1013 * ports.c (scm_read_flush): new procedure, resets the putback
1014 buffer before calling the ptob routine.
1015
1016 * strports.c (scm_strprint_obj): bug fix: get pt from the port,
1017 not from the parameter obj. (Thanks to Eric Moore.)
1018
1019 * ports.h: SCM_CRDY, SCM_CUC, SCM_CRDYP, SCM_SETRDY, SCM_CUNGET,
1020 SCM_CGETUN, SCM_CLRDY, SCM_TRY_CLRDY, SCM_N_READY_CHARS: deleted.
1021
1022 * strings.c (scm_make_string): throw error if 2nd arg isn't
1023 a char.
1024
1025 * unif.c (scm_uniform_array_read_x): fix reading from a port.
1026 allow non-fports.
1027 (scm_uniform_array_write): likewise.
1028
1029 1999-06-29 Gary Houston <ghouston@easynet.co.uk>
1030
1031 * ports.c (scm_drain_input): rewritten.
1032
1033 * fports.c (local_fclose): check putback_buf.
1034 (local_read_flush): likewise.
1035
1036 * ports.c (scm_remove_from_port_table): maybe free putback_buf.
1037
1038 * ports.h (scm_port): replace cbuf/cbufend/cp with putback_buf/
1039 putback_buf_size.
1040 (SCM_INITIAL_PUTBACK_BUF_SIZE): renamed from SCM_INITIAL_CBUF_SIZE.
1041
1042 * ports.c (scm_grow_port_cbuf): deleted.
1043 (scm_add_to_port_table): initialise putback_buf to 0. remove cbuf
1044 stuff.
1045 (scm_char_ready_p): check putback_buf
1046 (scm_fill_buffer): likewise.
1047 (scm_ungetc): rewritten.
1048
1049 1999-06-27 Gary Houston <ghouston@easynet.co.uk>
1050
1051 * fports.c (local_fclose): account for push-back buffer.
1052
1053 * ports.c (scm_char_ready_p): check the push-back buffer in
1054 a new way.
1055
1056 * ioext.c (scm_do_read_line): remove the extra code to handle
1057 the push-back buffer.
1058
1059 * ports.c (scm_getc): don't use SCM_CRDYP etc.
1060
1061 * ioext.c (scm_do_read_line): call scm_fill_buffer.
1062
1063 * ports.c (scm_ungetc): don't call SCM_CUNGET. reset the
1064 read buffer pointers.
1065 scm_fill_buffer: new procedure.
1066 (scm_getc): call scm_fill_buffer.
1067
1068 * ports.h (struct scm_port): saved_read_buf, saved_read_pos,
1069 saved_read_end: new fields.
1070
1071 1999-06-24 Mikael Djurfeldt <mdj@orjan.nada.kth.se>
1072
1073 * dynl-dl.c (sysdep_dynl_link): Added parenthesis around the
1074 trinary conditional in order for the flag computation to be
1075 correct.
1076
1077 1999-06-23 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
1078
1079 * struct.c, struct.h:
1080
1081 In order to support different kinds of deallocation, a destructor
1082 slot has been added to struct vtables. This allows for structs
1083 containing pointers to other memory blocks.
1084
1085 (scm_struct_i_free): New hidden struct slot. Holds destructor for
1086 instances to this vtable.
1087 (scm_struct_free_0): New destructor: Doesn't deallocate data.
1088 (scm_struct_free_light): New destructor: Deallocates a light
1089 struct (i.e. a struct without hidden slots).
1090 (scm_struct_free_standard): New destructor: Deallocates standard
1091 structs.
1092 (scm_struct_free_entity): New destructor: Deallocates entity
1093 structs.
1094 (SCM_SET_VTABLE_DESTRUCTOR): New macro.
1095
1096 Changes to hidden slots:
1097
1098 (scm_struct_i_size): scm_struct_i_flags now shares space with
1099 scm_struct_i_size which holds the size of light structs.
1100 (scm_struct_i_n_words): This slot has changed meaning. Previously
1101 it included hidden slots. Now it indicates visible slots.
1102 (scm_alloc_struct): Clear flags.
1103 (SCM_STRUCTF_MASK): 4 new flag positions added => 12 bits.
1104
1105 (struct_num, scm_struct_i_tag): Removed.
1106 (scm_struct_vtable_tag): Base tag on the pointer to mallocated
1107 memory.
1108 (scm_struct_ihashq): Base hash value on pointer to struct handle.
1109
1110 * tag.c (scm_tag): Base tag on vtable pointer.
1111
1112 * objects.c (scm_init_objects): Initialize destructor slot of the
1113 primordial entity class.
1114
1115 * objects.h (SCM_SET_CLASS_DESTRUCTOR,
1116 SCM_SET_CLASS_INSTANCE_SIZE): New macros.
1117
1118 * gc.c (scm_gc_sweep): Call struct free slot.
1119
1120 * keywords.c, keywords.h (scm_c_make_keyword): New function.
1121 (We should remove the use of the prefix '-'.)
1122
1123 * snarf.h (SCM_KEYWORD, SCM_GLOBAL_KEYWORD): New macros.
1124
1125 * libguile.h: #include "objects.h"
1126
1127 1999-06-22 Marius Vollmer <mvo@zagadka.ping.de>
1128
1129 * dynl.c (DYNL_GLOBAL): New.
1130 (sysdep_dynl_link): Added `flags' argument.
1131 (kw_global, sym_global): New.
1132 (scm_dynamic_link): Handle keyword arguments. Pass suitable flags
1133 to sysdep_dynl_link.
1134 * dynl-dl.c (sysdep_dynl_link): Handle new `flags' argument by
1135 conditrionally adding RTLD_GLOBAL to DLOPEN_MODES.
1136 * dynl-shl.c (sysdep_dynl_link): Add and ignore new flags
1137 argument.
1138 * dynl-dld.c (sysdep_dynl_link): Add and ignore new flags
1139 argument.
1140 * dynl.h (scm_dynamic_link): Added rest argument.
1141
1142 1999-06-21 Marius Vollmer <mvo@zagadka.ping.de>
1143
1144 * dynl.c (sysdep_dynl_unlink, sysdep_dynl_func): Use const
1145 qualifier for char* argument, to match prototypes. Thanks to Mark
1146 Elbrecht.
1147
1148 1999-06-21 Jim Blandy <jimb@savonarola.red-bean.com>
1149
1150 * dynl.c (no_dynl_error, sysdep_dynl_link, sysdep_dynl_unlink,
1151 sysdep_dynl_func): Use ANSI declarations, and const char *
1152 pointers. (Thanks to Mark Elbrecht.)
1153
1154 1999-06-19 Jim Blandy <jimb@savonarola.red-bean.com>
1155
1156 Patch from Greg Harvey:
1157 * eq.c, eval.c, list.c, ramap.c, vectors.c: Always write parens
1158 around the condition of an `if', `while', etc., even if the
1159 condition is a macro invocation that expands to something
1160 surrounded by parens. It's more readable.
1161
1162 * eval.c (scm_map, scm_for_each): Verify that all arguments are
1163 proper lists, and of the appropriate lengths.
1164 (check_map_args): New function. (Thanks to Greg Harvey for the
1165 bug report.)
1166
1167 1999-06-19 Michael Livshin <mike@olan.com>
1168
1169 * guardians.c (guardian_t): `next' - new field to be used for
1170 chaining the live guardians in a single-linked list during the GC
1171 mark phase.
1172 (GUARDIAN_NEXT): convenience macro to access the `next' field.
1173 (guardians, guardians_size, n_guardians): deleted.
1174 (first_live_guardian, current_link_field): new globals used to
1175 point to the head of the live guardian list and current `next'
1176 field, respectively.
1177 (g_mark): append the guardian to the live guardian list.
1178 (scm_guardian_gc_init): zero the live guardian list.
1179 (scm_guardian_zombify): iterate through the live guardian list.
1180
1181 (Applied by Jim Blandy.)
1182
1183 1999-06-16 Jim Blandy <jimb@savonarola.red-bean.com>
1184
1185 * gc.c (scm_mallocated): Just make this signed.
1186 (scm_igc): Check for underflow by seeing if this is negative.
1187 Much cleaner.
1188 * gc.h (scm_mallocated): Fix declaration.
1189 (Thanks to Greg Harvey.)
1190
1191 * ports.h: #include <sys/types.h>, to get a definition for `off_t'.
1192
1193 1999-06-15 Jim Blandy <jimb@savonarola.red-bean.com>
1194
1195 * stime.c (bdtime2c): Initialize lt->gmtoff and lt->tm_zone from
1196 sbd_time. (Thanks to Eric Hanchrow.)
1197
1198 Fix from Ken Raeburn <raeburn@raeburn.org>:
1199 * weaks.c (scm_make_weak_vector): Add another extra slot before
1200 vector contents, to be used only during garbage collection.
1201 * weaks.h (SCM_WVECT_GC_CHAIN): New macro to access it.
1202 * gc.c (scm_weak_vectors): Now a SCM instead of a SCM*, and now
1203 static.
1204 (scm_weak_size, scm_n_weak): Deleted.
1205 (scm_igc): Use SCM_WVECT_GC_CHAIN to build up a chain of weak
1206 vectors without allocating new storage during GC, using
1207 scm_weak_vectors as the head of the chain.
1208 (scm_mark_weak_vector_spines): Walk SCM_WVECT_GC_CHAIN chain
1209 instead of stepping through an array.
1210 (scm_gc_sweep): Update offset used to find start of weak vector to
1211 free it.
1212 (scm_init_storage): Set scm_weak_vectors to EOL.
1213
1214 Fix from Ken Raeburn <raeburn@raeburn.org>:
1215 * gc.c (already_in_gc): New variable.
1216 (scm_igc): Set and clear already_in_gc; abort if it's set at
1217 entry.
1218
1219 1999-06-14 Jim Blandy <jimb@savonarola.red-bean.com>
1220
1221 Fix from Gary Houston:
1222 * fports.c (local_seek): Signal an error if the seek fails.
1223 * ports.c (scm_lseek): Don't check return value of port's seek
1224 function; it's its job to signal an error if there's a problem.
1225
1226 1999-06-12 Jim Blandy <jimb@savonarola.red-bean.com>
1227
1228 * strports.c (scm_call_with_output_string): Don't include the
1229 extra character at the end of the string in the result.
1230
1231 * ioext.c (scm_read_line): Switch to reading properly.
1232
1233 * fports.c, fports.h, gc.c, gdbint.c, ioext.c, ports.c, ports.h,
1234 scmsigs.c, strports.c, vports.c: Install the sources which
1235 actually correspond to the changes described below. I got the
1236 ChangeLog entries and the patch from two different places...
1237
1238 1999-06-09 Jim Blandy <jimb@savonarola.red-bean.com>
1239
1240 * gc.c (scm_igc): Check for scm_mallocated underflow. Otherwise,
1241 it shows up as terrible performance, as we GC constantly.
1242
1243 * ioext.c (scm_do_read_line): Rewritten to use memchr to find the
1244 newline. A bit faster, and definitely hairier.
1245 (scm_read_line): Count newlines here instead.
1246
1247 * strings.c (scm_take_str): New function.
1248 (scm_take0str): Reimplement in terms of scm_take_str. * strings.h
1249 (scm_take_str): New declaration. * ioext.c (scm_read_line): Use
1250 scm_take_str, to avoid copying the string.
1251
1252 Add some simple-minded support for line buffered ports.
1253 * ports.h (SCM_BUFLINE): New flag for ports.
1254 * init.c (scm_init_standard_ports): Request line-buffering on
1255 the standard output port.
1256 * ports.c (scm_mode_bits): Recognize 'l' as a request for line
1257 buffering.
1258 (scm_putc, scm_puts, scm_lfwrite): If the port is line-buffered,
1259 and there's a newline to be written, flush the port.
1260
1261 Gary Houston's open-buffer port patches:
1262
1263 1999-04-26 Gary Houston <ghouston@easynet.co.uk>
1264
1265 * ports.c: (scm_lseek): clear buffers even if just reading current
1266 position.
1267
1268 * fports.c (local_fclose): call local_fflush unconditionally.
1269 (various): don't use the scm_must... memory procs.
1270
1271 1999-04-25 Gary Houston <ghouston@easynet.co.uk>
1272
1273 * ports.h (scm_port): make read_pos a pointer to const.
1274 strports.c: take care of rw_active and rw_randow.
1275 fports.c: scm_fport_drain_input: removed. do it all in ports.c.
1276 strports.c (scm_mkstrport): check that pos is reasonable.
1277 ioext.c (scm_ftell, scm_fseek): use lseek.
1278 (SCM_CLEAR_BUFFERS): macro deleted.
1279 ioext.c (redirect_port: use ptob fflush, read_flush.
1280 ports.h (scm_ptobfuns): add ftruncate.
1281 ports.c (scm_newptob): set ftruncate.
1282 adjust ptob tables.
1283 ports.c (scm_ftruncate): new procedure.
1284 fports.c (local_ftrunate), strports.c (str_ftruncate): new procs.
1285 strports.c (st_seek, st_grow_port): new procs.
1286 fports.h (scm_port): change size types from int to off_t.
1287 ports.c (scm_init_ports): initialise the seek symbols here
1288 instead of in ioext.c.
1289 strports.c (scm_call_with_output_string): start with an empty
1290 string, so seek and ftruncate can be used.
1291
1292 gdbint.c: adjust string port usage.
1293
1294 1999-04-24 Gary Houston <ghouston@easynet.co.uk>
1295
1296 * ports.h (scm_ptobfuns): add a read_flush procedure which is the
1297 equivalent to fflush for the read buffer.
1298 * ports.c (scm_newptob): set read_flush.
1299 ports.c (void_port_ptob): set read_flush.
1300 fports.c (local_read_flush): new proc. add to ptob.
1301 strport.c (st_read_flush): likewise.
1302 vport.c (sf_read_flush): likewise.
1303 fports.h (struct scm_fport): remove random member. there's nothing
1304 left but fdes. leaving it as a struct to allow for future changes.
1305 fports.c: replace usage of scm_fport::random with scm_port::rw_random.
1306 ports.c: (scm_putc, scm_puts, scm_lfwrite): call the read_flush
1307 ptob proc if the read buffer is filled.
1308
1309 1999-04-23 Gary Houston <ghouston@easynet.co.uk>
1310
1311 * ports.h (scm_port): add a rw_random member and replace
1312 reading and writing members with rw_active member.
1313 SCM_PORT_READ/SCM_PORT_WRITE: new values.
1314
1315 1999-04-22 Gary Houston <ghouston@easynet.co.uk>
1316
1317 * ports.h (struct scm_port_table): add writing and reading members
1318 to replace write_needs_seek: it isn't good enough for non-fports.
1319 ports.c, ioext.c, fports.c: corresponding changes.
1320 (struct scm_port_table): give it a typedef and rename to scm_port.
1321 ports.c, fports.c, strports.c, vports.c, ioext.c, ports.h:
1322 corresponding changes.
1323
1324 1999-04-20 Gary Houston <ghouston@easynet.co.uk>
1325
1326 * ports.c (scm_newptob): bugfix: set seek member.
1327 * (scm_lseek): new procedure, using code from ioext.c:scm_fseek
1328 and generalised to all port types.
1329
1330 1999-04-18 Gary Houston <ghouston@easynet.co.uk>
1331
1332 * scmsigs.c (scm_init_scmsigs): set the SA_RESTART flag for all
1333 signals (it was only being done for handlers installed from Scheme).
1334 Otherwise (for example) SIGSTOP followed by SIGCONT on an interpreter
1335 waiting for input caused an EINTR error from read.
1336
1337 1999-04-07 Gary Houston <ghouston@easynet.co.uk>
1338
1339 * ports.h (struct scm_port_table): make all the char members
1340 unsigned, so they convert to int without becoming negative if large.
1341
1342 1999-03-14 Gary Houston <ghouston@easynet.co.uk>
1343
1344 * fports.c (scm_fdes_wait_for_input): forgot to check compilation
1345 with threads enabled. rename this procedure to
1346 fport_wait_for_input and take a port instead of a fdes.
1347 use scm_fport_input_waiting_p instead of scm_fdes_waiting_p.
1348
1349 * readline.c (scm_readline): Applied a patch from Greg Harvey to
1350 get readline support working again: use fdopen to get FILE objects.
1351
1352 1999-02-26 Gary Houston <ghouston@easynet.co.uk>
1353
1354 * gc.c (scm_init_storage): install an atexit proc to flush the
1355 ports.
1356 (cleanup): the new proc. it sets a global variable which can be
1357 checked by the ptob flush procs to avoid trying to throw
1358 exceptions during exit. not very pleasant but it seems more reliable.
1359 * fports.c (local_fflush): check terminating variable and if set
1360 don't throw exception.
1361 * CHECKME: that the atexit proc is installed if unexec used.
1362
1363 * throw.c (scm_handle_by_message): don't flush all ports here.
1364 it still causes bus errors.
1365
1366 * fports.h (SCM_FPORT_CLEAR_BUFFERS): rename to SCM_CLEAR_BUFFERS
1367 and move to ioext.c.
1368
1369 * fports.c (scm_fdes_waiting_p): merged into fport_input_waiting_p.
1370
1371 * ports.c (scm_char_ready_p): check the port buffer and call the
1372 ptob entry if needed.
1373
1374 * ports.h (scm_ptobfuns): input_waiting_p added. change all the
1375 ptob initialisers. use it in char-ready
1376
1377 * ioext.c (scm_do_read_line): moved from ports.c. make it static.
1378
1379 * vports.c (sfflush): modified to write a char (since softports
1380 currently use shortbuf.)
1381
1382 * fports.c (scm_standard_stream_to_port): moved to init.c and
1383 made static.
1384
1385 * init.c (scm_init_standard_ports): make stdout and stderr
1386 unbuffered if connected to a terminal. with stdio they
1387 were line-buffered by default.
1388
1389 (scm_ptobfuns): fputc, fputs, fwrite, fgetc, fgets removed.
1390 update ptob tables.
1391
1392 * ports.h (scm_ptobfuns): change fflush return to void.
1393 change flush proc definitions.
1394
1395 * strports.c (scm_call_with_output_string): get size from
1396 buffer instead of port stream.
1397 (st_flush): new proc.
1398
1399 * ports.h (struct scm_port_table): added write_end member,
1400 as an optimisation. set it where write_buf_size is set.
1401
1402 * ports.h (struct scm_port_table): change stream from void *
1403 back to SCM. SCM presumably must be large enough to hold a
1404 pointer (and probably vice versa but who knows.)
1405 (SCM_SSTREAM): deleted. change users back to SCM_STREAM.
1406
1407 (scm_puts): rewritten
1408 * fports.c (local_ffwrite, local_fputs): removed.
1409 * strports.c (stputc, stputs, stwrite): dyked out (FIXME)
1410 * vports.c (sfputc, sfputs, sfwrite) likewise.
1411 * ports.c (write_void_port, puts_void_port): removed.
1412 (putc_void_port, getc_void_port, fgets_void_port): likewise.
1413
1414 * ports.c (scm_lfwrite): rewritten using fport.c version.
1415
1416 * fports.c (local_fputc): deleted.
1417
1418 * ports.c (scm_add_to_port_table): initialise write_needs_seek.
1419
1420 * ports.h (scm_ptobfuns): add seek function pointer.
1421 * fports.c: set it to local_seek, new procedure.
1422
1423
1424 * fports.h (SCM_MAYBE_DRAIN_INPUT): moved to ports.c.
1425 use ptob for seek. take ptob instead of fport arg.
1426
1427 * ports.h (struct scm_port_table): new member write_needs_seek,
1428 replaces reading member in fport struct.
1429
1430 * vports.c (sfgetc): store the getted char into the buffer.
1431 rename to sf_fill_buffer and install it for fill-buffer in ptob.
1432 the Scheme interface is still a procedure that gets a char.
1433 (scm_make_soft_port): set up the port buffer (shortbuf).
1434
1435 * fports.c (local_fgetc, local_fgets): deleted.
1436 * strports.c (stgetc): likewise.
1437 * ports.c: scm_generic_fgets: likewise.
1438
1439 * ports.h (scm_ptobfuns): add fill_buffer.
1440 * ports.c (scm_newptob): assign it.
1441 * strports.c (scm_mkstrport): set up the buffer.
1442 put just the string into the stream, not cons (pos stream).
1443 (stfill_buffer): new proc.
1444
1445 * ports.h: fport buffer moved into port table: to be
1446 used for all port types.
1447
1448 1998-12-20 Gary Houston <ghouston@easynet.co.uk>
1449
1450 * throw.c (scm_handle_by_message): flush ports at exit.
1451
1452 * socket.c (scm_sock_fd_to_port): use scm_fdes_to_port.
1453 (scm_getsockopt, scm_setsockopt, scm_shutdown, scm_connect,
1454 scm_bind, scm_listen, scm_accept, scm_getsockname,
1455 scm_getpeername, scm_recv, scm_send, scm_recvfrom,
1456 scm_sendto,
1457 use SCM_FPORT_FDES. use SCM_OPFPORTP not SCM_FPORTP.
1458
1459 * posix.c (scm_getgroups): use SCM_ALLOW/DEFER_INTS.
1460 (scm_ttyname): use SCM_FPORT_FDES.
1461 (scm_tcgetpgrp, scm_tcsetpgrp): likewise.
1462
1463 * filesys.c (scm_chown): use SCM_FPORT_FDES.
1464 (scm_chmod, scm_stat, scm_truncate_file: likewise.
1465
1466 * ioext.c (scm_isatty_p): use SCM_FPORT_FDES.
1467 (scm_fdes_to_ports): modified.
1468 (scm_fdopen): use scm_fdes_to_port.
1469
1470 * ports.c (scm_init_ports): don't try to flush ports using
1471 atexit(). it's too late, errors will cause SEGV.
1472
1473 * fports.c (scm_fport_buffer_add): new procedure.
1474
1475 * fports.h (SCM_FDES_RANDOM_P): new macro. use it in
1476 scm_fdes_to_port and scm_redirect_port.
1477
1478 * ioext.c (scm_redirect_port): use setvbuf to set buffers in the
1479 new port. reset fp->random.
1480
1481 * fports.c (scm_fdes_to_port), ports.c (scm_void_port),
1482 filesys.c (scm_opendir):
1483 restore defer interrupts while the port is constructed.
1484 (scm_setvbuf): if mode is _IOFBF and size is not supplied,
1485 derive buffer size from fdes or use a default.
1486 (scm_fdes_to_port): use setvbuf instead of creating the buffers
1487 directly.
1488
1489 vports.c (various places): use SCM_SSTREAM.
1490 strports.c: likewise.
1491 * gdbint.c: likewise.
1492 * ports.h (SCM_SSTREAM): new macro.
1493
1494 * fports.c (scm_input_waiting_p): use scm_return_first, since port
1495 may be removed from the stack by the tail call to scm_fdes_waiting_p.
1496
1497 * fports.h (SCM_CLEAR_BUFFERS): new macro.
1498
1499 * filesys.c (scm_fsync): use SCM_FDES.
1500
1501 * ports.c (scm_force_output): call scm_fflush.
1502
1503 * print.c (scm_newline): don't check errno for EPIPE (it wouldn't
1504 reach this point.) don't flush port (if scm_cur_outp).
1505
1506 * fports.h (SCM_FPORT_FDES): new macro.
1507
1508 * filesys.c (scm_fcntl): get fdes from fport.
1509 (set_element, get_element): likewise.
1510
1511 * vports.c (sfflush): don't need to set errno.
1512
1513 * ports.c: install scm_flush_all_ports to be run on exit.
1514
1515 * filesys.c (scm_open): adjust port_mode for O_APPEND and O_CREAT.
1516
1517 ports.c fports.c ioext.c posix.c socket.c net_db.c filesys.c:
1518 removed all uses of SCM_DEFER/ALLOW ints for now. they were mainly
1519 just protecting errno. some may need to be put back.
1520
1521 * scmsigs.c (take_signal): save and restore errno while this
1522 proc runs.
1523
1524 *fports.c (print_pipe_port, local_pclose, scm_pipob): deleted.
1525 open-pipe, close-pipe are emulated in (ice-9 popen)
1526 ports.c (scm_ports_prehistory): don't init scm_pipob.
1527 ports.h (scm_tc16_pipe): deleted.
1528 posix.c (scm_open_pipe, scm_close_pipe): deleted.
1529
1530 * ioext.c (scm_primitive_move_to_fdes): use fport.
1531 * fport.c (scm_fport_fill_buffer): flush write buffer if needed.
1532 change arg type from scm_fport to SCM port.
1533 fport.h (SCM_SETFDES): removed.
1534 (SCM_MAYBE_DRAIN_INPUT): new macro.
1535
1536 * fport.h (struct scm_fport): added 'random'.
1537 fport.c (scm_open_file): set random if lseek works.
1538
1539 * ioext.c (scm_dup_to_fdes): use SCM_FSTREAM.
1540 (scm_ftell): always use lseek and account for the buffer.
1541 (scm_fileno): use fport buffer.
1542 (scm_fseek): clear fport buffers. always use lseek.
1543
1544 * posix.c (scm_pipe): use fport buffer.
1545 * unif.c: include fports.h instead of genio.h.
1546 * fports.c (scm_fdes_wait_for_input, scm_fport_fill_buffer): new
1547 procedures.
1548 (local_fgetc): use them.
1549 (local_ffwrite): use buffer.
1550 (local_fgets): use buffer.
1551 (scm_setbuf0): deleted.
1552 (scm_setvbuf): set the buffer.
1553 (scm_setfileno): deleted.
1554 (scm_evict_ports): set fdes directly.
1555 (scm_freopen): deleted. doesn't seem useful in Guile.
1556 (scm_stdio_to_port): deleted.
1557 fports.h (struct scm_fport): add shortbuf member to avoid separate
1558 code for unbuffered ports.
1559 (SCM_FPORTP, SCM_OPFPORTP, SCM_OPINFPORTP, SCM_OPOUTFPORTP): moved
1560 from ports.h.
1561
1562 * genio.c, genio.h: move contents into ports.c, ports.h. The
1563 division wasn't useful.
1564
1565 * fports.c, fports.h (scm_fport_drain_input): new procedure.
1566 * ports.c (scm_drain_input): call scm_fport_drain_input.
1567 * scm_fdes_waiting_p: new procedure.
1568 * fports.c (scm_fdes_to_port): allocate read and/or write buffers.
1569 (scm_input_waiting_p): check the buffer.
1570 (local_fgetc, local_fflush, local_fputc): likewise.
1571
1572 * fports.h (scm_fport): read/write_buf,_pos,_buf_end,,_buf_size:
1573 new members.
1574 * init.c (scm_init_standard_ports): pass fdes instead of FILE *.
1575
1576 * ports.c (scm_drain_input): new procedure.
1577 ports.h: prototype.
1578 * fports.c (FPORT_READ_SAFE, FPORT_WRITE_SAFE, FPORT_ALL_OKAY,
1579 pre_read, pre_write): removed.
1580 (local_fputc, local_fputs, local_ffwrite): use write, not stdio.
1581 (scm_standard_stream_to_port): change first arg from FILE * to
1582 int fdes.
1583 (local_fflush): flush fdes, not FILE *.
1584 * fports.h (SCM_NOFTELL): removed.
1585 * genio.c, ports.c: don't include filesys.h.
1586 * genio.c (scm_getc): don't use scm_internal_select if FPORT.
1587 do it in fports.c:local_fgetc.
1588 * genio.c: don't use SCM_SYSCALL when calling ptob procedures.
1589 do it where it's needed in the port smobs.
1590 * filesys.c (scm_input_waiting_p): moved to fports.c, stdio
1591 buffer support removed. take SCM arg, not FILE *.
1592 * filesys.h: prototype moved too.
1593 * fports.c (scm_fdes_to_port): new procedure.
1594 (local_fgetc): use read not fgetc.
1595 (local_fclose): use close, not fclose.
1596 (local_fgets): use read, not fgets
1597 * fports.h: prototype for scm_fdes_to_port.
1598 * fports.h (scm_fport): new struct.
1599 * fports.c (scm_open_file): use open, not fopen.
1600 #include fcntl.h
1601 * ports.h (struct scm_port_table): change stream from SCM to void *.
1602 * ports.c (scm_add_to_port_table): check for memory allocation error.
1603 (scm_prinport): remove MSDOS hair.
1604 (scm_void_port): set stream to 0 instead of SCM_BOOL_F.
1605 (scm_close_port): don't throw errors: do it in fports.c.
1606
1607 1999-06-04 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
1608
1609 * numbers.c: Added #include "feature.h".
1610
1611 1999-05-23 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1612
1613 * smob.c, smob.h (scm_make_smob_type): New interface to smob
1614 types (supersedes scm_newsmob).
1615 (scm_set_smob_mark, scm_set_smob_free, scm_set_smob_print,
1616 scm_set_smob_equalp): New functions. Sets smob functions.
1617 (SCM_NEWSMOB): New macro. Creates smob objects.
1618 (scm_make_smob): New function. Creates smob objects and
1619 mallocates memory.
1620 (scm_smob_free, scm_smob_print): Default free and print
1621 functions.
1622
1623 * Makefile.am: Removed markers.c, markers.x, markers.h.
1624
1625 * markers.c, markers.h: Removed. (Contents moved to smob.c,
1626 smob.h.)
1627
1628 * arbiters.c, async.c, regex-posix.c: Use new smob interface.
1629
1630 * eval.c, fports.c, libguile.h, ports.c: Removed #include
1631 "markers.h".
1632
1633 * fluids.c, guardians.c, srcprop.c, threads.c: Added #include
1634 "genio.h".
1635
1636 * regex-posix.c, regex-posix.h: Renamed scm_tc16_regex_t -->
1637 scm_tc16_regex.
1638
1639 1999-05-09 Jim Blandy <jimb@savonarola.red-bean.com>
1640
1641 * strop.c (scm_string_capitalize_x): Use the SCM object `s' in
1642 error messages, not the uninitialized string `str'. Love that
1643 typechecking.
1644
1645 * strop.c (scm_substring_move_x): New function, which can handle
1646 arbitrary overlapping substrings.
1647 (substring-move-left!, substring-move-right!): These are
1648 now just synonyms for substring-move!.
1649 * strop.h (scm_substring_move_x): New prototype.
1650 (scm_substring_move_left_x, scm_substring_move_right_x):
1651 #define these as synonyms for scm_substring_move_x.
1652
1653 Fixes, cleanups, and new functions from Greg Harvey.
1654
1655 1999-05-03 Greg Harvey <Greg.Harvey@thezone.net>
1656
1657 * strop.c (scm_string_capitalize_x, scm_string_capitalize): new
1658 functions; capitalize the first letter of each word in the
1659 argument string, and downcase the rest.
1660 (scm_string_ci_to_symbol): string->symbol, such that the same
1661 symbol is returned for any argument where the only difference
1662 between strings is in capitalization.
1663 (scm_string_upcase, scm_string_downcase): non-destructive
1664 versions.
1665
1666 1999-01-13 Greg Harvey <Greg.Harvey@thezone.net>
1667
1668 * strop.c (scm_substring_move_left_x, scm_substring_move_right_x):
1669 changed to use memmove.
1670 * strop.c (scm_i_index): removed the pos arguments (it's only
1671 called twice, and each time it's SCM_ARG1, SCM_ARG2, SCM_ARG3,
1672 SCM_ARG4).
1673
1674 1999-01-11 Greg Harvey <Greg.Harvey@thezone.net>
1675
1676 * strop.h: fixed prototypes.
1677
1678 * strop.c (scm_substring_move_left_x, scm_substring_move_right_x):
1679 changed to have 5 required args, rather than 2 required, and 3 required
1680 rest args. Also modified to allow str1 & str2 to overlap.
1681 (scm_substring_fill_x): changed to 4 args, rather than 2 args and
1682 2 required rest args.
1683
1684 1999-05-02 Jim Blandy <jimb@savonarola.red-bean.com>
1685
1686 * procs.h: Doc fix.
1687
1688 * Makefile.am (modinclude_HEADERS): Add kw.h, so the new version
1689 gets installed.
1690 * Makefile.in: Regenerated.
1691
1692 * numbers.c: If we're supporting floating-point, provide the
1693 feature "inexact".
1694
1695 * scmconfig.h.in: Regenerated; see today's change to
1696 ../configure.in.
1697
1698 1999-04-17 Jim Blandy <jimb@savonarola.red-bean.com>
1699
1700 * Makefile.in: Regenerated.
1701
1702 Remove readline support, to avoid copyright confusion.
1703 * Makefile.am: Remove readline files from lists.
1704 * init.c: Don't initialize readline.
1705 * scmconfig.h.in: Regenerated.
1706
1707 * numbers.c (s_bignum): Renamed to s_bignum, and made static.
1708 Libguile should not be exporting random little strings.
1709 * numbers.h (s_bignum): Extern declaration removed.
1710
1711 More const changes from Ken Raeburn.
1712 * numbers.c (scm_s_bignum, fx): Now const.
1713 (scm_logtab, scm_ilentab, s_adjbig): Now static and const.
1714 * numbers.h (scm_s_bignum): Update declaration.
1715 * eval.c (bodycheck): Argument WHAT now points to const.
1716 * snarf.h (SCM_SYNTAX): Name is const.
1717
1718 * eval.c (scm_i_let): Make this globally visible, to avoid dynamic
1719 linking crashes on NetBSD. (Thanks to Ken Raeburn.)
1720
1721 1999-03-26 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1722
1723 * numbers.c (isfinite): Define this macro if not defined: Return a
1724 non-zero value if X is finite. (From ISO C 9x standard.)
1725 (scm_inexact_to_exact): Bugfix: Don't pass NaNs to scm_dbl2big.
1726 (Thanks to Jon Trowbridge and Greg Harvey.)
1727
1728 1999-03-22 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1729
1730 * keywords.c (scm_tc16_kw): Added for backward compatibility.
1731 Will be removed in next release.
1732
1733 * Makefile.am (modinclude_HEADERS): Added kw.h;
1734
1735 * kw.h: New file.
1736
1737 * libguile.h: #include "libguile/kw.h"
1738
1739 1999-03-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1740
1741 * pairs.c (scm_set_car_x, scm_set_cdr_x): Return SCM_UNSPECIFIED.
1742
1743 1999-03-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1744
1745 * print.c (scm_isymnames): Added #@dispatch and #@hash-dispatch.
1746
1747 * hashtab.c, hashtab.h (scm_hash_fold, scm_internal_hash_fold):
1748 Place the table argument last.
1749
1750 1999-03-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1751
1752 * modules.c: #include "procprop.h"
1753 (scm_system_module_env_p): Assume root environment is no lookup
1754 closure is found.
1755
1756 * debug.c, eval.c, evalext.c, gdbint.c stacks.c:
1757 #include "modules.h".
1758
1759 * modules.c, modules.h, eval.c, eval.h (scm_env_top_level,
1760 scm_top_level_env, scm_system_module_env_p): Moved to modules.c.
1761
1762 * eval.c, eval.h (scm_top_level_lookup_closure): Removed.
1763
1764 1999-03-18 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1765
1766 * error.c (scm_wta): Pass SCM_LIST1 (arg) instead of SCM_EOL to
1767 scm_misc_error when pos is a string. This allows for dispatching
1768 arbitrary error messages with one argument via SCM_ASSERT:
1769 SCM_ASSERT (<cond>, obj, "Undigestable object: %S", <subr>);
1770
1771 1999-03-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1772
1773 * list.c (scm_reverse): Report an error if given a circular list
1774 instead of filling memory.
1775 * list.c (scm_reverse_x): Check args.
1776
1777 1999-03-14 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1778
1779 Most of this batch of changes is about how to deal with extended
1780 types when an object system is loaded into Guile. A nice object
1781 system is capable of representing Guile's types as class objects.
1782
1783 For example, we want a regular expression to be of class <regex>.
1784 But regular expressions are smobs which aren't under direct
1785 control of the object system, so there has to be some mechanism
1786 which informs the object system that a new class should be created
1787 which can represent the smob type. I call this a "wrapper class".
1788
1789 * objects.c: #include "smob.h";
1790 (scm_class_keyword): Removed. (Class is automatically created by
1791 make_smob_classes.)
1792 (scm_smob_class): Array of smob classes indexed by smobnum.
1793 (scm_make_extended_class): "Plugin" function pointer for creation
1794 of wrapper classes for smob and struct types.
1795 (scm_class_of): Handle compiled closures. (Currently regarded as
1796 <procedure>.);
1797 Use scm_smob_class to handle smob types;
1798 Handle scm_tc16_bigpos, scm_tc16_bigneg, and, scm_tc16_keyword
1799 through scm_smob_class;
1800 Handle structs.
1801
1802 * smob.c (scm_newsmob): Also create a wrapper class if
1803 scm_smob_class has been initialized.
1804
1805 * smob.h (SCM_TC2SMOBNUM): New macro for conversion between tc16
1806 type code and smobnum.
1807
1808 * struct.c: #include "alist.h", "weaks.h", "hashtab.h";
1809 (scm_struct_table): Weak key table with auxilliary information for
1810 struct types. Currently used for names and wrapper classes.
1811 (scm_struct_ihashq): Hash function for structs.
1812 (scm_struct_create_handle): Get/create entry in scm_struct_table.
1813 (scm_struct_vtable_name, scm_set_struct_vtable_name_x): Procedures
1814 for accessing names of vtables. The record implementation in
1815 boot-9.scm currently uses the setter to record the name of record
1816 types. When the object system is initialized, it can use this
1817 information to create wrapper classes with suitable names.
1818 (scm_init_struct): Allocate scm_struct_table.
1819 (scm_alloc_struct): Don't initialize scm_struct_i_tag here.
1820 (struct tags are a finite resource and we might want to restrict
1821 the use of tags to vtables only. E.g., Goops only uses tags for
1822 classes.)
1823 (scm_make_struct): Use scm_struct_entity_n_extra_words instead of
1824 magic number 5.
1825 (scm_struct_vtable_tag): Use scm_struct_i_tag instead of magic
1826 number -1.
1827
1828 * struct.h (SCM_STRUCT_TABLE_NAME, SCM_SET_STRUCT_TABLE_NAME,
1829 SCM_STRUCT_TABLE_CLASS, SCM_SET_STRUCT_TABLE_CLASS): New macros.
1830 Used for access of struct table entries.
1831
1832 * hashtab.c, hashtab.h (scm_internal_hash_fold): New function.
1833 (scm_hash_fold): New procedure. Used to process all entries in a
1834 hash table (in no particular order).
1835
1836 Argh! For the umpteenth time I got compilation errors because of
1837 the "intuitive" name `kw'. This has to have an end:
1838
1839 * Makefile.am, init.c, libguile.h, objects.c, root.h: Replaced
1840 "kw" --> "keywords" everywhere.
1841 (I doubt that this will cause big compatibility problems since the
1842 application interface is unaffected.)
1843
1844 * keywords.c, keywords.h: Files renamed from kw.c, kw.h.
1845
1846 1999-03-12 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1847
1848 * srcprop.c (scm_set_source_property_x): Bugfix: Convert line and
1849 column inums to native form.
1850
1851 Improvement of backtraces: Introduces a new stack narrowing
1852 specifier, #t, for the inner cut. (See further in the comments in
1853 stacks.c:narrow_stack ().)
1854
1855 * procprop.c, procprop.h (scm_sym_system_procedure): New symbol.
1856 (Used to flag certain system procedures which shouldn't turn up in
1857 backtraces.)
1858
1859 * eval.c (scm_sym_system_module): New symbol. (Used to flag
1860 modules which aren't "user" modules and the code of which
1861 shouldn't turn up in backtraces.)
1862
1863 * eval.c, eval.h (scm_top_level_lookup_closure): New function:
1864 Extract the lookup closure from an environment.
1865 (scm_system_module_env_p): New function: Return non-#f if MODULE
1866 is a system module.
1867
1868 * stacks.c: #include "eval.h"; #include "procprop.h";
1869 (narrow_stack): Handle new narrowing specifier #t.
1870
1871 * debug.c (scm_procedure_name): Use name property in the default
1872 case.
1873
1874 * gc.c, gc.h (scm_object_address): Renamed from scm_object_addr ().
1875
1876 * objects.h (scm_si_redefined, scm_si_hashsets): Shifted.
1877
1878 * eval.c, procs.c, procs.h, procprop.c: Renamed getter ->
1879 procedure throughout.
1880
1881 * print.c (scm_iprin1): Removed extraneous space when printing
1882 procedure-with-setters.
1883
1884 Entity and operator setter slots were introduced as a complement
1885 to the <procedure-with-setter> type in order to support entities
1886 and operators with setters in a reasonable and efficient way.
1887 * procs.c (scm_procedure, scm_setter): Handle entity and operator
1888 setter slots.
1889
1890 * objects.h (SCM_OPERATOR_SETTER, SCM_ENTITY_SETTER): New macros.
1891 (struct scm_metaclass_operator): New setter slot.
1892
1893 * gc.c (scm_gc_mark): Mark struct setter slot.
1894
1895 * struct.c (scm_make_struct): Allocate one word more for
1896 entities and initialize the new slot.
1897
1898 * struct.h (scm_struct_i_setter): New constant.
1899
1900 1999-03-08 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1901
1902 * objects.h (SCM_OBJ_CLASS_REDEF): New macro: Find class slots
1903 directly through the instance.
1904
1905 * objects.c (scm_class_of): Use SCM_OBJ_CLASS_REDEF.
1906
1907 * gc.c (scm_gc_sweep): Bugfix: Look for SCM_STRUCT_F_LIGHT flag at
1908 scm_struct_i_flags instead of scm_vtable_index_layout!
1909
1910 * list.c (scm_list_star): New procedure.
1911
1912 1999-02-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
1913
1914 * debug.c (scm_init_debug): Added scheme level constant
1915 SCM_IM_DISPATCH.
1916
1917 1999-02-12 Jim Blandy <jimb@savonarola.red-bean.com>
1918
1919 * __scm.h (SCM_FENCE): Fix `asm volatile' warnings for EGCS.
1920
1921 * gc.c (scm_gc_sweep): Properly properly record the size of a
1922 freed structure. (Thanks to Greg Harvey.)
1923
1924 1999-02-07 Jim Blandy <jimb@savonarola.red-bean.com>
1925
1926 * gc.c (scm_gc_sweep): Properly record the size of a freed
1927 structure. (Thanks to Michael Livshin.)
1928
1929 1999-02-06 Jim Blandy <jimb@savonarola.red-bean.com>
1930
1931 Readline paren matching from Greg Harvey, with modifications from
1932 Mikael Djurfeldt:
1933
1934 * readline.c (in_readline, reentry_barrier_mutex): Make these
1935 static.
1936
1937 * readline.c: #include <sys/time.h> and "iselect.h", so we can
1938 control how long we're paused, and threads will run while we're
1939 paused.
1940 (match_paren, find_matching_paren, init_bouncing_parens): New
1941 functions.
1942 (scm_init_readline): Call init_bouncing_parens.
1943 (scm_readline_opts): Add the bounce-parens option.
1944 * readline.h (SCM_READLINE_BOUNCE_PARENS): New readline option.
1945 (SCM_N_READLINE_OPTIONS): Adjust.
1946
1947 1999-02-06 Jim Blandy <jimb@zwingli.cygnus.com>
1948
1949 All the below are changes from Ken Raeburn, to get Guile to use
1950 const where it can.
1951
1952 * chars.c (scm_lowers, scm_uppers, scm_charnames, scm_charnums),
1953 eval.c (s_expression, s_test, s_body, s_bindings, s_variable,
1954 s_clauses, s_formals): Variables now const.
1955
1956 * eval.c (promsmob): Now const.
1957 * macros.c (macrosmob): Now const.
1958 * smob.c (scm_newsmob): Smobfuns argument now points to const.
1959 (freecell, flob, bigob): Now const.
1960
1961 * dynl.c (scm_make_argv_from_stringlist, scm_coerce_rostring),
1962 error.c (scm_error, scm_syserror, scm_syserror_msg,
1963 scm_num_overflow, scm_out_of_range, scm_wrong_type_arg,
1964 scm_memory_error, scm_misc_error, scm_wta), macros.c
1965 (scm_make_synt), feature.c (scm_add_feature), filesys.c
1966 (scm_input_waiting_p), gc.c (scm_gc_start, scm_igc,
1967 scm_must_malloc, scm_must_realloc), gsubr.c (scm_make_gsubr),
1968 numbers.c (scm_num2dbl, scm_two_doubles, scm_num2long,
1969 scm_num2long_long, scm_num2ulong),
1970 options.c (scm_options), posix.c (scm_convert_exec_args,
1971 environ_list_to_c), procs.c (scm_make_subr_opt, scm_make_subr),
1972 ramap.c (scm_ramapc), read.c (scm_flush_ws), socket.c
1973 (scm_sock_fd_to_port, scm_fill_sockaddr, scm_addr_vector), stime.c
1974 (setzone, restorezone, bdtime2c), strop.c (scm_i_index),
1975 strports.c (scm_mkstrport), symbols.c (scm_intern_obarray_soft,
1976 scm_intern_obarray, scm_intern, scm_intern0,
1977 scm_sysintern0_no_module_lookup, scm_sysintern, scm_sysintern0,
1978 scm_symbol_value0), unif.c (scm_aind, scm_shap2ra): Argument
1979 indicating calling subr, error message text, reason for error,
1980 symbol name or feature name are now pointer to const.
1981 * snarf.h (SCM_PROC, SCM_PROC1): String variables are now const.
1982
1983 * procs.c (scm_init_iprocs): iproc argument now points to const.
1984 * pairs.c (cxrs): Now const.
1985
1986 * chars.h, error.h, feature.h, filesys.h, gc.h, gsubr.h, macros.h,
1987 numbers.h, options.h, procs.h, ramap.h, read.h, smob.h,
1988 strports.h, symbols.h, unif.h: Update variable declarations and
1989 function prototypes for above changes.
1990
1991 * dynl.c, dynl-dld.c, dynl-dl.c, dynl-shl.c (sysdep_dynl_link,
1992 sysdep_dynl_unlink, sysdep_dynl_func): Arguments FNAME, SUBR, and
1993 SYMB now point to const.
1994
1995 1999-01-30 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1996
1997 * print.c (scm_iprin1): Use scm_procedure_name instead of
1998 scm_procedure_property for compiled closures.
1999
2000 * tags.h (scm_tc7_pws): New procedure type. Four representations
2001 for procedure-with-setters were considered before selecting this
2002 one:
2003
2004 1. A closure where the CODE and ENV slots are used to represent
2005 the getter and a new SETTER slot is used for the setter. The
2006 original getter is stored as a `getter' procedure property. For
2007 closure getters, the CODE and ENV slots contains a copy of the
2008 getter's CODE and ENV slots. For subr getters, the CODE contains
2009 a call to the subr.
2010
2011 2. A compiled closure with a call to the getter in the cclo
2012 procedure. The getter and setter are stored in slots 1 and 2.
2013
2014 3. An entity (i.e. a struct with an associated procedure) with a
2015 call to the getter in the entity procedure and the setter stored
2016 in slot 0. The original getter is stored in slot 1.
2017
2018 4. A new primitive procedure type supported in the evaluator. The
2019 getter and setter are stored in a GETTER and SETTER slot. A call
2020 to this procedure type results in a retrieval of the getter and a
2021 jump back to the correct eval dispatcher.
2022
2023 Representation 4 was selected because of efficiency and
2024 simplicity.
2025
2026 Rep 1 has the advantage that there is zero penalty for closure
2027 getters, but primitive getters will get considerable overhead
2028 because the procedure-with-getter will be a closure which calls
2029 the getter.
2030
2031 Rep 3 has the advantage that a GOOPS accessor can be a subclass of
2032 <procedure-with-setter>, but together with rep 2 it suffers from a
2033 three level dispatch for non-GOOPS getters:
2034
2035 cclo/struct --> dispatch proc --> getter
2036
2037 This is because the dispatch procedure must take an extra initial
2038 argument (cclo for rep 2, struct for rep 3).
2039
2040 Rep 4 has the single disadvantage that it uses up one tc7 type
2041 code, but the plan for uniform vectors will very likely free tc7
2042 codes, so this is probably no big problem. Also note that the
2043 GETTER and SETTER slots can live directly on the heap, using the
2044 new four-word cells.
2045
2046 * procs.c, procs.h (SCM_PROCEDURE_WITH_SETTER_P, SCM_GETTER,
2047 SCM_SETTER): New macros.
2048 (scm_procedure_with_setter_p, scm_make_procedure_with_setter,
2049 scm_getter, scm_setter): New procedures.
2050
2051 * eval.c, print.c (scm_iprin1): Added entries for scm_tc7_pws.
2052
2053 * gc.c (scm_gc_mark, scm_gc_sweep): Added case labels for
2054 scm_tc7_pws.
2055
2056 * objects.c, objects.h (scm_class_of,
2057 scm_class_procedure_with_setter): Added.
2058
2059 * procprop.c (scm_i_procedure_arity), procs.c (scm_thunk_p): Added
2060 entry for scm_tc7_pws.
2061
2062 * procs.c (scm_procedure_p): Added case label for scm_tc7_pws.
2063
2064 1999-01-28 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2065
2066 * evalext.c, evalext.h (scm_m_generalized_set_x): New memoizing
2067 macro.
2068 (scm_init_evalext): Call scm_make_gsubr for
2069 scm_m_generalized_set_x.
2070
2071 * eval.c, debug.c, tags.h (SCM_IM_SET_X): Renamed from SCM_IM_SET.
2072
2073 * eval.h: Declare scm_s_set_x, scm_sym_set_x;
2074
2075 * eval.c: Renamed "set" --> "set_x" in various names for
2076 consistency of name correspondence between Scheme and C;
2077 Renamed scm_i_set_x --> scm_sym_set_x and made global.
2078 Renamed s_set_x --> scm_s_set_x and made global.
2079
2080 1999-01-26 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2081
2082 * random.c (scm_i_random_bignum): Made independent of endianness.
2083
2084 1999-01-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2085
2086 * eval.c (SCM_CEVAL): Added ENTER_APPLY in code for SCM_IM_APPLY.
2087 (Thanks to Eric Hanchrow.)
2088
2089 1999-01-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2090
2091 * objects.c, objects.h (SCM_CLASS_REDEF): Renamed from CLASS_REDEF.
2092
2093 * random.c: Bugfix: Retrieve and store most significant 32 bits in
2094 different order if the machine is bigendian.
2095 (scm_init_random): Added safety check for bignum digit size.
2096
2097 1999-01-21 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2098
2099 * random.c, random.h (scm_i_make_rstate): New function: Makes
2100 scm_rstate from seed.
2101 (scm_copy_random_state, scm_seed_to_random_state): New functions.
2102 (scm_make_random_state): Removed.
2103
2104 * random.c (scm_make_random_state): Use scm_i_make_rstate().
2105
2106 1999-01-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2107
2108 * random.c: Bugfix: Retrieve and store most significant 32 bits in
2109 different order if the machine is bigendian.
2110 (scm_init_random): Added safety check for bignum digit size.
2111
2112 1999-01-11 Roland Orre <mdj@mdj.nada.kth.se>
2113
2114 * sort.c (scm_merge, scm_merge_list_x): Bugfix: Place elements
2115 from first arg before equal elements in second arg in result.
2116 (scm_merge_list_step): Bugfix: Don't presume that arguments in a C
2117 function call are executed in a well defined order.
2118
2119 1999-01-11 Jim Blandy <jimb@zwingli.cygnus.com>
2120
2121 * alloca.c (alloca): Cast value returned by malloc. (Thanks to
2122 Christian Lynbech.)
2123
2124 1999-01-11 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2125
2126 * random.c: Removed alloca includes.
2127
2128 1999-01-11 Jim Blandy <jimb@zwingli.cygnus.com>
2129
2130 * Makefile.in: This changed, for some reason I don't really
2131 understand, when I ran automake in the top level directory. This
2132 may be contamination by Cygnus internal releases. If you re-run
2133 automake and this change gets reverted, don't worry about it.
2134
2135 1999-01-10 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2136
2137 * sort.c, sort.h: New files: Implement slib's and scsh's sort
2138 interfaces. Author: Roland Orre.
2139
2140 * Makefile.am: Added sort.c, sort.h, sort.x.
2141
2142 * init.c: #include "sort.h";
2143 (scm_boot_guile_1): Call scm_init_sort ().
2144
2145 * numbers.h: Added #include "libguile/print.h".
2146
2147 * numbers.c: Formatted according to Guile conventions;
2148 Renamed s_bignum --> scm_s_bignum.
2149
2150 * random.c, random.h: New files: Random number support.
2151 Interface same as slib's.
2152
2153 * Makefile.am: Added random.c, random.h, random.x.
2154
2155 * init.c: #include "random.h";
2156 (scm_boot_guile_1): Call scm_init_random ().
2157
2158 1998-12-23 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2159
2160 * Makefile.am: New files: guardians.c, guardians.x, guardians.h
2161
2162 * guardians.c, guardians.h (scm_make_guardian,
2163 scm_guardian_gc_init, scm_guardian_zombify, scm_guard,
2164 scm_get_one_zombie, scm_init_guardian): This is an implementation
2165 of guardians as described in R. Kent Dybvig, Carl Bruggeman, and
2166 David Eby (1993) "Guardians in a Generation-Based Garbage
2167 Collector" ACM SIGPLAN Conference on Programming Language Design
2168 and Implementation, June 1993 ftp://ftp.cs.indiana.edu
2169 /pub/scheme-repository/doc/pubs/guardians.ps.gz
2170 Author: Michael N. Livshin.
2171
2172 * gc.h (SCM_MARKEDP, SCM_NMARKEDP): New macros.
2173
2174 * gc.c (scm_igc): Call scm_guardian_gc_init and
2175 scm_guardian_zombify.
2176
2177 * init.c (scm_boot_guile_1): Call scm_init_guardian.
2178
2179 1998-12-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2180
2181 * macros.c (scm_makacro, scm_makmacro, scm_makmmacro): Added
2182 argument checking.
2183
2184 1998-12-15 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2185
2186 Move the procedure slots of entities to invisible slots (so that
2187 we can have operator class objects which themselves are entities).
2188 * struct.h (scm_struct_i_proc, scm_struct_i_flags,
2189 SCM_STRUCTF_ENTITY): New constants.
2190
2191 * struct.c (scm_make_struct): Allocate "invisible" room for
2192 procedures if SCM_STRUCTF_ENTITY is set in vtable.
2193
2194 * gc.c (scm_gc_mark): Mark entity procedures.
2195
2196 * struct.c, struct.h (scm_alloc_struct): Renamed from alloc_struct
2197 and made global.
2198 (scm_struct_init): Renamed from init_struct and made global.
2199
2200 * objects.h (SCM_ENTITY, scm_entity): Removed.
2201 (SCM_ENTITY_PROC_0, SCM_ENTITY_PROC_0, SCM_ENTITY_PROC_0,
2202 SCM_ENTITY_PROC_3): Adjusted for new location of procedure slots.
2203
2204 Mon Dec 14 18:10:12 1998 Maciej Stachowiak <mstachow@mit.edu>
2205
2206 * snarf.h (SCM_SYNTAX): New macro to allow convenient declaration
2207 of syntactic forms, similar to SCM_PROC.
2208 * debug.c, eval.c, evalext.c: use SCM_SYNTAX to declare all special
2209 forms, and SCM_SYMBOL or SCM_GLOBAL_SYMBOL to delcare C variables
2210 for the name symbols when needed.
2211
2212 1998-12-14 Jim Blandy <jimb@zwingli.cygnus.com>
2213
2214 * Makefile.in: Regenerated.
2215
2216 1998-12-05 Jim Blandy <jimb@zwingli.cygnus.com>
2217
2218 * pairs.h (SCM_NEWCELL): When DEBUG_FREELIST is defined, don't
2219 take the address of _into; it might be a register. Just have
2220 scm_debug_newcell return the new cell.
2221 * gc.c (scm_debug_newcell): Just return the new cell, instead of
2222 taking the address of a place to store it as an argument.
2223 * gc.h (scm_debug_newcell): Change declaration.
2224 (Thanks to Greg Harvey.)
2225
2226 1998-12-08 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2227
2228 * ramap.c (array-copy-in-order!, array-map-in-order): New names.
2229 Replaces old names serial-array-copy! and serial-array-map!.
2230
2231 * evalext.c (map-in-order): New name. Replaces serial-map.
2232
2233 1998-12-05 Jim Blandy <jimb@totoro.red-bean.com>
2234
2235 * smob.c (freeprint): New function.
2236 (freecell): Use it to print freed objects, for slightly easier
2237 debugging.
2238
2239 1998-12-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2240
2241 * backtrace.c (display_frame): Made more robust. Doesn't throw an
2242 error if no source properties can be found for a frame. (Thanks
2243 to Christian Lynbech.)
2244
2245 1998-11-27 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2246
2247 * objects.h: Removed slots direct_supers and direct_slots from the
2248 definitions of the rudimentary classes described by objects.h.
2249
2250 * objects.c, objects.h (scm_entity_p): New procedure. Together
2251 with the predicates scm_procedure_p and scm_struct_p, this
2252 predicate makes it possible to differ between structs, entities
2253 and operators.
2254
2255 * modules.c, modules.h (scm_resolve_module): New function.
2256
2257 1998-11-26 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2258
2259 * objects.h (SCM_METACLASS_STANDARD_LAYOUT,
2260 SCM_METACLASS_OPERATOR_LAYOUT): Removed slots `direct_supers' and
2261 `direct_slots'.
2262
2263 * objects.c (scm_entity_p): New procedure.
2264
2265 * procprop.c (scm_i_procedure_arity): Bugfix: Return correct value
2266 for asubrs, rpsubrs, lsubrs and lsubr_2s.
2267
2268 1998-11-26 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2269
2270 * procprop.h (scm_i_procedure_arity): Added declaration.
2271
2272 * procprop.c (scm_i_procedure_arity): Made global; New code to
2273 handle operators and entities.
2274 (scm_procedure_property): No need to call scm_procedure_p since
2275 scm_i_procedure_arity now does all necessary type checking.
2276 Added #include "objects.h".
2277
2278 * feature.c (scm_remove_hook_x): Bugfix: Changed reference to
2279 s_add_hook_x --> s_remove_hook_x.
2280 (scm_add_hook_x, scm_remove_hook_x): Hooks now takes arguments.
2281 Added #include "procprop.h"
2282
2283 * feature.c, feature.h (scm_reset_hook_x): New procedure.
2284 (scm_make_hook): Optional argument defines number of arguments to
2285 the hook.
2286 (scm_make_named_hook): Take number of args as second arg.
2287 (scm_run_hook): Renamed from scm_run_hooks (old name defined in
2288 boot-9.scm for a while); First arg is the hook. The rest are
2289 arguments passed on to the hook procedures.
2290
2291 1998-11-23 Jim Blandy <jimb@zwingli.cygnus.com>
2292
2293 * numbers.c (scm_logand, scm_logior, scm_logxor, scm_logtest,
2294 scm_logbit_p): Do the computation in ulongs. This is not as nice
2295 as doing it in bignums, but at least it's good enough for
2296 manipulating flags in 32-bit words. (Thanks to Jim Wilson.)
2297
2298 * regex-posix.c (scm_regexp_exec): Reliably mark unmatched
2299 subexpressions. (Thanks to Charbel Jacquin.)
2300
2301 1998-11-23 Mikael Djurfeldt <mdj@kenneth>
2302
2303 * feature.c, feature.h (scm_make_hook, scm_add_hook_x,
2304 scm_remove_hook_x, scm_run_hooks): Moved from ice-9/boot-9.scm.
2305 (scm_make_named_hook): New function.
2306
2307 * feature.c: Added #include "eval.h".
2308
2309 * modules.c (scm_make_module): Beautify the module.
2310
2311 1998-11-22 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2312
2313 * modules.c, modules.h: New files: C interface to modules. (This
2314 is necessary in order to interface the object system to Guile
2315 properly. The guts of these modules will be replaced by the new
2316 module system in the future.)
2317
2318 * init.c: Added #include "modules.h"
2319 (scm_boot_guile_1): Call scm_init_modules.
2320 (invoke_main_func): Call scm_post_boot_init_modules.
2321
2322 * Makefile.am: Added modules.c, modules.x, modules.h.
2323
2324 1998-11-22 Mikael Djurfeldt <mdj@kenneth>
2325
2326 * procs.c: #include "objects.h"
2327 (scm_procedure_p): Return #t also on structs which are operators.
2328
2329 * objects.c (scm_init_objects): Renamed <standard-metaclass>,
2330 <operator-metaclass> and <entity-class> to <standard-class>,
2331 <operator-class> and <entity> in order to conform with STKlos
2332 naming conventions.
2333
2334 * eval.c (SCM_CEVAL): Jump to badfun if trying to apply a struct
2335 which isn't an operator.
2336 (SCM_APPLY): Ditto, but jump to badproc.
2337
2338 1998-11-21 Mikael Djurfeldt <mdj@kenneth>
2339
2340 * eval.c (SCM_CEVAL): Allow structs implanted in code.
2341 Previously, structs implanted in code were interpreted as forms
2342 the operator of which was a gloc. We solve this by checking for
2343 the zero in the emulated vcell in the struct vtable. Since
2344 implanted structs always will look like forms with a gloc
2345 operator, execution will only be slowed down by maximally one
2346 extra test-and-branch per application.
2347
2348 * evalext.c (scm_definedp): Removed check for isyms; Added a
2349 second optional argument: It is now possible to supply an
2350 evaluation environment in which to look for the symbol.
2351
2352 1998-11-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2353
2354 * readline.c (scm_init_readline): Set
2355 rl_basic_word_break_characters. (Thanks to Ian Grant.)
2356
2357 * coop.c (coop_condition_variable_wait): Removed
2358 (coop_condition_variable_wait_mutex): Folded logic of
2359 coop_mutex_unlock into coop_condition_variable_wait_mutex to
2360 prevent condvar signal lossage. Previously, another thread could
2361 start to run after unlocking the mutex but before putting the
2362 current thread on the wait queue. If that thread then would
2363 signal the first, the signal would be lost. (Thanks to Christian
2364 Lynbech.)
2365
2366 1998-11-17 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2367
2368 * eval.c (SCM_CEVAL): Added missing case for cclo. (Thanks to
2369 Christian Lynbech.)
2370
2371 1998-11-14 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2372
2373 * objects.c (scm_i_make_class_object): Renamed from
2374 make_class_object; exported; error checking moved to
2375 scm_make_class_object and scm_make_subclass_object.
2376 (scm_make_class_object, scm_make_subclass_object): Use
2377 scm_i_make_class_object.
2378 (scm_make_subclass_object): Let the subclass have same metaclass
2379 as the superclass.
2380
2381 1998-11-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2382
2383 * debug.c (scm_debug_options): Bugfix: Set the value of
2384 scm_stack_checking_enabled_p after setting debug options;
2385 #include "stackchk.h". (Thanks to Richard Polton.)
2386
2387 1998-11-13 Radey Shouman <rshouman@metro2000.com>
2388
2389 * unif.c (scm_array_contents): removed unnecessary test for 0
2390 base.
2391
2392 1998-11-13 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2393
2394 * evalext.c, evalext.h (scm_m_sequence_to_list): Removed.
2395 Replaced by macro `collect' in boot-9.scm.
2396
2397 1998-11-10 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2398
2399 * eval.c (scm_copy_tree): Copy source properties if existent.
2400
2401 * debug.c (scm_start_stack): Copy source when evaluating. (If we
2402 don't, we may end up passing memoized source to a transformer.)
2403
2404 1998-11-10 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2405
2406 * stack.c (get_applybody): Help function which lookups the first
2407 body form of the apply closure.
2408 (read_frames): Prevent the source of the first form of the apply
2409 closure from being recorded. This would only be confusing.
2410
2411 * debug.h (SCM_SET_MACROEXP, SCM_CLEAR_MACROEXP, SCM_MACROEXPP):
2412 Replaces SCM_MACROFRAME, SCM_MACROFRAMEP.
2413
2414 * eval.c (SCM_CEVAL): Use SCM_SET/CLEAR_MACROEXP.
2415
2416 * stacks.c (read_frame): Bugfix: Removed lingering `else'
2417 statement.
2418 (read_frames): Use SCM_MACROEXPP.
2419
2420 1998-11-10 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2421
2422 * stacks.c (read_frames): Skip gsubr frames in backtraces. (They
2423 don't contain interesting information since all arguments are
2424 present in the frame which applies the compiled closure anyway.);
2425 Skip the transformer application frames.
2426
2427 * print.c (scm_iprin1): Print gsubrs as primitives.
2428
2429 1998-11-09 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2430
2431 * debug.h (SCM_MACROFRAME, SCM_MACROFRAMEP): New frame type.
2432
2433 * eval.c (SCM_CEVAL): Mark macro frames at `handle_a_macro' so
2434 that we can identify these in a backtrace. (This change doesn't
2435 introduce any significant speed penalty.)
2436
2437 * eval.c: Added note about `serial-map' using scm_map.
2438
2439 * read.c, read.h (scm_read_options, scm_read_opts): Removed
2440 readline options. They should reside in their own options array.
2441
2442 * readline.c, readline.h (scm_readline_options,
2443 scm_readline_opts): Moved readline options here.
2444
2445 1998-11-07 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2446
2447 * readline.c (scm_read_history, scm_write_history): Bugfix: Use
2448 SCM_ROCHARS instead of SCM_CHARS.
2449
2450 * ports.c (scm_unread_string): Bugfixes: Check for SCM_STRINGP,
2451 not SCM_ROSTRINGP; use SCM_ROUCHARS instead of SCM_UCHARS.
2452
2453 1998-11-06 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2454
2455 * ports.h (SCM_CUC): #define as ~SCM_CRDY instead of 0x001fffffL.
2456 This is quite important since the latter clears the
2457 FPORT_READ_SAFE and FPORT_WRITE_SAFE flags causing flushes at
2458 every single character read...
2459
2460 1998-11-03 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2461
2462 * print.c (scm_iprin1): Removed suspect looking (and indeed
2463 malevolent) semicolon after test for user supplied closure print
2464 procedure. (Thanks to Telford Tendys.)
2465
2466 * list.c (scm_sloppy_memq): Removed sloppy_mem_check.
2467 (scm_memq, scm_memv, scm_member): Do argument checking *before*
2468 starting to search the list. Removed call to sloppy_mem_check.
2469
2470 * list.c, list.h (scm_delq1_x, scm_delv1_x, scm_delete1_x): New
2471 procedures: Same as scm_delq_x et al, but delete maximally one
2472 element.
2473
2474 * options.c (scm_options, scm_init_options): GC-protect option
2475 values of type SCM. (Thanks to Telford Tendys.)
2476
2477 1998-11-01 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2478
2479 * eval.c: Don't #define scm_lookupcar to scm_lookupcar1. Instead
2480 make sure that there always is a "real" scm_lookupcar.
2481
2482 1998-11-01 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2483
2484 * read.c, read.h (scm_read_opts): New read options
2485 "history-length" and "history-file".
2486 (scm_read_options): Stifle history to history length.
2487
2488 * readline.c (scm_read_history, scm_write_history): New procedures.
2489
2490 1998-10-31 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2491
2492 * eval.h (scm_macro_eval_x): Removed declaration.
2493
2494 * eval.c (scm_s_expression, scm_s_test, scm_s_body,
2495 scm_s_bindings, scm_s_variable, scm_s_clauses, scm_s_formals):
2496 Renamed and made global.
2497
2498 * eval.c, eval.h (SCM_EVALIM): Renamed from EVALIM.
2499 (SCM_XEVAL, SCM_XEVALCAR): Renamed from XEVAL, XEVALCAR.
2500
2501 * evalext.c, evalext.h: New files. Contain non-R5RS things
2502 having to do with evaluation.
2503
2504 * evalext.c (scm_serial_map): New procedure: Version of `map'
2505 which guarantees that the procedure is applied to the lists in
2506 serial order.
2507 (scm_m_sequence_to_list): New syntax: Version of `begin' which
2508 returns a list of the results of the body forms instead of the
2509 result of the last body form.
2510 (scm_definedp, scm_m_undefine): Moved from eval.c
2511
2512 * evalext.h (scm_m_sequence_to_list): Added declaration.
2513
2514 * macros.c, macros.h: New files.
2515 (scm_procedure_to_syntax, scm_procedure_to_macro,
2516 scm_procedure_to_memoizing_macro, scm_macro_p, scm_macro_type,
2517 scm_macro_name, scm_macro_transformer): Moved from eval.c
2518 (scm_make_synt): Moved from eval.c
2519
2520 * procs.c, procs.h (scm_procedure_documentation): Moved from eval.c.
2521
2522 * init.c (scm_boot_guile_1): Added calls to scm_init_macros and
2523 scm_init_evalext.
2524
2525 * Makefile.am: Added evalext.c, evalext.h, macros.c, macros.h.
2526
2527 * debug.c, print.c: Added #include "macros.h".
2528
2529 1998-10-29 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2530
2531 This change adds the ability to use `unread-char' multiple times
2532 without interspersed reads and adds the new procedure
2533 `unread-string'. The change is optimized for the common case of
2534 unreading a single character. This is also the reason behind the
2535 choice to store characters in the port itself: in most cases no
2536 extra malloc is required.
2537
2538 The amount of code in some macros in ports.h has been increased to
2539 the extent that they would fit better as C functions, but, since
2540 this code belongs to the port representation, such functions
2541 should be placed in ports.c which would cause calls back and forth
2542 between ports.c and genio.c. That is not good for performance.
2543 Also, keeping them as macros allows the compiler to do some
2544 optimizations which are needed to make the current interface
2545 (SCM_CRDYP, SCM_CGETUN, SCM_TRY_CLRDY) efficient.
2546
2547 One benchmark (Guile startup time) indicates an increase of
2548 loading speed of 1%. Another (reading (using `read') boot-9.scm
2549 10 times) shows no change in performance.
2550
2551 (Caveat: Since Gary is redesigning I/O anyway, no big efforts were
2552 made to find a beautiful solution.)
2553
2554 * ports.h (SCM_CLRDY, SCM_CUNGET, SCM_CGETUN): Rewritten.
2555 (SCM_TRY_CLRDY): New macro: Only clear the first unread
2556 character. (SCM_CLRDY clears all.)
2557 (SCM_N_READY_CHARS): New macro: Returns number of unread
2558 characters in a port. Returns wrong answer if SCM_CRDYP is false.
2559 (struct scm_port_table): New fields: `entry' contains port table
2560 index, `cp' points to last unread char, `cbuf' is the buffer for
2561 unread chars, `cbufend' points after end of the character buffer.
2562
2563 * ports.h, ports.c (scm_unread_string): New procedure.
2564 (scm_grow_port_cbuf): New function.
2565
2566 * ports.c (scm_add_to_port_table, scm_remove_from_port_table):
2567 Handle new fields.
2568 (scm_generic_fgets), fports.c (local_fgets): Use a loop
2569 to read unread characters. Use SCM_TRY_CLRDY instead of
2570 SCM_CLRDY.
2571
2572 * ioext.c (scm_ftell): Use SCM_N_READY_CHARS to correct position.
2573
2574 * genio.c (scm_getc): Use SCM_TRY_CLRDY instead of SCM_CLRDY.
2575
2576 * genio.c, genio.h (scm_ungets): New function.
2577
2578 * genio.c (scm_puts): Removed mysterious TRANSCRIPT_SUPPORT code
2579 sections.
2580
2581 1998-10-28 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2582
2583 * threads.h (scm_thread_sleep, scm_thread_usleep): Fixed
2584 declarations. (Thanks to Russ McManus.)
2585
2586 1998-10-26 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2587
2588 * numbers.c (num2long): As a software archeologist, I'm proud of
2589 this finding! :) Preliminary dating suggests an almost 4 year old
2590 remnant from the SCM ancestor. The sample has been removed from
2591 the finding site and is now safely stored in the repository.
2592
2593 * numbers.h: Removed prototype for num2long.
2594
2595 * unif.c (scm_array_set_x): Use scm_num2long instead of num2long.
2596
2597 * gh_data.c (gh_scm2doubles): Make it possible to pass result
2598 array as second arg.
2599 (gh_chars2byvect, gh_shorts2svect, gh_floats2fvect, gh_scm2chars,
2600 gh_scm2shorts, gh_scm2longs, gh_scm2floats): New functions.
2601 * gh.h: Updated and added prototypes.
2602
2603 * gh_data.c (gh_ints2scm): Handle integers outside INUM limits.
2604
2605 1998-10-24 Jim Blandy <jimb@zwingli.cygnus.com>
2606
2607 * gc.h: Remove all uses of SCM_P. (Thanks to Richard Polton.)
2608
2609 * guile-snarf.in: Never generate an empty file. (Thanks to
2610 Richard Polton.)
2611
2612 * gh.h (gh_enter, gh_new_procedure0_0, gh_new_procedure0_1,
2613 gh_new_procedure0_2, gh_new_procedure1_0, gh_new_procedure1_1,
2614 gh_new_procedure1_2, gh_new_procedure2_0, gh_new_procedure2_1,
2615 gh_new_procedure2_2, gh_new_procedure3_0, gh_new_procedure4_0,
2616 gh_new_procedure5_0): Specify argument types, to appease C++
2617 compilers. (Thanks to Brad Bowman.)
2618
2619 Bug reports from Russ McManus:
2620 * guile-snarf.in: If the CPP environment variable is set, use that
2621 as the C preprocessor, instead of the preprocessor autoconf
2622 found.
2623 * snarf.h (SCM_PROC): Cast the function pointer passed to
2624 scm_make_gsubr, to satisfy C++.
2625
2626 * gh_eval.c (gh_eval_str_with_catch, gh_eval_file_with_catch):
2627 Use the handler passed, instead of ignoring it and using
2628 gh_standard_handler. (Thanks to Etienne Bernard.)
2629
2630 1998-10-20 Jim Blandy <jimb@zwingli.cygnus.com>
2631
2632 * ports.h: Put text after #endif in comment. (Thanks to Nicolas
2633 Neuss.)
2634
2635 1998-10-19 Jim Blandy <jimb@zwingli.cygnus.com>
2636
2637 * __scm.h, alist.c, async.c, async.h, backtrace.h, chars.c,
2638 continuations.c, debug.c, debug.h, dynl-dl.c, dynl.c, dynl.h,
2639 dynwind.c, dynwind.h, eq.c, error.c, error.h, eval.c, eval.h,
2640 feature.c, filesys.c, filesys.h, fports.c, fports.h, gc.c, gc.h,
2641 genio.c, genio.h, gh.h, gh_data.c, gsubr.c, gsubr.h, hash.c,
2642 hashtab.c, init.c, init.h, ioext.c, ioext.h, kw.c, libguile.h,
2643 list.c, list.h, load.c, load.h, mallocs.c, markers.c,
2644 mit-pthreads.c, net_db.c, numbers.c, numbers.h, options.c,
2645 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
2646 procprop.h, procs.c, procs.h, ramap.c, ramap.h, regex-posix.c,
2647 regex-posix.h, root.c, root.h, scmsigs.c, scmsigs.h, script.c,
2648 script.h, simpos.c, simpos.h, smob.c, smob.h, snarf.h, socket.c,
2649 srcprop.c, stackchk.c, stackchk.h, stacks.c, stime.c, stime.h,
2650 strings.c, strings.h, strports.c, struct.c, struct.h, symbols.c,
2651 symbols.h, tags.h, threads.c, throw.h, unif.c, variable.c,
2652 vectors.c, vectors.h, version.h, vports.c, weaks.c: Update
2653 copyright years.
2654
2655 * script.c (scm_compile_shell_switches): Define
2656 use-emacs-interface in the root module, so the repl code can see
2657 it. See today's change to top-repl in ice-9/boot-9.scm.
2658
2659 * filesys.c (set_element, get_element): Make sure that `element'
2660 is a cell before applying SCM_FPORTP to it. (Thanks to Jost
2661 Boekemeier and Jorgen "forcer" Schaefer.)
2662
2663 1998-10-18 Jim Blandy <jimb@zwingli.cygnus.com>
2664
2665 * chars.c (scm_charnames): In ASCII character name table, make
2666 newlines print as #\newline by default, not #\nl.
2667
2668 * Makefile.am (libguile_la_SOURCES, BUILT_SOURCES): Put these in
2669 alphabetical order. Oh thrills. But it helps me know how far
2670 along in the compilation I am.
2671 * Makefile.in: Regenerated.
2672
2673 1998-10-18 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2674
2675 * unif.c (scm_raprin1): Changed print syntax for byte vectors from
2676 #bytes(...) to #y(...), and syntax for short vectors from
2677 #short(...) to #h(...). This may seem nutty, but, like the other
2678 uniform vectors, byte vectors and short vectors want to have the
2679 same print and read syntax (and, more basic, want to have read
2680 syntax!). Changing the read syntax to use multiple characters
2681 after the hash sign breaks with the conventions used in R5RS and
2682 the conventions used for the other uniform vectors. It also
2683 introduces complexity in the current reader, both on the C and
2684 Scheme levels. (The Right solution is probably to change the
2685 syntax and prototypes for uniform vectors entirely.)
2686
2687 1998-10-17 Jim Blandy <jimb@savonarola.red-bean.com>
2688
2689 Don't use local_fgets on sockets; ftell doesn't work on sockets.
2690 (Thanks to Jorgen "forcer" Schaefer.)
2691 * ports.h (SCM_NOFTELL): New flag.
2692 * fports.c (local_fgets): If it's set, use the generic fgets.
2693 * socket.c (scm_socket): Set SCM_NOFTELL on the ports we produce.
2694
2695 1998-10-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
2696
2697 * script.c (scm_compile_shell_switches): Add handling of -q switch
2698 (inhibit loading of user init file).
2699 (scm_shell_usage): Add usage text for -q switch.
2700 (scm_compile_shell_switches): Always load user init file first if
2701 it is loaded at all.
2702
2703 1998-10-16 Jim Blandy <jimb@zwingli.cygnus.com>
2704
2705 * stime.c: The CPP hair to determine a value for CLKTCK is weird,
2706 and is now broken under NetBSD. I can't fathom what it's trying
2707 to do, so I've replaced it with something that I do understand,
2708 which seems to work, and which isn't broken on NetBSD. "Progress?
2709 You Decide." (Thanks to Perry Metzger.)
2710
2711 * regex-posix.c (scm_regexp_exec): Add a cast to remove a
2712 signed/unsigned comparison.
2713
2714 1998-10-15 Jim Blandy <jimb@zwingli.cygnus.com>
2715
2716 Warning fixes from Greg Harvey:
2717 * unif.c (scm_array_set_x): initializer for pos
2718 * throw.c (scm_ithrow): added initializer for jmpbuf (SCM_UNDEFINED)
2719 * struct.c (scm_struct_ref, scm_struct_set_x): Added
2720 initializers for field_type, since EGCS so desparately wants to
2721 play dumb
2722 * debug.h (scm_make_gloc, scm_gloc_p, scm_make_iloc, scm_memcons,
2723 scm_mem_to_proc, scm_proc_to_mem, scm_debug_hang): Added prototypes
2724 when GUILE_DEBUG is defined.
2725 * dynwind.h (scm_wind_chain): Same.
2726 * ports.h (scm_pt_size, scm_pt_member): Same.
2727 * print.h (scm_current_pstate): Same.
2728 * procs.h (scm_make_cclo): Same.
2729
2730 1998-10-14 Jim Blandy <jimb@zwingli.cygnus.com>
2731
2732 Handle short and long long uniform arrays properly. (Thanks to
2733 Clark McGrew.)
2734 * ramap.c (scm_ra_matchp, scm_array_fill_int, scm_array_index_map_x,
2735 raeql_1): Add cases for scm_tc7_svect (short vectors) and
2736 scm_tc7_llvect (long long vectors).
2737
2738 Change the way libguile and boot-9.scm are timestamped, to try to
2739 get rid of these spurious mismatch warnings. Now both
2740 libguile/versiondat.h and ice-9/version.scm are generated directly
2741 by the configuration process, rather than having version.scm
2742 generated directly, and libguile/versiondat.h generated by the
2743 Makefile, which is generated by configure. It seems that
2744 sometimes the Makefile would change, but versiondat.h depends on
2745 Makefile.in, not Makefile, so it wouldn't get rebuilt.
2746 * Makefile.am (versiondat.h): Target removed; this is generated
2747 directly by the configure script now.
2748 (BUILT_SOURCES): Remove versiondat.h.
2749 * versiondat.h.in: New file, transformed by the configure script
2750 into versiondat.h.
2751 * Makefile.in: Regenerated.
2752
2753 * (__scm.h, alist.c, eval.c, feature.c, gsubr.c, numbers.c,
2754 options.c): Rename RECKLESS -> SCM_RECKLESS, CAUTIOUS ->
2755 SCM_CAUTIOUS; this way, 1) there's only one version of each flag
2756 to define (we used to have both RECKLESS and SCM_RECKLESS), and 2)
2757 if we want to use them in a header file some day, we can. (Thanks
2758 to Michael Livshin.)
2759
2760 * stime.c (scm_get_internal_real_time): Do the arithmetic using
2761 SCM numbers, so we won't have rollover problems; the range of a
2762 signed long in milliseconds is about 25 days. (Thanks to Karl
2763 Hegbloom.)
2764
2765 Don't redefine sleep and usleep; fix this problem now.
2766 * coop.c (sleep, usleep): Remove declarations; we don't use or
2767 redefine these any more.
2768 (scm_thread_usleep, scm_thread_sleep): New functions which do the
2769 job of usleep and sleep in a thread-friendly way. We can use
2770 these in the rest of Guile. Define versions for systems both with
2771 and without iselect.
2772 * threads.h (scm_thread_usleep, scm_thread_sleep): New declarations.
2773 * scmsigs.c (usleep): Clean up oddities declaring usleep; since
2774 we're just using it, not redefining it, we can use a K&R style
2775 declaration here.
2776 (sleep): Declare this, too, if the system hasn't.
2777 (scm_sleep, scm_usleep): Use scm_thread_sleep and
2778 scm_uthread_sleep if they're available; otherwise, just call the
2779 system functions.
2780 * scmconfig.h.in: Regenerated.
2781
2782 * coop.c (scm_thread_sleep): Make `slept' an unsigned long.
2783
2784 * coop.c (coop_sleephelp): Remove ANSI #ifdef hair.
2785
2786 1998-10-12 Jim Blandy <jimb@zwingli.cygnus.com>
2787
2788 * threads.c: Doc fix.
2789
2790 The argument type of usleep varies from system to system,
2791 as does the return type. We really shouldn't be redefining usleep
2792 at all, but I don't have time to clean that up before the 1.3.
2793 release. It's on the schedule for afterwards. (Thanks to Julian
2794 Satchell.)
2795 * coop.c (usleep): Use USLEEP_ARG_TYPE in prototype and
2796 definition.
2797 * scmsigs.c (usleep): Use USLEEP_ARG_TYPE in prototype.
2798 * scmconfig.h: Regenerated.
2799
2800 * simpos.c (scm_software_type): Procedure deleted. This isn't the
2801 right way to handle system variation. Autoconf's approach is the
2802 way and the light.
2803 * simpos.h (scm_software_type): Declaration deleted.
2804
2805 * script.c (scm_find_executable): Don't test if unix is #defined
2806 here; first, NetBSD doesn't #define it, and second, it's the wrong
2807 way to go about these things. (Thanks to Perry Metzger.)
2808 (dld_find_executable): Delete this MSDOS support code. This isn't
2809 the way we want to support this; it needs to be rethunk at a
2810 larger scale.
2811
2812 * genio.c (scm_do_read_line): Don't just politely check that the
2813 line was either non-empty or EOF. Abort if it's empty and not
2814 EOF.
2815
2816 1998-10-11 Jim Blandy <jimb@zwingli.cygnus.com>
2817
2818 * scmconfig.h.in: Regenerated.
2819
2820 * libguile.h: Don't omit the dynamic linking functions. (Thanks
2821 to Greg Badros.)
2822
2823 * genio.c (scm_do_read_line): Count lines correctly when the file
2824 doesn't end in a newline.
2825
2826 1998-10-10 Jim Blandy <jimb@zwingli.cygnus.com>
2827
2828 * genio.c (scm_do_read_line): Maintain the line count correctly.
2829 (Thanks to Harvey J. Stein and Greg Harvey.)
2830
2831 * gc.c (scm_return_first): Remove #ifdef __STDC__ garbage; Guile
2832 requires ANSI now.
2833
2834 * numbers.c (big2str): Protect t from garbage collection until
2835 we're done. (Thanks to Gary Houston.)
2836
2837 1998-10-09 Jim Blandy <jimb@zwingli.cygnus.com>
2838
2839 * Makefile.am (libguile_la_LDFLAGS): Increment shared library
2840 version number.
2841 * Makefile.in: Regenerated.
2842
2843 * fports.h (scm_setbuf0, scm_setvbuf, scm_setfileno,
2844 scm_evict_ports, scm_open_file, scm_stdio_to_port): Get rid of
2845 SCM_P macro.
2846
2847 Do magic to mix reads and writes on stdio FILE-based ports.
2848 (Thanks to Christian Lynbech.)
2849 * fports.c (FPORT_READ_SAFE, FPORT_WRITE_SAFE, FPORT_ALL_OKAY):
2850 New macros.
2851 (pre_read, pre_write): New functions.
2852 (local_fgetc, local_fgets, local_ffwrite, local_fputc,
2853 local_fputs): Call them.
2854 (local_fflush): Mark the port as ready for reading and writing.
2855 (scm_stdio_to_port): Set the FPORT_READ_SAFE, FPORT_WRITE_SAFE
2856 flags on new port objects. This might not be accurate --- who
2857 knows what state the FILE * is in when we get it --- but it won't
2858 do extraneous calls to fflush or fseek, so it's no worse than the
2859 behavior before this change.
2860 * ports.h: Add comment.
2861
2862 Centralize the creation of port objects based on stdio FILE * in
2863 fports.c; don't just throw them together anywhere.
2864 * fports.c (scm_stdio_to_port): Make NAME a SCM value, which is
2865 what the rest of Guile wants. Don't set the revealed count;
2866 that's only appropriate for stdin, stdout, stderr.
2867 (scm_standard_stream_to_port): This function does set the revealed
2868 count.
2869 * init.c (scm_init_standard_ports): Use scm_standard_stream_to_port,
2870 not scm_stdio_to_port.
2871 * filesys.c (scm_open): Call scm_stdio_to_port; don't write it out.
2872 * fports.c (scm_open_file): Same.
2873 * posix.c (scm_pipe): Same.
2874 * socket.c (scm_sock_fd_to_port): Same.
2875 * ioext.c (scm_fdopen): Same.
2876 (scm_freopen): Moved from here to...
2877 * fports.c (scm_freopen): ... here. This is really something that
2878 munges the internals of an fport, so it should go here.
2879 * fports.h (scm_stdio_to_port): Adjust prototype.
2880 (scm_standard_stream_to_port, scm_freopen): New protoypes.
2881 * ioext.h (scm_freopen): Prototype removed.
2882
2883 * filesys.c (set_element, get_element): This can work on both pipe
2884 and file ports, so use SCM_FPORTP to typecheck, instead of testing
2885 for scm_tc16_fport.
2886
2887 * scmconfig.h.in: Regenerated.
2888
2889 Change the definition of the functions in scm_ptobfuns so that
2890 they get passed the port object, not the port's stream.
2891 * ports.h (scm_ptobfuns): Rename all `stream' arguments to `port'.
2892 * gc.c (scm_gc_sweep): Pass the port itself to the free function.
2893 * genio.c (scm_putc, scm_puts, scm_lfwrite, scm_fflush, scm_getc):
2894 Pass the port itself to the scm_ptobs function.
2895 * ports.c (scm_close_port, scm_force_output, scm_flush_all_ports,
2896 scm_generic_fgets): Same.
2897 (putc_void_port, puts_void_port, write_void_port, flush_void_port,
2898 getc_void_port, fgets_void_port, close_void_port): Just change the
2899 argument names; these functions don't really do anything.
2900 * fports.c (local_fgetc, local_fgets, local_fclose, local_fflush,
2901 local_fputc, local_fputs, local_ffwrite, local_pclose): Take the
2902 port as an argument, and use SCM_STREAM to get the stdio FILE *.
2903 Also, use prototyped definitions, and get rid of the extra
2904 declarations.
2905 (scm_fptob, scm_pipob): We don't need casts here any more.
2906 * strports.c (prinstpt): Use prototype declarations.
2907 (stputc, stwrite, stputs, stgetc): Take the port as an argument,
2908 and use SCM_STREAM to get the string info. Also, use prototyped
2909 definitions, and get rid of the extra declarations.
2910 * vports.c (sfputc, sfwrite, sfputs, sfflush, sfgetc, sfclose,
2911 noop0): Same.
2912
2913 * ports.h (scm_ptobfuns): Replace uses of SCM_P with a straight
2914 prototype; it's okay (preferred, even!) to use ANSI C in Guile.
2915
2916 * fports.c (local_fgetc, local_fgets): Renamed from scm_fgetc and
2917 scm_fgets, for consistency.
2918 (scm_fptop, scm_pipob): References updated.
2919
2920 1998-10-08 Jim Blandy <jimb@zwingli.cygnus.com>
2921
2922 Include the source location in error messages for scripts.
2923 * init.c (scm_boot_guile_1): Use scm_internal_lazy_catch, so the
2924 stack is still there when we catch the error.
2925 * throw.c (handler_message): If we are handling an error with a
2926 message, then put together the proper arguments and call
2927 scm_display_error, instead of scm_display_error_message. That
2928 displays source location, if it can find it.
2929
2930 1998-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
2931
2932 * gc.c (scm_unprotect_object): Change this so that calls to
2933 scm_protect_object and scm_unprotect_object nest properly.
2934 (scm_protect_object): Doc fixes.
2935
2936 * strings.c (scm_string_set_x): Require the argument to be a
2937 writable string, not a substring or a symbol.
2938 * strings.h (SCM_RWSTRINGP, SCM_NRWSTRINGP): New predicates.
2939 (Thanks to John Redford and Charbel Jacquin.)
2940
2941 * scmconfig.h.in: Regenerated; ../acconfig.h has changed.
2942
2943 1998-10-07 Jim Blandy <jimb@totoro.red-bean.com>
2944
2945 * eval.c (safe_setjmp): Remove this misunderstanding.
2946 (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Replace with references to
2947 ordinary setjmp.
2948
2949 1998-10-06 Jim Blandy <jimb@zwingli.cygnus.com>
2950
2951 * libguile.h: Mark these as C declarations, for compilation by C++
2952 compilers.
2953
2954 * snarf.h (SCM_PROC, SCM_PROC1): Remove very odd code in #ifdef
2955 __cplusplus clause. I seriously doubt this ever worked the way
2956 the author seems to have intended.
2957
2958 1998-10-05 Jim Blandy <jimb@zwingli.cygnus.com>
2959
2960 Utterly needless cleanups to hopelessly messy code.
2961 * ports.c: Doc fixes.
2962 (scm_fflush): Moved to ...
2963 * genio.c (scm_fflush): ... here, amongst all the other port
2964 method invocation functions.
2965 * genio.h, ports.h: The prototype moves too.
2966
2967 1998-10-04 Jim Blandy <jimb@zwingli.cygnus.com>
2968
2969 * backtrace.c (display_error_body): The current frame does not
2970 always have a parent frame; consider a function called directly
2971 from the MAIN_FUNC passed to scm_boot_guile. (Thanks to Maciej
2972 Stachowiak.)
2973
2974 * alloca.c (alloca): Undo yesterday's changes, and simply call
2975 malloc directly for storage, and abort if we don't get what we
2976 want. The situation is much simpler --- just call malloc. Emacs
2977 has bizarre/evil requirements (signal handlers might malloc unless
2978 you set this global flag, so you have to set the flag around all
2979 calls to malloc) which we are certainly not going to conform to,
2980 so we can do the simple and obvious thing.
2981
2982 * coop.c (coop_condition_variable_wait): Make this function
2983 static. It's only useful internally --- you should never just
2984 wait on a condition variable.
2985 * coop-defs.h (coop_condition_variable_wait): Delete prototype.
2986
2987 1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
2988
2989 * unif.c (scm_array_set_x): Accept any kind of number as an
2990 element for a uniform vector of doubles. This is more consistent
2991 with Scheme's view of numbers. (Thanks to Miroslav Silovic.)
2992
2993 * alloca.c: Use scm_must_malloc to obtain storage. Hopefully this
2994 works; I can't conveniently test it myself. (Thanks to Dvid
2995 Tillman for the bug report.)
2996
2997 * init.c: Doc fixes.
2998
2999 * init.c (invoke_main_func): Load the startup files (boot-9.scm)
3000 from here, not from scm_compile_shell_switches (which is a pretty
3001 dumb place to do it).
3002 (scm_load_startup_files): New function.
3003 (scm_ice_9_already_loaded): Variable moved to here from script.c.
3004 * script.c (scm_compile_shell_switches): Don't load the startup
3005 files here.
3006 (scm_ice_9_already_loaded): Variable moved.
3007 * init.c (scm_load_startup_files): Prototype for new function.
3008 * gh_init.c (gh_enter): Doc fix.
3009
3010 1998-10-03 Jim Blandy <jimb@savonarola.red-bean.com>
3011
3012 Some anti-warning changes from Greg Harvey.
3013 * gh_data.c (gh_scm2doubles): Initialize m, to avoid compiler
3014 warnings when it doesn't understand our NORETURN declarations in
3015 error.h.
3016 * posix.c (scm_mknod): Similar.
3017
3018 1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
3019
3020 * posix.c (scm_getpwuid): If we can't find an entry, return our
3021 own message, instead of using scm_syserror --- the getpwMUMBLE
3022 functions don't set `errno' to anything interesting.
3023
3024 1998-10-03 Jim Blandy <jimb@savonarola.red-bean.com>
3025
3026 Get rid of warnings from the cooperative threading system.
3027 * threads.h (scm_single_thread_p, scm_yield,
3028 scm_call_with_new_thread, scm_join_thread, scm_make_mutex,
3029 scm_lock_mutex, scm_unlock_mutex, scm_make_condition_variable,
3030 scm_wait_condition_variable, scm_signal_condition_variable): Add
3031 prototypes for these Scheme-visible functions.
3032 * coop-defs.h (coop_next_runnable_thread,
3033 coop_wait_for_runnable_thread_now, coop_wait_for_runnable_thread):
3034 Prototypes for these here, even though they're from iselect.c.
3035 (coop_condition_variable_wait, coop_join): Add prototypes.
3036 * coop-threads.c (scm_threads_free_thread, scm_threads_free_mutex,
3037 scm_threads_free_condvar): Make these smob functions static.
3038 * coop-threads.h (coop_init): Give this a real prototype.
3039 * coop.c: #include <unistd.h>, if we have it, for `usleep' and `sleep'.
3040 (coop_next_runnable_thread): No need to provide prototype; it's in
3041 coop-defs.h.
3042
3043 * scmconfig.h.in: .detarenegeR
3044
3045 * iselect.c, threads.c: Doc fixes.
3046
3047 1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
3048
3049 * Makefile.in: Regenerated with a patched automake, to get
3050 dependency generation right when using EGCS.
3051
3052 * inet_aton.c (inet_aton): Add prototype, to remove compiler
3053 warning. (Thanks to Robert Pluim.)
3054
3055 * inet_aton.c (inet_aton): Reassure the compiler that the
3056 arguments to the <ctype.h> macros are all unsigned characters, not
3057 signed characters.
3058
3059 1998-10-03 Jim Blandy <jimb@savonarola.red-bean.com>
3060
3061 Getting rid of more warnings...
3062 * iselect.c: Test for MISSING_BZERO_DECL, not DECLARE_BZERO; see
3063 today's change to ../configure.in.
3064 * scmsigs.c: Test for MISSING_USLEEP_DECL, not DECLARE_USLEEP.
3065 * scmconfig.h.in: Regenertaded.de.,.__
3066 * stime.c (strptime): Declare this, #ifdef MISSING_STRPTIME_DECL.
3067 (scm_localtime, scm_mktime): Use a const char * to manipulate the
3068 time zone name.
3069
3070 * readline.c: Doc fix.
3071 (rl_cleanup_after_signal, rl_free_line_state): Make these static.
3072 * readline.h (scm_filename_completion_function): Add prototype.
3073 (scm_init_readline): Make this into a prototype.
3074
3075 * readline.c (scm_filename_completion_function): Use SCM_PROC to
3076 declare this, instead of calling scm_make_subr manually.
3077
3078 1998-10-02 Jim Blandy <jimb@savonarola.red-bean.com>
3079
3080 * readline.h (scm_init_readline): Add prototype for this.
3081 (scm_init_readline): Make this a real prototype.
3082
3083 1998-09-30 Jim Blandy <jimb@zwingli.cygnus.com>
3084
3085 Warning fixes from Maciej Stachowiak:
3086 * backtrace.h (scm_display_application, scm_backtrace): Add
3087 prototypes.
3088 * debug.c (scm_m_start_stack): Make this function static.
3089 * fluids.h (scm_fluid_p): Add prototype.
3090 * procprop.c (scm_i_procedure_arity): Make this function static.
3091 * regex-posix.c (scm_regexp_error_msg): Make this function static.
3092 * regex-posix.h (scm_init_regex_posix): Use prototype, not K&R decl.
3093 * root.h (scm_dynamic_root): Add external prototype.
3094 * scmsigs.h (scm_usleep): Add external prototype.
3095 * script.h (scm_init_script): Use prototype, not K&R decl.
3096 * stacks.h (scm_stack_id): Add external prototype.
3097 * symbols.h (scm_sysintern0_no_module_lookup): Add external prototype.
3098
3099 1998-09-30 Mark Galassi <rosalia@cygnus.com>
3100
3101 * gh.h: took out the definitions of vset and vref, since they are
3102 replaced by the proper vector routines that correspond to the R4RS
3103 procedures.
3104
3105 1998-09-29 Jim Blandy <jimb@totoro.red-bean.com>
3106
3107 * snarf.h (SCM_VCELL_INIT, SCM_GLOBAL_VCELL_INIT): New macros;
3108 these are analogous to SCM_VCELL and SCM_GLOBAL_VCELL but take a
3109 third argument, a C expression that should result in a SCM value,
3110 which is used to initialize the variable. Reimplemented
3111 SCM_CONST_LONG in terms of SCM_VCELL_INIT. (Thanks to Maciej
3112 Stachowiak.)
3113
3114 * version.h (scm_libguile_config_stamp): Add prototype.
3115 (From Maciej Stachowiak.)
3116
3117 1998-09-26 Jim Blandy <jimb@zwingli.cygnus.com>
3118
3119 * eval.c (scm_force): Assert that x is SCM_NIMP to fix segv when
3120 (force 9) is tried. (Thanks to Karl M. Hegbloom.)
3121
3122 1998-09-06 Jim Blandy <jimb@zwingli.cygnus.com>
3123
3124 * print.c (scm_iprin1): Rather than having one i, and using it in
3125 several places, declare a fresh i local to each block where it is
3126 used, and give it a signedness appropriate to its use in each case.
3127 (scm_iprlist): Same.
3128
3129 * print.c (scm_iprin1): Add cast to avoid unsigned/signed
3130 comparison warnings.
3131
3132 * print.c (ENTER_NESTED_DATA): Make i an unsigned long, to avoid
3133 signed/unsigned clashes.
3134
3135 * posix.h (scm_tmpnam): Added prototype.
3136
3137 * objects.h (scm_set_object_procedure_x, scm_make_class_object,
3138 scm_make_subclass_object): Add external prototypes.
3139
3140 * numbers.c (scm_mkbig): Add cast, and note that signed/unsigned
3141 comparison is okay here.
3142
3143 * numbers.c (scm_istr2int): Add cast; len is known to be positive.
3144
3145 * numbers.c (scm_bigcomp): Clarify logic, and avoid relying on the
3146 (true, but confusing) fact that -1 == ((unsigned) 0 - 1).
3147
3148 * numbers.c (scm_adjbig): Make nsiz an scm_sizet, to avoid mixing
3149 signed/unsigned.
3150
3151 * load.c (swap_port): Make this function static.
3152
3153 * load.c (scm_search_path): Make max_path_len and max_ext_len
3154 unsigned, since they're compared against string sizes.
3155
3156 * load.c (init_build_info): Make i unsigned.
3157
3158 * ioext.h (scm_read_line): Add prototype.
3159
3160 * hashtab.c (scm_hash_fn_get_handle, scm_hash_fn_create_handle_x,
3161 scm_hash_fn_remove_x): Make hash bucket index local variable k
3162 unsigned. Use scm_ulong2num to pass it to SCM_ASSERT as
3163 accurately as possible.
3164
3165 * gh_data.c (gh_set_substr): Add casts to avoid signed/unsigned
3166 comparisons, and range checking to make sure those casts are
3167 harmless.
3168
3169 * stackchk.h (SCM_STACK_OVERFLOW_P): Change definition to avoid
3170 signed/unsigned comparisons.
3171
3172 * smob.c (scm_numsmob): Make this an int, not an scm_sizet, to
3173 avoid signed/unsigned comparisons.
3174 * smob.h (scm_numsmob): Change extern declaration to match.
3175
3176 * ports.c (scm_numptob): Make this an int, not an scm_sizet, to
3177 avoid signed/unsigned comparisons.
3178 * ports.h (scm_numptob): Change extern declaration to match.
3179 (scm_current_load_port, scm_set_port_line_x,
3180 scm_set_port_column_x): New prototypes.
3181
3182 * gsubr.c (GSUBR_TEST): Don't #define this. Nobody's using the
3183 test code, and it causes warnings.
3184
3185 * gh.h (gh_int2scmb, gh_uniform_vector_length,
3186 gh_uniform_vector_ref): Added prototypes.
3187
3188 * Makefile.am (libguile_la_SOURCES): Include Scheme-level
3189 debugging support unconditionally. That's backtrace.c, stack.c,
3190 debug.c, and srcprop.c.
3191 (EXTRA_libguile_la_SOURCES): Omit those from here.
3192 * Makefile.in: Regenerated.
3193
3194 1998-08-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3195
3196 * options.c (scm_options): Bugfix: Allow empty list of options!
3197
3198 * debug.c, debug.h (scm_single_step): Removed.
3199 (scm_with_traps): New procedure. This procedure could easily be
3200 written in Scheme but needs to be highly optimized.
3201
3202 * eval.h, eval.c: New evaluator trap flag: SCM_TRAPS_P.
3203
3204 * eval.c (SCM_CEVAL, SCM_APPLY): Removed resetting of trap flags.
3205 Check SCM_TRAPS_P before trapping.
3206
3207 1998-07-30 Jim Blandy <jimb@zwingli.cygnus.com>
3208
3209 Changes to avoid signed/unsigned comparison warnings.
3210 * gc.c (scm_mtrigger, scm_heap_size): Make these unsigned longs.
3211 (scm_gc_sweep): Make n and j local to the blocks they're used in,
3212 so they can have appropriate types for each application. Make i
3213 signed. Use initializers in some spots. I'll probably pay for
3214 all this tweaking.
3215 (scm_must_malloc, scm_must_realloc): Use scm_sizet for size args.
3216 (scm_must_realloc): Make nm unsigned.
3217 (init_heap_seg): Make new_seg_index and n_new_objects signed.
3218 (scm_init_storage): Use prototype-style definition, and make the
3219 argument unsigned.
3220 * gc.h (scm_heap_size, scm_mtrigger, scm_must_malloc,
3221 scm_must_realloc, scm_init_storage): Adjust prototype accordingly.
3222
3223 * filesys.c (scm_readlink): Make local vars rv and size ints, to
3224 avoid signed/unsigned comparison warnings, and because the return
3225 value of readlink may be -1. Don't bother casting the third
3226 argument to readlink.
3227
3228 * filesys.c (scm_dirname, scm_basename): Move these to their own
3229 page, at the end of the file.
3230 * filesys.h (scm_dirname, scm_basename): Add prototypes for these.
3231
3232 * eval.h (scm_eval_options_interface): Add external prototype for this.
3233 * eval.c (scm_eval_options_interface): Use prototype-style def'n.
3234
3235 * eval.c (scm_lookupcar1): Make this static.
3236
3237 * dynl.h (scm_registered_modules, scm_clear_registered_modules):
3238 Make these prototype declarations, not K&R-style.
3239
3240 * chars.c (scm_tables_prehistory): Add cast, to remove signed/
3241 unsigned comparison warning.
3242
3243 * appinit.c: File removed. It had a single function in it, empty,
3244 whose reason for existence is explained in no documentation or
3245 comment. I think it's there as a default for some Tcl-style
3246 initialization, but Tcl abandoned that approach a while ago.
3247 * Makefile.am (libguile_la_SOURCES): Remove appinit.c.
3248 (BUILT_SOURCES): Remove appinit.x.
3249 * Makefile.in: Regenerated.
3250
3251 1998-07-29 Jim Blandy <jimb@zwingli.cygnus.com>
3252
3253 * Makefile.in: Regenerated using the last public version of
3254 automake, not the hacked Cygnus version.
3255
3256 1998-07-28 Jim Blandy <jimb@zwingli.cygnus.com>
3257
3258 Remove Totoro kludge.
3259 * Makefile.in, scmconfig.h.in: Regenerated.
3260 * init.c, readline.c: Don't check if TOTORO is #defined.
3261
3262 1998-07-26 Jim Blandy <jimb@zwingli.cygnus.com>
3263
3264 * Makefile.am: Adjust for new thread configuration system.
3265 (INCLUDES): Include the value of THREAD_CPPFLAGS.
3266 (guile_LDADD, check_ldadd): THREAD_LIBS_LOCAL has been renamed from
3267 THREAD_LIBS.
3268 (THREAD_LIBS): Definition deleted; automake will generate such
3269 things automatically.
3270 * Makefile.in: Regenerated.
3271
3272 1998-07-23 Jim Blandy <jimb@zwingli.cygnus.com>
3273
3274 Simplify smob and port marking; set the mark bit in the generic
3275 marking code, and make marker routines only responsible for
3276 turning up outgoing pointers.
3277 * gc.c (scm_gc_mark): Set the mark bit on ports and smobs here,
3278 before calling the marking function. Don't call the marking
3279 function if it's zero.
3280 * markers.c (scm_mark0): Just return #f. This function isn't
3281 necessary at all now, but it's harmless to call it. We'll leave
3282 it in so other folks' code doesn't croak at link time.
3283 (scm_markcdr): Don't call SCM_SETGC8MARK.
3284 * async.c (mark_async): Don't call SCM_SETGC8MARK.
3285 * dynl.c (mark_dynl_obj): Same.
3286 * root.c (mark_root): Same.
3287 * srcprop.c (marksrcprops): Same.
3288 * unif.c (markra): Same.
3289 * variable.c (scm_markvar): Same.
3290 * ports.c (scm_markstream): Same.
3291 (void_port_ptob): Specify zero for our marking function.
3292 * debug.c (debugobjsmob): Same.
3293 * dynwind.c (guardsmob): Same.
3294 * filesys.c (dir_smob): Same.
3295 * fluids.c (fluid_smob): Same.
3296 * fports.c (scm_fptob, scm_pipob): Same.
3297 * mallocs.c (mallocsmob): Same.
3298 * regex-posix.c (regex_t_smob): Same.
3299 * smob.c (freecell, flob, bigob): Same.
3300 * threads.c (thread_smob, mutex_smob, condvar_smob): Same.
3301 * throw.c (jbsmob, lazy_catch_funs): Same.
3302
3303 1998-07-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
3304
3305 * eval.c (scm_copy_tree): Reverted last change: `eval' uses
3306 scm_copy_tree on code in order not to let memoized code to leak
3307 out. Thus, scm_copy_tree needs to copy vectors as well since
3308 quasiquote can introduce evaluated code also inside vector
3309 constants.
3310
3311 1998-07-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
3312
3313 * eval.c (scm_copy_tree): Removed ability to copy vectors.
3314
3315 * gh_data.c, gh.h (gh_ints2scm, gh_longs2ivect,
3316 gh_ulongs2uvect): New procedures. (Complements gh_doubles2scm and
3317 gh_doubles2dvect.)
3318
3319 * unif.c: Say that ivect and uvect are of type signed and unsigned
3320 long instead of int in commentary so that it correctly describes
3321 the implementation.
3322
3323 1998-07-12 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
3324
3325 * stime.c: Removed declaration of strptime. (It should be
3326 declared by the system headers. If it turns out that some systems
3327 don't, we'll handle that then.) (Thanks to Greg Troxel.)
3328
3329 * stime.h: Renamed TIMEH --> STIMEH
3330
3331 * backtrace.c (scm_display_error, scm_display_backtrace): In order
3332 to increase portability, don't use structure assignment.
3333 (Thanks to Nicolas Neuss.)
3334
3335 * iselect.c: Use LONG_MAX instead of ULONG_MAX for increased
3336 portability.
3337 (finalize_fd_sets): Added empty statement after last case label.
3338 (Thanks to Nicolas Neuss.)
3339
3340 * gc.c (scm_igc): Changed //-comment into /*-comment. (Thanks to
3341 Nicolas Neuss.)
3342
3343 Sat Jul 11 22:08:21 1998 Mikael Djurfeldt <mdj@totoro.red-bean.com>
3344
3345 * init.c, readline.c: OK, I won't have these readline.x bug
3346 reports anymore. We've had them since April. The current reason
3347 is a completely unintelligible failure of totoro.red-bean.com to
3348 do the test for rl_getc_function in libreadline correctly. This
3349 kludge overrides the test if we're on totoro so that the snapshot
3350 generation process can work.
3351
3352 * readline.c: Define a strdup replacement if not existent on system.
3353
3354 1998-07-12 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
3355
3356 * vectors.c, vectors.h (scm_make_vector): Removed third argument.
3357 This change makes scm_make_vector R5RS compatible. We cannot keep
3358 the third argument since people want to be able to deduce the form
3359 of the C function call only by looking at R5RS. (At the same time
3360 we have removed some unnecessary complexity!)
3361
3362 * eval.c, filesys.c, fluids.c, gc.c, gh_data.c, init.c, kw.c,
3363 net_db.c, posix.c, print.c, regex-posix.c, scmsigs.c, socket.c,
3364 stime.c, symbols.c, unif.c, vectors.c, weaks.c: Removed third
3365 argument in call to scm_make_vector.
3366
3367 1998-07-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3368
3369 * numbers.h (SCM_NUM2DBL): New macro. Complements SCM_NUMBERP.
3370 This macro is useful in applications.
3371
3372 1998-06-21 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
3373
3374 * load.c (scm_internal_parse_path): Renamed from scm_parse_path.
3375 (scm_parse_path, scm_search_path): New Scheme level procedures.
3376
3377 * load.h (scm_internal_parse_path, scm_parse_path,
3378 scm_search_path): Declared.
3379
3380 1998-06-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3381
3382 * filesys.c (dirname, basename): New procedures.
3383
3384 * init.c (scm_boot_guile_1): Removed condition around
3385 scm_init_options.
3386
3387 * dynwind.c: #include "genio.h"; #include "smob.h"; Implemented a
3388 new data type (guards) for representation of C level guards and
3389 data on the wind chain.
3390 (scm_internal_dynamic_wind): New function.
3391
3392 * dynwind.h: Declare scm_internal_dynamic_wind.
3393
3394 * root.h (scm_root_state): Added scm_cur_loadp.
3395
3396 * root.c (mark_root): Added comment about cur_loadp.
3397
3398 * load.c: #include "dynwind.h";
3399 (scm_primitive_load): Use scm_inner_dynamic_wind to update
3400 scm_cur_loadp.
3401
3402 * init.c (scm_init_standard_ports): Initialize scm_def_loadp.
3403
3404 * ports.c (current-load-port): New procedure.
3405
3406 1998-06-09 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3407
3408 * ioext.c (scm_isatty_p): Accept any kind of data as argument. If
3409 not a tty, return #f.
3410
3411 * regex-posix.c (scm_regexp_exec): Free malloced memory. (Thanks
3412 to Julian Satchell and Roland Kaufmann.)
3413
3414 * gh.h (gh_memv, gh_member): Fixed typos in macro definitions.
3415 (gh_write): Added declaration. (Thanks to Eiichi Takamori.)
3416
3417 1998-06-07 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
3418
3419 * debug.h, debug.c (scm_start_stack): New function. Implements
3420 the guts of old scm_m_start_stack.
3421
3422 * debug.c (scm_m_start_stack): Use scm_start_stack.
3423
3424 * init.c (scm_start_stack, scm_restart_stack): Renamed to
3425 start_stack and restart_stack. (These have static scope.)
3426
3427 1998-05-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3428
3429 * readline.c (rl_cleanup_after_signals, rl_free_line_state): New
3430 readline functions to come in release 2.3. (Thanks to Chet
3431 Ramey.)
3432 (handle_errors): Use the above functions.
3433
3434 1998-05-12 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3435
3436 * readline.c: Improvements for readline support: Handle errors
3437 better; Implement before-read-hook.
3438
3439 1998-05-11 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3440
3441 * init.c (scm_boot_guile_1), readline.c: Test for
3442 HAVE_RL_GETC_FUNCTION instead of HAVE_LIBREADLINE. (Need to
3443 assure that we have version >= 2.1.)
3444
3445 1998-05-11 Mikael Djurfeldt <mdj@kenneth>
3446
3447 * readline.c (scm_readline): Defer interrupts while we're calling
3448 readline.
3449
3450 * readline.c (scm_add_history): Bugfix: Do strdup before giving
3451 away the string to add_history.
3452 (completion_function): Do completion for readline. (Thanks to
3453 Andrew Archibald.)
3454 (scm_filename_completion_function): New procedure: Filename
3455 completer.
3456 (current_input_getc): New function. Use this one instead of
3457 standard getc from readline.
3458
3459 * throw.c, throw.h (scm_handle_by_throw): New function: This
3460 handler throws errors to next handler on the dynwind chain.
3461
3462 1998-05-09 Mikael Djurfeldt <mdj@kenneth>
3463
3464 * scmsigs.c (scm_usleep): Bugfix: Don't define j if it isn't
3465 used.
3466
3467 1998-05-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3468
3469 * procprop.c (scm_i_procedure_arity): New function. Returns arity
3470 of procedure.
3471 (scm_procedure_properties): Modified to return arity together with
3472 other properties.
3473 (scm_procedure_property): Added the read-only property `arity'.
3474 (scm_set_procedure_property_x): It is an error to set the `arity'
3475 property.
3476
3477 * gsubr.h, gsubr.c: Moved macros from gsubr.c to gsubr.h and added
3478 prefix SCM_; Made f_gsubr_apply global and added prefix scm_.
3479
3480 * procprop.h (scm_sym_arity): New symbol.
3481
3482 * objects.c (scm_set_object_procedure_x): New procedure: Use this
3483 to set the dispatch procedure of an operator or entity object.
3484
3485 * objects.h (SCM_METACLASS_OPERATOR_LAYOUT, SCM_ENTITY_LAYOUT):
3486 Made procedure slots read-only.
3487
3488 * eval.c (SCM_CEVAL): Moved scm_tc7_contin case above
3489 scm_tcs_cons_gloc case in zero args switch; Fixed args
3490 construction for operators in scm_tcs_cons_gloc case in two args
3491 switch.
3492
3493 1998-05-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3494
3495 * fluids.c: Removed use of assert.h (in order to avoid
3496 __eprintf).
3497
3498 * Makefile.am (libguile_la_LDFLAGS): Added -export-dynamic.
3499
3500 * dynl.c (maybe_drag_in_eprintf): Disabled through #ifdef 0.
3501
3502 * eval.c (SCM_CEVAL): Do more thorough argument checking. This
3503 change makes the evaluator safer at the cost of evaluation speed.
3504 It handles the case when the user has added a non-immediate
3505 improper end of the application form, e.g., `(+ 0 . x)'.
3506 (Earlier only cases like `(+ 0 . 0)' were handled.) I've tried to
3507 minimize the extra cost as much as possible. The new code is
3508 enclosed in #ifdef CAUTIOUS regions. NOTE: This also fixes the
3509 problem with structs planted directly in the code (e.g. by a
3510 macro). This no longer causes segmentation fault. (Thanks to
3511 Eric Hanchrow.)
3512
3513 * eval.c, eval.h (scm_eval_args, scm_deval_args): Take one extra
3514 arg `proc' in order to be able to throw errors; New argument
3515 checking code.
3516
3517 * Removed extra #include "debug.h"
3518
3519 1998-04-25 Mikael Djurfeldt <mdj@kenneth>
3520
3521 * scmsigs.c: Declare usleep as returning void on some systems.
3522 (scm_usleep): Return SCM_INUM0 on those systems. (Thanks to Julian
3523 Satchell.)
3524
3525 * coop.c (usleep): Return void on some systems.
3526
3527 1998-04-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3528
3529 * Makefile.am (libguile_la_LDFLAGS): Removed redundant -rpath.
3530
3531 * coop.c: Changed return type of usleep to int.
3532
3533 * scmsigs.c (scm_usleep): New procedure; Declare usleep if it
3534 isn't found in the OS.
3535
3536 * iselect.h: #define scm_internal_select select if GUILE_ISELECT
3537 isn't enabled. (Thought that I had made this change ages ago...)
3538
3539 * iselect.c: Declare bzero if not defined by OS.
3540
3541 1998-04-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3542
3543 * dynl.c (scm_must_free_argv): Fixed memory leak due to negated
3544 condition. (Thanks to John Tobey.)
3545
3546 * continuations.c (scm_make_cont), debug.c (scm_make_memoized,
3547 scm_make_debugobj), eval.c (scm_makprom): SCM_DEFER/ALLOW_INTS -->
3548 A section.
3549
3550 * __scm.h: Start the long-term project of moving to POSIX threads.
3551 Phase 1: Classification of all critical sections.
3552 (SCM_ENTER_A_SECTION, SCM_EXIT_A_SECTION): New macros: Delimiters
3553 for A sections. (See comments in __scm.h for details.)
3554
3555 * dynl.c: Only check that HAVE_DLOPEN is defined before loading
3556 dynl-dl.c; Test on HAVE_LIBDLD instead of HAVE_DLD.
3557
3558 1998-04-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3559
3560 * Makefile.am (BUILT_SOURCES): Added cpp_err_symbols.c,
3561 cpp_sig_symbols.c, libpath.h and versiondat.h to BUILT_SOURCES
3562 (libpath.h, versiondat.h): Replaced dependency on Makefile with
3563 dependencies on $(srcdir)/Makefile.in
3564 $(top_builddir)/config.status in order to avoid circularity.
3565
3566 * script.c (scm_compile_shell_switches): Bugfix: Don't discount i
3567 from argc if argc was 0 initially.
3568
3569 * Makefile.am (Makefile.am): Replaced THREAD_LIBS --> GUILE_LIBS
3570 in generation of libpath.h.
3571
3572 1998-04-15 Mikael Djurfeldt <mdj@nada.kth.se>
3573
3574 * Makefile.am (libguile_la_LDFLAGS): Bumped version number of
3575 libguile from 2 to 3.
3576
3577 1998-04-14 Mikael Djurfeldt <mdj@nada.kth.se>
3578
3579 * Makefile.am: Added .x-dependencies to variable BUILT_SOURCES.
3580
3581 1998-04-13 Mikael Djurfeldt <mdj@kenneth>
3582
3583 * ports.c (scm_port_line, scm_set_port_line_x, scm_port_column,
3584 scm_set_port_column_x, scm_port_filename,
3585 scm_set_port_filename_x): Removed optional arguments. Added
3586 proper argument checking.
3587
3588 * eval.c, eval.h, coop.c (scm_eval_stack, SCM_EVAL_STACK): Measure
3589 stack size in machine words.
3590
3591 * unif.c (scm_uniform_vector_ref, scm_cvref, scm_array_set_x,
3592 rapr1): Use SCM_UCHARS instead of SCM_CHARS for strings. (Thanks
3593 to Ole Myren Röhne.)
3594
3595 1998-04-12 Mikael Djurfeldt <mdj@kenneth>
3596
3597 * socket.c: Check for HAVE_UNIX_DOMAIN_SOCKETS instead of
3598 UNIX_DOMAIN_SOCKETS. (Thanks to Lauri Alanko.)
3599
3600 * gc.c (scm_gc_sweep): Count cells correctly. (Thanks to Ben
3601 Caradoc-Davies.)
3602
3603 * eval.c (SCM_CEVAL, SCM_APPLY): In SCM_IM_APPLY and in the
3604 procedure apply: Copy argument lists before pushing them unto the
3605 environment so that the environment won't get mutated due to
3606 manipulation of procedure arguments. This should perhaps be
3607 regarded as a temporary solution until someone finds a more
3608 efficient one. (Thanks to Maciej Stachowiak.)
3609
3610 1998-04-10 Mikael Djurfeldt <mdj@kenneth>
3611
3612 * script.c (scm_compile_shell_switches): Use "guile" as default
3613 zero arg if argc is NULL.
3614
3615 1998-04-02 Mikael Djurfeldt <mdj@nada.kth.se>
3616
3617 * script.c (scm_compile_shell_switches): Allow NULL argv if argc
3618 is zero. (Thanks to Dirk Herrmann.)
3619
3620 1998-03-30 Mikael Djurfeldt <mdj@nada.kth.se>
3621
3622 * ports.c (scm_add_to_port_table): First line is now line 0
3623 (was 1). (Interface changed according to suggestion by Per
3624 Bothner.)
3625
3626 * backtrace.c (display_header): Add 1 to line and column numbers
3627 when presenting them to the user.
3628
3629 * eval.h, eval.c, debug.h, debug.c (scm_evaluator_traps): Moved
3630 from debug.c --> eval.c
3631
3632 * eval.h, eval.c (scm_eval_options_interface): New options
3633 interface.
3634 (SCM_EVAL_STACK): New option: Size of newly created stacks,
3635 i.e. stacks for new threads.
3636
3637 * coop.c (COOP_STKSIZE): Use SCM_EVAL_STACK.
3638
3639 * eval.c (unsafe_setjmp): Removed with #if 0.
3640
3641 * gsubr.c (scm_gsubr_apply): Added dummy return to avoid compiler
3642 warning.
3643
3644 * eval.c, numbers.c, unif.c, srcprop.c: Added a few curly braces
3645 to avoid compiler warnings.
3646
3647 * dynl-dl.c (sysdep_dynl_func): Only define usymb if needed.
3648
3649 1998-03-28 Mikael Djurfeldt <mdj@nada.kth.se>
3650
3651 * throw.c (handler_message): Print message on current error port
3652 instead of default error port. (Thanks to Maciej Stachowiak.)
3653
3654 Mon Mar 2 21:35:02 1998 Gary Houston <ghouston@actrix.gen.nz>
3655
3656 * ports.c (scm_add_to_port_table): allocate in units of
3657 struct scm_port_table *, not struct scm_port_table.
3658 * posix.c (scm_close_pipe): remove the port from the port table
3659 and mark as closed.
3660 Thanks to Rob Engle for both fixes.
3661
3662 1998-02-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3663
3664 * iselect.h, iselect.c, coop.c, coop-threads.c, coop-threads.h,
3665 coop-defs.h, throw.c, backtrace.c: Added new copyright year 1998.
3666
3667 1998-02-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3668
3669 * throw.h: Removed jmpbuf arg in scm_catch_body_t.
3670
3671 * backtrace.c (display_error_body, display_backtrace_body),
3672 coop-threads.c (scheme_body_bootstrip, c_body_bootstrip),
3673 gh_eval.c (eval_str_wrapper, eval_file_wrapper), init.c
3674 (invoke_main_func), root.c (cwdr_body), throw.c (cwss_body,
3675 scm_body_thunk, hbpca_body): Removed the second jmpbuf arg on body
3676 functions.
3677
3678 * throw.c (scm_internal_catch, scm_internal_lazy_catch): Bodies
3679 don't receive the jmpbuf arg anylonger.
3680 (scm_catch): Don't accept a #f tag.
3681 (scm_throw): Check that key is a symbol.
3682 (scm_ithrow): Don't take a jmpbuf as key. Don't check key arg.
3683
3684 Fri Jan 30 22:28:07 1998 Mikael Djurfeldt <mdj@kenneth>
3685
3686 * async.c (async_pending): Removed declaration.
3687
3688 1998-01-30 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3689
3690 * dynwind.c (scm_wind_chain): New debug function.
3691
3692 * coop-threads.c (scheme_launch_data, scheme_body_bootstrip,
3693 scheme_handler_bootstrip, scheme_launch_thread, c_launch_data,
3694 c_body_bootstrip, c_handler_bootstrip, c_launch_thread): Add an
3695 extra layer of functions around the body and handler of a thread.
3696 This extra layer makes sure that the handler is called in the
3697 dynamic context of the surround (= empty dynwind list), but under
3698 the *dynamic root* of the body. We can not use the dynamic root
3699 of the surround since that root belongs to another thread => stack
3700 is not handled correctly. It may seem ugly to use this extra
3701 layer, but the extra cost in terms of execution time is really
3702 negligible compared to the total amount of time required to create
3703 a thread, and it would reduce maintainability to duplicate the
3704 crucial and complicated steps performed by cwdr.
3705
3706 * __scm.h (SCM_ASYNC_TICK): Removed thread switching code.
3707 (SCM_ALLOW_INTS): Added thread switching code before interrupts
3708 get re-enabled. The important effect of this is that interrupts
3709 are blocked during thread switching so that thread data structures
3710 don't risk getting messed up by an unfortunate signal.
3711 (SCM_REDEFER_INTS, SCM_REALLOW_INTS): It turned out that gcc-2.8.0
3712 seems to do more aggressive optimization which actually move
3713 instructions around in these macros in a fatal way. Therefore:
3714 Introduce Anthony's SCM_FENCE macro! (And I who thought he was
3715 just superstitious...)
3716 (SCM_TICK): Maybe do a context switch and take care of asyncs.
3717 This macro should be used instead of SCM_ASYNC_TICK since the
3718 latter doesn't do context switches any more.
3719
3720 * eval.c (scm_eval, scm_deval), eq.c (scm_equal_p): Use SCM_TICK
3721 instead of SCM_ASYNC_TICK.
3722
3723 * coop.c, iselect.c: Since thread switches are now performed with
3724 interrupts masked, we can't use the old mechanism of delivering
3725 signals immediately when they arrive. Signals must instead be
3726 delivered when the asyncs run *after* the end of the critical
3727 section in scm_internal_select. But this also means after context
3728 switch so that the signal will be delivered to a different thread.
3729 To avoid this, I have changed the protocol of
3730 coop_wait_for_runnable_thread and friends so that they are allowed
3731 to return the original thread. So, if a signal arrives during
3732 scm_internal_select, we won't any longer be forced do a context
3733 switch, but can remain in the same thread and deliver the signal
3734 to it.
3735
3736 * async.c, async.h (asyncs_pending): Renamed asyncs_pending -->
3737 scm_asyncs_pending and made it global.
3738
3739 * iselect.c: Small fixes.
3740
3741 * coop.c (coop_mutex_init, coop_mutex_lock, coop_mutex_unlock,
3742 coop_condition_variable_init, coop_condition_variable_wait,
3743 coop_condition_variable_signal): Changed return type from `void'
3744 to `int'. This is to adhere closer to the pthreads interface.
3745 This, in turn, is part of an attempt to provide C versions of the
3746 mutex and condition variable primitives which can be part of a
3747 frontend to COOP or pthreads.
3748
3749 * coop.c (coop_mutex_destroy, coop_condition_variable_wait_mutex,
3750 coop_condition_variable_destroy): New functions.
3751
3752 * coop-threads.c (scm_wait_condition_variable): Use
3753 coop_condition_variable_wait_mutex.
3754
3755 * coop-threads.h, coop-defs.h (coop_q_t, coop_m, coop_c):
3756 Definitions moved to coop-defs.h.
3757
3758 * coop-defs.h (scm_mutex_init, scm_mutex_lock, scm_mutex_unlock,
3759 scm_mutex_destroy, scm_cond_init, scm_cond_wait, scm_cond_signal,
3760 scm_cond_destroy): New C interface to mutecis and cond vars.
3761
3762 1998-01-24 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3763
3764 * error.c (scm_wta): Added support for SCM_ARG6 and SCM_ARG7.
3765
3766 * iselect.c: Now several threads can wait on the same file
3767 descriptor. The behaviour is compatible with OS select: All
3768 threads waiting for the fd return with the same status.
3769
3770 1998-01-23 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3771
3772 * coop-threads.c, threads.h (scm_spawn_thread): New function.
3773 Can spawn a thread from application C code.
3774
3775 1998-01-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3776
3777 * gh.h, gh_data.c (gh_doubles2scm, gh_doubles2dvect,
3778 gh_doubles2scm): New functions.
3779
3780 1998-01-15 Mark Galassi <rosalia@nis.lanl.gov>
3781
3782 * gh_eval.c (gh_eval_str): cleanup -- threw out the old
3783 commented-out version of gh_eval_str()
3784
3785 Sun Jan 4 02:23:36 1998 Gary Houston <ghouston@actrix.gen.nz>
3786
3787 * socket.c (scm_bind): free soka after use.
3788
3789 Sat Jan 3 20:55:07 1998 Gary Houston <ghouston@actrix.gen.nz>
3790
3791 * stime.c (tzvar): new variable.
3792 (setzone, restorezone, scm_localtime, scm_mktime, scm_strftime):
3793 avoid memory leaks when allocating.
3794
3795 1998-01-03 Jim Blandy <jimb@totoro.red-bean.com>
3796
3797 * iselect.h: Some systems require <sys/types.h> to get the FD_SET
3798 macro definitions.
3799
3800 * gc.c, tags.h: Doc fixes.
3801
3802 1998-01-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3803
3804 * eval.c (macro-eval!): Removed. This function was a design bug.
3805 It allowed memoized code to leak out to the scheme level. Most
3806 things that you could do with `macro-eval!' can be done with
3807 `local-eval'.
3808
3809 1997-12-20 Tim Pierce <twp@skepsis.com>
3810
3811 * fports.c (scm_pipob): Use scm_generic_fgets for line i/o, since
3812 scm_fgets now depends on ftell(3) to know how many bytes were
3813 read. Sigh.
3814
3815 1997-12-15 Tim Pierce <twp@skepsis.com>
3816
3817 * gh_data.c (gh_scm2newstr, gh_get_substr): Use RO macros for
3818 dealing with strings.
3819
3820 1997-12-13 Tim Pierce <twp@skepsis.com>
3821
3822 Make %read-line more suitable for implementing read-line efficiently.
3823 * ioext.c (scm_read_line): Strip the terminating newline from a
3824 string, and return a cons of the string and its terminator.
3825
3826 * fports.c, fports.h (scm_fgets): Add `len' argument. The length
3827 of the string that is read is stored in this memory location.
3828 * ports.c, ports.h (scm_generic_fgets, fgets_void_port): Same.
3829 * genio.c, genio.h (scm_do_read_line): Update caller.
3830 * ports.h (scm_ptobfuns): Update typedef.
3831 * fports.c (scm_fptob, scm_pipob): Update struct.
3832
3833 1997-12-08 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3834
3835 * filesys.c (set_element): Return file descriptor.
3836 (fill_select_type): Return the highest file descriptor.
3837 (scm_select): Tell select about the highest file descriptor. On
3838 some systems the SELECT_SET_SIZE can be as much as 128 bytes.
3839 Therefore the extra overhead for calculating the maximum fd seems
3840 to be more than compensated. Is this correct? In any case,
3841 scm_internal_select will be much faster with this info.
3842 (scm_select, fill_select_type, set_element): Don't accept any kind
3843 of object in the file descriptor list or vector.
3844
3845 1997-12-07 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3846
3847 * iselect.c (finalize_fd_sets): Bugfix.
3848
3849 1997-12-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3850
3851 * filesys.c (scm_select): Don't use SCM_DEFER_INTS/SCM_ALLOW_INTS
3852 when using scm_internal_select (since we might switch to another
3853 thread).
3854
3855 Sun Dec 7 01:43:56 1997 Gary Houston <ghouston@actrix.gen.nz>
3856
3857 * simpos.c (scm_system): always define: use sysmissing if not
3858 available. Check for HAVE_SYSTEM instead of _Windows (does
3859 Windows lack system or does it have an unusable one?).
3860 Check for error conditions -1 and 127. Use SCM_DEFER_INTS.
3861 Let the argument be optional: if not supplied, call system(NULL).
3862
3863 * ports.c (scm_close_port): relax the type check from OPPORTP to
3864 PORTP; closing a closed port is allowed.
3865
3866 1997-12-04 Tim Pierce <twp@ppp39.Nantucket.net>
3867
3868 * fports.c (scm_fgets): Return if the last char in a chunk is
3869 newline. When fgets returns a string whose length is `size-1', it
3870 is ambiguous whether a whole line was retrieved, so we must check
3871 explicitly whether a line terminator is present.
3872
3873 1997-12-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3874
3875 * print.h (SCM_COERCE_OUTPORT): Check that the object is a pair
3876 before taking the CDR. (Thanks to Harald Meland.)
3877
3878 * filesys.c (scm_stat): Slightly optimized.
3879
3880 Wed Dec 3 12:23:06 1997 Jim Blandy <jimb@totoro.red-bean.com>
3881
3882 * ports.c (scm_close_port): Make sure the port is open before
3883 trying to close it.
3884
3885 * guile-snarf.in: Pass args through to gcc in a way that preserves
3886 whitespace boundaries. (Thanks to Greg Badros.)
3887
3888 1997-12-02 Tim Pierce <twp@skepsis.com>
3889
3890 * stacks.c (scm_frame_procedure): Reverse the logic in the return
3891 statement. (Thanks to Doug Evans for pointing this out.)
3892
3893 1997-12-01 Tim Pierce <twp@skepsis.com>
3894
3895 * scmconfig.h.in: Regenerated for USCORE change in ../acconfig.h.
3896
3897 Sun Nov 30 11:29:18 1997 Mikael Djurfeldt <mdj@kenneth>
3898
3899 * coop-defs.h (struct coop_t): Renamed errno --> _errno to prevent
3900 errno macro expansion of this field name. (errno is a C
3901 preprocessor macro on some systems.)
3902
3903 1997-11-29 Tim Pierce <twp@skepsis.com>
3904
3905 * iselect.c: Doc fix.
3906
3907 Sat Nov 29 01:16:53 1997 Mikael Djurfeldt <mdj@kenneth>
3908
3909 * init.c (scm_start_stack): Removed initialization of
3910 scm_the_last_stack_var.
3911
3912 * backtrace.h: Declare scm_the_last_stack_var.
3913
3914 * backtrace.c: Define scm_the_last_stack_var.
3915
3916 * root.c (mark_root): Don't mark the_last_stack_var.
3917
3918 * root.h (scm_root_state): Removed the_last_stack_var.
3919
3920 * throw.c: Added #include "fluids.h"
3921 (ss_handler): `the-last-stack' is now a fluid.
3922
3923 * (backtrace.h, backtrace.c, throw.c): Renamed the_last_stack_var
3924 --> the_last_stack_fluid.
3925
3926 * backtrace.c: Added #include "fluids.h"
3927 (scm_init_backtrace): Initialize `the-last-stack' to a fluid.
3928 (scm_backtrace): `the-last-stack' is now a fluid.
3929
3930 * init.c (scm_boot_guile_1): Moved call to scm_init_backtrace
3931 after scm_init_fluids.
3932
3933 1997-11-28 Tim Pierce <twp@skepsis.com>
3934
3935 * iselect.c: #ifdef USE_THREADS around thread-related includes.
3936
3937 * dynl-dl.c (sysdep_dynl_func): Check both USCORE and
3938 DLSYM_ADDS_USCORE to decide whether to add an underscore.
3939
3940 1997-11-28 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3941
3942 * iselect.c (coop_next_runnable_thread,
3943 coop_wait_for_runnable_thread): Disable interrupts so that no
3944 async is executed before a potential error_revive.
3945 (scm_internal_select): Disable interrupts during the parts of the
3946 code which manipulate the sleep queue and the file descriptors.
3947
3948 1997-11-27 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3949
3950 * Makefile.am: Added iselect.c and iselect.h.
3951
3952 * coop.c (coop_qinit): Initialize fields used by
3953 scm_internal_select.
3954 (coop_qget, coop_qget, coop_tmp_queue): Made global.
3955 (coop_next_runnable_thread): If GUILE_ISELECT enabled, use
3956 replacement in iselect.c.
3957 (coop_mutex_lock, coop_condition_variable_wait, coop_abort,
3958 coop_join): If GUILE_ISELECT enabled, use
3959 coop_wait_for_runnable_thread instead of
3960 coop_next_runnable_thread.
3961 (usleep, sleep): New replacements for system functions if
3962 GUILE_ISELECT is enabled.
3963
3964 * coop-threads.h: Declare coop_wait_for_runnable_thread.
3965
3966 * coop-defs.h (coop_t): Added fields used by scm_internal_select.
3967
3968 * filesys.c: Added #include "iselect.h". Moved FD-macros to
3969 iselect.h. Implement Scheme level `select' using
3970 scm_internal_select. (See NEWS.)
3971
3972 * genio.c (scm_getc): Block with scm_internal_select. (See NEWS.)
3973
3974 * init.c: Call scm_init_iselect.
3975
3976 * iselect.h, iselect.c: New files. Implements
3977 scm_internal_select. (See NEWS.)
3978
3979 1997-11-27 Tim Pierce <twp@skepsis.com>
3980
3981 Fix a memory leak in scm_read_line and a type cast bug in the ptob.
3982 * fports.c (scm_fgets): Use malloc/free rather than scm_must_malloc
3983 and scm_must_free, since ultimately the string returned will be copied
3984 by scm_makfrom0str anyway. Also, read any characters that may have
3985 been pushed onto the port with scm_ungetc.
3986 * ports.c (scm_generic_fgets): Same as for scm_fgets.
3987 * ioext.c (scm_read_line): Free string after Guilifying it.
3988 * ports.h (scm_ptobfuns): fgets method returns a char *, not a char.
3989
3990 1997-11-26 Anthony Green <green@hoser.cygnus.com>
3991
3992 * gh_data.c (gh_set_substr): Strings can be longer than 256 bytes.
3993
3994 * gh.h: Safely wrap prototypes for c++ usage.
3995
3996 1997-11-25 Mark Galassi <rosalia@cygnus.com>
3997
3998 * gh_test_repl.c (main_prog): changed invocation of gh_repl() to
3999 gh_repl (argc, argv).
4000
4001 1997-11-24 Mark Galassi <rosalia@nis.lanl.gov>
4002
4003 * gh_init.c (gh_repl): modified gh_repl() to accept argc and argv
4004 and to invoke scm_shell().
4005 (gh_launch_pad): took out the loading of boot-9.scm from here,
4006 since it is probably best to let the user control that. In fact,
4007 gh_repl() now invokes scm_shell() which does that.
4008
4009 1997-11-23 Mark Galassi <rosalia@cygnus.com>
4010
4011 * gh_test_repl.c (main_prog): added argc and argv to the gh_repl()
4012 invocation.
4013
4014 1997-11-22 Tim Pierce <twp@twp.tezcat.com>
4015
4016 * dynl-dl.c (sysdep_dynl_func): Fix memory leak created by
4017 yesterday's underscore patch. (Thanks to Marius Vollmer for
4018 spotting this.)
4019
4020 1997-11-21 Tim Pierce <twp@twp.tezcat.com>
4021
4022 * dynl-dl.c (sysdep_dynl_func): Prepend symb with underscore if
4023 DLSYM_ADDS_USCORE is not defined.
4024
4025 1997-11-17 Mark Galassi <rosalia@nis.lanl.gov>
4026
4027 * gh_data.c (gh_uniform_vector_length):
4028 (gh_uniform_vector_ref): started implementing the uniform types in
4029 the gh_ interface.
4030
4031 1997-11-06 Mikael Djurfeldt <mdj@nada.kth.se>
4032
4033 * regex-posix.c (scm_free_regex_t): Return size of regex_t instead
4034 of 0; size_t --> scm_size_t. Thanks to Bernard Urban.
4035
4036 1997-10-26 Mikael Djurfeldt <mdj@nada.kth.se>
4037
4038 * scmconfig.h.in: Updated (HAVE_LIBTERMCAP was added when
4039 configure.in was changed).
4040
4041 Sun Oct 26 02:20:11 1997 Jim Blandy <jimb@totoro.red-bean.com>
4042
4043 * Makefile.am (modinclude_HEADERS): Include readline.h here.
4044 * Makefile.in: Regenerated.
4045
4046 1997-10-25 Marius Vollmer <mvo@zagadka.ping.de>
4047
4048 * print.h (SCM_COERCE_OPORT): Renamed to SCM_COERCE_OUTPORT. An
4049 OPORT is an `open' port, not an output port.
4050
4051 * filesys.c (scm_close, set_element, get_element, scm_chown,
4052 scm_chmod, scm_stat, scm_truncate_file, scm_fcntl, scm_fsync): Use
4053 SCM_COERCE_OUTPORT to cope with the printstate/port magic.
4054 * ports.c (scm_port_revealed, scm_set_port_revealed_x,
4055 scm_close_port, scm_port_line, scm_set_port_line_x,
4056 scm_port_column, scm_set_port_column_x, scm_port_filename,
4057 scm_set_port_filename_x, scm_port_mode,
4058 scm_close_all_ports_except, scm_set_current_output_port,
4059 scm_set_current_error_port): Likewise
4060 * ioext.c (scm_redirect_port, scm_dup_to_fdes, scm_freopen,
4061 scm_ftell, scm_fileno, scm_isatty_p, scm_primitive_move_to_fdes):
4062 Likewise
4063 * posix.c (scm_ttyname, scm_tcgetpgrp, scm_tcsetpgrp): Likewise
4064 * backtrace.c (display_backtrace_body): Likewise
4065 * fports (scm_setvbuf): Likewise
4066 * socket.c (scm_getsockopt, scm_setsockopt, scm_shutdown,
4067 scm_connect, scm_bind, scm_listen, scm_accept, scm_getsockname,
4068 scm_getpeername, scm_send, scm_sendto): Likewise
4069 * unif.c (scm_uniform_array_write): Likewise
4070
4071 Sat Oct 25 02:52:58 1997 Jim Blandy <jimb@totoro.red-bean.com>
4072
4073 Minor problems with substring-related tag changes.
4074 * symbols.h (SCM_SUBSTRP): Don't mask off the S bit; that's
4075 exactly what we want to leave in to detect substrings.
4076 (SCM_ROSTRINGP, ROUCHARS): Formatting tweaks.
4077 * tags.h: Fix diagrams and comments describing the S tag bit;
4078 remove vestigial remarks about the D tag bit.
4079 (SCM_TYP7, SCM_TYP7S): Rephrased for readability.
4080 * strings.c: Formatting tweaks.
4081
4082 * load.c (scm_init_load_path): Check GUILE_LOAD_PATH environment
4083 variable first; then SCHEME_LOAD_PATH, with a warning message.
4084 (scm_parse_path): New function.
4085 * script.c: Doc fixes.
4086
4087 Thu Oct 23 01:02:03 1997 Jim Blandy <jimb@totoro.red-bean.com>
4088
4089 Readline support, from Daniel Risacher.
4090 * readline.c, readline.h: New files.
4091 * init.c: #include "readline.h".
4092 (scm_boot_guile_1): Call scm_init_readline, if we have it.
4093 * Makefile.am (libguile_la_SOURCES): Include readline.c.
4094 * Makefile.in: Regenerated.
4095 * scmconfig.h.in: Regenerated, after change to ../configure.
4096
4097 1997-10-20 Mark Galassi <rosalia@nis.lanl.gov>
4098
4099 * gh.h: gh_vector_set -> gh_vector_set_x
4100
4101 1997-10-20 Mark Galassi <rosalia@nis.lanl.gov>
4102
4103 * gh_data.c (gh_vector_set_x): changed name to make it consistent
4104 with the ! -> _x mapping when going from Scheme to C.
4105
4106 1997-10-19 Mark Galassi <rosalia@cygnus.com>
4107
4108 * gh.h (gh_reverse):
4109 (gh_list_tail):
4110 (gh_list_ref):
4111 (gh_memq):
4112 (gh_memv):
4113 (gh_member):
4114 (gh_assq):
4115 (gh_assv):
4116 (gh_assoc): added these gh_ functions implemented as macros.
4117
4118 * gh_predicates.c (gh_null_p):
4119 (gh_string_equal_p): added these two missing predicates.
4120
4121 * gh_list.c (gh_append):
4122 (gh_append2):
4123 (gh_append3):
4124 (gh_append4):
4125 (gh_set_car_x):
4126 (gh_set_cdr_x): added these routines as I go through and try to
4127 complete the picture R4RS functions that should be mirrored in the
4128 gh_ interface.
4129
4130 Sat Oct 18 01:52:51 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4131
4132 * tags.h (scm_tc7_substring): Changed the comment and code to
4133 conform with the changes below. Folks! We have suddenly two new
4134 free tc7 codes!!! Jummy, jummy!
4135
4136 Tue Oct 14 22:03:06 1997 Tom Tromey <tromey@cygnus.com>
4137
4138 * Makefile.in: Rebuilt.
4139 * Makefile.am (libguile_la_SOURCES): Removed extchrs.c,
4140 mbstrings.c.
4141 (modinclude_HEADERS): Removed extchrs.h, mbstrings.h.
4142 * unif.c (scm_vector_set_length_x): Don't handle multibyte
4143 strings.
4144 * tag.c (scm_utag_mb_string, scm_utag_mb_substring): Removed.
4145 (scm_tag): Don't handle multibyte strings.
4146 * read.c: Don't include mbstrings.h.
4147 (scm_lreadr): Don't handle multibyte ports.
4148 * kw.c: Don't include mbstrings.h.
4149 * init.c: Don't include mbstrings.h.
4150 (scm_boot_guile_1): Don't init mbstrings module.
4151 * hash.c (scm_hasher): Don't handle mbstrings.
4152 * gscm.c (gscm_run_scm): Don't init mbstrings module.
4153 * gc.c (scm_gc_mark): Don't handle mbstrings.
4154 (scm_gc_sweep): Likewise.
4155 * eval.c (SCM_CEVAL): Don't handle mbstrings.
4156 * eq.c (scm_equal_p): Use SCM_TYP7S, not SCM_TYP7SD.
4157 * tags.h (SCM_TYP7SD): Removed.
4158 (SCM_TYP7D): Removed.
4159 (scm_tc7_mb_string): Removed.
4160 (scm_tc7_mb_substring): Removed.
4161 * print.c (scm_iprin1): Handle char printing directly. Don't
4162 handle mbstrings.
4163 Don't include "mbstrings.h".
4164 * symbols.c (scm_intern_obarray_soft, scm_string_to_symbol,
4165 scm_string_to_obarray_symbol, msymbolize): Don't set symbol's
4166 multi-byte flag.
4167 Don't include "mbstrings.h".
4168 * symbols.h (SCM_SYMBOL_MULTI_BYTE_STRINGP): Removed.
4169 (SCM_SYMBOL_SLOTS): Define as 4.
4170 (SCM_ROSTRINGP): Use SCM_TYP7S, not SCM_TYP7SD.
4171 * arbiters.c, backtrace.c, debug.c, dynl.c, eval.c, fluids.c,
4172 gc.c, gsubr.c, ioext.c, kw.c, mallocs.c, numbers.c, ports.c,
4173 print.c, read.c, regex-posix.c, root.c, srcprop.c, stackchk.c,
4174 struct.c, threads.c, throw.c, unif.c, variable.c: Use new
4175 ("gen"-less) I/O function names.
4176 * ports.c (scm_add_to_port_table): Don't set port's
4177 representation.
4178 * ports.h (scm_port_representation_type): Removed.
4179 (scm_string_representation_type): Removed.
4180 (struct scm_port_table ): Removed representation field.
4181 (SCM_PORT_REPRESENTATION): Removed.
4182 (SCM_SET_PORT_REPRESENTATION): Removed.
4183 * genio.h: Use new function names.
4184 * genio.c: Don't include "extchrs.h".
4185 (scm_gen_putc, scm_gen_puts, scm_gen_write, scm_get_getc):
4186 Removed.
4187 (scm_putc, scm_puts, scm_lfwrite): No longer static.
4188 (scm_getc): No longer static; handle line and column changes.
4189 (scm_ungetc): Renamed from scm_gen_ungetc.
4190 (scm_do_read_line): Renamed from scm_gen_read_line.
4191 * libguile.h: Don't include "extchrs.h" or "mbstrings.h"
4192 * extchrs.h, extchrs.c, mbstrings.h, mbstrings.c: Removed.
4193
4194 1997-10-12 Mark Galassi <rosalia@cygnus.com>
4195
4196 * gh_test_repl.c (c_vector_test): same as gh_test_c.c
4197
4198 * gh_test_c.c (c_vector_test): some improvements on the vector
4199 routines test.
4200
4201 * gh.h (gh_vector): this used to exist but do the wrong thing.
4202 Now it (almost) does the right thing, though it takes a list
4203 instead of the individual arguments. I need to see how it could
4204 be done right.
4205 (gh_list_to_vector): added this function as a macro. Corresponds
4206 to Scheme's (list->vector ...).
4207 (gh_vector_to_list): added this function as a macro. Corresponds
4208 to Scheme's (vector->list ...).
4209
4210 * gh_data.c (gh_vector_ref): renamed from gh_vref to
4211 gh_vector_ref, so that it resembles the Scheme routines more.
4212 (gh_vector_set): renamed from gh_vset to gh_vector_set, so that it
4213 resembles the Scheme routines more.
4214 (gh_make_vector): this used to be (stupidly) called gh_vector().
4215 This is the right name, since it does the same thing as the Scheme
4216 (make-vector ...) procedure.
4217
4218 Sun Oct 12 14:41:39 1997 Mikael Djurfeldt <mdj@kenneth>
4219
4220 * ports.h: #include "libguile/print.h"
4221
4222 * eval.c (SCM_CEVAL, scm_apply): Completed GOOPS support code;
4223 Some indentation fixes.
4224
4225 * objects.h (SCM_METACLASS_STANDARD_LAYOUT): Printer field is no
4226 longer a user field; New field: class_flags.
4227
4228 * objets.c, objects.h: New metaclass: scm_metaclass_operator.
4229
4230 Tue Oct 7 09:37:24 1997 Mark Galassi <rosalia@cygnus.com>
4231
4232 * gh_data.c (gh_bool2scm): new function which replaces
4233 gh_int2scmb(), which is now tagged as obsolete.
4234
4235 1997-10-03 Mikael Djurfeldt <mdj@nada.kth.se>
4236
4237 * print.h (SCM_PRINT_STATE_P): Removed SCM_NIMP test. (NIMP
4238 macros should by convention not test for NIMPness.)
4239 (SCM_COERCE_OPORT): Adjust indentation.
4240
4241 * print.c (scm_valid_oport_value_p): Adjusted indentation; Added
4242 SCM_NIMP test before SCM_PRINT_STATE_P.
4243
4244 * struct.c, struct.h, gc.c: Renamed:
4245 scm_struct_i_layout --> scm_vtable_index_layout
4246 scm_struct_i_vcell --> scm_vtable_index_vcell
4247 scm_struct_i_vtable --> scm_vtable_index_vtable
4248 scm_struct_i_printer --> scm_vtable_index_printer
4249 scm_struct_i_vtable_offset --> scm_vtable_offset_user
4250
4251 * struct.c (scm_print_struct): Use new printer slot; Default
4252 printing: Also output hex code of vtable so that type identity
4253 will be indicated as well.
4254 (scm_init_struct): Updated required_vtable_fields to "pruosrpw";
4255 Removed struct_printer_var; Removed struct-vtable-offset;
4256 (vtable-index-layout, vtable-index-vtable, vtable-index-printer,
4257 vtable-offset-user): New constants.
4258
4259 * struct.h (scm_struct_i_vtable_offset): Bumped from 3 to 4.
4260 (scm_struct_i_printer, SCM_STRUCT_PRINTER): New slot in vtables.
4261 If this slot contains a procedure, use that to print structures of
4262 the type represented by this vtable.
4263
4264 * print.c (scm_iprin1): Don't print arguments of macro
4265 transformers. (They are always: exp env.); Bugfix: Unmemoize
4266 transformer source with correct environment.
4267
4268 1997-10-02 Marius Vollmer <mvo@zagadka.ping.de>
4269
4270 Streamlining of call-with-dynamic-root:
4271
4272 * root.c (cwdr_inner_body, cwdr_body): Remove "inner" from name,
4273 there is now only one catch.
4274 (cwdr_outer_body): Removed.
4275 (cwdr_handler): New function.
4276 (scm_internal_cwdr): New function to perform the function of cwdr
4277 but take args that are more useful to C code. Also, the handler
4278 is now invoked *outside* of the new dynamic root, like the docs
4279 say. We no longer have to catch absolutely all errors, the caller
4280 is responsible for using a handler that does not throw, if he
4281 wants that.
4282 (cwdr): Reimplemented in terms of scm_internal_cwdr.
4283 * root.h (scm_internal_cwdr): New prototype.
4284
4285 Even more but risky streamlining:
4286
4287 * root.c (USE_STACKJMPBUF): New define to activate a stack-based
4288 allocation of the jumpbuf of a root continuation. The changes
4289 below are controlled by it. They are now deactivated.
4290 (scm_internal_cwdr): Allocate the scm_contregs on the stack. Set
4291 the JMPBUF of the scm_rootcont to NULL before returning.
4292
4293 * gc.c (scm_gc_sweep): Free the SCM_VELTS of a scm_tc7_contin only
4294 when they are non-NULL.
4295 (scm_gc_mark): Likewise, mark only when non-NULL.
4296
4297 Make dynamic linking work on Dec Unix. (Thanks to Clark McGrew)
4298 * dynl.c: Include "dynl-dl.c" also when HAVE_DLOPEN is defined.
4299
4300 * gc.c (scm_done_malloc): New function.
4301 gc.h (scm_done_malloc): New prototype.
4302
4303 * print.h (SCM_PRINT_STATE_P, SCM_COERCE_OPORT): New macros.
4304 (struct scm_print_state) [revealed]: New field.
4305 (scm_print_state_vtable): Make visible to the outside world for
4306 type checking purposes.
4307 (scm_valid_oport_value_p): New prototype.
4308
4309 * print.c (scm_valid_oport_value_p): New function to check whether
4310 a certain value is acceptable as a port argument.
4311 (scm_print_state_vtable): New variable.
4312 (scm_free_print_state): Set `revealed' field to false.
4313 (scm_iprin1): Call user supplied closure printer with
4314 scm_printer_apply. Print in the traditional way when there isn't
4315 one or when it returns #f.
4316 (scm_prin1, scm_display, scm_write, scm_newline, scm_write_char):
4317 Accept a port/print-state pair in addition to just a port.
4318 (scm_prin1): Don't return the print_state to the pool when it has
4319 been `revealed'.
4320 (scm_printer_apply): Set `revealed' field of print_state to true.
4321 (scm_init_print): Set scm_print_state_vtable.
4322 (print_state_fluid, print_state_fluid_num): Removed.
4323
4324 * throw.h (scm_handle_by_proc_catching_all): New prototype
4325 throw.c (scm_handle_by_proc_catching_all): New function
4326
4327 Mon Sep 29 23:54:09 1997 Jim Blandy <jimb@totoro.red-bean.com>
4328
4329 * Makefile.in: Regenerated with automake 1.2c.
4330
4331 Sun Sep 28 21:35:42 1997 Radey Shouman <shouman@zianet.com>
4332
4333 * ramap.c (scm_array_index_map_x): Fixed for zero-rank arguments,
4334 was looping endlessly.
4335
4336 Sun Sep 28 00:04:29 1997 Jim Blandy <jimb@totoro.red-bean.com>
4337
4338 * strports.c (scm_eval_string): Don't close the port.
4339
4340 * stime.c (bdtime2c): Use SCM_LENGTH, not scm_vector_length; the
4341 former returns a nice normal integer. (Thanks to Daniel
4342 Risacher.)
4343
4344 Sat Sep 27 20:19:34 1997 Jim Blandy <jimb@totoro.red-bean.com>
4345
4346 * Makefile.am (libpath.h): Include the value of the THREAD_LIBS
4347 makefile variable as a build parameter called LIBS. The
4348 build-guile program will use this, for the time being.
4349 * Makefile.in: Regenerated.
4350
4351 Thanks to Shiro Kawai:
4352 * gc.c (scm_gc_mark): Pass NULL to scm_wta as the subroutine name.
4353 * ports.h (scm_ptobfuns): The fgets method returns a char *, not
4354 an SCM.
4355
4356 * Makefile.in: Regenerated with automake 1.2a.
4357
4358 * script.c (scm_compile_shell_switches): If we hit the -c or --
4359 arguments, don't set the car of (command-line) to scm_usage_name,
4360 the prettified name of the guile executable; give it the full
4361 path, the way shells usually handle $0.
4362
4363 Wed Sep 24 22:09:52 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4364
4365 * ramap.c (scm_array_map): Renamed to scm_array_map_x. Removed
4366 Scheme-level name `array-map' and renamed `serial-array-map' to
4367 `serial-array-map!'.
4368
4369 * backtrace.c: Introduced exception handlers which now enclose
4370 `display-error' and `display-backtrace' so that error reporting
4371 won't get into infinite loops if an error occurs during displaying
4372 of the error. This can very easily happen with user supplied
4373 print call-back routines.
4374
4375 Tue Sep 23 12:43:17 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4376
4377 * ramap.c: Added alias `array-map!' for `array-map'. (Probably,
4378 the names `serial-array-map' and `array-map' should be removed.)
4379
4380 Mon Sep 22 01:21:54 1997 Mikael Djurfeldt <mdj@kenneth>
4381
4382 * init.c (scm_boot_guile_1): Added scm_init_objects ().
4383 Added #include "objects.h"
4384
4385 * eval.c (scm_makprom): Added SCM_DEFER_INTS and SCM_ALLOW_INTS.
4386 Add #include "feature.h".
4387
4388 * Makefile.am (libguile_la_SOURCES): Added objects.c.
4389 (modinclude_HEADERS): Added objects.h.
4390
4391 * ports.h (SCM_EOF_OBJECT_P): New macro predicate.
4392 This test is needed at many places in the code and should be
4393 abstracted. (Motivated by the need of this test in libguiletk.)
4394
4395 * ports.c (scm_eof_object_p), vports.c (sfgetc), strports.c
4396 (scm_eval_string), load.c (scm_primitive_load,
4397 scm_read_and_eval_x), gh_eval.c (gh_eval_str):
4398 Use SCM_EOF_OBJECT_P.
4399
4400 * eval.c (scm_init_eval): Add feature `delay'.
4401
4402 Tue Sep 16 02:12:02 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4403
4404 * scmhob.h: Removed.
4405
4406 Mon Sep 15 20:42:03 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4407
4408 * list.h (SCM_LISTn): New macros. Make list creation in C code
4409 prettier. The idea comes from STk.
4410
4411 * sequences.h, sequences.c, append.h, append.c: Removed. These
4412 files implemented non-R4RS operations which would encourage
4413 non-portable programming style and less easy-to-read code.
4414
4415 * Makefile.am (sequences.h, sequences.c, append.h, append.c):
4416 Removed.
4417
4418 * libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include
4419 sequences.h, #include append.h.
4420
4421 * init.c (scm_boot_guile_1): Removed calls to scm_init_append and
4422 scm_init_sequences.
4423
4424 * gh.h, gh_list.c: Renamed gh_list_length --> gh_length.
4425
4426 * list.h, list.c: Renamed scm_list_length --> scm_length, scm
4427
4428 * stime.c (bdtime2c): Changed scm_obj_length --> scm_vector_length.
4429
4430 Sat Sep 13 00:21:41 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4431
4432 * eval.c: Added #include "objects.h"
4433
4434 * tags.h (scm_tc16_object, scm_tc16_entity): Smobtags for objects
4435 and entities.
4436
4437 * smob.c (scm_smob_prehistory): Create two objectsmobs with
4438 adjacent smob numbers.
4439
4440 Thu Sep 11 00:59:17 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4441
4442 * procprop.h: Added declaration of scm_i_inner_name.
4443
4444 * gsubr.c: New global symbol scm_i_inner_name.
4445
4446 * debug.c (scm_procedure_name): Try procedure property
4447 `inner-name' if `name' fails.
4448
4449 * print.c (scm_iprin1): Use scm_macro_name.
4450
4451 * eval.c (scm_m_define): Give names to macros as well; Only the
4452 first top-level definition gives a procedure/macro a name.
4453 Otherwise confusing names can turn up in backtraces.
4454 (SCM_CEVAL): SCM_IM_DEFINE: Set `inner-name' property instead of
4455 `name'; Give names to macros as well.
4456
4457 * procs.c (scm_closure_p), print.c (scm_iprin1), eval.c
4458 (scm_macro_transformer): Use SCM_CLOSUREP instead of
4459 scm_closure_p.
4460
4461 Wed Sep 10 20:52:18 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4462
4463 * eval.c (macro?, macro-type, macro-name, macro-transformer): New
4464 procedures;
4465 (prinmacro): Removed. The code has been moved/merged into print.c
4466 in order to decrease code redundancy. We want macros to print in
4467 a way equivalent to procedures, and it would be silly to duplicate
4468 the required code. (We don't want to maintain two places.)
4469 (macrosmob): Print field is now a NULL pointer.
4470
4471 * eval.h (scm_macro_p, scm_macro_type, scm_macro_name,
4472 scm_macro_transformer): New prototypes.
4473 (scm_tc16_macro): Declared.
4474
4475 * print.c (scm_iprin1): Added code for printing of macros. Macros
4476 are now printed in a way equivalent to procedures.
4477
4478 Sat Sep 6 12:20:42 1997 Mikael Djurfeldt <mdj@kenneth>
4479
4480 * procs.h (scm_closure_p): Added declaration.
4481
4482 Fri Sep 5 13:36:14 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4483
4484 * gc.c (scm_gc_mark): Fixed "rogue pointer in heap" message:
4485 Shouldn't pass "heap" as the subr name.
4486
4487 Tue Sep 2 18:14:30 1997 Jim Blandy <jimb@totoro.red-bean.com>
4488
4489 * gh_predicates.c (gh_boolean_p, gh_symbol_p, gh_char_p,
4490 gh_vector_p, gh_pair_p, gh_number_p, gh_string_p, gh_procedure_p,
4491 gh_list_p, gh_inexact_p, gh_exact_p, gh_eq_p, gh_eqv_p,
4492 gh_equal_p): Use SCM_NFALSEP, instead of testing against
4493 SCM_BOOL_T. Any non-false value is true.
4494
4495 Tue Sep 2 00:27:07 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4496
4497 * symbols.h (scm_builtin_bindings, scm_builtin_weak_bindings,
4498 scm_gensym): Added prototypes.
4499
4500 * symbols.c (scm_gensym): New function. This will speed up
4501 certain types of applications (such as macro systems) which
4502 generate lots of symbols.
4503
4504 Mon Sep 1 22:30:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4505
4506 * numbers.c (logand, logior, logxor): Handle 0 or 1 arguments.
4507
4508 Sat Aug 30 18:56:19 1997 Gary Houston <ghouston@actrix.gen.nz>
4509
4510 * unif.c (scm_shap2ra): tighten the checking of the array dimension
4511 specifier, since (2) or (2 . 3) would cause SEGV.
4512 (scm_transpose_array): more argument checking fixes.
4513
4514 Thu Aug 28 23:48:53 1997 Jim Blandy <jimb@totoro.red-bean.com>
4515
4516 * Makefile.in: Regenerated.
4517
4518 Wed Aug 27 17:44:44 1997 Jim Blandy <jimb@totoro.red-bean.com>
4519
4520 * Makefile.in: Regenerated, so it uses "tar", not "gtar".
4521
4522 Mon Aug 25 13:47:25 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4523
4524 * error.c, error.h (scm_error_callback): Removed (see NEWS).
4525
4526 Sun Aug 24 01:25:35 1997 Mikael Djurfeldt <mdj@kenneth>
4527
4528 * regex-posix.c: If <regex.h> can't be found, try <rxposix.h> or
4529 <rx/rxposix.h>. (This is in order to accomodate for the GNU Rx
4530 library.)
4531
4532 * ramap.c (scm_ra_matchp, scm_array_fill_int, racp, ramap_1,
4533 ramap_2o, scm_array_index_map_x, raeql_1, scm_array_equal_p),
4534 unif.c (scm_vector_set_length_x, scm_uniform_vector_length,
4535 scm_array_p, scm_array_rank, scm_array_dimensions,
4536 scm_enclose_array, scm_array_in_bounds_p, scm_uniform_vector_ref,
4537 scm_cvref, scm_array_set_x, scm_array_contents, scm_array_to_list,
4538 scm_array_prototype): Added case scm_tc7_wvect.
4539
4540 Sat Aug 23 18:45:44 1997 Gary Houston <ghouston@actrix.gen.nz>
4541
4542 * errno.h: prototype for scm_strerror.
4543 * error.c (scm_strerror): new procedure.
4544
4545 Mon Aug 18 14:58:22 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4546
4547 * list.c (scm_list_append_x): Allow non-pair as last argument.
4548 This is consistent with the R4RS append and is probably the
4549 correct behaviour as specified by R2RS. (Thanks to Radey Shouman)
4550
4551 Sat Aug 16 18:42:15 1997 Gary Houston <ghouston@actrix.gen.nz>
4552
4553 * stime.h: prototype for scm_times.
4554 * stime.c (scm_times): new procedure.
4555 * ioext.c (scm_fseek): if the first argument is a file descriptor
4556 call lseek.
4557 (scm_ftell): if the first argument is a file descriptor call lseek
4558 (sic).
4559 * filesys.h: prototypes for scm_open_fdes, scm_fsync.
4560 * filesys.c (scm_chmod): if the first argument is a file descriptor,
4561 call fchmod.
4562 (scm_chown): if the first argument is a port or file descriptor,
4563 call fchown.
4564 (scm_truncate_file): new procedure.
4565 Add DEFER/ALLOW INTS to a few other procedures.
4566 (scm_fsync): new procedure.
4567 (scm_open_fdes): new procedure.
4568 (scm_open): use scm_open_fdes. If mode isn't specified, 666 will
4569 now be used.
4570 (scm_fcntl): the first argument can now be a file descriptor. The
4571 third argument is now optional.
4572
4573 * posix.c (scm_execl, scm_execlp): make the filename argument
4574 compulsory, since omitting it causes SEGV.
4575 (scm_sync): return unspecified instead of #f.
4576 (scm_execle): new procedure.
4577 (environ_list_to_c): new procedure.
4578 (scm_environ): use environ_list_to_c. disable interrupts.
4579 (scm_convert_exec_args): take pos and subr arguments and
4580 improve error checking.
4581
4582 1997-08-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4583
4584 * stacks.c (scm_make_stack), coop-threads.c, mit-pthreads.c
4585 (scm_call_with_new_thread): Bugfix: SCM_WNA should go as third
4586 argument to SCM_ASSERT. Furthermore, the name of the function
4587 should be passed as first argument when signalling
4588 SCM_WNA. (Thanks to Thomas Morgan)
4589
4590 * gsubr.c (scm_gsubr_apply): From Radey Shouman
4591 <shouman@zianet.com>: "The switch in scm_gsubr_apply that
4592 dispatches on the number of actual args has a default case
4593 reporting an internal error. This is a vestige from a version
4594 that mallocated a SCM vector to hold the arguments. In the
4595 current version this check is too late: if it ever happens we will
4596 have already overstepped the bounds of the array.
4597
4598 Also, the patch [...] adds a check for too many actual arguments."
4599
4600 mdj: Removed check for "internal programming error".
4601
4602 Wed Aug 13 15:38:44 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4603
4604 * gh_io.c (gh_write): New function.
4605
4606 * gh_eval.c (catch_with_saved_stack): Removed. Replaced by:
4607 throw.c (scm_internal_stack_catch): New sibling to the other catch
4608 functions. Code moved from gh_eval.c.
4609 throw.h: Added header.
4610 gh_eval.c (gh_eval_str_with_stack_saving_handler): Renamed call to
4611 scm_internal_stack_catch.
4612
4613 Tue Jul 29 01:03:08 1997 Gary Houston <ghouston@actrix.gen.nz>
4614
4615 * ioext.h: fix up prototypes.
4616 * ioext.c (scm_dup_to_fdes): renamed from scm_primitive_dup2.
4617 Scheme name is now dup->fdes.
4618 (scm_dup_to_fdes): make the second argument optional and
4619 fold in the functionality of scm_primitive_dup.
4620 (scm_primitive_dup): deleted.
4621
4622 Mon Jul 28 05:24:42 1997 Gary Houston <ghouston@actrix.gen.nz>
4623
4624 * fports.h (SCM_P): prototypes for scm_setvbuf, scm_setfileno.
4625 * fports.c (scm_setbuf0): don't disable the setbuf if MSDOS or
4626 ultrix are defined. Use setvbuf instead of setbuf.
4627 (scm_setvbuf): new procedure.
4628 (scm_init_fports): intern _IOFBF, _IOLBF, _IONBF.
4629 (scm_setfileno): moved from ioext.c.
4630 (scm_fgets): cast SCM_STREAM to (FILE *), remove unused lp variable.
4631 (top of file): Delete 25 lines of probably obsolete CPP hair for MSDOS.
4632
4633 Sun Jul 27 10:54:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
4634
4635 * fluids.c (scm_fluid_p): New function.
4636 * fluids.h (scm_fluid_p): New prototype.
4637
4638 Sat Jul 26 21:33:37 1997 Marius Vollmer <mvo@zagadka.ping.de>
4639
4640 * print.c (scm_iprin1): Enter printed structures into the print
4641 state as nested data while they are printed.
4642 (print_state_fluid, print_state_fluid_num): New variables.
4643 (scm_init_print): Initialize them.
4644 (scm_iprin): If print_state_fluid carries a print_state, use that
4645 instead of creating a new one.
4646 (scm_printer_apply, apply_stub, struct apply_data): New
4647 definitions to help with calling printer functions written in
4648 Scheme.
4649 * print.h (scm_printer_apply): New prototype.
4650
4651 * struct.c (scm_print_struct): Use scm_printer_apply to call the
4652 user defined struct printer.
4653
4654 * dynwind.c (scm_dowinds): Handle fluids on the wind list.
4655 * fluids.h (scm_internal_with_fluids, scm_with_fluids,
4656 scm_swap_fluids, scm_swap_fluids_reverse): New prototypes.
4657 * fluids.c (scm_internal_with_fluids, scm_with_fluids,
4658 scm_swap_fluids, scm_swap_fluids_reverse): New functions.
4659
4660 Fri Jul 25 12:05:46 1997 Marius Vollmer <mvo@zagadka.ping.de>
4661
4662 * fluids.c (scm_fluid_ref, scm_fluid_set_x): Fixed use of
4663 SCM_ASSERT: arg comes before pos.
4664
4665 Fri Jul 25 17:00:38 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
4666
4667 * eval.c (scm_apply): Handle the case when a tc7_sybr_2 is applied
4668 to a list of length zero correctly.
4669
4670 Wed Jul 23 16:17:46 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
4671
4672 Supply an `fgets' method for port objects to do fast line i/o.
4673 * ioext.c (scm_read_line): New function.
4674 * genio.c (scm_gen_read_line): New function.
4675 * fports.c (scm_fgets): New function.
4676 (scm_fptob, scm_pipob): Add scm_fgets method.
4677 * ports.c (fgets_void_port, scm_generic_fgets): New functions.
4678 (void_port_ptob): Add void fgets method.
4679 (scm_newptob): Initialize fgets method from ptob struct.
4680 * ports.h (scm_ptobfuns): Add fgets method.
4681 * vports.c (scm_sfptob): Supply generic fgets method.
4682 * strports.c (scm_stptob): Supply generic fgets method.
4683
4684 Mon Jul 21 04:03:42 1997 Gary Houston <ghouston@actrix.gen.nz>
4685
4686 * ioext.h: removed scm_duplicate_port prototype.
4687
4688 * ioext.c (scm_primitive_dup2): return the new file descriptor
4689 instead of SCM_UNSPECIFIED, since similarity to scm_primitive_dup
4690 is convenient.
4691 (scm_fdopen): bug fix: don't try to make port unbuffered until its
4692 stream has been set.
4693 (scm_duplicate_port): deleted, there's now an implementation in
4694 boot-9.scm.
4695 (scm_primitive_dup2): do nothing if newfd == oldfd.
4696
4697 Sun Jul 20 03:55:49 1997 Gary Houston <ghouston@actrix.gen.nz>
4698
4699 * filesys.c (scm_close): oops, don't call SCM_INUM twice on the
4700 argument.
4701
4702 * ioext.h: new prototypes.
4703 * ioext.c (scm_primitive_dup, scm_primitive_dup2): new procedures.
4704
4705 * fluids.c (next_fluid_num): don't do
4706 SCM_THREAD_CRITICAL_SECTION_START/END unless USE_THREADS is defined.
4707
4708 * ports.h: prototypes too.
4709 * ports.c (scm_mode_bits, scm_port_mode): moved from fports.c.
4710
4711 * fports.h: prototype too.
4712 * fports.c (scm_evict_ports): moved from ioext.c.
4713
4714 Sat Jul 19 04:56:52 1997 Gary Houston <ghouston@actrix.gen.nz>
4715
4716 * ports.c (scm_close_port): return a boolean instead of unspecified.
4717 throw an error if an error other than EBADF occurs.
4718
4719 * filesys.h: scm_close prototype.
4720 * filesys.c (scm_close): new procedure, can close file descriptors
4721 and ports (scsh compatible).
4722
4723 * ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
4724 optional argument.
4725
4726 Fri Jul 18 11:19:53 1997 Marius Vollmer <mvo@zagadka.ping.de>
4727
4728 * fluids.c, fluid.h: New files.
4729 * Makefile.am (libguile_la_SOURCES): Added "fluids.c".
4730 (modinclude_HEADERS): Added "fluids.h"
4731
4732 * init.c: Include "fluids.h". (scm_boot_guile_1): Added call to
4733 scm_init_fluids to initialize the fluid machine.
4734 (scm_start_stack): Initialize the fluids of the first root with
4735 scm_make_initial_fluids.
4736
4737 * root.h: Added "fluids" member to scm_root_state.
4738 * root.c: Include "fluids.h". (scm_mark_root): Mark "fluids".
4739 (scm_make_root): Call scm_copy_fluids to make fluid bindings
4740 unique for the new root when it has a parent.
4741
4742 * smob.h: Include "libguile/print.h" to make scm_print_state
4743 visible.
4744
4745 * dynl.c (free_dynl_obj): New function to free the dynamic object
4746 data. (dynl_smob): Use it.
4747 * dynl.c (scm_dynamic_link): Moved allocating of the memory for
4748 the dynamic object data below the linking of the object to avoid
4749 memory leak when the linking code throws an error. Now the code
4750 leaks a whole dynamically linked library when must_malloc throws,
4751 but that should be much less likely.
4752
4753 Fri Jul 11 00:19:47 1997 Jim Blandy <jimb@floss.red-bean.com>
4754
4755 Changes to compile under gnu-win32, from Marcus Daniels:
4756 * stime.c (tzset): If tzset isn't provided, make it a NOP.
4757 (scm_localtime): Change SCM_EOF to SCM_EOL.
4758 (scm_mktime): Likewise.
4759 * socket.c: Don't include sys/un.h unless autoconf tells
4760 us Unix domain sockets are available.
4761 (scm_fill_sockaddr): Ignore Unix domain code.
4762 (scm_addr_vector): Likewise.
4763 (scm_init_addr_buffer): Likewise.
4764 (scm_socketpair): Don't include unless socketpair was
4765 found during autoconf.
4766 * simpos.c (SYSTNAME): Treat cygwin like Unix.
4767 * scmsigs.c (scm_pause): Don't include unless pause was found
4768 during autoconf.
4769 * posix.c (scm_getgroups): Don't include unless support function
4770 was found during autoconf (in this case, getgroups).
4771 (scm_setpwent): For setpwent.
4772 (scm_setegid): For setegid.
4773 * net_db.c (scm_inet_netof): Don't include unless support
4774 function was found during autoconf (in this case, inet_netof).
4775 (scm_lnaof): For inet_lnaof.
4776 (scm_inet_makeaddr): For inet_makeaddr.
4777 (scm_getnet): For getnetent, getnetbyname, getnetbyaddr.
4778 (scm_getproto): For getprotoent.
4779 (scm_getserv): For getservent.
4780 (scm_sethost): For sethostent, endhostent.
4781 (scm_setnet): For setnetent, endnetent.
4782 (scm_setproto): For setprotoent, endprotoent.
4783 (scm_setserv): For setservent, endservent.
4784 * scmconfig.h.in: Regenerated.
4785
4786 Thu Jul 10 00:22:24 1997 Jim Blandy <jimb@floss.red-bean.com>
4787
4788 * stime.c (scm_localtime, scm_mktime): Pass SCM_EOL to
4789 scm_misc_error, not SCM_EOF.
4790
4791 * error.c (scm_wta): Pass SCM_EOL to scm_misc_error as the list of
4792 arguments for formatting the error message, not SCM_BOOL_F. I
4793 think this is left over from the (eq? '() #f) days.
4794
4795 * read.c (recsexpr): Give this a dummy definition if
4796 DEBUG_EXTENSIONS isn't #defined.
4797
4798 Fri Jul 4 23:42:17 1997 Marius Vollmer <mvo@zagadka.ping.de>
4799
4800 * coop-threads.c (scm_wait_condition_variable): Lock mutex again
4801 after waiting.
4802
4803 Thu Jul 3 16:31:24 1997 Marius Vollmer <mvo@zagadka.ping.de>
4804
4805 * root.c (cwdr_outer_body): Bugfix: Pass `c' instead of `&c' to
4806 scm_internal_catch.
4807
4808 Sat Jun 28 16:14:09 1997 Tim Pierce <twp@twp.tezcat.com>
4809
4810 * Makefile.am (libguile_la_LIBADD): Remove @ALLOCA@, since
4811 alloca.lo will be included in @LIBLOBJS@. Something better than
4812 this should be possible.
4813 * Makefile.in: Regenerated.
4814
4815 Sat Jun 28 03:40:15 1997 Gary Houston <ghouston@actrix.gen.nz>
4816
4817 * simpos.h: prototype for scm_primitive_exit.
4818 * simpos.c (scm_primitive_exit): new procedure, terminates the
4819 process without unwinding the stack.
4820
4821 Sat Jun 28 03:45:25 1997 Tim Pierce <twp@twp.tezcat.com>
4822
4823 * regex-posix.c (scm_make_regexp): Make `flags' a variable-length
4824 argument and logior its components together, so the user doesn't
4825 have to do this explicitly. Also, if regexp/basic is supplied, then
4826 turn off REG_EXTENDED.
4827 (scm_init_regex_posix): New regexp/basic symbol.
4828 (REG_BASIC): #define this if it is not already present.
4829
4830 Fri Jun 27 20:36:35 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
4831
4832 * Makefile.am (libguile_la_LIBADD): Include @ALLOCA@.
4833 (MOSTLYCLEANFILES): New target, changed from CLEANFILES.
4834 (CLEANFILES): New target, clean versiondat.h, libpath.h.
4835 (DISTCLEANFILES): New target, clean *.x.
4836 * Makefile.in: Regenerated.
4837
4838 Tue Jun 24 00:29:07 1997 Jim Blandy <jimb@floss.red-bean.com>
4839
4840 * script.c (scm_compile_shell_switches): Add 1997 to copyright
4841 years in usage message.
4842
4843 * Makefile.am (libguile_la_LDFLAGS): Bump library version.
4844 * Makefile.in: Regenerated.
4845
4846 * regex-posix.c (scm_init_regex_posix): Delete the regexp/nosub
4847 flag; I don't think we support it.
4848 (scm_make_regexp): Make sure the user doesn't pass the
4849 regexp/nosub flag.
4850
4851 * regex-posix.c (scm_make_regexp, scm_regexp_exec): Add optional
4852 FLAGS arguments.
4853 (scm_init_regex_posix): Define constants for the REG_mumble flags;
4854 name them according to the SCSH convention: regexp/mumble.
4855
4856 * regex-posix.h (scm_make_regexp, scm_regexp_exec): Update prototypes.
4857
4858 Mon Jun 23 18:44:49 1997 Jim Blandy <jimb@floss.red-bean.com>
4859
4860 * Makefile.am (libpath.h): Include the values of all the standard
4861 Makefile directory variables. Print a message, but don't print
4862 all the commands.
4863 (versiondat.h): Print a message, but don't print all the commands.
4864 * load.c: #include "alist.h".
4865 (init_build_info): New function.
4866 (scm_init_load): Call it.
4867 * Makefile.in: Regenerated.
4868
4869 Sun Jun 22 19:12:58 1997 Jim Blandy <jimb@floss.red-bean.com>
4870
4871 * root.c: Establish a reliable catch-all handler for the new root.
4872 After all the Scheme handler function might signal an error too,
4873 and we don't want to lose that.
4874 (cwdr_inner_body): Renamed from cwdr_body.
4875 (cwdr_outer_body): New function, to establish the user's handler,
4876 and pass control to cwdr_inner_body.
4877 (cwdr): Establish the reliable catch-all handler here, and pass
4878 control to cwdr_outer_body.
4879 (struct cwdr_body_data): New field, handler, to allow cwdr to pass
4880 the user's handler through to cwdr_outer_body.
4881 * throw.c (scm_handle_by_message): Move guts into....
4882 (handler_message): New static function.
4883 (scm_handle_by_message_noexit): New function.
4884 * throw.h (scm_handle_by_message_noexit): New prototype.
4885
4886 * __scm.h: (SCM_FENCE): New macro: optimizer will not move code
4887 across this. Only works on GCC. Otherwise, we hope for the best.
4888 (SCM_DEFER_INTS, SCM_ALLOW_INTS): Use FENCE appropriately. I have
4889 the feeling that real thread systems will not need this...
4890
4891 Sun Jun 22 15:46:35 1997 Jim Blandy <jimb@floss.red-bean.com>
4892
4893 Try to detect when people are using one version of libguile and a
4894 different version of ice-9. People have been skewing things and
4895 sending in bug reports.
4896 * Makefile.am (versiondat.h): New file to generate.
4897 * version.c: #include "versiondat.h", to get version info.
4898 (scm_libguile_config_stamp): New function.
4899 * script.c: #include "version.h".
4900 (scm_compile_switches): Call scm_version to get version number.
4901 * scmconfig.h.in, Makefile.in: Regenerated.
4902 * Makefile.in: Regenerated.
4903
4904 * Makefile.am (ETAGS_ARGS): Catch SCM_PROC, etc. so we can find
4905 primitive definitions under their Scheme names.
4906
4907 * Makefile.am (libguile_la_LDFLAGS): Update library version to
4908 1:2. Helps avoid confusion between installed and uninstalled libs.
4909
4910 * scmconfig.h.in: Regenerated. (Needed after June 3 change to
4911 ../configure.in.)
4912
4913 * gdb_interface.h (GDB_INTERFACE): Remove semicolon and trailing
4914 backslash from definition; this should be used like: GDB_INTERFACE;
4915
4916 Sun Jun 22 04:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
4917
4918 * ioext.c (scm_duplicate_port): bug fix: don't try to make the
4919 new port unbuffered until its stream has been set.
4920
4921 Sat Jun 21 18:44:03 1997 Gary Houston <ghouston@actrix.gen.nz>
4922
4923 * ports.h: new prototype.
4924 * ports.c (scm_flush_all_ports): new procedure, scsh compatible.
4925
4926 Sat Jun 21 00:25:03 1997 Jim Blandy <jimb@floss.red-bean.com>
4927
4928 Make things compile neatly under Sun's C compiler.
4929 * dynl.c (scm_dynamic_func): Cast return value from sysdep_dynl_func.
4930 * extchrs.c (xmbtowc): Make the second arg a normal char, not
4931 unsigned, because that's what the ANSI function takes.
4932 * extchrs.h (xmbtowc): Corresponding change to prototype.
4933 * genio.c (scm_gen_getc): Make buf plain chars. Nobody wants
4934 uchars here.
4935 * mbstrings.c (scm_mb_ilength): Use ANSI arg syntax. Make DATA
4936 argument plain char *.
4937 * strings.c (scm_string): Use SCM_ROCHARS, since c is a plain
4938 char.
4939 * tag.c (scm_tag): Remove unreachable statement.
4940 * unif.c (scm_array_to_list): If we want to shift a 1 bit to the
4941 top of the word, it should be unsigned.
4942
4943 * eval.c (scm_lookupcar1): Don't declare var2 unless USE_THREADS
4944 is defined, to avoid warnings; it's only used in the
4945 conflict-checking code. Which might go away anyway.
4946 (SCM_CEVAL): All goto's targeting the `dispatch' label are in
4947 conditionals; put the label definition in an #if too, to stifle
4948 warnings.
4949
4950 * Makefile.am (EXTRA_DIST): Include ChangeLog-gh and
4951 ChangeLog-threads in the distribution.
4952 * Makefile.in: Regenerated.
4953
4954 Fri Jun 20 10:03:41 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
4955
4956 * guile-snarf.in: Changed regexp to support CPPs that insert
4957 whitespace between lexical tokens (which munges the `%%%' snarf
4958 cookie).
4959
4960 Tue Jun 17 13:49:56 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
4961
4962 * load.c (scm_init_load_path): Append $(datadir)/guile to
4963 %load-path, so modules do not have to be installed in Guile's
4964 current version directory.
4965
4966 Mon Jun 16 17:20:55 1997 Marius Vollmer <mvo@zagadka.ping.de>
4967
4968 * dynl.c (scm_dynamic_call, scm_dynamic_args_call): Wrap dynamic
4969 function call in SCM_DEFER_INTS/SCM_ALLOW_INTS.
4970 (scm_dynamic_link, scm_dynamic_unlink, scm_dynamic_func): Always
4971 call the sysdep functions with deferred ints.
4972 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c (sysdep_dynl_link,
4973 sysdep_dynl_unlink, sysdep_dynl_func): Expect to be called with
4974 deferred interrupts and insert SCM_ALLOW_INTS before throwing an
4975 error.
4976
4977 * dynl.c (scm_dynamic_unlink, scm_dynamic_call): Return
4978 SCM_UNSPECIFIED.
4979
4980 Sat Jun 14 19:00:58 1997 Gary Houston <ghouston@actrix.gen.nz>
4981
4982 * scmsigs.c (sys_deliver_signals): add a comment about a probable bug.
4983
4984 Wed Jun 11 00:33:00 1997 Jim Blandy <jimb@floss.red-bean.com>
4985
4986 * Makefile.in: Regenerated after xtra_PLUGIN_guile_libs change in
4987 ../configure.in.
4988
4989 Sun Jun 8 14:37:26 1997 Marius Vollmer <mvo@zagadka.ping.de>
4990
4991 * eval.c (scm_lookupcar1): New procedure to cope with a race
4992 condition during lookup (when using threads).
4993 (scm_lookupcar): Implement in terms of scm_lookupcar1.
4994 (SCM_CEVAL): Use scm_lookupcar1 instead of scm_lookupcar in one
4995 place.
4996
4997 Fri Jun 6 19:05:07 1997 Jim Blandy <jimb@totoro.cyclic.com>
4998
4999 * regex-posix.c (scm_regexp_exec): Use the `start' argument if
5000 supplied. (Change from Tim Pierce.)
5001
5002 Thu Jun 5 16:38:19 1997 Marius Vollmer <mvo@zagadka.ping.de>
5003
5004 * struct.c (init_struct): Forget to mention this in the "Wed Jun 4
5005 23:47:01 1997" changelog: Slots are now initialized with `#f' by
5006 default and not `()'. `#f' is the canonical non-value in Scheme,
5007 right?
5008
5009 Wed Jun 4 23:47:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
5010
5011 * struct.c (struct_printer): New variable that holds a handle on
5012 the Scheme variable *struct-printer*. This variable can be set by
5013 Scheme code to override the printing of structures.
5014 (scm_print_struct): If struct_printer is set, call it. If it is
5015 not set, or returns #f, print the structure in the old fashion.
5016 Include "eval.h" for scm_apply.
5017
5018 Tue Jun 3 23:01:39 1997 Marius Vollmer <mvo@zagadka.ping.de>
5019
5020 * struct.c (scm_struct_ref, scm_struct_set_x): Use
5021 scm_struct_i_n_words to get the number of fields, not
5022 -scm_struct_n_extra_words.
5023
5024 On the route to fancier struct printing:
5025 * struct.c (scm_print_struct): New function to print a structure.
5026 Include "genio.h" to support it. This function doesn't do
5027 anything interesting right now, but I think it should be here
5028 anyway.
5029 * struct.h: Include "print.h" and add prototype for
5030 scm_print_struct.
5031 * print.c (scm_iprin1): Call scm_print_struct instead of trying to
5032 print structures ourself.
5033
5034 Sun Jun 1 07:58:41 1997 Gary Houston <ghouston@actrix.gen.nz>
5035
5036 * scmsigs.c (sys_deliver_signals): bug fix: reset got_signal[i]
5037 before applying the handler in case it doesn't return.
5038
5039 Sat May 31 18:57:51 1997 Gary Houston <ghouston@actrix.gen.nz>
5040
5041 * scmsigs.h, async.h: updated.
5042
5043 * _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL
5044 loop.
5045
5046 * posix.c (scm_uname): interpret only negative values as an error.
5047 Solaris normally returns a positive value.
5048
5049 * script.c (scm_compile_shell_switches): if we are not going into
5050 an interactive repl, set scm_mask_ints to zero so that asyncs can
5051 run.
5052
5053 * simpos.c (scm_system): don't ignore/unignore signals around
5054 the "system" call.
5055
5056 * posix.c (scm_open_pipe): don't ignore/unignore signals around
5057 the "popen" call.
5058
5059 * init.c (scm_boot_guile_1): don't call scm_init_signals, it's
5060 done in boot-9.scm instead.
5061
5062 * scmsigs.c, async.c: Major rewriting of signal handling code.
5063 (scm_sigaction): new procedure.
5064 (scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the
5065 timing.
5066 (scm_raise): return unspecified, throw error on failure.
5067
5068 Thu May 29 02:47:36 1997 Jim Blandy <jimb@floss.cyclic.com>
5069
5070 * regex-posix.c (scm_init_regex_posix): Register the "regex"
5071 feature, to help boot-9.scm decide whether to import the regex
5072 module.
5073
5074 Thu May 29 02:19:40 1997 Jim Blandy <jimb@floss.cyclic.com>
5075
5076 * eval.c: Include scmconfig.h at the beginning of the file so that
5077 HAVE_ALLOCA_H may properly be defined. Thanks to Bill Janssen for
5078 pointing this out.
5079
5080 * regex-posix.c: #include "_scm.h" before conditionally #including
5081 <regex.h>; the former defines HAVE_REGCOMP.
5082
5083 * regex-posix.c: #include <regex.h> conditionally, so the file is
5084 CPP'able (for dependency scanning) even on systems that don't have
5085 a <regex.h> header.
5086
5087 Tue May 27 23:48:38 1997 Jim Blandy <jimb@floss.cyclic.com>
5088
5089 Add new R4RS-compliant syntax for keywords.
5090 * read.c (scm_lreadr): Recognize `#:' as a prefix for keywords,
5091 regardless of the setting of the `keywords' read option.
5092 * kw.c (prin_kw): Print keywords using the `#:' syntax, so they
5093 can be re-read no matter what the setting of the `keywords' read
5094 option.
5095
5096 Tue May 27 22:47:31 1997 Tim Pierce <twp@twp.tezcat.com>
5097
5098 Add support for POSIX regular expressions.
5099
5100 * regex-posix.c, regex-posix.h: New files. (Some code
5101 is taken liberally from rx/rgx.c in the old Guile dist.)
5102
5103 * init.c: Include regex-posix.h.
5104 (scm_boot_guile_1): Call scm_init_regex_posix.
5105
5106 * Makefile.am (EXTRA_libguile_la_SOURCES, modinclude_HEADERS):
5107 Add regex-posix.[ch] sources.
5108 * Makefile.in: Regenerated.
5109
5110 * scmconfig.h.in: Add HAVE_REGCOMP macro. (automake is supposed
5111 to do this automatically? It didn't for me, bleh.)
5112
5113 Mon May 26 18:51:29 1997 Jim Blandy <jimb@floss.cyclic.com>
5114
5115 * fports.c (print_pipe_port): New function.
5116 (scm_fptob): Use print_pipe_port instead of scm_prinport; the
5117 latter doesn't even take the right arguments.
5118
5119 * Makefile.am: Increment shared lib revision number. I think
5120 sometimes the uninstalled Guile finds the installed shared lib;
5121 Gord says doing this might help. As things turned out, I can't
5122 say whether it does.
5123 * Makefile.in: Regenerated.
5124
5125 * gh_init.c (gh_enter): Cast c_main_prog to a void * before
5126 passing it as the closure argument to scm_boot_guile. (Bill
5127 Janssen)
5128
5129 * ports.c (print_void_port, putc_void_port, puts_void_port,
5130 write_void_port, flush_void_port, getc_void_port, close_void_port,
5131 noop0): Use ANSI prototypes instead of K&R declarations, so the
5132 initialization of void_port_ptob gets aggressively type-checked.
5133 Fix arguments of print_void_port and write_void_port. (Bill
5134 Janssen)
5135
5136 * COPYING, __scm.h, _scm.h, alist.c, alist.h, append.c, append.h,
5137 appinit.c, arbiters.c, arbiters.h, async.c, async.h, backtrace.c,
5138 backtrace.h, boolean.c, boolean.h, chars.c, chars.h,
5139 continuations.c, continuations.h, coop-defs.h, coop-threads.c,
5140 coop-threads.c.cygnus, coop-threads.h, coop-threads.h.cygnus,
5141 coop.c, debug.c, debug.h, dynl-dl.c, dynl-dld.c, dynl-shl.c,
5142 dynl-vms.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, eq.h,
5143 error.c, error.h, eval.c, eval.h, extchrs.h, feature.c, feature.h,
5144 filesys.c, filesys.h, fports.c, fports.h, fsu-pthreads.h, gc.c,
5145 gc.h, gdbint.c, gdbint.h, genio.c, genio.h, gh.h, gh_data.c,
5146 gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c,
5147 gh_predicates.c, gh_test_c.c, gh_test_repl.c, gscm.c, gscm.h,
5148 gsubr.c, gsubr.h, guile.c, hash.c, hash.h, hashtab.c, hashtab.h,
5149 init.c, init.h, ioext.c, ioext.h, kw.c, kw.h, libguile.h, list.c,
5150 list.h, load.c, load.h, mallocs.c, mallocs.h, markers.c,
5151 markers.h, mbstrings.c, mbstrings.h, mit-pthreads.c,
5152 mit-pthreads.h, net_db.c, net_db.h, numbers.c, numbers.h,
5153 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
5154 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
5155 procprop.h, procs.c, procs.h, putenv.c, ramap.c, ramap.h, read.c,
5156 read.h, root.c, root.h, scmhob.h, scmsigs.c, scmsigs.h, script.c,
5157 script.h, sequences.c, sequences.h, simpos.c, simpos.h, smob.c,
5158 smob.h, snarf.h, socket.c, socket.h, srcprop.c, srcprop.h,
5159 stackchk.c, stackchk.h, stacks.c, stacks.h, stime.c, stime.h,
5160 strings.c, strings.h, strop.c, strop.h, strorder.c, strorder.h,
5161 strports.c, strports.h, struct.c, struct.h, symbols.c, symbols.h,
5162 tag.c, tag.h, tags.h, threads.c, threads.h, throw.c, throw.h,
5163 unif.c, unif.h, variable.c, variable.h, vectors.c, vectors.h,
5164 version.c, version.h, vports.c, vports.h, weaks.c, weaks.h: New
5165 address for FSF.
5166
5167 Mon May 26 12:37:30 1997 Jim Blandy <jimb@floss.cyclic.com>
5168
5169 * script.c (scm_find_executable): Use prototype-style definition
5170 here; apparently it's not quite right to have const in a prototype
5171 and then use a K&R declaration. I wonder if stuff like this will
5172 go away if we compile with -Wrequire-prototypes, or whatever that
5173 is... (Bernard URBAN)
5174
5175 * scmhob.h: New text from Bernard URBAN.
5176
5177 Sat May 17 17:14:36 1997 Jim Blandy <jimb@floss.cyclic.com>
5178
5179 * script.c: Don't #define const on hpux. Configure takes care of
5180 this. (Thanks to Larry Schwimmer.)
5181
5182 * script.c: Use the HAVE_UNISTD_H symbol provided by autoconf to
5183 decide whether to #include <unistd.h>, instead of listing a bunch
5184 of systems. Don't #include stdio twice. Removed dyked-out
5185 definition of scm_find_impl_file.
5186
5187 Fri May 16 03:06:08 1997 Jim Blandy <jimb@floss.cyclic.com>
5188
5189 * Makefile.am (libguile_la_LDFLAGS): Update libguile's shared
5190 library version info to 1:0.
5191 * Makefile.in: Regenerated.
5192
5193 * backtrace.c, backtrace.h, debug.c, debug.h, eq.c,
5194 gdb_interface.h, gdbint.c, gdbint.h, gh_data.c, gh_init.c,
5195 gh_io.c, gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c,
5196 init.c, net_db.c, options.c, options.h, ports.c, print.c, read.c,
5197 script.h, snarf.h, srcprop.c, srcprop.h, stacks.c, stacks.h,
5198 throw.c: Update copyright years; these files have been worked on
5199 significantly in 1997, but only had copyright years for 1996.
5200 Also, change name of copyright holder on some from Mikael
5201 Djurfeldt to Free Software Foundation; he has signed papers
5202 assigning the changes to the FSF.
5203
5204 * script.c (scm_shell_usage): Pass FATAL to exit. There's no
5205 reason not to give the user the option.
5206
5207 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
5208 Return #f on end-of-file when scanning table (i.e. when called
5209 with no arguments). Try to catch errors, when we can.
5210 * posix.c (scm_getgrgid, scm_getpwuid): Same.
5211
5212 * script.h (scm_shell_usage, scm_compile_shell_switches): New
5213 external declarations. These are useful.
5214
5215 Thu May 15 05:21:36 1997 Gary Houston <ghouston@actrix.gen.nz>
5216
5217 * posix.c: don't include <sys/select.h> or define macros for
5218 select, since they were not used in this file.
5219
5220 * filesys.c (scm_select): make the fifth parameter microseconds,
5221 not milliseconds. let the fourth parameter be either a real value
5222 or an integer or #f. The first, second and third arguments can
5223 now be vectors: the type of the corresponding return set will be
5224 the same.
5225 (set_element, get_element): new static procedures.
5226
5227 Wed May 14 12:18:12 1997 Jim Blandy <jimb@floss.cyclic.com>
5228
5229 * strports.c (scm_eval_string): New function.
5230 (scm_eval_0str): Trivially re-implemented in terms of
5231 scm_eval_string.
5232 * strports.h (scm_eval_string): New extern decl.
5233
5234 * net_db.c (h_errno): Add extern decl for this.
5235
5236 * fports.c (local_pclose): New function.
5237 (scm_pipob): Use it in the initializer here.
5238
5239 From Tim Pierce:
5240 * net_db.c (scm_gethost, scm_getproto, scm_getnet, scm_getserv):
5241 Use a meaningful error message when signalling an error. For
5242 this, scm_gethost must check h_errno rather than errno.
5243
5244 Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
5245
5246 * Makefile.in: Regenerated, using automake-1.1p.
5247
5248 Tue May 13 04:34:52 1997 Gary Houston <ghouston@actrix.gen.nz>
5249
5250 * socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify,
5251 not SCM_UNSPECIFIED.
5252
5253 * script.c (scm_compile_shell_switches): don't append (quit) if
5254 interactive.
5255 (scm_shell): call scm_exit_status and exit on the result of the
5256 evaluation.
5257
5258 Mon May 12 17:23:58 1997 Jim Blandy <jimb@floss.cyclic.com>
5259
5260 Ensure that shared substrings are handled properly when passed to
5261 a system call or other foreign function. Many thanks to Tim
5262 Pierce!
5263 * symbols.h (SCM_COERCE_SUBSTR): new macro.
5264 * filesys.c (scm_chmod, scm_rename, scm_delete_file, scm_mkdir,
5265 scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink,
5266 scm_lstat), ports.c (scm_sys_make_void_port), posix.c (scm_utime,
5267 scm_putenv, scm_setlocale, scm_mknod), stime.c (setzone,
5268 scm_strftime), vports.c (scm_make_soft_port), backtrace.c
5269 (scm_display_error_message): use RO macros when strings may be RO.
5270 * error.c (scm_error_scm), filesys.c (scm_chown, scm_chmod,
5271 scm_rename, scm_delete_file, scm_mkdir, scm_rmdir, scm_opendir,
5272 scm_chdir, scm_symlink, scm_readlink, scm_lstat), ioext.c
5273 (scm_freopen, scm_duplicate_port, scm_fdopen), net_db.c
5274 (scm_gethost, scm_getnet, scm_getproto, scm_getserv), ports.c
5275 (scm_sys_make_void_port), posix.c (scm_getgrgid, scm_utime,
5276 scm_setlocale, scm_mknod), stime.c (setzone, scm_strptime,
5277 scm_strftime), vports.c (scm_make_soft_port): use
5278 SCM_COERCE_SUBSTR to make sure shared substrings are
5279 null-terminated.
5280
5281 Mon May 12 15:33:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
5282
5283 * error.c (scm_error): Add newline to error message.
5284
5285 * init.c (scm_init_standard_ports): Doc fix.
5286
5287 Thu May 8 14:38:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
5288
5289 * dynl-shl.c: Completely replaced with new code from Bernard
5290 URBAN.
5291
5292 * script.c (scm_ice_9_already_loaded): New variable.
5293 (scm_compile_shell_switches): Use it.
5294
5295 Mon May 5 20:35:08 1997 Gary Houston <ghouston@actrix.gen.nz>
5296
5297 * filesys.c (scm_input_waiting_p): add missing third argument to
5298 scm_misc_error.
5299
5300 * stime.c (scm_localtime): copy the result of localtime before
5301 calling gmtime in case they share a buffer.
5302 (scm_localtime, scm_mktime): throw an error if neither HAVE_TM_ZONE
5303 nor HAVE_TZNAME.
5304
5305 Fri May 2 19:07:11 1997 Gary Houston <ghouston@actrix.gen.nz>
5306
5307 * eq.c (scm_equal_p): use SCM_TYP7SD (y) not SCM_TYP7SD (x).
5308
5309 Thu May 1 17:01:45 1997 Jim Blandy <jimb@floss.cyclic.com>
5310
5311 * Makefile.am (check-local): New target, which causes 'make check'
5312 to run gh_test_c and gh_test_repl, with some trivial input.
5313 * Makefile.in: Rgnrtd.
5314
5315 Tue Apr 29 19:00:40 1997 Marius Vollmer <mvo@zagadka.ping.de>
5316
5317 * dynl.c (print_dynl_obj): Indicate whether the dynamic object has
5318 been unlinked.
5319
5320 Mon Apr 28 06:10:14 1997 Gary Houston <ghouston@actrix.gen.nz>
5321
5322 * async.c (scm_sys_tick_async_thunk): commented out. I'm not
5323 sure how this was supposed to work.
5324 (scm_async_click): don't send SCM_TICK_SIGNAL.
5325 (scm_init_async): don't initialize %tick-thunk.
5326
5327 * the following change doesn't affect the Scheme interface:
5328 gc-thunk is called at the end of garbage collection. however it's
5329 no longer implemented by pretending it's a signal.
5330
5331 * gc.c (scm_gc_end): don't call scm_take_signal. instead mark the
5332 system async corresponding to scm_gc_thunk.
5333 * async.h: declare scm_gc_async.
5334 * async.c (scm_sys_gc_async_thunk): apply the thunk named by
5335 gc-thunk directly, instead of going through a signal handler.
5336 (scm_gc_async): new variable, points to the GC system-async.
5337 (scm_init_async): save the GC async as scm_gc_async instead
5338 of using system_signal_asyncs.
5339 (scm_gc_vcell): new variable, stores the gc-thunk vcell.
5340
5341 Mon Apr 28 19:14:44 1997 Jim Blandy <jimb@floss.cyclic.com>
5342
5343 * Makefile.am (libpath.h, cpp_err_symbols.c, cpp_sig_symbols.c):
5344 Don't screw up if we're interrupted.
5345 * Makefile.in: Regeneradet.
5346
5347 Sun Apr 27 17:57:15 1997 Jim Blandy <jimb@floss.cyclic.com>
5348
5349 * aclocal.m4: Removed; unnecessary, given changes of Apr 24.
5350
5351 * Makefile.am (modincludedir): Use "ice-9" instead of "@module@";
5352 we're not using AM_INIT_GUILE_MODULE any more.
5353 * Makefile.in: Reneregated.
5354
5355 Thu Apr 24 00:41:08 1997 Jim Blandy <jimb@floss.cyclic.com>
5356
5357 Functions for finding variable bindings, grace à Tim Pierce.
5358 * gh_data.c (gh_lookup, gh_module_lookup): New functions.
5359 * gh.h (gh_lookup, gh_module_lookup): New prototypes.
5360
5361 Get 'make dist' to work again.
5362 * Makefile.am (EXTRA_DIST): Remove PLUGIN files.
5363 * Makefile.in: Regenerated, like a surry without a fringe on top.
5364
5365 Changes for reduced Guile distribution: one configure script,
5366 no plugins.
5367 * configure.in, configure: Removed.
5368 * acconfig.h, acinclude.m4: Moved to parent directory, where the
5369 real configure script lives.
5370 * Makefile.in, scmconfig.h.in: Regenerated.
5371
5372 * init.c: #include "script.h", to get prototype for script.c's
5373 init function.
5374
5375 Wed Apr 23 21:25:39 1997 Jim Blandy <jimb@floss.cyclic.com>
5376
5377 * gh_data.c (gh_scm2newstr, gh_symbol2newstr): Use
5378 scm_must_malloc, not raw malloc.
5379
5380 * script.c (scm_compile_shell_switches): Dyke out debugging output
5381 code.
5382
5383 Mon Apr 21 05:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
5384
5385 * eq.c (scm_equal_p): use "SCM_TYP7SD", not "SCM (TYP7SD".
5386
5387 * stime.c: include both <sys/times.h> and <sys/timeb.h> if the
5388 system has them. Hope this is safe. Previously
5389 sys/timeb.h was included if HAVE_FTIME was defined or if
5390 HAVE_SYS_TIMEB_H was defined but HAVE_SYS_TIMES_H was not,
5391 but IRIX iris 5.3 apparently has ftime but not sys/timeb.h.
5392
5393 * ioext.c (scm_setfileno): add missing third argument to
5394 scm_misc_error call.
5395
5396 Sun Apr 20 15:09:31 1997 Jim Blandy <jimb@totoro.cyclic.com>
5397
5398 * eq.c (scm_equal_p): Correctly compare strings of different
5399 varieties. (Thanks to Tim Pierce.)
5400
5401 Sat Apr 19 03:59:02 1997 Jim Blandy <jimb@floss.cyclic.com>
5402
5403 * read.c (skip_scsh_block_comment): SCSH says the !# that ends a
5404 #! block comment must occur on a line all by itself.
5405
5406 Move most of the guts of shell command processing into libguile,
5407 so guile.c can be very small (and eventuallly auto-generated. (I
5408 mean, generated mechanically, not self-generated. Hmm.))
5409 * guile.c, script.c, script.h: New source files.
5410 * init.c (scm_boot_guile_1): Call scm_init_script.
5411 * libguile.h: #include "script.h".
5412 * Makefile.am (bin_PROGRAMS, guile_SOURCES, guile_LDADD): New
5413 targets, for new executable.
5414 (libguile_la_SOURCES): Mention script.c.
5415 (modinclude_HEADERS): Add script.h.
5416 * configure.in: Always check for -lm, -lsocket, -lnsl, whether or
5417 not dynamic linking is enabled. This is because we're generating
5418 executables now. Move CY_AC_WITH_THREADS call after those, so the
5419 values of cy_cv_threads_libs captures the libs chosen above.
5420 * Makefile.in, configure, aclocal.m4: Regenerated.
5421
5422 * Makefile.am (EXTRA_DIST): Don't distribute gscm.c or gscm.h.
5423 We don't maintain this interface any more, and it just confuses
5424 people.
5425
5426 * alloca.c: #include <scmconfig.h>, not <config.h>.
5427 * Makefile.am (EXTRA_libguile_la_SOURCES): Mention alloca.c, so
5428 it'll get included in disties.
5429
5430 Thu Apr 17 17:45:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
5431
5432 * gscm.c, gscm.h: These aren't supported any more, and shouldn't
5433 be distributed, because they confuse people.
5434 * Makefile.am (EXTRA_DIST): Remove gscm.c, gscm.h.
5435
5436 Sat Apr 19 11:56:18 1997 Tim Pierce <twp@twp.tezcat.com>
5437
5438 * configure.in: check for presence of gethostent (not present on
5439 OpenBSD by default).
5440 * net_db.c (scm_gethost): Check HAVE_GETHOSTENT.
5441 * configure, scmconfig.h.in: Regenerated.
5442
5443 Wed Apr 16 17:52:38 1997 Jim Blandy <jimb@floss.cyclic.com>
5444
5445 * backtrace.c (scm_backtrace): Split message string across
5446 newlines properly. GCC is more tolerant of this than other
5447 compilers.
5448
5449 Mon Apr 14 20:20:14 1997 Jim Blandy <jimb@floss.cyclic.com>
5450
5451 Merge threads directory into libguile.
5452 * coop-defs.h, coop-threads.c, coop-threads.h, coop.c, threads.c,
5453 threads.h: New source files.
5454 * Makefile.am (EXTRA_libguile_la_SOURCES): Add threads.c.
5455 (noinst_HEADERS): Add coop-threads.c, coop-threads.h, coop.c
5456 here; see comment.
5457 (modinclude_HEADERS): Add threads.h, coop-defs.h.
5458 (EXTRA_DIST): Add fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
5459 coop-threads.c.cygnus, coop-threads.h.cygnus.
5460 * configure.in: If we're using threads, include threads.o in
5461 LIBOBJS.
5462 * _scm.h, libguile.h: threads.h lives in this directory now.
5463 * fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
5464 coop-threads.c.cygnus, coop-threads.h.cygnus: New files, not
5465 currently used, but brought along for information's sake.
5466 * ChangeLog-threads: log from old 'threads' directory.
5467 * Makefile.in, configure: Rebuilt.
5468
5469 Mon Apr 14 20:15:29 1997 Jim Blandy <jimb@totoro.cyclic.com>
5470
5471 * stime.c (scm_mktime): #ifndef HAVE_TM_ZONE, Use lt.tm_zone, not
5472 lt->tm_zone.
5473
5474 Mon Apr 14 01:32:57 1997 Jim Blandy <jimb@floss.cyclic.com>
5475
5476 * gh_init.c (gh_standard_handler): Return SCM_BOOL_F, not garbage.
5477
5478 Merge GH interface library into libguile.
5479 * gh.h, gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c,
5480 gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c: New files.
5481 * Makefile.am (libguile_la_SOURCES): Add gh_data.c, gh_eval.c,
5482 gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c. Move
5483 _scm.h to ...
5484 (EXTRA_libguile_la_SOURCES): ... here.
5485 (pkginclude_HEADERS): Add variable, to get gh.h installed.
5486 (THREAD_LIBS, check_ldadd, check_PROGRAMS, gh_test_c_SOURCES,
5487 gh_test_c_LDADD, gh_test_repl_SOURCES, gh_test_repl_LDADD):
5488 New variables, describing how to build the gh test programs.
5489 * configure.in: Check for -lm, -lsocket, -lnsl; we need this to
5490 build the test programs, and we probably should have been linking
5491 libguile.la against them all along, to support AIX shared libs.
5492 Add cflags for threads to CFLAGS; add libs for threads to new
5493 variable THREAD_LIBS, used in Makefile.am.
5494 * ChangeLog-gh: log from old `gh' subdirectory.
5495 * Makefile.in, configure, scmconfig.h.in: Rebuilt.
5496
5497 Sun Apr 13 23:03:55 1997 Jim Blandy <jimb@floss.cyclic.com>
5498
5499 * acconfig.h: Undo change of Apr 9; including the definition of
5500 PACKAGE in the guile headers conflicts with applications' own
5501 definitions.
5502 * scmconfig.h.in: Regenerated.
5503
5504 Fri Apr 11 14:12:13 1997 Jim Blandy <jimb@floss.cyclic.com>
5505
5506 * filesys.c (scm_fcntl): New function from Roland McGrath.
5507 (scm_init_filesys): New symbols for use with fcntl.
5508 * filesys.h: Added prototype.
5509
5510 * eval.c (SCM_APPLY): Set debug apply frame argument list correctly
5511 when PROC is receiving no arguments.
5512
5513 Fri Apr 11 19:39:32 1997 Jim Blandy <jimb@totoro.cyclic.com>
5514
5515 * filesys.c (S_ISSOCK): Define this if it's missing, but we do
5516 have S_IFSOCK. This is the case under Ultrix.
5517
5518 * posix.c (scm_status_exit_val, scm_status_exit_val,
5519 scm_status_term_sig, scm_status_stop_sig): Modified to work with
5520 Ultrix versions of WIFSTOPPED, etc., which assume that their
5521 arguments are lvalues (hmm).
5522
5523 Thu Apr 10 15:10:07 1997 Jim Blandy <jimb@floss.cyclic.com>
5524
5525 * eval.c: Doc fixes.
5526
5527 * throw.c: Doc fixes; rearranged.
5528
5529 * putenv.c: #include "libguile/scmconfig.h", not <config.h>.
5530
5531 Wed Apr 9 18:01:20 1997 Jim Blandy <jimb@floss.cyclic.com>
5532
5533 * acconfig.h: Added entry for PACKAGE.
5534 * scmconfig.h.in: Regenerated.
5535
5536 Changes to work with automake-1.1n, which has better libtool support.
5537 * Makefile.am: Use lib_LTLIBRARIES instead of lib_PROGRAMS.
5538 Use libguile_la_LIBADD instead of libguile_la_LDADD. (What's the
5539 difference here?)
5540 (libguile_la_SOURCES, modinclude_HEADERS, EXTRA_DIST): Format for
5541 readability.
5542 * Makefile.in: Rebuild.
5543
5544 Wed Apr 9 09:08:54 1997 Gary Houston <ghouston@actrix.gen.nz>
5545
5546 * stime.c (scm_mktime): take an optional zone argument.
5547 (scm_localtime): check putenv return value.
5548 (scm_strftime, scm_strptime): moved from posix.c. move #include
5549 sequences.h too.
5550 stime.h, posix.h: update prototypes.
5551 (bdtime2c, setzone, restorezone): new static procedures.
5552 (scm_mktime, scm_strftime): use them.
5553 (scm_strftime): don't call mktime before strftime. Use
5554 filltime for return value.
5555 (filltime): convert NULL zname to #f.
5556 (scm_strptime): return a count of characters consumed, not
5557 the remaining string.
5558
5559 Sun Apr 6 05:44:11 1997 Gary Houston <ghouston@actrix.gen.nz>
5560
5561 * stime.c (scm_localtime): check HAVE_TM_ZONE and HAVE_TZNAME.
5562 (scm_mktime): likewise.
5563 Declare *tzname[].
5564 Uncomment localtime and mktime.
5565
5566 * configure.in: add AC_STRUCT_TIMEZONE.
5567
5568 Sat Apr 5 23:56:40 1997 Gary Houston <ghouston@actrix.gen.nz>
5569
5570 * stime.c (scm_init_stime): don't define ticks/sec.
5571 (scm_gettimeofday): renamed from scm_time_plus_ticks (avoids multiple
5572 return value problem and is still portable.)
5573
5574 Sat Apr 5 17:59:24 1997 Jim Blandy <jimb@floss.cyclic.com>
5575
5576 * cpp_err_symbols.in: Renamed from cpp_err_symbols, to avoid
5577 make's implicit cpp_err_symbols: cpp_err_symbols.c rule.
5578 * cpp_sig_symbols.in: Renamed from cpp_sig_symbols.
5579 * Makefile.am (check_errnos, check_signals, cpp_sig_symbols.c,
5580 cpp_err_symbols.c): Corresponding changes.
5581 * Makefile.in: Regenerated.
5582
5583 Sat Apr 5 02:39:02 1997 Gary Houston <ghouston@actrix.gen.nz>
5584
5585 * posix.c (scm_putenv): don't check HAVE_PUTENV.
5586 * Makefile.am (EXTRA_libguile_la_SOURCES): add putenv.c.
5587 * configure.in: move putenv from AC_CHECK_FUNCS to AC_REPLACE_FUNCS.
5588 * putenv.c: new file, from sh-utils 1.12.
5589
5590 * posix.c (scm_environ): use malloc in place of scm_must_malloc
5591 since allocation isn't for Scheme objects.
5592 (scm_putenv): copy strings before placing in the environment.
5593
5594 * stime.c (scm_current_time): throw an error if time returns -1,
5595 instead of returning #f.
5596 (scm_get_internal_real_time, scm_get_internal_real_time): use
5597 scm_long2num for return value instead of SCM_MAKINUM.
5598
5599 * stime.h: prototypes updated.
5600
5601 * stime.c (scm_time_in_msec): apparently unused, deleted.
5602
5603 Fri Apr 4 08:53:41 1997 Gary Houston <ghouston@actrix.gen.nz>
5604
5605 * configure.in: check for gettimeofday.
5606
5607 * stime.c (scm_time_plus_ticks): new procedure, an scsh interface
5608 which may be more usefully portable than a gettimeofday interface.
5609
5610 Wed Apr 2 17:11:39 1997 Jim Blandy <jimb@totoro.cyclic.com>
5611
5612 * Makefile.am (EXTRA_DIST): It's cpp_err_symbols, not
5613 cpp_err_signals.
5614 * Makefile.in: Regenerated.
5615
5616 Mon Mar 31 03:22:37 1997 Gary Houston <ghouston@actrix.gen.nz>
5617
5618 * stime.c (filltime): recovered static procedure.
5619 (scm_localtime, scm_gmtime, scm_mktime, scm_tzset): recovered from
5620 an earlier Guile.
5621
5622 * posix.h: add prototype for scm_close_pipe, remove prototypes for
5623 scm_open_input_pipe, scm_open_output_pipe, change scm_mknod prototype.
5624
5625 * posix.c (scm_mknod): split the mode argument into type and perms
5626 arguments, like the extra fields returned by stat.
5627
5628 * fports.c (scm_pipob): set the close, free and print procedures.
5629 (scm_close_pipe): new procedure.
5630
5631 * posix.c (scm_open_input_pipe, scm_open_output_pipe): deleted,
5632 define them in boot-9.scm
5633
5634 Wed Mar 26 04:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
5635
5636 * ioext.c (scm_setfileno): throw a runtime error if SET_FILE_FD_FIELD
5637 wan't defined. Don't include fd.h.
5638
5639 * Previously fd.h was regenerated whenever configure was run,
5640 forcing a couple of files to be recompiled.
5641
5642 * fd.h.in: deleted, SET_FILE_FD_FIELD moved to ioext.c.
5643 * configure.in: AC_DEFINE FD_SETTER instead of HAVE_FD_SETTER.
5644 Check for _fileno as well as _file.
5645 Don't output fd.h.
5646 * ioext.c: don't fd.h.
5647 * acconfig.h: remove duplicate HAVE_FD_SETTER and change the
5648 other to FD_SETTER.
5649
5650 * Change the stratigy for getting information about errno
5651 (and now signal number) values, e.g., ENOSYS, SIGKILL. Instead of
5652 generating lists of symbols during the build process, which will
5653 not always work, include comprehensive lists in the distribution.
5654 To help keep the lists up to date, the "check_signals" and
5655 "check_errnos" make targets can be used.
5656
5657 * configure.in: don't check for a command to extract errno codes.
5658 * Makefile.am: update file lists, remove errnos.list and errnos.c
5659 targets, add cpp_err_symbols.c, cpp_sig_symbols.c, check_signals,
5660 check_errnos targets.
5661 (CLEANFILES): remove errnos.c and errnos.list, add
5662 cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new
5663 cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
5664 * errnos.default: deleted.
5665 * cpp_signal.c: new file.
5666 * cpp_errno.c: renamed from errnos_get.c.
5667 * cpp_err_symbols, cpp_sig_symbols: new files.
5668 * cpp_cnvt.awk: renamed from errnos_cnvt_awk.
5669 * error.c (scm_init_error): #include cpp_err_symbols instead of
5670 errnos.c.
5671 * posix.c (scm_init_posix): don't intern signal symbols. #include
5672 cpp_sig_symbols.c.
5673
5674 Tue Mar 25 04:51:10 1997 Gary Houston <ghouston@actrix.gen.nz>
5675
5676 * strop.c (scm_i_index): allow the lower bound to be equal to the
5677 length of the string, so a null string doesn't always give an error.
5678
5679 * posix.h: new prototypes.
5680 * posix.c (scm_status_exit_val, scm_status_term_sig,
5681 scm_status_stop_sig): new functions, as in scsh. They break down
5682 process status values as returned by waitpid.
5683
5684 Sat Mar 22 18:16:29 1997 Gary Houston <ghouston@actrix.gen.nz>
5685
5686 * net_db.c (scm_gethost): don't check HAVE_GETHOSTENT, since
5687 configure doesn't know about it.
5688
5689 Fri Mar 21 23:49:28 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5690
5691 * snarf.h, backtrace.c: Name change SCM_GLOBAL --> SCM_VCELL.
5692
5693 * snarf.h: Added new macros SCM_GLOBAL_SYMBOL and SCM_GLOBAL_VCELL
5694 which defines C variables with global linkage.
5695
5696 Mon Mar 17 05:57:11 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5697
5698 * snarf.h (SCM_PROC1): Bugfix: Use (void) rather than (...) for
5699 zero arg subrs.
5700
5701 Sun Mar 16 11:43:49 1997 Mikael Djurfeldt <mdj@floss.cyclic.com>
5702
5703 * eval.c (safe_setjmp): Temporarily use old setjmp until someone
5704 has time to check why this doesn't work well with continuations.
5705
5706 Sun Mar 16 05:09:55 1997 Jim Blandy <jimb@totoro.cyclic.com>
5707
5708 * Fix shell syntax error; some shells won't tolerate
5709 multiple "fi" statements on a single line. (Thanks to Fred Fish.)
5710
5711 Sat Mar 15 01:11:40 1997 Gary Houston <ghouston@actrix.gen.nz>
5712
5713 * posix.c (scm_uname): throw an error if uname fails instead
5714 of returning errno.
5715
5716 * error.h (scm_errno, scm_perror): obsolete prototypes removed.
5717
5718 * error.c (err_head, scm_errno, scm_perror): obsolete procedures
5719 removed.
5720
5721 * async.c (scm_ints_disabled): definition moved from error.c.
5722
5723 Sat Mar 15 00:06:08 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5724
5725 * acconfig.h: Removed PACKAGE.
5726
5727 * scmconfig.h.in: Regenerated.
5728
5729 * snarf.h: g++ says it's non-portable not to specify the first
5730 argument in a varargs declaration. I introduced the first
5731 argument by using preprocessor conditionals.
5732
5733 Thu Mar 13 21:28:25 1997 Gary Houston <ghouston@actrix.gen.nz>
5734
5735 * ioext.c (scm_read_delimited_x): use RO string macros for delims.
5736 (scm_freopen): use RO string macros for filename and modes.
5737 (scm_duplicate_port, scm_fdopen): use RO string macros for modes.
5738
5739 * posix.c (scm_getgrgid): simplify conversion of name to C string.
5740 (scm_mknod): use RO string macros for path.
5741
5742 * socket.c (scm_fill_sockaddr, scm_send, scm_sendto):
5743 use SCM_ROSTRINGP, SCM_ROCHARS, SCM_ROLENGTH.
5744
5745 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
5746 use SCM_ROSTRINGP and SCM_ROCHARS.
5747
5748 Thu Mar 13 18:31:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5749
5750 * unif.c (scm_array_set_x): Cast ICHR (obj) to char if storing in
5751 a scm_tc7_byvect.
5752
5753 * ramap.c (scm_ra_matchp, scm_array_fill_int, racp,
5754 scm_array_index_map_x, raeql_1, scm_array_equal_p): Completed
5755 support for byte vectors.
5756
5757 * print.c (scm_iprin1): Limit number of vector elements printed
5758 according to pstate->length.
5759
5760 Thu Mar 13 00:12:35 1997 Gary Houston <ghouston@actrix.gen.nz>
5761
5762 * backtrace.c (scm_display_error_message): don't segv if message
5763 is an immediate.
5764
5765 * error.h: prototype for scm_error_scm.
5766
5767 * error.c (scm_error_scm): new procedure, reimplements scm-error
5768 in C and uses scm_error.
5769
5770 Tue Mar 11 03:51:00 1997 Gary Houston <ghouston@actrix.gen.nz>
5771
5772 * read.c (scm_read_hash_extend): make scm_read_hash_procedures a
5773 pointer to the Scheme variable read-hash-procedures and intern it
5774 in scm_init_read. Modify scm_read_hash_extend and
5775 scm_get_hash_procedure to use the pointer.
5776
5777 Mon Mar 10 06:28:54 1997 Gary Houston <ghouston@actrix.gen.nz>
5778
5779 * read.h (SCM_N_READ_OPTIONS): increase SCM_N_READ_OPTIONS to 4.
5780 (SCM_KEYWORD_STYLE): defined.
5781
5782 * read.c (scm_read_opts): add a keywords option. This isn't a
5783 boolean option, in case someone wants to add support for DSSSL
5784 keywords too.
5785 Setup scm_keyword_prefix symbol.
5786 (scm_lreadr): Only process keywords if SCM_KEYWORD_STYLE is
5787 set to 'prefix.
5788 I've left keyword support disabled by default, since it doesn't
5789 seem to break the module system and it gives R4RS standard behaviour.
5790 It can be reactivated with (read-set! keywords 'prefix).
5791
5792 Sun Mar 9 14:14:39 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5793
5794 * arbiters.c (scm_make_arbiter): Bugfix: Must SCM_DEFER_INTS
5795 before constructing arbiter.
5796
5797 * eval.c (scm_m_define): Bugfix: Check that the object is a
5798 closure before setting the procedure property!
5799
5800 * ports.h: Removed prototype for scm_ungetc_char_ready_p.
5801
5802 * ports.c: Removed `ungetc-char-ready?'.
5803
5804 Sat Mar 8 00:27:05 1997 Gary Houston <ghouston@actrix.gen.nz>
5805
5806 * read.c (scm_init_read): intitialise scm_read_hash_procedures
5807 (idea from Mikael: make it a pair so scm_permanent object only
5808 called once.)
5809 (scm_read_hash_extend): don't call scm_permanent_object.
5810 (ideas from Mikael): if chr is already in the list, replace its
5811 procedure instead of appending it again. If proc is #f, remove
5812 it from the list.
5813 (scm_get_hash_procedure): take CDR of scm_read_hash_procedures.
5814
5815 * strports.c (scm_read_0str, scm_eval_0str): update scm_read usage.
5816
5817 * gdbint.c (gdb_read): update scm_lreadr usage.
5818
5819 * load.h: update prototypes.
5820
5821 * load.c (scm_primitive_load, scm_read_and_eval_x,
5822 scm_primitive_load_path): remove case_insensitive_p, sharp arguments.
5823
5824 * read.h: add prototype for scm_read_hash_extend. Change args for
5825 other prototypes.
5826
5827 * read.c (scm_read_hash_procedures): new variable.
5828 (scm_read_hash_extend): new procedure.
5829 (scm_get_hash_procedure): new procedure.
5830 (scm_lreadr): use scm_get_hash_procedure instead of an argument
5831 for extended # processing.
5832 (scm_read, scm_lreadr, scm_lreadrecparen, scm_lreadparen,
5833 scm_read_token): remove case_i, sharp arguments. Change callers.
5834
5835 Fri Mar 7 08:58:21 1997 Gary Houston <ghouston@actrix.gen.nz>
5836
5837 * read.h (SCM_N_READ_OPTIONS): increase to 3.
5838 (SCM_CASE_INSENSITIVE_P): define.
5839
5840 * read.c: add case-insensitive option to scm_read_opts.
5841 (scm_read_token): use SCM_CASE_INSENSITIVE_P instead of an argument
5842 to determine whether to convert symbol case.
5843 (default_case_i): definition removed.
5844 * read.c (scm_read_token): if case_i, downcase ic before doing
5845 anything with it.
5846
5847 Sat Mar 8 03:49:03 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5848
5849 * configure.in: Added configuration option `guile-debug'.
5850 Configure with --enable-guile-debug if you want a bunch of extra
5851 functions used for debugging when developing Guile.
5852
5853 * acconfig.h: Added new preprocessor symbol GUILE_DEBUG.
5854
5855 * procs.c (make-cclo): New undocumented debugging procedure: Make
5856 compiled closure with internal procedure PROC and length LENGTH.
5857 Only compiled if GUILE_DEBUG is defined.
5858
5859 * debug.c: Only include `debug-hang' if GUILE_DEBUG is defined.
5860
5861 * print.c: Put #ifdef GUILE_DEBUG around `current-pstate'.
5862
5863 * ports.c: Changed preprocessor symbol DEBUG --> GUILE_DEBUG.
5864
5865 * eval.c (SCM_CEVAL): Added code sections for handling of rpsubrs
5866 with 3 or more args internally to the evaluator.
5867
5868 Fri Mar 7 19:38:18 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5869
5870 * eval.c (SCM_CEVAL): Added code sections for handling of asubrs
5871 with 3 or more args internally to the evaluator. This is mainly
5872 because we don't want to pass entry and exit points of the
5873 debug support twice, but it also seems to increase the speed of
5874 the evaluator for such calls (e. g. (+ 1 2 3)).
5875
5876 * backtrace.c (scm_display_application): New procedure:
5877 display-application; Set fancy printing parameters individually
5878 for different types of display (backtrace, error, application).
5879 (These should of course be customizable!)
5880
5881 * debug.h (SCM_RESET_DEBUG_MODE): Bugfix: The old code didn't
5882 clear the CHECK-flags.
5883
5884 Thu Mar 6 00:53:02 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5885
5886 * tags.h, eval.c (iqq): Fixes to comments about SCM_ECONSP.
5887
5888 Wed Mar 5 23:31:21 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5889
5890 * tags.h (SCM_ECONSP, SCM_NECONSP): Bugfix: Discriminate structs
5891 from pairs with a GLOC in the car.
5892
5893 * symbols.c (msymbolize): Bugfix: Also initialize SCM_SYMBOL_HASH,
5894 otherwise `symbol-hash' will behave badly.
5895 (scm_symbol_hash): Bugfix: Must msymbolize if tc7_ssymbol, othwise
5896 we get segmentation fault!
5897
5898 * symbols.c: Added #include "weaks.h". New functions:
5899 `builtin-bindings' and `builtin-weak-bindings'. (These will be
5900 moved to an extraneous library when we split libguile.)
5901
5902 Tue Mar 4 19:50:07 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5903
5904 * filesys.c (scm_stat): stat now takes fport arguments too as
5905 documented in the manual.
5906
5907 Mon Mar 3 07:11:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5908
5909 * debug.c (scm_single_step): Bugfix: Call continuation with
5910 scm_call_continuation instead of throwing to it.
5911
5912 Mon Mar 3 09:07:56 1997 Gary Houston <ghouston@actrix.gen.nz>
5913
5914 * ports.c (scm_char_ready_p): bug fix: in SCM_PROC char-ready's
5915 argument wasn't declared to be optional.
5916
5917 Sun Mar 2 16:34:40 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5918
5919 * stime.c (scm_init_stime): Add feature "current-time".
5920
5921 Sun Mar 2 06:37:31 1997 Gary Houston <ghouston@actrix.gen.nz>
5922
5923 * throw.h: prototype for scm_exit_status.
5924 * throw.c (scm_handle_by_message): if a 'quit is caught, use its
5925 args to derive an exit status. Allows (quit) to work from a
5926 script.
5927 (scm_exit_status): new function.
5928 #include "eq.h".
5929
5930 Sat Mar 1 00:09:15 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5931
5932 * eval.c (scm_deval): Removed some old code.
5933 (ENTER_APPLY): Bugfix: Reset apply-frame trap on trap as is done
5934 with the others.
5935 (ENTER_APPLY, scm_deval): Reset trace flag on apply-frame and
5936 exit-frame traps.
5937
5938 * symbols.c (msymbolize): Bugfix: Must initialize property list to
5939 SCM_EOL.
5940
5941 * procs.c: Introduce the existent C function scm_thunk_p at the
5942 Scheme level as well.
5943
5944 Wed Feb 26 12:53:58 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5945
5946 * symbols.c, symbols.h (scm_symbol_value0): New function. Can be
5947 used from C to easily lookup the value of a symbol in the current
5948 module.
5949
5950 Tue Feb 25 00:14:10 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5951
5952 * unif.c (scm_init_unif): Added #include "unif.x". (There are two
5953 scm_init_unif in this file. This will also fix a previous problem
5954 with guile-snarf.)
5955
5956 * configure.in: Added AM_MAINTAINER_MODE
5957
5958 Fri Feb 21 23:07:26 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
5959
5960 * gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to
5961 avoid warnings.
5962
5963 Fri Feb 21 18:00:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
5964
5965 * Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
5966 source files that are not always included in libguile but should
5967 have their dependencies calculated by automake. This variable is
5968 recognized by automake, no further magic is needed.
5969 (libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@. Libtool wants
5970 to deal exclusively with *.lo files, as it seems. The *.o files
5971 are built automatically when the corresponding *.lo file gets
5972 built.
5973
5974 Wed Feb 19 14:04:23 1997 Jim Blandy <jimb@floss.cyclic.com>
5975
5976 * list.h (scm_list_cdr_ref): Delete prototype; function no longer
5977 exists.
5978
5979 Thu Feb 13 21:44:07 1997 Gary Houston <ghouston@actrix.gen.nz>
5980
5981 * unif.c (scm_array_set_x): minor change to argument error checking.
5982
5983 Tue Feb 11 18:19:47 1997 Jim Blandy <jimb@floss.cyclic.com>
5984
5985 * Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
5986 inet_aton.c, srcprop.c, stacks.c, and strerror.c from this list.
5987 They should only be included in the library at configure.in's
5988 discretion.
5989 (libguile_la_LDADD): Include the appropriate .lo files here.
5990 (libguile_la_DEPENDENCIES): List the corresponding .o files here,
5991 so we know when to build them (and their .lo bretheren).
5992 * configure.in (LIBLOBJS): New substituted variable. We let
5993 configure decide which .o files to include in LIBOBJS, and then
5994 put the corresponding list of .lo files in LIBLOBJS. The latter
5995 is what we pass to libtool.
5996 * Makefile.in, configure: regenerated.
5997
5998 Mon Feb 10 00:08:08 1997 Mikael Djurfeldt <mdj@kenneth>
5999
6000 * symbols.c (scm_sysintern0): New function. Contains the core of
6001 old scm_sysintern but doesn't take a second value argument.
6002 (scm_sysintern): Now uses scm_sysintern0.
6003 (scm_sysintern_no_module_lookup): Renamed to
6004 scm_sysintern0_no_module_lookup and doesn't take a second value
6005 argument any longer.
6006
6007 * symbols.h (scm_sysintern0: Added declaration.
6008
6009 * options.c (scm_init_opts): Use scm_sysintern0 instead of
6010 scm_sysintern when interning option keys. Otherwise we risk
6011 destroying the values of already interned variables.
6012
6013 * symbols.c (scm_sym2vcell): Bugfix: Treat definedp as
6014 scheme-level boolean (use SCM_NFALSEP).
6015
6016 * backtrace.c (scm_init_backtrace): Make Scheme-level variable
6017 `the-last-stack'.
6018 (scm_backtrace): New function. (C version of old function from
6019 boot-9.scm) Motivation: Make it possible to display backtraces
6020 without depending on boot-9.scm. (I'm uncertain if this
6021 motivation is good enough...)
6022
6023 * root.h (scm_root_state): Add member the_last_stack_var.
6024 (scm_the_stack_var): Defined to scm_root->the_last_stack_var.
6025
6026 * root.c (mark_root): Mark scm_the_last_stack_var.
6027
6028 * init.c (scm_start_stack): Initialize scm_the_last_stack_var to
6029 SCM_BOOL_F.
6030
6031 Sun Feb 9 18:04:41 1997 Mikael Djurfeldt <mdj@kenneth>
6032
6033 * throw.c (mark_lazy_catch, free_lazy_catch): Removed.
6034 1. mark_lazy_catch didn't mark the smob.
6035 2. Both functions above have standard variants:
6036 (lazy_catch_funs): Changed mark_lazy_catch --> scm_mark0,
6037 free_lazy_catch --> scm_free0.
6038
6039 Fri Feb 7 17:30:26 1997 Jim Blandy <jimb@floss.cyclic.com>
6040
6041 * throw.c (scm_internal_lazy_catch): New function.
6042 (scm_lazy_catch): Rewritten to use it.
6043 (scm_ithrow): Handle the new lazy catch representation.
6044 Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
6045 that doesn't have a jmpbuf is a lazy catch clause.
6046 (tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
6047 free_lazy_catch, print_lazy_catch, lazy_catch_funs,
6048 make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
6049 smob.
6050 (scm_init_throw): Register the new lazy-catch smob type.
6051 * throw.h (scm_internal_lazy_catch): decl for new function.
6052
6053 * throw.c (scm_internal_catch): Doc fixes.
6054
6055 * alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
6056 configure.in. Including this might cause problems if applications
6057 that link against libguile include their own copies of alloca, but
6058 if they're using autoconf, they should be adding libguile to LIBS
6059 before calling AC_FUNC_ALLOCA anyway, in which case they'll find
6060 the copy in libguile, and things will be okay. (I think.)
6061
6062 Thu Feb 6 03:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
6063
6064 * strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
6065 unif.c.
6066 strop.h: move prototypes too.
6067
6068 Wed Feb 5 08:33:00 1997 Gary Houston <ghouston@actrix.gen.nz>
6069
6070 * posix.c (scm_init_posix): don't intern EINTR since it's now done
6071 elsewhere.
6072
6073 * ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR
6074 etc. I deleted them from filesys.c long ago, but didn't
6075 notice they were here too (although ineffective since
6076 sys/stat.h wasn't included).
6077
6078 Tue Feb 4 18:17:50 1997 Tom Tromey <tromey@cygnus.com>
6079
6080 * eval.c: Don't define alloca in GCC case. gcc will automatically
6081 use __builtin_alloca if appropriate.
6082
6083 Tue Feb 4 16:57:40 1997 Jim Blandy <jimb@floss.cyclic.com>
6084
6085 * eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
6086 (SCM_CEVAL, SCM_APPLY): Call it, instead of setjmp, to make sure
6087 that values of automatic variables are preserved. See comments
6088 for safe_setjmp for details.
6089
6090 Change from Thomas Morgan:
6091 * variable.c: Include eq.h.
6092 (var_equal): New function.
6093 (variable_smob): Use var_equal as the discriminator for variables.
6094
6095 * throw.c (s_throw): Remove extraneous declaration.
6096
6097 * configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
6098 * eval.c: Add necessary CPP cruft to support that.
6099 * configure, Makefile.in, scmconfig.h.in: regenerated.
6100
6101 Change from Thomas Morgan:
6102 * procprop.c (scm_procedure_properties): Convert the Scheme
6103 boolean returned by scm_procedure_p into a C boolean before using
6104 it as a condition for SCM_ASSERT.
6105 (scm_procedure_property): Likewise.
6106
6107 * simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
6108 indications of Unixness.
6109 * stime.c: Same.
6110
6111 Tue Feb 4 05:07:35 1997 Gary Houston <ghouston@actrix.gen.nz>
6112
6113 * net_db.c (scm_lnaof): change scheme name from lnaof to inet-lnaof.
6114
6115 Mon Feb 3 06:12:37 1997 Gary Houston <ghouston@actrix.gen.nz>
6116
6117 * read.c (scm_lreadr): use scm_misc_error to improve one of the
6118 "unknown # object" error messages.
6119
6120 * strop.c (scm_i_index, scm_i_rindex): combine into one procedure
6121 (scm_i_index) and declare it static. Add a 'direction' argument
6122 to indicate what way the search should go.
6123 (scm_i_index): throw out-of-range error instead of wrong-type-arg
6124 if indices are bad.
6125 (scm_string_index, scm_string_rindex): adjust usage of scm_i_index.
6126 strop.h: remove scm_i_index, scm_i_rindex prototypes.
6127
6128 Fri Jan 31 04:33:11 1997 Gary Houston <ghouston@actrix.gen.nz>
6129
6130 * ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.
6131
6132 * posix.c (scm_fork): Scheme name changed from fork to primitive-fork,
6133 to avoid clash with various scsh forks.
6134
6135 Thu Jan 30 20:14:09 1997 Mikael Djurfeldt <mdj@syk-0606.pdc.kth.se>
6136
6137 The following two changes (ramap.c, throw.c) are motivated by the
6138 apparent unportability of forward declarations of static arrays of
6139 the form `static foo bar[];'.
6140
6141 * ramap.c (scm_array_fill_x): Moved above scm_array_fill_int.
6142 (ra_rpsubrs, ra_asubrs): Moved to the top of array code.
6143
6144 * throw.c (scm_throw): Moved above scm_ithrow.
6145
6146 * options.h: Removed the extern declarations of scm_yes_sym and
6147 scm_no_sym since these are static.
6148
6149 Fri Jan 24 06:16:32 1997 Gary Houston <ghouston@actrix.gen.nz>
6150
6151 * ports.c: add SCM_PROC declarations for pt-size and pt-member.
6152
6153 * Makefile.am: remove AWK=@AWK@.
6154 Add a rule for generating errnos.list.
6155 (CLEANFILES): put errnos.list here instead of in DISTCLEANFILES.
6156
6157 * configure.in: add AC_SUBST(AWK) and AC_SUBST(ERRNO_EXTRACT).
6158 don't extract errnos, just set a variable (avoids the
6159 need to recompile error.c just because configure is run.)
6160
6161 * unif.h: update prototypes.
6162 * unif.c (scm_uniform_array_read,write): change the offset and
6163 length arguments to start and end, for consistency.
6164
6165 * __scm.h: uncomment SCM_ARG6 and SCM_ARG7, I needed SCM_ARG6.
6166
6167 * ioext.h: update prototypes.
6168 * ioext.c (scm_read_delimited_x): replaces scm_read_line and
6169 scm_read_line_x, it's a more general procedure using an
6170 interface from scsh. read-line and read-line! are now defined
6171 in boot-9.scm.
6172 Note that the new read-line trims the terminator
6173 by default, previously it was appended to the returned string. An
6174 optional argument specifies how to process the terminator (scsh
6175 compatible). For the old behaviour: (read-line port 'concat).
6176 scm_read_line, scm_read_line_x: deleted. (read-line port 'split)
6177 returns a pair, but is converted to multiple values if the scsh
6178 module is loaded.
6179
6180 socket.h: update prototypes.
6181 * socket.c (scm_recvfrom): for consistency with other procedures,
6182 take start and end as separate optional arguments.
6183 (scm_recv, scm_recvfrom): don't allow the second argument
6184 to be a size, only a buffer. Change the scheme names to
6185 recv! and recvfrom!. Don't return the buffer.
6186
6187 * ioext.h, posix.h: move prototypes too.
6188 * ioext.c, posix.c (scm_read_line, scm_read_line_x, scm_write_line:
6189 moved back from posix.c to ioext.c. Also move #includes of "genio.h"
6190 "read.h" and "unif.h".
6191 * ioext.c: include "chars.h"
6192
6193 Mon Jan 20 19:54:49 1997 Marius Vollmer <mvo@zagadka.ping.de>
6194
6195 * dynl.c: The dynamic linking and module registration functions
6196 are now defined even when dynamic linking is not available for the
6197 host system. Some of their functionality can be done without
6198 dynamic linking; when it's really needed, they throw errors.
6199
6200 Thu Jan 16 16:39:29 1997 Marius Vollmer <mvo@zagadka.ping.de>
6201
6202 * configure.in: Only define DYNAMIC_LINKING when one of the system
6203 dependent functions is detected.
6204 * dynl.c (scm_dynamic_func): New function to get the address of a
6205 function in a dynamic object.
6206 (scm_dynamic_call, scm_dynamic_args_call): Accept the values
6207 produced by scm_dynamic_func as the thing to call.
6208
6209 Sun Jan 12 21:09:42 1997 Marius Vollmer <mvo@zagadka.ping.de>
6210
6211 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c: Restructured.
6212 (scm_register_module_xxx, scm_registered_modules,
6213 scm_clear_registered_modules): New functions.
6214
6215 Sat Jan 11 21:37:15 1997 Marius Vollmer <mvo@zagadka.ping.de>
6216
6217 * symbols.c (scm_sysintern): Renamed to
6218 scm_sysintern_no_module_lookup.
6219 (scm_sysintern): New function to take the place of the old
6220 scm_sysintern. It uses the current toplevel lookup closure to give
6221 the symbol its value. This is a temporary hack to put packages
6222 like gtcltk into their own module.
6223 (scm_can_use_top_level_lookup_closure_var): New variable to tell
6224 us whether `scm_top_level_lookup_closure_var' has been initialized
6225 and is usable.
6226 * eval.c (scm_init_eval): Set it.
6227
6228 Sat Jan 18 00:03:31 1997 Gary Houston <ghouston@actrix.gen.nz>
6229
6230 * fports.c (scm_open_file): pass errno to scm_syserror_msg.
6231 * filesys.h: update prototypes. Remove macros: SCM_FD_P, SCM_FD_FLAGS,
6232 SCM_FD.
6233 * filesys.c (scm_sys_stat, scm_sys_lstat): pass errno to
6234 scm_syserror_msg.
6235 (scm_sys_read_fd, scm_sys_write_fd, scm_sys_close, scm_sys_lseek,
6236 scm_sys_dup): deleted: FD capability will be added to other
6237 procedures.
6238 Remove support for the FD object type: scm_tc16_fd, scm_fd_print,
6239 scm_fd_free, fd_smob, scm_intern_fd.
6240 (scm_open): renamed from scm_sys_open. Return a port instead of
6241 an FD object. Make the mode argument optional.
6242 (scm_sys_create): deleted, it's just a special case of open.
6243 (scm_init_filesys): move interning of constants O_CREAT etc.,
6244 here (were previously using SCM_CONST_LONG macro).
6245 Add missing constants: O_RDONLY, O_WRONLY, O_RDWR, O_CREAT.
6246 don't newsmob fd.
6247 (numerous _sys_ procedures): remove gratuitous _sys_ from names.
6248 include "fports.h" and <stdio.h>
6249 (scm_stat, scm_select): don't support FD objects.
6250
6251 * error.h: adjust scm_syserror_msg prototype.
6252 * error.c (scm_syserror_msg): take an extra argument for errno.
6253 Using the global value didn't always work, since it could be
6254 reset by procedure calls in the message or args arguments.
6255
6256 * fports.c (scm_setbuf0): call setbuf even if FIONREAD is not defined.
6257 I don't understand why the check was there (and what about the
6258 ultrix check?)
6259
6260 * strop.c (scm_string_copy): allow shared substrings to be copied.
6261
6262 * unif.h: corresponding change to prototypes.
6263 * unif.c (scm_uniform_array_read_x, scm_uniform_array_write_x):
6264 recognize two new optional arguments: offset and length. Allow
6265 the port argument to be an integer (file descriptor, for scsh).
6266 Include <unistd.h> for "read" prototype.
6267
6268 Tue Jan 14 02:42:02 1997 Gary Houston <ghouston@actrix.gen.nz>
6269
6270 * socket.c: don't include filesys.h.
6271
6272 Mon Jan 13 03:47:04 1997 Gary Houston <ghouston@actrix.gen.nz>
6273
6274 * Makefile.am: add AWK=@AWK@ (?)
6275
6276 * Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
6277 errnos_get.c.
6278 Add a rule to generate errnos.c from errnos.
6279 * error.c (scm_init_error): include errnos.c.
6280 * errnos_cnvt.awk: new file, converts the list of errno codes to
6281 C expressions.
6282 * errnos_get.c: new file.
6283 * errnos.default: new file, contains errnos to try if they can't
6284 be extracted from errno.h.
6285 * configure.in: if using GCC, try and extract errno codes from
6286 errno.h.
6287 Added AC_PROG_AWK.
6288
6289 Sat Jan 11 14:47:00 1997 Marius Vollmer <mvo@zagadka.ping.de>
6290
6291 * configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
6292 * Makefile.am: Made libguile into a libtool library.
6293 * PLUGIN/guile.config: Removed "-L ../libguile" from xtra_cflags.
6294 Set libtool_libs to indicate that libguile is a libtool library.
6295 See guile/ChangeLog for details.
6296 * .cvsignore: ignore "*.lo", the libtool library objects.
6297
6298 Wed Jan 8 06:54:54 1997 Gary Houston <ghouston@actrix.gen.nz>
6299
6300 * net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
6301 use htons in getservbyport argument.
6302
6303 Tue Jan 7 18:11:24 1997 Jim Blandy <jimb@floss.cyclic.com>
6304
6305 * ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
6306 * smob.h: (SCM_PTOBNUM): Removed entirely; this definition is a
6307 duplicate.
6308
6309 * objprop.c (scm_object_property): No need to take the CDR of the
6310 value returned by scm_object_properties, since Aug 20 change.
6311
6312 * configure.in: When checking for struct linger, #include
6313 <sys/types.h> as well as <sys/socket.h>. I've never known
6314 <sys/types.h> to cause any portability problems, and Solaris's
6315 <sys/socket.h> needs it.
6316 * configure: Rebuilt.
6317
6318 I think the Sun compiler has chosen a perverse way to interpret
6319 ANSI declarations combined with K&R definitions. We'll
6320 appease it a little bit. But when it invades France, we fight.
6321 * print.c (scm_iprlist): Change 'tlr' argument to an int.
6322 * print.h (scm_iprlist): Here too.
6323 * numbers.c (scm_divbigdig): Change definition to match
6324 declaration in numbers.h.
6325 * unif.c (scm_makflo): Change definition to match declaration in
6326 unif.h.
6327
6328 * init.c (scm_boot_guile): Don't return the value of
6329 scm_boot_guile_1. This function doesn't return a value;
6330 scm_boot_guile_1 doesn't return a value (or return at all).
6331
6332 * eval.c (unmemocopy): Add a semicolon to appease the Sun
6333 compiler.
6334
6335 * simpos.c (SYSTNAME): Add case for AIX; otherwise it won't
6336 compile. I have a feeling this function is a bad idea anyway ---
6337 one should always test for features, not systems.
6338
6339 * smob.h (SCM_SMOBNUM, SCM_PTOBNUM): Remove extraneous
6340 semicolons. Only pure luck kept this from being noticed earlier.
6341
6342 Tue Jan 7 15:04:06 1997 Mikael Djurfeldt <mdj@kenneth>
6343
6344 * socket.c (scm_recvfrom): Added missing semicolon.
6345
6346 Mon Jan 6 20:39:08 1997 Gary Houston <ghouston@actrix.gen.nz>
6347
6348 * socket.c (scm_recvfrom): allow buff_or_size to be a list containing
6349 the buffer and start and end positions for scsh networking
6350 implementation.
6351
6352 Sun Jan 5 13:53:53 1997 Jim Blandy <jimb@floss.cyclic.com>
6353
6354 * configure.in: Revert previous change to this file; the problem
6355 is due to transient automake weirdness.
6356 * configure: Rebuilt.
6357
6358 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in, not
6359 PLUGIN/guile.libs. configure generates the latter from the former.
6360 * Makefile.in: Rebuilt.
6361
6362 * configure.in: Call AM_PROG_INSTALL; the automake manual says we
6363 need this if we install scripts, like guile-snarf.
6364 * configure: Rebuilt.
6365
6366 Thu Jan 2 01:56:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
6367
6368 * Makefile.am (EXTRA_DIST): Added DYNAMIC-LINKING
6369
6370 Sat Dec 28 19:14:01 1996 Gary Houston <ghouston@actrix.gen.nz>
6371
6372 * socket.c (scm_addr_vector): fix faulty scm_listify.
6373
6374 Sat Dec 28 13:55:58 1996 Marius Vollmer <mvo@zagadka.ping.de>
6375
6376 * read.c (scm_lreadr): Encountering EOF after skipping a SCSH
6377 style block comment is no longer considered an error.
6378
6379 Fri Dec 27 13:44:23 1996 Marius Vollmer <mvo@zagadka.ping.de>
6380
6381 * PLUGIN/guile.libs.in: New file.
6382 * PLUGIN/guile.libs: Removed from repository.
6383 * configure.in: Create PLUGIN/guile.libs from
6384 PLUGIN/guile.libs.in. This is for including additonal libraries
6385 needed for dynamic linking.
6386 * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in
6387 instead of PLUGIN/guile.libs.
6388
6389 * Makefile.am: Added explicit dependency "dynl.o: dynl.x".
6390
6391 Sun Dec 22 23:06:14 1996 Jim Blandy <jimb@floss.cyclic.com>
6392
6393 * list.c (scm_delq_x, scm_delv_x, scm_delete_x): Delete all
6394 occurrences of the given element from the list, not just the
6395 first. This is how the Emacs Lisp functions behave, how the
6396 analogous Common Lisp functions behave, and (I believe) how the
6397 older Maclisp functions worked. I realize that this change may
6398 break code, but it seemed better to break it before the Guile
6399 release than after.
6400
6401 * gc.c (scm_protect_object, scm_unprotect_object): New functions.
6402 Their prototypes were already present in gc.h, but they weren't
6403 implemented.
6404 (scm_init_storage): Initialize scm_protects.
6405 * root.c (scm_protects): New element of scm_sys_protects.
6406
6407 * net_db.h (scm_init_net_db): Fix spelling from scm_init_netdb.
6408
6409 Sat Dec 21 15:38:32 1996 Jim Blandy <jimb@floss.cyclic.com>
6410
6411 * libguile.h: Added #include "libguile/net_db.h".
6412
6413 * libguile.h: Don't #include "libguile/libpath.h", contrary to Oct
6414 30 change. That file is only meant for communication between the
6415 configuration process and load.c. If code linked against libguile
6416 wants to get at the paths mentioned in libpath.h, it can call
6417 functions declared in load.h.
6418
6419 Sat Dec 21 14:50:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6420
6421 * libguile.h: Removed #include "libguile/fdsocket.h"
6422
6423 * net_db.c: Added #include <sys/socket.h>.
6424
6425 Sat Dec 21 00:33:03 1996 Gary Houston <ghouston@actrix.gen.nz>
6426
6427 * filesys.c (scm_input_waiting_p): use select in preference to
6428 FIONREAD, since the latter doesn't detect EOF.
6429 Throw error if neither select nor FIONREAD available.
6430
6431 * socket.c (scm_connect): take a port, not a fd object.
6432 (scm_fill_sockaddr): throw an error if fam is not recognised.
6433 (scm_bind): use scm_fill_sockaddr.
6434 (scm_listen): take a port, not a fd object.
6435 (scm_accept): take and return a port. return #f in the car if
6436 address can't be got
6437 (scm_sock_fd_to_port): new procedure.
6438 (scm_socket): use scm_sock_fd_to_port.
6439 (scm_addr_vector): throw error if unrecognised address type.
6440 take an extra argument with the calling procedure name.
6441 (scm_getsockname): take a port. return #f if address can't be got.
6442 (scm_getpeername): take a port. return #f if address can't be got.
6443 (scm_recvfrom): take a port. return #f for address component if can't
6444 be got.
6445 (scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
6446 scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
6447
6448 Fri Dec 20 23:06:53 1996 Jim Blandy <jimb@floss.cyclic.com>
6449
6450 * throw.c (scm_internal_catch): Make body funcs and handler funcs
6451 use separate data pointers, to allow them to be designed
6452 independently and reused.
6453 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message):
6454 Renamed from catch_body, catch_handler, and uncaught_throw; made
6455 generically useful.
6456 (struct scm_catch_body_data): Renamed from catch_body_data; moved
6457 to throw.h.
6458 (scm_catch): Use the above.
6459 (scm_throw): Don't bother printing a message for an uncaught
6460 throw; we establish a default handler in init.
6461 * throw.h (scm_internal_catch): Prototype updated.
6462 (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message): New
6463 decls.
6464 (struct scm_body_thunk_data): New structure, used as data
6465 argument to scm_body_thunk.
6466 * init.c (struct main_func_closure): New structure, packaging up
6467 the data to pass to the user's main function.
6468 (scm_boot_guile): Create one. Pass it to scm_boot_guile_1.
6469 (scm_boot_guile_1): Pass it through to invoke_main_func. Use
6470 scm_internal_catch to establish a catch-all handler, using
6471 scm_handle_by_message. This replaces the special-case code in
6472 scm_throw.
6473 (invoke_main_func): Body function for scm_internal_catch; invoke
6474 the user's main function, using the main_func_closure pointer to
6475 decide what to pass it.
6476 * root.c (struct cwdr_body_data): Remove handler_proc member.
6477 (cwdr): Use scm_handle_by_proc instead of cwdr_handler.
6478 (cwdr_handler): Removed.
6479
6480 Thu Dec 19 00:00:26 1996 Gary Houston <ghouston@actrix.gen.nz>
6481
6482 * socket.h (SCM_P): update bind prototype.
6483 * socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
6484 include "feature.h".
6485 (scm_socket): return a port, not a file descriptor object.
6486 include "fports.h" and <unistd.h>
6487 (scm_bind): take a port, not a file descriptor object.
6488 take an extra argument for address args.
6489
6490 * net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
6491 INADDR_NONE, INADDR_LOOPBACK.
6492
6493 Tue Dec 17 22:58:26 1996 Gary Houston <ghouston@actrix.gen.nz>
6494
6495 * init.c: include net_db.h and not fdsocket.h.
6496 (scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
6497
6498 * Makefile.am: corresponding changes.
6499 * socket.h: renamed from fdsocket.h, fix names.
6500 * net_db.h: renamed from socket.h, fix names.
6501 * socket.c: renamed from fdsocket.c.
6502 remove _sys from procedure names.
6503 (scm_init_socket): rename from scm_init_fdsocket. include socket.x.
6504 add "socket" to features list.
6505 * net_db.c: renamed from socket.c.
6506 remove _sys from procedure names.
6507 (scm_init_net_db): rename from scm_init_socket. include net_db.x.
6508 add "net-db" to features list.
6509 include "net_db.h". don't include <sys/socket.h> or
6510 <sys/un.h>.
6511
6512 Thu Dec 19 14:03:24 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6513
6514 * tags.h (scm_tags): Removed comma at end of last enumerator.
6515
6516 Thu Dec 19 02:54:59 1996 Jim Blandy <jimb@floss.cyclic.com>
6517
6518 Don't use GCC extensions to allocate space for debugging frames.
6519 (Here he goes again! Why do we put up with this?!)
6520 * debug.h (scm_debug_frame): Make the 'vect' member a pointer to
6521 an scm_debug_info structure, not an in-line array of them. Add
6522 'info' member, to say how many vect elements we've used, for eval
6523 frames.
6524 * eval.c (SCM_CEVAL): Use alloca to allocate space for vect. Use
6525 a new variable debug_info_end to mark the end of vect, instead of
6526 the address of the 'info' pointer itself.
6527 [DEVAL] (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Remove casts of
6528 &debug to scm_debug_frame *; debug is a real scm_debug_frame now.
6529 (SCM_APPLY): Explicitly allocate space for debug.vect.
6530 * debug.c (scm_m_start_stack): Same, for vframe.vect.
6531 * stacks.c: Adjusted for new debug frame structure.
6532 (RELOC_INFO, RELOC_FRAME): New macros.
6533 (stack_depth, read_frames): Use them, and new scm_debug_frame
6534 element 'info', instead of magically knowing that eval frames have
6535 an info pointer sitting after vect.
6536 (scm_make_stack, scm_stack_id, scm_last_stack_frame): Use
6537 RELOC_FRAME.
6538 (scm_init_stacks): Formatting tweaks.
6539
6540 Wed Dec 18 14:57:57 1996 Jim Blandy <jimb@floss.cyclic.com>
6541
6542 Give GCC more control flow information, so it can be sure that
6543 variables aren't used uninitialized.
6544 * error.h (scm_error, scm_syserror, scm_syserror_msg,
6545 scm_sysmissing, scm_num_overflow, scm_out_of_range,
6546 scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
6547 scm_misc_error): Tell GCC that these functions never return.
6548 * struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
6549 out the field type, call abort if SCM_ASSERT returns, to placate
6550 the optimizer.
6551 * stacks.c (scm_make_stack, scm_last_stack_frame): abort if
6552 scm_wta ever returns. We can't handle this case anyway, and this
6553 gives the optimizer more information.
6554 * unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
6555 scm_wta ever returns.
6556
6557 In some cases, the code is fine, but GCC isn't smart enough to
6558 figure that out; this usually happens when one variable is only
6559 initialized and used when a particular condition holds true, and
6560 we know that condition will never change within a given invocation
6561 of the function. In this case, we simply initialize the variables
6562 to placate the compiler, hopefully to a value which will cause a
6563 crash if it is ever actually used.
6564 * print.c (scm_iprin1): Initialize mw_pos.
6565 * read.c (scm_lreadrecparen): Initialize tl2, ans2.
6566 * throw.c (scm_ithrow): Initialize dynpair.
6567 * unif.c (scm_uniform_vector_ref): Initialize cra.
6568 * struct.c (init_struct): Initialize prot.
6569 * mbstrings.c (scm_print_mb_symbol): Initialize mw_pos and inc.
6570
6571 * strports.c (scm_eval_0str): Don't return uninitialized garbage
6572 if EXPR contains no expressions.
6573
6574 Wed Dec 18 11:43:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
6575
6576 * eval.c, debug.h: Revert changes of Dec 16 and Nov 21. They
6577 cause an infinite loop (???). So much for the algebraic
6578 equivalency of variable-sized arrays and alloca...
6579
6580 Tue Dec 17 20:29:03 1996 Marius Vollmer <mvo@zagadka.ping.de>
6581
6582 * backtrace.c (scm_display_error): Bugfix: scm_procedure_p returns
6583 a SCM boolean, not a C boolean.
6584
6585 Sat Dec 14 23:21:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
6586
6587 * gc.c (SCM_MTRIGGER_HYSTERESIS): New memory management parameter.
6588 (scm_must_malloc, scm_must_realloc): Added a hysteresis to the
6589 rules for raising scm_mtrigger. Previously, unfortunate but not
6590 unlikely circumstances could result in almost constant invokation
6591 of the gc. Now, this situations should be less likely, but they
6592 are not prevented completely.
6593
6594 Tue Dec 17 16:19:07 1996 Jim Blandy <jimb@totoro.cyclic.com>
6595
6596 * numbers.c (scm_fuck): Procedure removed; looks like old test
6597 code.
6598 * numbers.h: Prototype removed.
6599
6600 Mon Dec 16 18:20:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
6601
6602 * debug.h (scm_debug_frame): Change `vect' member from an in-line
6603 array to a pointer, to match my Nov 21 change in eval.c.
6604
6605 Fri Dec 13 16:12:14 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6606
6607 * libguile.h: Added #include "libguile/backtrace.h", #include
6608 "libguile/stacks.h".
6609
6610 * strings.c (scm_string scm_make_string scm_string_ref
6611 scm_string_set_x scm_string_equal_p scm_string_append):
6612 Bugfix according to scm patch from Aubrey Jaffer:
6613 Corrected long-standing
6614 (not (eqv? (integer->char 128)
6615 (string-ref (make-string 1 (integer->char 128)) 0)))
6616 bug found by John Kozak <jk@noontide.demon.co.uk>.
6617
6618 * strports.c, strports.h: Make scm_eval_0str return the value of
6619 the last expression evaluated (previously, it returned void).
6620
6621 * strports.c, strports.h: New function: scm_read_0str. Does what
6622 it sounds like.
6623
6624 Tue Dec 10 23:38:43 1996 Gary Houston <ghouston@actrix.gen.nz>
6625
6626 * simpos.c (scm_getenv): return #f if string can't be found in the
6627 environment instead of throwing an exception, for compatibility
6628 with numerous other systems.
6629
6630 Mon Dec 9 23:23:35 1996 Tom Tromey <tromey@cygnus.com>
6631
6632 * Makefile.am (.c.x): Use guile-snarf.
6633 * configure.in (AC_OUTPUT): Generate guile-snarf; make it
6634 executable.
6635 * guile-snarf.in: New file, resurrected from old guile-snarf.sh.
6636
6637 Mon Dec 9 18:36:50 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
6638
6639 * backtrace.c (scm_display_error_message): Made non-static, and
6640 renamed from display_error_message.
6641 * backtrace.h (scm_display_error_message): Added extern decl.
6642 * throw.c (uncaught_throw): Use it to display the error message.
6643
6644 Mon Dec 9 10:10:38 1996 Tom Tromey <tromey@cygnus.com>
6645
6646 * inet_aton.c: Use #if 0, not #ifdef 0.
6647
6648 Mon Dec 9 06:36:48 1996 Gary Houston <ghouston@actrix.gen.nz>
6649
6650 * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
6651 to convert the returned value.
6652 (scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
6653 the offset argument.
6654
6655 Sun Dec 8 21:06:38 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
6656
6657 Add new interface to catch/throw, usable from C as well as
6658 Scheme.
6659 * throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
6660 (scm_internal_catch): New function, replaces...
6661 (scm_catch_apply): Deleted.
6662 * throw.c (scm_catch_apply): Deleted; replaced with a more general
6663 mechanism which is a bit more code, but can be used nicely from C
6664 and implement the Scheme semantics as well.
6665 (scm_internal_catch): This is the replacement; it's named after
6666 the analogous function in Emacs.
6667 (scm_catch): Reimplemented in terms of the above.
6668 (struct catch_body_data, catch_body, catch_handler): New
6669 functions, used by scm_catch.
6670 * root.c (cwdr): Reimplemented in terms of scm_internal_catch.
6671 (struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
6672 support for new cwdr.
6673
6674 * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
6675 Oct 30.
6676
6677 Sun Dec 8 17:55:34 1996 Marius Vollmer <mvo@zagadka.ping.de>
6678
6679 * acconfig.h: Added DYNAMIC_LINKING symbol.
6680 * configure.in: Add option and checks for dynamic linking.
6681 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c,
6682 dynl.h: New files for dynamic linking support.
6683 * Makefile.am (libguile_a_SOURCES):
6684 Added "dynl.c".
6685 (modinclude_HEADERS): Added "dynl.h".
6686 (EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
6687 "dynl-vms.c".
6688 * init.c (scm_boot_guile_1): Call
6689 scm_init_dynamic_linking to initialize dynamic linking support.
6690
6691 Thu Dec 5 22:47:53 1996 Marius Vollmer <mvo@zagadka.ping.de>
6692
6693 * init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
6694 (as we Schemers say). It needs to be global, so that I can tweak
6695 it for the proper operation of unexec.
6696 (scm_boot_guile_1_live): New variable, see above.
6697
6698 Sun Dec 1 00:00:49 1996 Tom Tromey <tromey@cygnus.com>
6699
6700 * guile-snarf.sh: Removed.
6701 * PLUGIN/guile.libs: Added dependency for -lm.
6702 * acinclude.m4: Renamed from aclocal.m4.
6703 * PLUGIN/greet: Removed.
6704 * Makefile.am, aclocal.m4: New files.
6705 * configure.in: Updated for Automake.
6706
6707 Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
6708
6709 * eval.c (scm_definedp): Use top_level_lookup_closure_var
6710 and not top_level_lookup_thunk_var.
6711
6712 Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
6713
6714 * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
6715
6716 Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
6717
6718 * eval.c (scm_definedp): Incompatibly changed to be a builtin
6719 Scheme function, instead of syntax. Single argument is now a
6720 symbol.
6721
6722 Thu Nov 21 20:26:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
6723
6724 * ramap.c (scm_ra_sum, scm_ra_difference, scm_ra_product,
6725 scm_ra_divide): Properly terminate statements passed as arguments
6726 to IVDEP macros. (Thanks to Bernard Urban.)
6727
6728 * eval.c (SCM_CEVAL): Use alloca, not GCC's extensions for arrays
6729 with non-constant sizes. (Thanks to Bernard Urban.)
6730
6731 Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
6732
6733 It's an "eval closure", not an "eval thunk." A thunk is a
6734 function of no arguments.
6735 * root.h (struct scm_root_state): Renamed
6736 top_level_lookup_closure_var from top_level_lookup_thunk_var.
6737 (scm_top_level_lookup_closure_var): Renamed from
6738 scm_top_level_lookup_thunk_var.
6739 * root.c (mark_root): Uses changed.
6740 * gdbint.c (gdb_eval, gdb_binding): Uses changed.
6741 * init.c (scm_start_stack): Uses changed.
6742 * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
6743 Change scheme-visible name to *top-level-lookup-closure* from
6744 *top-level-lookup-thunk*.
6745
6746 Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
6747
6748 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
6749 pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
6750
6751 Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
6752
6753 * gc.c (struct scm_heap_seg_data): Doc fixes.
6754
6755 * gc.c (scm_gc_sweep): Empty all segments' freelists before
6756 sweeping. Then, prepend each segment's free cells to its
6757 freelist, rather than wiping out the old value. (Thanks to Marius
6758 Vollmer.)
6759
6760 * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
6761 scm_check_freelist, scm_debug_newcell): New functions and
6762 variables, for debugging freelist problems.
6763 * pairs.h (SCM_NEWCELL): New debugging version added.
6764 * gc.h (scm_debug_newcell): Added extern declaration, used by
6765 debugging version of SCM_NEWCELL.
6766
6767 Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
6768
6769 On some systems <libc.h> conflicts with <unistd.h>, and should not
6770 be #included at all.
6771 * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
6772 * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
6773 * configure.in: Call it.
6774 * posix.c, filesys.c: Use its results to decide whether or not to
6775 #include <libc.h>.
6776 * configure, scmconfig.h.in: Rebuilt with autoconf and
6777 autoheader.
6778
6779 Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
6780
6781 * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
6782 pointer to the stdio stream before calling scm_setbuf0, so the
6783 latter will be able to retrieve it. I'm surprised this didn't
6784 segfault earlier. (Thanks to Christopher Lee.)
6785
6786 Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6787
6788 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
6789 of `lazy-catch'.
6790
6791 Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6792
6793 * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
6794 number of stack narrowing specifier pairs. The first specifier in
6795 a pair controls inner border, the second the outer border. A
6796 number means cut that number of frames, a procedure object means
6797 cut until that object is found in operator position in a frame.
6798
6799 * root.c (cwdr): Bugfix.
6800
6801 * read.c: Recording of positions disabled by default.
6802
6803 * procs.c (scm_closure_p): New function.
6804
6805 * posix.c (scm_tmpnam): New function.
6806
6807 * load.c: Added #include "throw.h".
6808 (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
6809 ends with '/'.
6810
6811 * load.c, load.h (scm_read_and_eval_x): New function.
6812
6813 * eval.c: Renamed debug option "deval" to "debug".
6814
6815 (scm_eval_x): `eval!' is no longer accessible from the scheme
6816 level. Motivation: We can't allow operations which introduce
6817 glocs into the scheme level. Guile's type system can't handle
6818 these as data. Use `eval' or `read-and-eval!' as replacement.
6819
6820 * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
6821 SCM_CONSP since this is a macro!; Set vframe.prev to
6822 scm_last_debug_frame instead of 0. In this way we can look
6823 "above" the virtual start stack frame if we wish.
6824 (scm_debug_hang): New function: Useful for debugging Guile in
6825 certain tricky situations. Will probably be removed later...
6826
6827 * debug.h: Changed semantics of debug option "backtrace". This
6828 option now only indicates whether we want automatic backtrace at
6829 an error.
6830
6831 Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6832
6833 * ports.c: #include "filesys.h"
6834 (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
6835
6836 * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
6837 Motivation: This is system specific code which is related to file
6838 I/O. It also may use select. Added code by Gary Houston to
6839 detect presence of character in stdio buffers.
6840
6841 * libguile.h: #include "libguile/libpath.h"
6842
6843 * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
6844 SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
6845 SCM_SITE_DIR; Install libpath.h among the other include files.
6846
6847 * load.c, load.h (scm_sys_package_data_dir): New function.
6848
6849 Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6850
6851 * stacks.h: Bugfix: Don't use tail-array length field as stack
6852 length field! This screwed GC.
6853
6854 Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
6855
6856 * _scm.h: Added #ifndef around definition of macros min and max.
6857
6858 * __scm.h: Added hooks for threads to plugin to in ints protection
6859 macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
6860 SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
6861 the main code in these macros duplicated and spread over multiple
6862 files. Renamed SCM_THREADS_SWITCHING_CODE ->
6863 SCM_THREAD_SWITCHING_CODE.
6864
6865 Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
6866
6867 * snarf.h: New file.
6868 * guile-snarf.sh: New file.
6869 * Makefile.in (inner_h_files): Added snarf.h
6870 (ancillary, install, uninstall, distclean): Added actions for
6871 guile-snarf.
6872 (.c.x): Use guile-snarf.
6873 (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
6874 (gen_c_files): Note that these depend on guile-snarf.
6875 * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
6876 now in "snarf.h". Added #include "snarf.h" to get them.
6877 * libguile.h: Added #include "snarf.h".
6878 (Patches applied and tweaked by Jim Blandy.)
6879
6880 Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
6881
6882 * socket.c: Use K&R style declaration for 'close'; the GNU coding
6883 standards suggest against providing prototypes for system
6884 functions. Thanks to Greg Troxel.
6885
6886 Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
6887
6888 * strports.c (scm_eval_0str): New function.
6889 #include "read.h", to get prototype for scm_read.
6890 * Makefile.in (strports.o): Update dependencies.
6891 * strports.h: New prototype.
6892
6893 * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
6894 scheme name from "int?" to "integer?". It seems to do the job.
6895 * numbers.h: Rename prototype too.
6896 * scmhob.h (intp): Change definition to refer to scm_integer_p. I
6897 hope this is right.
6898
6899 * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
6900 scm_num_eq_p): Rename these according to R4RS conventions: call
6901 them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
6902 to making libguile R4RS compliant without ice-9...
6903
6904 * load.c (scm_sys_search_load_path): Search for files under all
6905 extensions listed in the %load-extensions variable. If FILENAME
6906 is absolute, return it unchanged, without searching the load path.
6907 (scm_loc_load_extensions): New variable, pointing to
6908 %load-extensions' value cell.
6909 (scm_init_load): Initialize it, and the value it points to.
6910 (scm_primitive_load_path): Improve error reporting.
6911
6912 * load.c (scm_loc_load_hook): New variable, pointing to value cell
6913 of new Scheme variable %load-hook.
6914 (scm_primitive_load): Apply %load-hook to filename.
6915
6916 Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
6917
6918 * configure.in: add tests for figuring out whether buffered data
6919 is available in a FILE structure, which is needed by char-ready.
6920
6921 * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
6922 FILE_CNT_READPTR.
6923
6924 * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
6925 exceptions using misc_error instead of syserror. It seems a bit
6926 odd to throw an exception if a string can't be found in the
6927 environment, but it's consistent with open-file, stat etc.
6928 (simpos.h): remove sys_ from getenv.
6929
6930 * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
6931 occurs, throw an error instead of returning errno. Return value
6932 is now unspecified.
6933 (numerous in posix.c and posix.h): removed superfluous sys_ from names.
6934
6935 Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
6936
6937 * filesys.c (scm_stat2scm): derive file type and permissions from
6938 the stat mode and append them to the returned vector.
6939 There isn't much overhead in doing this and it avoids the need to
6940 work with S_IRUSR et al. in Scheme.
6941 Define symbols scm_sym_regular etc.
6942 (scm_init_filesys): don't intern S_IRUSR etc.
6943
6944 * load.c: change s_try_load and s_try_load_path to s_primitive_load
6945 and s_primitive_load_path.
6946
6947 * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
6948
6949 * error.h: don't declare error symbols. prototype for scm_misc_error.
6950
6951 * stackchk.c (scm_stack_overflow_key): defined here instead of in
6952 error.c.
6953
6954 * error.c: use SCM_SYMBOL to set up error keys.
6955 scm_misc_error: new procedure.
6956
6957 Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
6958
6959 * read.c (scm_lreadr): Recognize SCSH-style block comments; text
6960 between `#!' and `!#' is ignored.
6961 (skip_scsh_block_comment): New function.
6962
6963 * feature.c (scm_set_program_arguments): New argument, FIRST.
6964 * feature.h: Update prototype.
6965 * init.c (scm_boot_guile_1): Pass new argument to
6966 scm_set_program_arguments.
6967
6968 Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
6969
6970 * init.c (scm_start_stack): Don't initialize scm_progargs here.
6971 (scm_boot_guile): Call scm_set_program_arguments here, later than
6972 the old initialization.
6973
6974 * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
6975 initialization procedure.
6976 - Delete in, out, err arguments; there are other perfectly good
6977 ways to override these when desired.
6978 - Delete result argument; this function shouldn't ever return.
6979 - Rename init_func argument to main_func, for less confusion.
6980 - Delete boot_cmd argument; main_func is more general.
6981 -Add 'closure' argument, to help people pass data to main_func
6982 without resorting to global variables.
6983 - Abort if reentered; don't bother returning an error code.
6984 - Call scm_init_standard_ports to set up the default/current
6985 standard ports; no need to pass them to scm_start_stack.
6986 - Remove code to evaluate the boot_cmd, and start the repl; let
6987 the user do something like that in main_func if they want.
6988 - Remove code to package up a return value; main_func can do any
6989 of that as needed.
6990 - Call exit (0), instead of returning.
6991 (scm_start_stack): Don't initialize the I/O ports here; that's
6992 weird. Delete in, out, err arguments. Move guts to
6993 scm_init_standard_ports, scm_stdio_to_port.
6994 (scm_init_standard_ports): New function, to set up current and
6995 default standard ports.
6996 (scm_start_stack, scm_restart_stack): Make these static.
6997 * init.h (scm_boot_guile): Adjust declaration.
6998 (scm_start_stack, scm_restart_stack): Remove externally
6999 visible declarations for these.
7000 (enum scm_boot_status): Removed; now scm_boot_guile never returns.
7001
7002 * fports.c (scm_stdio_to_port): New function. Its guts used to be
7003 written out several times in scm_start_stack.
7004 * fports.h: New declaration for the above.
7005
7006 * feature.c (scm_set_program_arguments): New function.
7007 * feature.h: New declaration for the above.
7008
7009 * ports.c: Formatting tweak.
7010
7011 Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
7012
7013 * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
7014 ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
7015 for obtaining the address of a car or cdr field. Motivation:
7016 &SCM_CXR make assumptions about the internal structure of the
7017 SCM_CXR selectors.
7018
7019 * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
7020 Motivation: see SCM_CXRLOC.
7021
7022 * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
7023 srcprop.h, tags.h, throw.c, unif.c: Added new selectors
7024 SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
7025 Motivation: Safer use. Some other macros are defined in terms of
7026 these operations. If these are defined using the SCM_SETCXR
7027 (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
7028 to inefficiency and an <e1> with side-effects could potentially
7029 break. Also, these particular operations are heavily utilized in
7030 the garbage collector. In unoptimized code there will be a
7031 measurable speedup.
7032
7033 * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
7034 eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
7035 ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
7036 pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
7037 procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
7038 strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
7039 vports.c: Cleaned up use of pairs: Don't make any special
7040 assumptions about the internal structure of selectors and
7041 mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
7042 SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
7043 (Among other things, this change makes it easier to build Guile
7044 with certain compilers which have problems with casted lvalues.)
7045
7046 Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
7047
7048 * stacks.c: Improve selection of relevant stack frames when making
7049 a stack object. Introduce one level of indirection in the stack
7050 object to make it possible to "narrow" to a certain region of the
7051 stack. This facilitates making use of more clever algorithms (not
7052 implemented) for selecting relevant frames and gives a cleaner
7053 design since selection of frames can be done independently of
7054 extraction of frames from the real stack.
7055 (scm_stack_id): Also take #t as argument which means look at
7056 current stack.
7057
7058 * stacks.h: In struct scm_stack: Turn field frames into a pointer.
7059 Turn n_tail into an integer directly representing current number
7060 of frames in stack. Add field tail.
7061
7062 * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
7063
7064 * debug.c (scm_make_memoized): Made it available at scheme level.
7065 (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
7066 SCM_NIMP before applying heavier predicates in argument checking.
7067 (scm_local_eval): Also take memoized object as argument.
7068
7069 * backtrace.c (scm_display_error): Just a safety measure: Stacks
7070 aren't created with zero length, but should such a strange
7071 creature suddenly turn up...
7072
7073 Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
7074
7075 * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
7076 `del', for the sake of C++ compilers. (Patch applied by JimB.)
7077
7078 Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
7079
7080 * variable.c (scm_make_variable): Make the name hint optional, as
7081 documented.
7082 (anonymous_variable_sym): Renamed from variable_sym. All uses
7083 changed.
7084
7085 * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
7086 from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
7087 of scm_primitive_load_path was also changed to
7088 "primitive-load-path", from "%try-load-path". Callers changed.
7089 We'd like to respect the convention that a function named
7090 "try-mumble" should behave just like the function called "mumble",
7091 but return #f instead of signalling some error.
7092 * load.h: Rename prototypes.
7093
7094 Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7095
7096 * print.c (make_print_state, grow_print_state), print.h: Modified
7097 the print state representation: Don't use a tail array for
7098 recording of circular references. Resizing of the print state
7099 structure invalidates the print state pointer. To avoid passing
7100 around an indirect print state reference to all printing
7101 functions, we instead let the print state reference a resizable
7102 vector.
7103
7104 Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
7105
7106 * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
7107 Don't crash when passed an improper list terminated by a
7108 non-immediate value.
7109
7110 Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
7111
7112 Allocate data for structures on an eight-byte boundary, as
7113 required by the tagging system.
7114 * struct.c (alloc_struct): New function.
7115 (scm_make_struct, scm_make_vtable_vtable): Call it.
7116 * struct.h (scm_struct_n_extra_words): Bump to 3.
7117 (scm_struct_i_ptr): New "field".
7118 * gc.c (scm_gc_sweep): When we need to free the data, use the
7119 information stored by alloc_struct to find the beginning of the
7120 block allocated to the structure, so we can free it.
7121
7122 Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7123
7124 * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
7125 scm_init_stacks.
7126
7127 * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
7128 (scm_debug_info): New member: id.
7129
7130 * stacks.c: Stacks are now represented as structs; Stacks have an
7131 id given to them by `start-stack'.
7132 (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
7133
7134 * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
7135 Changed stack representation.
7136
7137 * debug.c (scm_procedure_name): Try procedure property `name' for
7138 compiled closures aswell.
7139
7140 * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
7141
7142 * eval.c: scm_i_name moved to gsubr.c
7143 (scm_m_define): Record names of all kinds of procedure
7144 objects. (Earlier, only closures were recorded.)
7145
7146 * procprop.h: Added declaration of scm_i_name.
7147
7148 * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
7149 (scm_make_gsubr): Record names of compiled closures.
7150
7151 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7152
7153 * debug.c, debug.h: Removed obsolete code.
7154
7155 * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
7156 stacks.c: Renamed regs --> scm_contregs.
7157
7158 * print.c (scm_free_print_state): Cleanup print state before
7159 returning it to pool. It is better to do it here than in
7160 scm_prin1 since scm_prin1 is called often.
7161
7162 * srcprop.c (scm_source_properties, scm_set_source_properties_x,
7163 s_set_source_property_x): Check that first argument is a pair or a
7164 memoized object.
7165
7166 * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
7167 scm_i_line, scm_i_column and scm_i_breakpoint global.
7168
7169 * init.c: Added #include "backtrace.h" and #include "stacks.h".
7170 (scm_boot_guile_1): Added calls to scm_init_backtrace and
7171 scm_init_stacks.
7172
7173 * debug.h: Added debug object smob declaration and macro
7174 definitions.
7175
7176 * configure.in: Build with backtrace.o and stacks.o if debug
7177 support enabled.
7178
7179 * Makefile.in: Added entries for new files: backtrace.c,
7180 backtrace.h, stacks.c and stacks.h.
7181
7182 * symbols.c (scm_sym2ovcell): Fixed documentation.
7183
7184 * _scm.h (min, max): Added.
7185
7186 * async.c: Moved `min' macro to _scm.h.
7187
7188 * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
7189 SCM_BACKTRACE_INDENT.
7190
7191 * eval.c: Added new debug options `maxdepth' and `indent'.
7192
7193 * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
7194
7195 * print.h: Added selector SCM_PRINT_STATE.
7196
7197 * print.c: New functions: scm_make_print_state,
7198 scm_free_print_state.
7199
7200 * print.h: Added declarations for scm_make_print_state,
7201 scm_free_print_state.
7202
7203 * debug.c (scm_m_start_stack): New acro.
7204
7205 * debug.h: Small cleanup.
7206
7207 * init.c (scm_boot_guile_1): Moved scm_init_debug below
7208 scm_init_eval.
7209
7210 Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
7211
7212 * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
7213 arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
7214 chars.c, chars.h, continuations.c, continuations.h, debug.c,
7215 debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
7216 eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
7217 filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
7218 gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
7219 hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
7220 kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
7221 markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
7222 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
7223 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
7224 procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
7225 root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
7226 simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
7227 stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
7228 strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
7229 struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
7230 unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
7231 version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
7232 declare functions with prototypes. (Patch thanks to Marius
7233 Vollmer.)
7234
7235 More prototype-related changes from Marius Vollmer:
7236 * gdb_interface.h: Wrapped header file in #ifdef/#endif
7237 * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
7238 * ports.h (ptobfuns): Added prototypes. This means some casting in
7239 fports.c.
7240 * fports.c: Added casts for initializations, since the functions
7241 are defined to take FILE * as their stream argument, not SCM.
7242 * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
7243 * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
7244 to `char *str_data' to conform to prototype.
7245
7246 Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
7247
7248 * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
7249
7250 * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
7251
7252 * stime.c, stime.h: use SCM_P method.
7253
7254 Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
7255
7256 * eval.c (scm_nconc2last): Don't accept an empty list; apply must
7257 be given at least two arguments. Insist that lst's last element
7258 be a list, but don't make any requirements of its predecessors.
7259
7260 Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
7261
7262 * eval.c (scm_nconc2last): Revert last change; there seems to be
7263 other stuff going on here.
7264
7265 Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
7266
7267 * eval.c (scm_nconc2last): Make sure that each element of lst
7268 (which is a list of argument lists, except for the tail) is a
7269 proper list, i.e., finite and terminated by '().
7270
7271 Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
7272
7273 * unif.c (scm_ra_set_contp): Localize `inc' declaration.
7274 Clarifies flow.
7275
7276 * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
7277 symbolic name for the tag, scm_tc3_cons_gloc, instead of just
7278 saying "1".
7279
7280 * vectors.c (scm_make_vector): Fill vectors with the undefined
7281 value, to help make Guile Scheme code more portable to other
7282 Schemes.
7283
7284 * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
7285 * symbols.h, tags.h: Doc fixes.
7286
7287 Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
7288
7289 * async.c (scm_take_signal): Doc fixes.
7290
7291 Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
7292
7293 * numbers.c (scm_divbigint): When the remainder is zero, we don't
7294 want to subtract it from the modulus; we just want to leave it
7295 alone.
7296
7297 Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
7298
7299 * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
7300 `scm_init_threads'.
7301
7302 * throw.h (scm_catch_apply): Removed the `lazyp' argument.
7303
7304 * throw.c (scm_catch_apply): Finished implementation of
7305 `lazy-catch'.
7306
7307 Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
7308
7309 * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
7310 check.
7311 (scm_init_filesys): set "i/o-extensions" feature.
7312 include feature.h.
7313
7314 Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
7315
7316 * Makefile.in (root.o): Correct dependencies.
7317
7318 Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
7319
7320 * Makefile.in: Added dependency entry for root.o.
7321
7322 * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
7323 throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
7324
7325 * init.c (scm_start_stack): Set initial root continuation number
7326 to 0.
7327
7328 * procs.c: New function: scm_thunk_p.
7329
7330 * procs.h: Added declarations of scm_thunk_p.
7331
7332 * root.c: Renamed `call-with-new-root' -->
7333 `call-with-dynamic-root'.
7334 (cwdr): Removed allocation of new root state. This should be done
7335 separately by use of scm_make_root.
7336 (scm_apply_with_dynamic_root): New function: Does what it
7337 sounds like. Needed when spawning threads.
7338
7339 * root.h: Added member last_debug_frame to root state.
7340 Added #include "libguile/debug.h"
7341
7342 * throw.c: Renamed scm_catch --> scm_catch_apply and added more
7343 arguments. The motivation is that code in root.c needs catch
7344 functionality, and we want to avoid code duplication.
7345 New functions: scm_catch, scm_lazy_catch. These are wrappers for
7346 scm_catch_apply. scm_lazy_catch is intended to introduce catch
7347 handlers that run without popping the stack into the dynwind
7348 chain.
7349
7350 * throw.h: Added prototypes for scm_catch_apply and
7351 scm_lazy_catch.
7352
7353 Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7354
7355 * root.h (scm_root, scm_set_root): Decouple thread support details
7356 by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
7357 SCM_SET_THREAD_LOCAL_DATA.
7358
7359 * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
7360 and tortoise scanning loop.
7361
7362 Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
7363
7364 * Makefile.in: Rebuild dependencies.
7365
7366 * libguile.h: #include "libguile/print.h" before "smob.h", since
7367 the latter uses the print_state structure.
7368
7369 * throw.c (scm_ithrow): Use the correct variable when checking to
7370 see if a given element of scm_dynwinds is a valid catch.
7371
7372 * throw.c (scm_ithrow): If scm_dynwinds has invalid list
7373 structure, abort; don't just silently ignore the garbage.
7374
7375 * _scm.h: #include "print.h" here, since it seems to be used just
7376 about everywhere.
7377 * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
7378 strports.c, unif.h: Don't #include "print.h".
7379
7380 Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7381
7382 * feature.h (scm_loc_features): Removed external declaration.
7383 (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
7384
7385 Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7386
7387 * feature.c (scm_init_feature): Added threads feature (needs to be
7388 initialized here, since features doesn't exist when
7389 scm_init_threads is called).
7390
7391 * libguile.h: Added #include "libguile/../threads/threads.h".
7392 (This is a kludge to get thread support working. This should be
7393 fixed.)
7394
7395 * configure.in, acconfig.h: Added flags for thread support.
7396
7397 * scmsigs.c: Define `signal' to be `pthread_signal' if using
7398 mit-pthreads.
7399
7400 * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
7401 SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
7402 root.c:mark_root.
7403
7404 * _scm.h: Added conditional #include "threads.h"
7405
7406 * __scm.h (SCM_ASYNC_TICK): Added call to macro
7407 SCM_THREADS_SWITCHING_CODE.
7408
7409 * init.c (scm_start_stack): Call `scm_make_root' to dynamically
7410 allocate the basic dynamic root object.
7411 (scm_boot_guile): Added call to scm_init_root.
7412
7413 * root.c, root.h: Added root smob.
7414 (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
7415 functions: Implements dynamic roots mostly according to spec in
7416 SCM manual. Main difference is that the second argument is a
7417 throw handler rather than an error "thunk".
7418
7419 * root.h: Added declaration of scm_init_root.
7420
7421 * root.c: Added #include "genio.h", #include "smob.h", #include
7422 "pairs.h", #include "throw.h", #include "dynwind.h", #include
7423 "eval.h"
7424 (scm_init_root): Added #include "root.x".
7425
7426 * throw.c: Added #include "stackchk.h"
7427 (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
7428 SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
7429 can be used in scm_call_with_new_root; Added reenabling of stack
7430 checking when catching a throw.
7431
7432 Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
7433
7434 * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
7435
7436 * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
7437 element is not found, as per R4RS.
7438
7439 Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
7440
7441 * list.c: Doc fixes throughout.
7442
7443 Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
7444
7445 * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
7446 declare the char * to be const. Avoids a warning in rgx.c.
7447
7448 * ports.h: spelling fix.
7449
7450 * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
7451 error messages.
7452
7453 * load.c (scm_sys_try_load_path): throw an error if file not found
7454 (like it says it in NEWS).
7455
7456 Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
7457
7458 * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
7459 PROPS slot to '(), not #f; it's an empty alist.
7460
7461 * throw.h, throw.c: Use SCM_P instead of #if hair.
7462
7463 Remove special support for uncaught throws; see throw.c for
7464 rationale.
7465 * throw.c (uncaught_throw): New function.
7466 (scm_ithrow): Call uncaught_throw if we don't find a throw
7467 target; don't mess with scm_bad_throw_vcell.
7468 (scm_bad_throw_vcell): Variable deleted.
7469 (scm_init_throw): Don't initialize it.
7470
7471 * throw.c (scm_ithrow): Don't let outer key matches shadow inner
7472 #t catches.
7473
7474 Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
7475
7476 * numbers.c (scm_istr2int): If the number is short (as most
7477 numbers are), just call scm_small_istr2int to deal with it.
7478 (scm_small_istr2int): New function, created by un-#ifdefing the
7479 non-bignum version of scm_istr2int and renaming it.
7480
7481 Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
7482
7483 * load.c (scm_sys_try_load): don't check whether value returned
7484 by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
7485 Change the Scheme name from %try-load to primitive-load.
7486
7487 * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
7488 Can avoid passing a message, allowing it to be derived in the
7489 error handler (e.g., if we want to throw to the key both from
7490 Scheme and C).
7491
7492 Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
7493
7494 * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
7495 references now have a new appearance which is more compact and
7496 also gives a clue about what the target of the reference is.
7497 By setting parameters in the print state, more fancy printing can
7498 be achieved. This is used by the (not yet commited) backtrace
7499 code.
7500
7501 Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
7502
7503 * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
7504 "print.h"
7505
7506 * print.c: Added #include "struct.h". Removed function
7507 scm_prlist.
7508
7509 * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
7510 scm_iprin1. Removed prototype for scm_prlist.
7511
7512 * arbiters.c (prinarb),
7513 async.c (print_async),
7514 debug.c (prindebugobj, prinmemoized),
7515 eval.c (prinprom, prinmacro),
7516 filesys.c (scm_fd_print, scm_dir_print),
7517 kw.c (print_kw),
7518 mallocs.c (prinmalloc),
7519 numbers.c, numbers.h (scm_floprint, scm_bigprint),
7520 smob.h (scm_smobfuns),
7521 srcprop.c (prinsrcprops),
7522 throw.c (prinjb),
7523 unif.c, unif.h (scm_raprin1, rapr1),
7524 variable.c (prin_var): Changed argument `int writing' to
7525 `scm_print_state *pstate'.
7526
7527 * init.c (scm_boot_guile): Moved scm_init_struct upwards so
7528 that it will be called before scm_init_print.
7529
7530 * print.c (scm_prin1): Print states are now allocated when calling
7531 scm_prin1 and then passed around to all printing functions as an
7532 argument. A cache `print_state_pool' enables reuse of print
7533 states.
7534 (scm_make_print_state): New function.
7535 (scm_iprin1): Adaption to print states.
7536 (scm_iprlist): An initial "hare and tortoise" scan brings down
7537 time complexity to O (depth * N). (Better time complexity will be
7538 achieved when the printing code is completely rewritten.)
7539
7540 Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
7541
7542 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
7543 AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
7544 it gets done whether or not the cache variable has a value.
7545
7546 Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
7547
7548 Distinguish #f and ().
7549 * __scm.h: #undef SICP.
7550 * pairs.h (SCM_EOL): Delete this definition, equating it with
7551 SCM_BOOL_F.
7552 * tags.h (SCM_EOL): Give it a new definition here; I think I found
7553 the value it used to have. Doc fixes, too.
7554
7555 Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
7556
7557 * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
7558 scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
7559 Lord's implementation of structs, allowing for tail arrays as
7560 described in the manual. Also fixed some bugs. (Both the interface
7561 and the implementation should be improved.)
7562
7563 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
7564
7565 * print.c, print.h: Closures now print like #<procedure foo (x)>.
7566 People who whish to see the source can do `(print-enable 'source)'.
7567 Removed #ifdef DEBUG_EXTENSIONS.
7568
7569 Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
7570
7571 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
7572 integer (assuming for now accepting an integer is a good thing).
7573
7574 * error.c, fports.c: replace use of %S in lgh_error args with %s.
7575 %S will be used instead for write'ing arguments.
7576
7577 * unif.c (scm_transpose_array): change arguments in the SCM_WNA
7578 asserts. fix a few other asserts.
7579 (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
7580 scm_uniform_vector_ref, scm_array_set_x,
7581 scm_dimensions_to_unform_array): change args in
7582 SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
7583 strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
7584 scm_substring_fill_x): likewise.
7585 gsubr.c (scm_gsubr_apply): likewise.
7586 eval.c (SCM_APPLY): likewise.
7587
7588 * eval.c (4 places): replace scm_everr with lgh_error or
7589 scm_wrong_num_args.
7590
7591 * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
7592 scm_memory_error): new procedures.
7593 scm_everr: deleted. can use scm_wta, dropping first two args.
7594 scm_error: convert NULL subr to SCM_BOOL_F.
7595
7596 * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
7597 SCM_ARGERR.
7598
7599 * stackchk.c (scm_report_stack_overflow): use lgh_error instead
7600 of scm_wta.
7601
7602 * error.c, error.h: new error keys: scm_arg_type_key,
7603 scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
7604 scm_misc_error_key.
7605 scm_wta: reimplement using lgh_error instead of scm_everr.
7606
7607 Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
7608
7609 * gdbint.c: scm_lread now has one more argument.
7610
7611 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
7612 scm_port_\1; Added mutator scm_set_port_filename_x (used when
7613 loading source from non-file ports, which, e. g., happens when
7614 using the Emacs interface).
7615
7616 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
7617 object.
7618
7619 * read.c: Added code for recording of positions of source code
7620 expressions; New functions: recsexpr, scm_lreadrecparen;
7621 _scm_make_srcprops --> scm_make_srcprops
7622 (scm_flush_ws): Removed updating of positions counters. This work
7623 is already done by scm_gen_getc
7624
7625 * read.h: Added prototype for scm_lreadrecparen
7626
7627 * print.c: Added #include "alist.h"
7628
7629 * eval.c: Added #include "hash.h"
7630
7631 * eq.c: Added #include "ramap.h"
7632
7633 * options.c: Documentation fixes.
7634
7635 * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
7636 (scm_init_srcprop): Adjusted size of initial source-whash. Name
7637 changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
7638 --> scm_make_srcprops
7639
7640 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
7641 _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
7642 function calls in the definition of the whash access macros.
7643
7644 Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
7645
7646 * init.c (scm_boot_guile): Add level of indirection to
7647 scm_boot_guile_1() to ensure that stack base pointer is properly
7648 initialized. There was no guarantee that variable i was the
7649 highest/lowest variable on stack (i.e. the call frame of
7650 scm_boot_guile was not completely protected from gc).
7651
7652 Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
7653
7654 * ports.h (scm_port_table): put back file_name, it will be used to
7655 support debugging. Undo related changes in fports.c, ioext.c,
7656 ports.c, gc.c.
7657
7658 Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
7659
7660 * ports.h (scm_port_table): remove file_name member for now, it seems
7661 undesirable.
7662 * fports.c (scm_open_file): don't set file_name in PTAB.
7663 (prinfport): don't use file_name in PTAB.
7664 * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
7665 * ports.c (scm_add_to_port_table): don't intialize file_name.
7666 (scm_port_file_name): remove for now.
7667 * gc.c (scm_gc_mark): don't mark PTAB file_name.
7668
7669 * fports.h (scm_mkfile): prototype deleted.
7670 * fports.c (scm_mkfile): merged into scm_open_file to simplify.
7671
7672 * debug.c, unif.c: use scm_out_of_range instead of
7673 wta for range errors (ASSERT still needs work).
7674
7675 * error.c, error.h (scm_out_of_range): new procedure.
7676
7677 * error.c, error.h (scm_out_of_range_key): new key.
7678
7679 * posix.c (scm_sync): #else was missing.
7680
7681 * error.c, error.h: append _key to names scm_num_overflow and
7682 scm_system_error.
7683
7684 * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
7685 of consing an empty list.
7686 (SCM_SYSERROR etc.): move into error.c, make them procedures instead
7687 of macros, saves code and string space.
7688 error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
7689 fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
7690 lower case. Rename scm_syserror_m to scm_syserror_msg.
7691 error.h: prototypes for new procedures.
7692
7693 Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
7694
7695 * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
7696
7697 * error.c, error.h: setup scm_num_overflow key.
7698
7699 * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
7700 Remove definition of SCM_OVSCM_FLOW.
7701
7702 * fports.c (scm_open_file): use SCM_SYSERROR_M.
7703
7704 * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
7705 explicit message and args.
7706
7707 * error.c, error.h, __scm.h: change system_error_sym to
7708 scm_system_error.
7709
7710 * error.c (system_error_sym): remove leading %% from the Scheme name
7711 "%%system-error".
7712
7713 * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
7714
7715 Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7716
7717 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
7718 fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
7719 numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
7720 tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
7721 renamed. (These were introduced by unsupervised name
7722 substitution.)
7723
7724 Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7725
7726 * print.c: Added code for detection of circular references during
7727 printing. (init_ref_stack, grow_ref_stack): New functions. Added
7728 a hook for printing of closures (accessible via print options).
7729 This leads to a split of calls to scm_iprin1 into two classes:
7730 elementary print operations (e. g. the code which prints a smob)
7731 still use scm_iprin1 while top level calls (like scm_display) use
7732 scm_prin1. scm_prin1 begins by clearing the data structure used
7733 to record reference information.
7734
7735 * print.h: Added declarations of scm_prin1 and scm_prlist.
7736
7737 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
7738
7739 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
7740
7741 * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
7742
7743 * error.c (err_head): scm_iprin1 --> scm_prin1
7744
7745 * debug.c: Adjusted header comment.
7746
7747 * tags.h: Typo.
7748
7749 Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
7750
7751 * strerror.c: Doc fix.
7752
7753 Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
7754
7755 * gdbint.c (gdb_read): Now possible to run during GC.
7756 (unmark_port, remark_port): New functions.
7757
7758 * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
7759
7760 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
7761 of allocating a new string object. Also, increase size by
7762 the factor 2 instead of 1.5.
7763
7764 Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
7765
7766 * __scm.h (SCM_P): Corrected to run under traditional C.
7767
7768 * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
7769 removed.
7770
7771 * async.c: Calls to scm_sysintern corrected.
7772
7773 * async.h (scm_async_clock): Redundant declaration removed.
7774
7775 * continuations.c (scm_dynthrow): Redundant declaration removed.
7776
7777 * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
7778 Definition typos corrected.
7779
7780 * debug.h: Missing declarations of functions in debug.c added
7781 (lots).
7782
7783 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
7784 Missing declarations to functions in eval.c added.
7785
7786 * filesys.c: Possibly uninitialized variable rv.
7787
7788 * gc.h (scm_object_addr, scm_unhash_name): Missing
7789 declarations of functions defined in gc.c added.
7790
7791 * genio.c: Possible typos str_data -> wstr_data. ???
7792
7793 * genio.c: Possibly unintended shadowing of local variable
7794 `int c' (gotos out of scope of inner `c'). ???
7795
7796 * init.c: Uninitialized `SCM last' may be used.
7797
7798 * ioext.h: (scm_sys_isatty_p): Typo.
7799
7800 * list.h (scm_list_head): Missing prototype for function in
7801 list.c added.
7802
7803 * numbers.c (scm_two_doubles): Changed from extern to static
7804 (is used only within numbers.c).
7805
7806 * numbers.h: Repeated declarations removed.
7807
7808 * ports.h (scm_close_all_ports_except): Declaration for the
7809 function defined in ports.c added.
7810
7811 * posix.h: Missing declarations added.
7812
7813 * procs.h (scm_make_subr_opt): Missing declaration added.
7814
7815 * socket.h (scm_sys_gethost): Missing declaration added.
7816
7817 * socket.h: Redundant declarations removed (they are in fdsocket.h).
7818
7819 * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
7820 Missing declarations added.
7821
7822 * stime.h (scm_get_internal_real_time): Repeated declarations removed.
7823
7824 * struct.c: Uninitialized variable `SCM answer' may be used.
7825
7826 * unif.c (l2ra): Declaration prototype.
7827
7828 * unif.c (scm_array_equal_p): Dummy definition removed (it is
7829 defined in ramap.c).
7830
7831 * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
7832 Redundant declarations removed (they are in ramap.h).
7833
7834 * variable.h (scm_make_udvariable,
7835 scm_make_undefined_variable): Declaration corrected to
7836 correspond variable.c.
7837
7838 * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
7839 Missing declarations added.
7840
7841 Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
7842
7843 * Makefile.in (distclean): Don't forget to delete fd.h.
7844
7845 Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
7846
7847 * fd.h.in, tags.h: Trivial cleanups.
7848
7849 * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
7850 marksweep.h just declared functions from gc.c.
7851 * gc.h, libguile.h: Don't #include "marksweep.h".
7852 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
7853 marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
7854 dependencies updated.
7855
7856 * libguile.h: Don't #include "files.h"; it's been deleted.
7857
7858 * files.c (scm_sys_delete_file): Moved to filesys.c.
7859 File is now empty; deleted.
7860 * files.h: Deleted.
7861 * filesys.c: scm_sys_delete_file is now here. Remove
7862 #if's; they seem to rely on remnants of an old portability
7863 regimen. If the problems come up again, solve them properly,
7864 using autoconf. Specifically: Don't test M_SYSV, and #define
7865 remove to be unlink if it's #defined; don't use remove just
7866 because HAVE_STDC_HEADERS is #defined.
7867 * filesys.h: Add declarations for scm_sys_delete_file.
7868 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
7869 files.o, files.h, files.c, and files.x.
7870 * init.c: Don't #include "files.h", and don't call scm_init_files.
7871
7872 Use SCM_P instead of PROTO; the latter intrudes on the user's
7873 namespace.
7874 * params.h: Deleted; definition of SCM_P moved to...
7875 * __scm.h: ... here, where it replaces PROTO macro.
7876 * libguile.h, smob.h: Don't #include "params.h".
7877 * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
7878 smob.h: Fix prototypes accordingly.
7879 * Makefile.in: Update dependencies.
7880 (inner_h_files): Remove params.h.
7881
7882 * gc.c: #include "gc.h"; every module should include its header,
7883 to let the compiler cross-check the declarations against the
7884 definitions.
7885
7886 * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
7887 simpos.h: #include "libguile/__scm.h".
7888
7889 Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
7890
7891 * init.c: Don't forget to #include smob.h and init.h.
7892 * Makefile.in: Dependencies updated.
7893
7894 * smob.h: Use PROTO instead of #if __STDC__.
7895
7896 * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
7897
7898 * __scm.h: Doc fixes.
7899
7900 * __scm.h, libguile.h: Use "quotes" in the #includes, not
7901 <angles>; this allows `make depends' to work properly.
7902
7903 * libguile.h: #include smob.h and pairs.h before the others; they
7904 define typedefs used by other headers.
7905
7906 C files should #include only the header files they need, not
7907 libguile.h (which #includes all the header files); the pointless
7908 recompilation was wasting my time.
7909 * Makefile.in (all .o dependency lists): Regenerated.
7910 * libguile.h: Don't try to get a definition for size_t here...
7911 * __scm.h: Do it here.
7912 * _scm.h: Since this is the internal libguile header, put things
7913 here that all (or a majority) of the libguile files will want.
7914 Don't #include <libguile.h> here; that generates dependencies on
7915 way too much. Instead, get "__scm.h", "error.h", "pairs.h",
7916 "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
7917 "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
7918 "async.h".
7919 * alist.c: Get "eq.h", "list.h", "alist.h".
7920 * append.c: Get "append.h", "list.h".
7921 * arbiters.c: Get "arbiters.h", "smob.h".
7922 * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
7923 * boolean.c: Get "boolean.h".
7924 * chars.c: Get "chars.h".
7925 * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
7926 "stackchk.h".
7927 * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
7928 "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
7929 "genio.h", "throw.h", "eval.h".
7930 * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
7931 * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
7932 "stackchk.h".
7933 * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
7934 * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
7935 "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
7936 "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
7937 "debug.h".
7938 * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
7939 * feature.c: Get "feature.h".
7940 * files.c: Get "files.h".
7941 * filesys.c: Get "filesys.h", "smob.h", "genio.h".
7942 * fports.c: Get "fports.h", "markers.h".
7943 * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
7944 "genio.h", "struct.h", "stackchk.h", "stime.h".
7945 * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
7946 "read.h", "strports.h", "tag.h".
7947 * genio.c: Get "genio.h", "chars.h".
7948 * gsubr.c: Get "gsubr.h", "genio.h".
7949 * hash.c: Get "hash.h", "chars.h".
7950 * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
7951 * init.c: Get everyone who has an scm_init_mumble function:
7952 "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
7953 "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
7954 "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
7955 "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
7956 "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
7957 "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
7958 "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
7959 "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
7960 "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
7961 "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
7962 "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
7963 "async.h", "arbiters.h", "append.h", "alist.h".
7964 * ioext.c: Get "ioext.h", "fports.h".
7965 * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
7966 * list.c: Get "list.h", "eq.h".
7967 * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
7968 * mallocs.c: Get "smob.h", "genio.h".
7969 * markers.c: Get "markers.h".
7970 * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
7971 "chars.h".
7972 * numbers.c: Get "unif.h", "genio.h".
7973 * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
7974 * options.c: Get "options.h".
7975 * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
7976 "markers.h", "chars.h", "genio.h".
7977 * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
7978 "read.h", "scmsigs.h", "genio.h", "fports.h".
7979 * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
7980 "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
7981 "chars.h".
7982 * procprop.c: Get "procprop.h", "eval.h", "alist.h".
7983 * procs.c: Get "procs.h".
7984 * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
7985 "chars.h", "smob.h", "unif.h".
7986 * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
7987 "eval.h", "genio.h", "chars.h".
7988 * root.c: Get "root.h", "stackchk.h".
7989 * scmsigs.c: Get "scmsigs.h".
7990 * sequences.c: Get "sequences.h".
7991 * simpos.c: Get "simpos.h", "scmsigs.h".
7992 * smob.c: Get "smob.h".
7993 * socket.c: Get "socket.h", "feature.h".
7994 * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
7995 "alist.h", "smob.h".
7996 * stackchk.c: Get "stackchk.h", "genio.h".
7997 * stime.c: Get "stime.h"."libguile/continuations.h".
7998 * strings.c: Get "strings.h", "chars.h".
7999 * strop.c: Get "strop.h", "chars.h".
8000 * strorder.c: Get "strorder.h", "chars.h".
8001 * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
8002 * struct.c: Get "struct.h", "chars.h".
8003 * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
8004 "variable.h", "eval.h", "chars.h".
8005 * tag.c: Get "tag.h", "struct.h", "chars.h".
8006 * throw.c: Get "throw.h", "continuations.h", "debug.h",
8007 "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
8008 * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
8009 "smob.h", "genio.h", "eval.h", "chars.h".
8010 * variable.c: Get "variable.h", "smob.h", "genio.h".
8011 * vectors.c: Get "vectors.h", "eq.h".
8012 * version.c: Get "version.h".
8013 * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
8014 * weaks.c: Get "weaks.h".
8015
8016 * stackchk.h: #include "libguile/debug.h",
8017
8018 * print.h, read.h: #include "options.h", since everyone who uses
8019 either of these files will need that.
8020
8021 * smob.h: #include "ports.h", "genio.h", and "print.h", since
8022 anyone who uses this file will need them to define the smob
8023 printing functions. Also, get markers.h, since people will need
8024 to #define the mark functions.
8025
8026 * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
8027 * ports.h: ... to here.
8028
8029 * ports.h (scm_port_table_size): Explicitly give type as 'int';
8030 don't rely on archaic C default type rules.
8031
8032 * fports.h: #include "libguile/ports.h", since you need that in
8033 order to parse this.
8034
8035 * genio.h: #include "libguile/print.h", because you need that to
8036 parse this; don't bother #including "ports.h", since print.h gets
8037 that.
8038
8039 * error.h: Don't #include "pairs.h"; _scm.h will do that now.
8040
8041 * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
8042 this; it's now a reference to an element of *scm_root.
8043
8044 * debug.h: Don't #include "options.h"; the compiler won't be able
8045 to find that once the headers are installed; instead, #include
8046 "libguile/options.h".
8047 * gc.h: Same, with marksweep.h.
8048 * mbstrings.h: Same, with symbols.h.
8049 * scmhob.h: Same, with _scm.h.
8050 * smob.h: Same, with params.h.
8051
8052 * Makefile.in (depends): Don't nuke scmconfig.h and the generated
8053 C files; there's no need for this, and it forces recompilations
8054 unnecessarily.
8055
8056 Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
8057
8058 * error.c (scm_error): declare scm_error_callback.
8059
8060 * error.h: prototype for scm_error_callback.
8061
8062 * __scm.h: define lgh_error.
8063 (SCM_SYSERROR): redefine using lgh_error.
8064
8065 Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
8066
8067 * error.c (scm_error): new procedure.
8068
8069 * error.h: prototype for scm_error.
8070
8071 * Makefile.in (install): install scmconfig.h from the current
8072 directory, not $(srcdir).
8073
8074 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
8075
8076 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
8077 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
8078 feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
8079 hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
8080 mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
8081 posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
8082 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
8083 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
8084 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
8085 vports.h, weaks.h: #include "libguile/__scm.h", not
8086 <libguile/__scm.h>. This allows 'gcc -MM' to determine which
8087 dependencies are within libguile properly.
8088
8089 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
8090
8091 * Makefile.in (.c.x): Simplify; there's no need to run this rule
8092 when scmconfig.h doesn't exist.
8093
8094 * load.c (scm_sys_try_load): Correct spelling.
8095
8096 * feature.c (scm_loc_features): Make this static.
8097
8098 * Makefile.in (libpath.h): Omit trailing slash from path. We
8099 shouldn't require it of users, so why put it here?
8100
8101 Move code to initialize and search %load-path from ice-9 to C
8102 code, so we can use the load-path to find the ice-9 boot code;
8103 this makes it easier to run Guile without installing it. See
8104 corresponding changes in guile/Makefile.in.
8105 * feature.c: Move stuff concerned with the load path to load.c.
8106 (scm_compiled_library_path): Deleted.
8107 Don't #include libpath.h here.
8108 * feature.h: Don't mention scm_compiled_library_path.
8109 * load.c: #include "libpath.h" here, as well as <sys/types.h>,
8110 <sys/stat.h>, and <unistd.h> (if present).
8111 (R_OK): #define if the system hasn't deigned to.
8112 (scm_loc_load_path): New variable.
8113 (scm_init_load_path, scm_sys_search_load_path,
8114 scm_sys_try_load_path): New functions.
8115 (scm_init_load): Initialize scm_loc_load_path to point to the
8116 value cell of the Scheme %load-path variable.
8117 * load.h: Add declarations for scm_sys_search_load_path,
8118 scm_sys_try_load_path.
8119 * init.c: Call scm_init_load_path.
8120 * Makefile.in (feature.o, load.o): Dependencies updated.
8121
8122 * load.c, load.h: Rewrite using PROTO macro.
8123
8124 Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
8125
8126 * gc.c (scm_cellp): New function: C predicate to determine if an
8127 SCM value can be regarded as a pointer to a cell on the heap.
8128
8129 * gc.h: Added declaration of scm_cellp.
8130
8131 * gdb_interface.h: New file: The GDB interface header from the GDB
8132 distribution.
8133
8134 * gdbint.c: New file: GDB interface.
8135
8136 * gdbint.h: New file: GDB interface.
8137
8138 * libguile.h: Added #include <libguile/gdbint.h>.
8139
8140 * init.c (scm_boot_guile): Added scm_init_gdbint.
8141
8142 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
8143 Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
8144 found if object files and source are kept separate).
8145
8146 Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
8147
8148 * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
8149
8150 Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
8151
8152 * configure.in: Don't substitute the values of TCL_SRC_DIR and
8153 TK_SRC_DIR; they're not relevant any more.
8154
8155 * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
8156 * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
8157
8158 Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
8159
8160 * PLUGIN/guile.config (xtra_cflags): Include .. in the header
8161 search path, so we can find the <libguile/MUMBLE.h> headers.
8162
8163 * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
8164
8165 * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
8166 implicit in the .c.o rule.
8167 (.c.x): Don't mention ALL_CFLAGS here; its value is included in
8168 $(CC) already.
8169
8170 Put the library path in a header file, instead of passing it on
8171 the command line in every compilation.
8172 * Makefile.in (libpath.h): New target.
8173 (feature.o): Depend on libpath.h.
8174 (clean): Delete libpath.h.
8175 (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
8176 * feature.c: ... #include "libpath.h" here.
8177 * .cvsignore: Ignore libpath.h.
8178
8179 Don't install the unwashed masses of Guile header files in the
8180 main #include path; put most of them in a subdirectory called
8181 'libguile'. This avoids naming conflicts between Guile header
8182 files and system header files (of which there were a few).
8183 * Makefile.in (pkgincludedir): Deleted.
8184 (innerincludedir): New variable; this and $(includedir) are enough.
8185 (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
8186 (installed_h_files): Divide this up. Now this variable lists
8187 those header files which should go into $(includedir) (i.e. appear
8188 directly in the #include path), and ...
8189 (inner_h_files): ... this new variable says which files appear in
8190 a subdirectory, and are referred to as <libguile/mumble.h>.
8191 (h_files): List them both.
8192 (install): Create innerincludedir, not pkgincludedir. Put
8193 the installed_h_files and inner_h_files in their proper places.
8194 (uninstall): Corresponding changes.
8195 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
8196 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
8197 feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
8198 ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
8199 mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
8200 print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
8201 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
8202 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
8203 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
8204 vports.h, weaks.h: Find __scm.h in its new location.
8205 * __scm.h: Find scmconfig.h and tags.h in their new locations
8206 (they're both "inner" files).
8207
8208 Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
8209
8210 * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
8211
8212 Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
8213
8214 * posix.c: Doc fixes.
8215
8216 Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
8217
8218 * socket.c: Don't include a prototype for inet_aton; just use a
8219 K&R style declaration, to avoid warnings but minimize the chance
8220 of conflicts with the system.
8221
8222 On NextStep, <utime.h> doesn't define struct utime, unless we
8223 #define _POSIX_SOURCE before #including it.
8224 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
8225 * acconfig.h: New comment text for above CPP symbol.
8226 * configure.in: Call it.
8227 * posix.c: #define _POSIX_SOURCE if it seems necessary.
8228
8229 * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
8230 in the list.
8231 * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
8232 testing for __EMX__.
8233
8234 * posix.c: #include <libc.h>, if it exists.
8235
8236 * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
8237 don't even know if the latter exists.
8238
8239 * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
8240 s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
8241 s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
8242
8243 * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
8244 header files don't.
8245 (scm_init_posix): Use them when initializing the Scheme constants
8246 of the same name.
8247
8248 Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
8249
8250 * Makefile.in (libdir, includedir, bindir): Use the
8251 autoconf-supplied values, instead of deriving them ourselves.
8252 (pkgincludedir, datadir, pkgdatadir): New variables.
8253 (install, uninstall): Put the header files in a special
8254 subdirectory, not in the main search path.
8255
8256 * Makefile.in (ALL_CFLAGS): Provide the proper value for
8257 LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
8258
8259 * Makefile.in (IMPLPATH): Deleted; never used.
8260
8261 * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
8262 on the Tcl/Tk source any more.
8263 (INCLUDE_CFLAGS): Remove references to the above.
8264
8265 * Makefile.in (version.o): Corrected dependencies.
8266
8267 Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
8268
8269 * libguile.h: #include "version.h"
8270
8271 * init.c (scm_boot_guile): Call scm_init_version.
8272 * gscm.c (gscm_run_scm): Call scm_init_version.
8273
8274 * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
8275 GUILE_VERSION): AC_DEFINE these.
8276 (acconfig.h): #undef the above symbols.
8277
8278 * Makefile.in (libobjs): Add version.o.
8279 (installed_h_files): Add version.h.
8280 (c_files): Add version.c.
8281 (gen_c_files): Add version.x.
8282 (version.o): New rule.
8283 (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
8284 chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
8285 fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
8286 genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
8287 mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
8288 objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
8289 procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
8290 simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
8291 strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
8292 throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
8293 weaks.o): Add version.h to dependency lists.
8294 (markers.o): Remove duplicate rule.
8295
8296 * version.h: New file.
8297
8298 * version.c: New file.
8299
8300 Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
8301
8302 * symbols.c (scm_strhash): scm_downcase is now a function, not an
8303 array; use it appropriately. Since GCC is quite happy to
8304 subscript functions, it never warned us about this; we should use
8305 -Wpointer-arith in the future. I guess we never tested
8306 case-insensitivity.
8307
8308 Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
8309
8310 * socket.c: Doc and copyright fixes.
8311
8312 Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
8313
8314 * debug.c: Fixed and improved gdb support.
8315
8316 Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
8317
8318 * socket.c: Added declaration of inet_aton to avoid compiler
8319 warning. (Hope this solution is correct.)
8320
8321 * stime.c: Added declaration of ftime. (This is missing in
8322 Solaris 2 headers.)
8323
8324 Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
8325
8326 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
8327
8328 * Makefile.in (c_files): add strerror.c.
8329
8330 * strerror.c: new file from Emacs' sysdep.c.
8331 maybe configure should also check for sys_errlist.
8332
8333 * configure.in (AC_REPLACE_FUNCS): add strerror.
8334
8335 Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
8336
8337 * debug.c (scm_init_debug): Added initialization for
8338 scm_evaluator_traps.
8339
8340 * debug.h, debug.c: Various name changes.
8341 (Mostly prefixing with SCM_.) Renamed "debug-options" -->
8342 "debug-options-interface". See commentary in options.c.
8343
8344 * options.h, options.c: Options now have documentation strings.
8345 Also added a long explanatory commentary.
8346
8347 * eval.c, print.h, print.c, read.h, read.c: Modifications to
8348 run-time options.
8349
8350 * gscm.c, init.c, root.c, throw.c: Bug fixes:
8351 last_debug_info_frame is now updated in all cases.
8352
8353 * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
8354 checking.
8355
8356 Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
8357
8358 * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
8359 Added option STACK_CHECKING.
8360
8361 Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
8362
8363 * Makefile.in: Added {debug,options,srcprop}.{h,c}
8364
8365 * __scm.h: Removed symbols for debugging support.
8366
8367 * acconfig.h: Added symbols for debugging support.
8368
8369 * configure.in: Added user option for debugging support.
8370 --enable-debug will include the debugging code into libguile.a.
8371
8372 * continuations.c (scm_make_cont): Enlarged the #if 0 around
8373 scm_relocate_chunk_to_heap.
8374
8375 * debug.c: New file: low-level debugging support. It also
8376 includes support for debugging with gdb. (The extensions to gdb
8377 are written by Per Bothner at Cygnus.)
8378
8379 * debug.h: New file: low-level debugging support.
8380
8381 * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
8382 argument pairs. Extensive modifications to the debugging
8383 evaluator. Added "SECTION:" commentaries to clarify what happens
8384 when, during double compilation. Renamed EVALIMP --> EVALIM.
8385 Renamed EVAL --> XEVAL. Removed function evalcar. Defined
8386 evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
8387 the beginning of the file. New procedure: scm_unmemocopy.
8388 Added some global state variables needed by the debugging
8389 evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
8390 check_entry, check_apply, check_exit, debug_options and
8391 evaluator_traps. New acro: undefine.
8392
8393 * eval.h: Renamed EVAL --> XEVAL.
8394
8395 * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
8396 --> scm_make_weak_key_hash_table.
8397
8398 * init.c (scm_restart_stack, scm_boot_guile): Added initialization
8399 of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
8400
8401 * libguile.h: Conditionally include debug.h
8402
8403 * objprop.c (scm_object_properties, scm_set_object_properties_x):
8404 scm_object_properties shouldn't return handle. `handle' now gets
8405 initialized in scm_set_object_properties_x. scm_object_properties
8406 doesn't any longer create an entry in scm_object_whash.
8407
8408 * options.c: New file: handling of run time options.
8409
8410 * options.h: New file: handling of run time options.
8411
8412 * posix.c (scm_getpgrp): Cast pointer to getpgrp.
8413
8414 * print.c: New procedure: scm_print_options
8415
8416 * print.h: Defines for print options.
8417
8418 * read.c: New procedure: scm_read_options
8419
8420 * read.h: Defines for reader options.
8421
8422 * root.h: Added scm_source_whash among scm_sys_protects.
8423
8424 * srcprop.c: New file: source properties.
8425
8426 * srcprop.h: New file: source properties.
8427
8428 * throw.c (jbsmob): Jump buffers are now correctly allocated.
8429 (Bug found by A. Green.)
8430
8431 * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
8432
8433 * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
8434
8435 Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
8436
8437 * libguile.h: #include "objprop.h"; I guess this was forgotten.
8438
8439 * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
8440 and should be called by the final client.
8441
8442 Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
8443
8444 * gc.h: Use the PROTO macro when declaring functions.
8445 * gc.c: Use the PROTO macro when declaring static functions.
8446 Remove the CPP hair around function definitions.
8447
8448 * gc.c (scm_init_storage): Initialize scm_asyncs.
8449
8450 * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
8451 preprocessor symbol; "__scm.h" is where it might get #defined.
8452 * __scm.h: Similar: #include <scmconfig.h> before testing
8453 HAVE_LIMITS_H.
8454
8455 * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
8456
8457 Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
8458
8459 * init.c (scm_boot_guile): Add init_func argument; call
8460 (*init_func) instead of calling scm_appinit; it's ucky to
8461 hard-code names for the user's procedures.
8462 * init.h (scm_boot_guile): Adjust declaration.
8463
8464 * __scm.h (PROTO): New macro, for declaring functions with
8465 prototypes.
8466
8467 * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
8468 eliminate all the __STDC__ conditionals.
8469 (scm_boot_guile): Add declaration.
8470 * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
8471 Remove __STDC__ conditionals around function definitions; the
8472 declarations in init.h will provide the same information, more
8473 usefully.
8474
8475 * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
8476 complain about it in the error message; the error message is
8477 adequate without that note, and there's nothing the user can do
8478 about it.
8479
8480 Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
8481
8482 * Makefile.in (ancillary): Drop def.sed.
8483
8484 * posix.c (scm_init_posix): Use numeric values, rather than
8485 CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
8486 F_OK. The symbols aren't available on some systems, and I'm
8487 pretty sure their values are fixed by common widespread practice.
8488 * ioext.c (scm_init_ioext): Code here defined them too; remove it.
8489
8490 More functions unavailable on some systems.
8491 * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
8492 tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
8493 check for.
8494 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
8495 * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
8496 scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
8497 bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
8498 stub that signals an error as the #else.
8499
8500 * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
8501
8502 Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
8503
8504 * Fixes motivated by Petr Adamek <adamek@mit.edu>:
8505
8506 * unif.c: include ramap.h.
8507
8508 * read.c (endif): case_insensative_p renamed case_insensitive_p.
8509
8510 * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
8511
8512 * ports.c: include sys/ioctl.h.
8513
8514 * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
8515
8516 * configure.in: check for sys/ioctl.h.
8517
8518 * ports.c: include <malloc.h> not "malloc.h".
8519
8520 * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
8521
8522 * fports.c: remove ttyname and tmpnam declarations.
8523
8524 * posix.c: fewer ttyname declarations.
8525
8526 * fports.c: include <string.h> not "string.h".
8527
8528 * init.c, ioext.c: include string.h and unistd.h.
8529
8530 * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
8531
8532 * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
8533 genio.c, simpos.c, vports.c: include string.h.
8534
8535 * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
8536
8537 * fdsocket.c (getsockopt, setsockopt): change type of optlen from
8538 scm_sizet to int.
8539 (scm_addr_buffer_size): change type from scm_sizet to int.
8540 (accept, getsockname, getpeername, recvfrom): change type of tmp_size
8541 from scm_sizet to int.
8542
8543 * error.c: include unistd.h.
8544
8545 * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
8546 defined.
8547
8548 * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
8549
8550 * __scm.hd, def.sed: deleted.
8551
8552 Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
8553
8554 Changes for NeXT, suggested by Robert Brown.
8555 * configure.in: Call AC_TYPE_MODE_T.
8556 (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
8557 NeXT. Put header file list in alphabetical order.
8558 * configure, scmconfig.h.in: Regenerated.
8559 * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
8560
8561 * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
8562 for strerror.
8563
8564 * acconfig.h: New file, providing documentation for the CPP
8565 symbols defined in configure.in
8566 * acconfig-1.5.h: Removed; superceded by the above.
8567
8568 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
8569
8570 * ioext.c (scm_sys_fdopen): fix the port-table assignment.
8571
8572 * fports.c (scm_open_file): don't return #f, throw error.
8573
8574 * ioext.c (fileno): renamed from %fileno.
8575 (soft-fileno): deleted.
8576
8577 * ports.c (scm_port_revealed): don't need to check for -1 from
8578 scm_revealed_count.
8579 (scm_set_port_revealed_x): return unspecified, not #f.
8580
8581 * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
8582
8583 * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
8584
8585 * scmconfig.h.in: add HAVE_STRUCT_LINGER.
8586
8587 * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
8588
8589 Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
8590
8591 * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
8592 This is necessary on Ultrix, and doesn't hurt portability.
8593
8594 * Makefile.in (dist-dir): New target, implementing a new dist system.
8595 (installed_h_files): Put in alphabetical order.
8596 Remove duplicate entries for markers.h and unif.h.
8597 (c_files): Remove duplicate entries for markers.c.
8598 (ancillary): Renamed from anillery; all uses changed. Remove
8599 PLUGIN; it's a directory, and needs special treatment in dist-dir.
8600 Remove all the ../doc/* files; doc/Makefile.in handles that.
8601
8602 * Makefile.in (libobjs): Remove duplicate entry for markers.o.
8603
8604 * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
8605 every if must have an else, or else the whole command has a
8606 non-zero exit code whenever the if's condition is false.
8607
8608 Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
8609
8610 * posix.c: include string.h.
8611
8612 Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
8613
8614 * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
8615 have been once.
8616
8617 * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
8618 Remove leading % from scheme names.
8619 Do not return error values, call SCM_SYSERROR or similar.
8620
8621 * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
8622
8623 Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
8624
8625 * struct.c (scm_init_struct): new file.
8626
8627 Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
8628
8629 * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
8630 (scm_list_head): added list-head for rapidly chopping argument
8631 lists off of longer lists (and similar).
8632
8633 Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
8634
8635 * objprop.c (scm_object_property): assq the cdr of the whash
8636 handle for obj, not the handle itself.
8637
8638 Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
8639
8640 * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
8641 weak hash tables last of all marking to avoid an obscure gc bug.
8642 WARNING: circular lists stored in a weak hash table will hose us.
8643
8644 Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
8645
8646 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
8647 new functions similar to scm_substring_move_left_x and
8648 scm_substring_move_right_x.
8649
8650 Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
8651
8652 * init.c (scm_boot_guile): prevent gc with scm_block_gc not
8653 scm_gc_heap_lock!
8654
8655 Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
8656
8657 * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
8658
8659 Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
8660
8661 * strports.c (scm_strprint_obj): convenience function. C for
8662 (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
8663
8664 * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
8665 removed to a separate library
8666
8667 * init.c (scm_boot_guile): copied from guile-tcl.c.
8668 Initialization specific to tcl interpreters removed.
8669
8670 Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
8671
8672 * ports.c (scm_ports_prehistory): size malloced here doesn't
8673 matter so long as it is non-0 (got rid of "* 4").
8674
8675 Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
8676
8677 * gscm.h: gscm_mkarray eliminated (presumably was not being used
8678 since its definition was bogus).
8679
8680 Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
8681
8682 * mallocs.[ch]: back again (for rx at least).
8683
8684 Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
8685
8686 * ports.c: removed functions relating to the mapping between ports
8687 and descriptors. (That stuff is unix-specific and should be collected
8688 in a separate library).
8689
8690 * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
8691 (Tom Mckay@avanticorp.com)
8692
8693 Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
8694
8695 * gc.c (scm_gc_sweep): Immediates in weak vectors were not
8696 handled correctly (SCM_FREEP was applied to them) -- test for
8697 NIMP. Keys in weak hash tables were spuriously (though harmlessly)
8698 being overwritten with #f. (brown@grettir.bibliotech.com)
8699
8700 Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
8701
8702 * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
8703 for a specific symbol or for all symbols.
8704
8705 Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
8706
8707 * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
8708 keys and weak values confused).
8709
8710 Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
8711
8712 * list.c (scm_last_pair): map '()=>'()
8713
8714 Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
8715
8716 * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
8717 Generalized assoc and hash-table functions.
8718 Factored pairs.c into multiple files.
8719
8720 Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
8721
8722 * gscm.c (gscm_run_scm): got rid of objprop.
8723
8724 Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
8725
8726 * genio.c (scm_getc):
8727 NOTE: fgetc may not be interruptable.
8728
8729 * procprop.c (scm_stand_in_scm_proc):
8730 NOTE: don't use a alist here.
8731 (scm_set_procedure_properties_x): fix type checking throughout this file.
8732
8733 * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
8734
8735 * ports.c (scm_remove_from_port_table): adjust scm_mallocated
8736 after freeing part of the port table.
8737
8738 Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
8739
8740 * strports.c (scm_mkstrport):
8741 * vports.c (scm_make_soft_port): allocate a port table entry
8742 (possibly triggering gc) before setting the tag of the corresponding
8743 ports handle.
8744
8745 * pairs.c (scm_delq_x): never throw an error.
8746
8747 * vectors.c (scm_make_vector): made the default vector fill argument
8748 into '() (much more useful than the previous value, "#unspecified")
8749
8750 Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
8751
8752 * ports.c (scm_add_to_port_table): Added fields
8753 to port table entries: file_name, line_num, col.
8754 Update these in open_file, gen_getc and gen_ungetc.
8755 Added procedures to access those fields.
8756
8757 Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
8758
8759 * procs.c (scm_make_subr_opt): new entry point for making
8760 anonymous subrs.
8761
8762 Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
8763
8764 * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
8765
8766 Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
8767
8768 * numbers.c (scm_exact_p): This function no longer
8769 implements "integer?".
8770
8771 Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
8772
8773 * gc.c (scm_gc_end): simulate a signal at the end of each GC.
8774 (scm_gc_stats): return an assoc of useful data. Replaces "room"
8775 and the stats reporting formerlly built into repl.
8776
8777 * repl.[ch]: removed.
8778 GC statistics keeping moved to gc.c.
8779 Other statistics keeping can be done from Scheme.
8780 REPLS are now written in Scheme.
8781
8782 Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
8783
8784 * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
8785 conservatively marked objects).
8786
8787 * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
8788
8789 * error.c (scm_init_error): init system_error_sym here, not in repl.c.
8790
8791 * feature.c (scm_compiled_library_path): moved here from repl.c.
8792 This file is for stuff relating specifically to Scheme libraries
8793 like slib.
8794
8795 * eval.c (scm_m_define): don't give warning about redefinition, don't
8796 check verbosity.
8797
8798 NOTE: this should throw a resumable exception with parameters --
8799 the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
8800
8801 * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
8802
8803 * error.c: scm_warn eliminated.
8804
8805 * read.c (scm_lreadr): extra right paren gets an error, not a warning.
8806
8807 * repl.c, marksweep.c, gc.c (various):
8808 lose exit_report, growth_mon.
8809
8810 * gscm.c: got rid of verbosity functions.
8811
8812 Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
8813
8814 * throw.c (scm_ithrow): guard against the bad-throw hook changing
8815 between the call to procedurep and use.
8816
8817 * error.c (scm_everr):
8818 * gc.c (fixconfig):
8819 * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
8820 but less so.
8821
8822 * strports.c: don't reveal the port's string to the caller
8823 because it changes size.
8824
8825 (stputc stwrite): check/change the strings length with interrupts
8826 blocked.
8827
8828 * objprop.c (scm_set_object_property_x &c): use the generic
8829 hashing functions and be threadsafe.
8830
8831 * eval.c (scm_unmemocar): do this operation in a thread-safe way.
8832 (per suggestion jaffer@gnu.ai.mit.edu).
8833
8834 * mbstrings.c (scm_multi_byte_string): guard against argument list
8835 changing length.
8836
8837 * strings.c (scm_make_string): loop cleanup
8838
8839 * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
8840 a scheme function.
8841
8842 * weaks.c (scm_weak_vector): guard against argument list
8843 changing length.
8844
8845 * variable.c (scm_builtin_variable): check for/make a built-in
8846 variable automicly.
8847
8848 * vectors.c (scm_vector): while filling the new array,
8849 guard against a list of fill elements that grows after
8850 the vector is allocated.
8851
8852 * hashtab.c -- new file: general hash table
8853 functions. hash, hashq, hashv, hashx.
8854
8855 * tags.h: made wvect an option bit of vector.
8856
8857 Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
8858
8859 * symbols.c: made the basic symbol table operations atomic.
8860
8861 * root.c &c.: collected stack-specific global state.
8862 linum/colnum etc *should* be port-specific state.
8863
8864 * struct.c (scm_init_struct): init the first struct type during
8865 initialization to fix a race condition.
8866
8867 * continuations.c (scm_dynthrow): pass throwval in the 'regs'
8868 object, not in a global.
8869 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
8870
8871 * throw.c (_scm_throw): Pass throwval on the stack, not in a global
8872 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
8873
8874 * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
8875 and C symbols to begin with SCM_ or scm_.
8876
8877 Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
8878
8879 * gsubr.c (scm_gsubr_apply): statically allocate the
8880 array of arguments (bothner@cygnus.com).
8881
8882 Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
8883
8884 * scmsigs.c: Simplified to use async rountines.
8885
8886 * async.c: New support for interrupt handlers.
8887
8888 Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
8889
8890 * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
8891 set the multi_byte flag correctly in symbols. This is wrong.
8892 intern_obbary_soft and msymbolize should take an extra parameter.
8893 Also, weird multibyte symbols don't print correctly.
8894 The weird symbol syntax is also a bit bogus (emacs doesn't quite
8895 cope).
8896
8897 Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
8898
8899 * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
8900 use the system symhash. == #t means create an uninterned symbol.
8901
8902 Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
8903
8904 * strings.c (scm_make_shared_substring): build'em.
8905 It might better to keep a table of these and use one
8906 less cons-pair per shared-substring.
8907
8908 Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
8909
8910 * strings.c (scm_string_shared_substring): create shared
8911 substrings. (Doesn't handle mb strings yet).
8912
8913 * mbstrings.c (scm_print_mb_string): handle RO strings.
8914
8915 * print.c (scm_iprin1): print substrings as their non-substring
8916 counterparts (dubious).
8917
8918 * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
8919 strings.
8920
8921 * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
8922
8923 * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
8924
8925 * eq.c (scm_equal_p): handle RO and MB strings.
8926
8927 * symbols.c (scm_string_to_symbol):
8928 (scm_string_to_obarray_symbol):
8929 * strop.c (scm_i_index):
8930 (scm_i_rindex):
8931 (scm_string_null_p):
8932 (scm_string_to_list):
8933 * strings.c (scm_string_length):
8934 (scm_string_ref):
8935 (scm_substring):
8936 (scm_string_append):
8937 * simpos.c (scm_system):
8938 (scm_getenv):
8939 * fports.c (scm_open_file):
8940 * strorder.c (scm_string_equal_p):
8941 (scm_string_ci_equal_p):
8942 (scm_string_less_p):
8943 (scm_string_ci_less_p):
8944 * pairs.c (scm_obj_length):
8945 * mbstrings.c (scm_multi_byte_string_length):
8946
8947 Use RO string macros for RO strings.
8948
8949 Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
8950
8951 * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
8952
8953 * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
8954 index/rindex. Do handle embedded \000 characters.
8955
8956 Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
8957
8958 * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
8959 Eliminate a (presumed) warning on some systems.
8960
8961 * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
8962 (Mikael Djurfeldt <mdj@nada.kth.se>)
8963
8964 Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
8965
8966 * eval.c (scm_map): added argument type checking.
8967 (kawai@sail.t.u-tokyo.ac.jp)
8968
8969 * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
8970 for C++. (Seth Alves <alves@gryphon.com>)
8971
8972 (gscm_cstr): uses an uninitialized local variable causing
8973 segv. (kawai@sail.t.u-tokyo.ac.jp)
8974
8975
8976 * lvectors.c (scm_get_lvector_hook):
8977 In guile-ii, the lvector code was broken. It was fixed in guile-iii.
8978 It seems to me like if it is broken again in guile-iv...Here is a patch.
8979 "! || (LENGTH (keyvec) == 0))"
8980 (From: Mikael Djurfeldt <mdj@nada.kth.se>)
8981
8982
8983 * gscm.c (gscm_sys_default_verbosity):
8984 incorrectly declared for non-__STDC__
8985 (Tom_Mckay@avanticorp.com)
8986
8987 * ports.c (scm_setfileno): Tweak the macro a bit
8988 to make it easier to port to systems that use
8989 more than a single structure field to hold a descriptor.
8990
8991 * debug.c (change_mode): Avoid GNUCism "int foo[n];"
8992 Give a warning, not an error, for unrecognized modes.
8993
8994 * eval.c (SCM_CEVAL):
8995 static char scm_s_for_each[];
8996 static char scm_s_map[];
8997 not needed.
8998
8999 * strings.c (scm_string_p):
9000 static char s_string[];
9001 (see next entry)
9002
9003 * struct.c (scm_sys_struct_set_x):
9004 static char s_sys_make_struct[];
9005 static char s_sys_struct_ref[];
9006 static char s_sys_struct_set_x[];
9007 Rearrange code to eliminate those forward decls for the sake of
9008 broken compilers.
9009
9010 * variable.c (make_vcell_variable): static char s_make_variable[];
9011 isn't needed.
9012
9013 * fports.c (scm_port_mode):
9014 chars modes[3] = "";
9015 to
9016 chars modes[3];
9017 modes[0] = '\0';
9018 (Tom_Mckay@avanticorp.com)
9019
9020
9021 * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
9022 scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
9023 (Tom_Mckay@avanticorp.com)
9024
9025 * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
9026 scm_num_eq_p() was scm_equal_p().
9027 (Tom_Mckay@avanticorp.com)
9028
9029 * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
9030 (Tom_Mckay@avanticorp.com)
9031
9032 Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
9033
9034 * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
9035 (Tom_Mckay@avanticorp.com)
9036
9037 * strop.c (scm_substring_fill_x):
9038 Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
9039 (Tom_Mckay@avanticorp.com)
9040
9041 * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
9042 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
9043
9044 * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
9045 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
9046
9047 * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
9048 can turn into an obscure gc bug.
9049
9050 * chars.c (scm_char_p): fixed PROC call.
9051
9052 * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
9053 scm_vector_set.
9054
9055 Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
9056
9057 * elisp.c (new file): dynamic scoping and other bits for
9058 elisp. Don't use this yet unless you specificly want to
9059 hack on elisp emulation.
9060
9061 * dynwind.c (scm_dowinds): When entering or leaving a dynamic
9062 scope created by scm_with_dynamic_bindings_operation_x, swap
9063 the bindings of that scope with the corresponding globals.
9064
9065 * continuations.c (scm_make_cont): when a continuation is captured,
9066 relocate the continuation stack chunks registered on the wind chain
9067 to the heap.
9068
9069 Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
9070
9071 * eval.c (SCM_CEVAL): if the function position evaluates
9072 to a macro, process it accordingly. (Previously, macros were
9073 handled only if the function position was a symbol naming a
9074 variable bound to a macro).
9075
9076 Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
9077
9078 * eval.c (scm_m_set): allow multi-variable set! like
9079 (set! x 1 y 2 z 3).
9080
9081 Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
9082
9083 * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
9084 STREAM of ports into the port table and replaced it with a
9085 port-table index.
9086
9087 * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
9088
9089 * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
9090
9091 * mbstrings.c (new file): functions on multi-byte strings.
9092
9093 * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
9094 for multi-byte strings. Moved the string tag.
9095
9096 * chars.h chars.c repl.c (many functions): made scm_upcase and
9097 scm_downcase functions that are safe for extended character sets.
9098
9099 Changed the range of integer->char.
9100
9101 Changed the type of SCM_ICHR.
9102
9103 Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
9104
9105 * guile.c: Changed init file name from "SCM_INIT_PATH" to
9106 "GUILE_INIT_PATH"
9107
9108 Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
9109
9110 * guile.c (gscm_is_gscm_type): New function. (Without this how will we
9111 know that it's safe to pass an object to gscm_get_type?)
9112 (gscm_get_type): Fix tyop in error message.
9113
9114 * variable.c (scm_variable_ref): fixed assertion test.
9115 (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
9116
9117 * gscm.h: fixed several prototypes, notably gscm_vref.
9118 Add gscm_is_eq and temporarily commented out gscm_eq (see
9119 the note in gscm.h near gscm_eq if this change effects your
9120 code).
9121 (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
9122
9123 * pairs.c (scm_obj_length): see next entry.
9124
9125 * gscm.h (gscm_obj_length): A way to get an integer
9126 length for lists, strings, symbols (treated as strings),
9127 and vectors. Returns -1 on error.
9128
9129 * eq.c (scm_equal_p): fixed smob case.
9130 (William Gribble <grib@arlut.utexas.edu>)
9131
9132 * Makefile.in (X_CFLAGS): defined.
9133 (William Gribble <grib@arlut.utexas.edu>)
9134
9135 * gscm.h (gscm_2_double): provided now
9136 (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
9137
9138 Tue Jun 13 01:04:09 1995 gnu
9139 * Vrooom!
9140
9141