1 Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
3 * eval.c (scm_definedp): Use top_level_lookup_closure_var
4 and not top_level_lookup_thunk_var.
6 Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
8 * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
10 Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
12 * eval.c (scm_definedp): Incompatibly changed to be a builtin
13 Scheme function, instead of syntax. Single argument is now a
16 Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
18 It's an "eval closure", not an "eval thunk." A thunk is a
19 function of no arguments.
20 * root.h (struct scm_root_state): Renamed
21 top_level_lookup_closure_var from top_level_lookup_thunk_var.
22 (scm_top_level_lookup_closure_var): Renamed from
23 scm_top_level_lookup_thunk_var.
24 * root.c (mark_root): Uses changed.
25 * gdbint.c (gdb_eval, gdb_binding): Uses changed.
26 * init.c (scm_start_stack): Uses changed.
27 * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
28 Change scheme-visible name to *top-level-lookup-closure* from
29 *top-level-lookup-thunk*.
31 Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
33 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
34 pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
36 Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
38 * gc.c (struct scm_heap_seg_data): Doc fixes.
40 * gc.c (scm_gc_sweep): Empty all segments' freelists before
41 sweeping. Then, prepend each segment's free cells to its
42 freelist, rather than wiping out the old value. (Thanks to Marius
45 * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
46 scm_check_freelist, scm_debug_newcell): New functions and
47 variables, for debugging freelist problems.
48 * pairs.h (SCM_NEWCELL): New debugging version added.
49 * gc.h (scm_debug_newcell): Added extern declaration, used by
50 debugging version of SCM_NEWCELL.
52 Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
54 On some systems <libc.h> conflicts with <unistd.h>, and should not
56 * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
57 * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
58 * configure.in: Call it.
59 * posix.c, filesys.c: Use its results to decide whether or not to
61 * configure, scmconfig.h.in: Rebuilt with autoconf and
64 Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
66 * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
67 pointer to the stdio stream before calling scm_setbuf0, so the
68 latter will be able to retrieve it. I'm surprised this didn't
69 segfault earlier. (Thanks to Christopher Lee.)
71 Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
73 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
76 Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
78 * * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
79 number of stack narrowing specifier pairs. The first specifier in
80 a pair controls inner border, the second the outer border. A
81 number means cut that number of frames, a procedure object means
82 cut until that object is found in operator position in a frame.
84 * root.c (cwdr): Bugfix.
86 * * read.c: Recording of positions disabled by default.
88 * * procs.c (scm_closure_p): New function.
90 * * posix.c (scm_tmpnam): New function.
92 * load.c: Added #include "throw.h".
93 * (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
96 * * load.c, load.h (scm_read_and_eval_x): New function.
98 * * eval.c: Renamed debug option "deval" to "debug".
100 * (scm_eval_x): `eval!' is no longer accessible from the scheme
101 level. Motivation: We can't allow operations which introduce
102 glocs into the scheme level. Guile's type system can't handle
103 these as data. Use `eval' or `read-and-eval!' as replacement.
105 * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
106 SCM_CONSP since this is a macro!; Set vframe.prev to
107 scm_last_debug_frame instead of 0. In this way we can look
108 "above" the virtual start stack frame if we wish.
109 (scm_debug_hang): New function: Useful for debugging Guile in
110 certain tricky situations. Will probably be removed later...
112 * * debug.h: Changed semantics of debug option "backtrace". This
113 option now only indicates whether we want automatic backtrace at
116 Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
118 * ports.c: #include "filesys.h"
119 (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
121 * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
122 Motivation: This is system specific code which is related to file
123 I/O. It also may use select. Added code by Gary Houston to
124 detect presence of character in stdio buffers.
126 * libguile.h: #include "libguile/libpath.h"
128 * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
129 SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
130 SCM_SITE_DIR; Install libpath.h among the other include files.
132 * load.c, load.h (scm_sys_package_data_dir): New function.
134 Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
136 * stacks.h: Bugfix: Don't use tail-array length field as stack
137 length field! This screwed GC.
139 Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
141 * _scm.h: Added #ifndef around definition of macros min and max.
143 * __scm.h: Added hooks for threads to plugin to in ints protection
144 macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
145 SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
146 the main code in these macros duplicated and spread over multiple
147 files. Renamed SCM_THREADS_SWITCHING_CODE ->
148 SCM_THREAD_SWITCHING_CODE.
150 Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
153 * guile-snarf.sh: New file.
154 * Makefile.in (inner_h_files): Added snarf.h
155 (ancillary, install, uninstall, distclean): Added actions for
157 (.c.x): Use guile-snarf.
158 (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
159 (gen_c_files): Note that these depend on guile-snarf.
160 * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
161 now in "snarf.h". Added #include "snarf.h" to get them.
162 * libguile.h: Added #include "snarf.h".
163 (Patches applied and tweaked by Jim Blandy.)
165 Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
167 * socket.c: Use K&R style declaration for 'close'; the GNU coding
168 standards suggest against providing prototypes for system
169 functions. Thanks to Greg Troxel.
171 Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
173 * strports.c (scm_eval_0str): New function.
174 #include "read.h", to get prototype for scm_read.
175 * Makefile.in (strports.o): Update dependencies.
176 * strports.h: New prototype.
178 * * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
179 scheme name from "int?" to "integer?". It seems to do the job.
180 * numbers.h: Rename prototype too.
181 * scmhob.h (intp): Change definition to refer to scm_integer_p. I
184 * * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
185 scm_num_eq_p): Rename these according to R4RS conventions: call
186 them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
187 to making libguile R4RS compliant without ice-9...
189 * * load.c (scm_sys_search_load_path): Search for files under all
190 extensions listed in the %load-extensions variable. If FILENAME
191 is absolute, return it unchanged, without searching the load path.
192 * (scm_loc_load_extensions): New variable, pointing to
193 %load-extensions' value cell.
194 (scm_init_load): Initialize it, and the value it points to.
195 (scm_primitive_load_path): Improve error reporting.
197 * * load.c (scm_loc_load_hook): New variable, pointing to value cell
198 of new Scheme variable %load-hook.
199 (scm_primitive_load): Apply %load-hook to filename.
201 Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
203 * configure.in: add tests for figuring out whether buffered data
204 is available in a FILE structure, which is needed by char-ready.
206 * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
209 * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
210 exceptions using misc_error instead of syserror. It seems a bit
211 odd to throw an exception if a string can't be found in the
212 environment, but it's consistent with open-file, stat etc.
213 (simpos.h): remove sys_ from getenv.
215 * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
216 occurs, throw an error instead of returning errno. Return value
218 (numerous in posix.c and posix.h): removed superfluous sys_ from names.
220 Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
222 * filesys.c (scm_stat2scm): derive file type and permissions from
223 the stat mode and append them to the returned vector.
224 There isn't much overhead in doing this and it avoids the need to
225 work with S_IRUSR et al. in Scheme.
226 Define symbols scm_sym_regular etc.
227 (scm_init_filesys): don't intern S_IRUSR etc.
229 * load.c: change s_try_load and s_try_load_path to s_primitive_load
230 and s_primitive_load_path.
232 * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
234 * error.h: don't declare error symbols. prototype for scm_misc_error.
236 * stackchk.c (scm_stack_overflow_key): defined here instead of in
239 * error.c: use SCM_SYMBOL to set up error keys.
240 scm_misc_error: new procedure.
242 Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
244 * read.c (scm_lreadr): Recognize SCSH-style block comments; text
245 between `#!' and `!#' is ignored.
246 (skip_scsh_block_comment): New function.
248 * feature.c (scm_set_program_arguments): New argument, FIRST.
249 * feature.h: Update prototype.
250 * init.c (scm_boot_guile_1): Pass new argument to
251 scm_set_program_arguments.
253 Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
255 * init.c (scm_start_stack): Don't initialize scm_progargs here.
256 (scm_boot_guile): Call scm_set_program_arguments here, later than
257 the old initialization.
259 * * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
260 initialization procedure.
261 - Delete in, out, err arguments; there are other perfectly good
262 ways to override these when desired.
263 - Delete result argument; this function shouldn't ever return.
264 - Rename init_func argument to main_func, for less confusion.
265 - Delete boot_cmd argument; main_func is more general.
266 -Add 'closure' argument, to help people pass data to main_func
267 without resorting to global variables.
268 - Abort if reentered; don't bother returning an error code.
269 - Call scm_init_standard_ports to set up the default/current
270 standard ports; no need to pass them to scm_start_stack.
271 - Remove code to evaluate the boot_cmd, and start the repl; let
272 the user do something like that in main_func if they want.
273 - Remove code to package up a return value; main_func can do any
275 - Call exit (0), instead of returning.
276 (scm_start_stack): Don't initialize the I/O ports here; that's
277 weird. Delete in, out, err arguments. Move guts to
278 scm_init_standard_ports, scm_stdio_to_port.
279 (scm_init_standard_ports): New function, to set up current and
280 default standard ports.
281 (scm_start_stack, scm_restart_stack): Make these static.
282 * init.h (scm_boot_guile): Adjust declaration.
283 (scm_start_stack, scm_restart_stack): Remove externally
284 visible declarations for these.
285 (enum scm_boot_status): Removed; now scm_boot_guile never returns.
287 * * fports.c (scm_stdio_to_port): New function. Its guts used to be
288 written out several times in scm_start_stack.
289 * fports.h: New declaration for the above.
291 * * feature.c (scm_set_program_arguments): New function.
292 * feature.h: New declaration for the above.
294 * ports.c: Formatting tweak.
296 Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
298 * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
299 ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
300 for obtaining the address of a car or cdr field. Motivation:
301 &SCM_CXR make assumptions about the internal structure of the
304 * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
305 Motivation: see SCM_CXRLOC.
307 * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
308 srcprop.h, tags.h, throw.c, unif.c: Added new selectors
309 SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
310 Motivation: Safer use. Some other macros are defined in terms of
311 these operations. If these are defined using the SCM_SETCXR
312 (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
313 to inefficiency and an <e1> with side-effects could potentially
314 break. Also, these particular operations are heavily utilized in
315 the garbage collector. In unoptimized code there will be a
318 * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
319 eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
320 ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
321 pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
322 procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
323 strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
324 vports.c: Cleaned up use of pairs: Don't make any special
325 assumptions about the internal structure of selectors and
326 mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
327 SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
328 (Among other things, this change makes it easier to build Guile
329 with certain compilers which have problems with casted lvalues.)
331 Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
333 * stacks.c: Improve selection of relevant stack frames when making
334 a stack object. Introduce one level of indirection in the stack
335 object to make it possible to "narrow" to a certain region of the
336 stack. This facilitates making use of more clever algorithms (not
337 implemented) for selecting relevant frames and gives a cleaner
338 design since selection of frames can be done independently of
339 extraction of frames from the real stack.
340 (scm_stack_id): Also take #t as argument which means look at
343 * stacks.h: In struct scm_stack: Turn field frames into a pointer.
344 Turn n_tail into an integer directly representing current number
345 of frames in stack. Add field tail.
347 * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
349 * debug.c (scm_make_memoized): Made it available at scheme level.
350 (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
351 SCM_NIMP before applying heavier predicates in argument checking.
352 (scm_local_eval): Also take memoized object as argument.
354 * backtrace.c (scm_display_error): Just a safety measure: Stacks
355 aren't created with zero length, but should such a strange
356 creature suddenly turn up...
358 Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
360 * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
361 `del', for the sake of C++ compilers. (Patch applied by JimB.)
363 Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
365 * variable.c (scm_make_variable): Make the name hint optional, as
367 (anonymous_variable_sym): Renamed from variable_sym. All uses
370 * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
371 from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
372 of scm_primitive_load_path was also changed to
373 "primitive-load-path", from "%try-load-path". Callers changed.
374 We'd like to respect the convention that a function named
375 "try-mumble" should behave just like the function called "mumble",
376 but return #f instead of signalling some error.
377 * load.h: Rename prototypes.
379 Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
381 * print.c (make_print_state, grow_print_state), print.h: Modified
382 the print state representation: Don't use a tail array for
383 recording of circular references. Resizing of the print state
384 structure invalidates the print state pointer. To avoid passing
385 around an indirect print state reference to all printing
386 functions, we instead let the print state reference a resizable
389 Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
391 * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
392 Don't crash when passed an improper list terminated by a
395 Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
397 Allocate data for structures on an eight-byte boundary, as
398 required by the tagging system.
399 * struct.c (alloc_struct): New function.
400 (scm_make_struct, scm_make_vtable_vtable): Call it.
401 * struct.h (scm_struct_n_extra_words): Bump to 3.
402 (scm_struct_i_ptr): New "field".
403 * gc.c (scm_gc_sweep): When we need to free the data, use the
404 information stored by alloc_struct to find the beginning of the
405 block allocated to the structure, so we can free it.
407 Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
409 * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
412 * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
413 (scm_debug_info): New member: id.
415 * stacks.c: Stacks are now represented as structs; Stacks have an
416 id given to them by `start-stack'.
417 (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
419 * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
420 Changed stack representation.
422 * debug.c (scm_procedure_name): Try procedure property `name' for
423 compiled closures aswell.
425 * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
427 * eval.c: scm_i_name moved to gsubr.c
428 (scm_m_define): Record names of all kinds of procedure
429 objects. (Earlier, only closures were recorded.)
431 * procprop.h: Added declaration of scm_i_name.
433 * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
434 (scm_make_gsubr): Record names of compiled closures.
436 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
438 * debug.c, debug.h: Removed obsolete code.
440 * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
441 stacks.c: Renamed regs --> scm_contregs.
443 * print.c (scm_free_print_state): Cleanup print state before
444 returning it to pool. It is better to do it here than in
445 scm_prin1 since scm_prin1 is called often.
447 * srcprop.c (scm_source_properties, scm_set_source_properties_x,
448 s_set_source_property_x): Check that first argument is a pair or a
451 * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
452 scm_i_line, scm_i_column and scm_i_breakpoint global.
454 * init.c: Added #include "backtrace.h" and #include "stacks.h".
455 (scm_boot_guile_1): Added calls to scm_init_backtrace and
458 * debug.h: Added debug object smob declaration and macro
461 * configure.in: Build with backtrace.o and stacks.o if debug
464 * Makefile.in: Added entries for new files: backtrace.c,
465 backtrace.h, stacks.c and stacks.h.
467 * symbols.c (scm_sym2ovcell): Fixed documentation.
469 * _scm.h (min, max): Added.
471 * async.c: Moved `min' macro to _scm.h.
473 * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
474 SCM_BACKTRACE_INDENT.
476 * eval.c: Added new debug options `maxdepth' and `indent'.
478 * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
480 * print.h: Added selector SCM_PRINT_STATE.
482 * print.c: New functions: scm_make_print_state,
483 scm_free_print_state.
485 * print.h: Added declarations for scm_make_print_state,
486 scm_free_print_state.
488 * * debug.c (scm_m_start_stack): New acro.
490 * debug.h: Small cleanup.
492 * init.c (scm_boot_guile_1): Moved scm_init_debug below
495 Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
497 * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
498 arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
499 chars.c, chars.h, continuations.c, continuations.h, debug.c,
500 debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
501 eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
502 filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
503 gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
504 hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
505 kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
506 markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
507 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
508 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
509 procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
510 root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
511 simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
512 stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
513 strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
514 struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
515 unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
516 version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
517 declare functions with prototypes. (Patch thanks to Marius
520 More prototype-related changes from Marius Vollmer:
521 * gdb_interface.h: Wrapped header file in #ifdef/#endif
522 * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
523 * ports.h (ptobfuns): Added prototypes. This means some casting in
525 * fports.c: Added casts for initializations, since the functions
526 are defined to take FILE * as their stream argument, not SCM.
527 * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
528 * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
529 to `char *str_data' to conform to prototype.
531 Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
533 * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
535 * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
537 * stime.c, stime.h: use SCM_P method.
539 Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
541 * eval.c (scm_nconc2last): Don't accept an empty list; apply must
542 be given at least two arguments. Insist that lst's last element
543 be a list, but don't make any requirements of its predecessors.
545 Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
547 * eval.c (scm_nconc2last): Revert last change; there seems to be
548 other stuff going on here.
550 Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
552 * eval.c (scm_nconc2last): Make sure that each element of lst
553 (which is a list of argument lists, except for the tail) is a
554 proper list, i.e., finite and terminated by '().
556 Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
558 * unif.c (scm_ra_set_contp): Localize `inc' declaration.
561 * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
562 symbolic name for the tag, scm_tc3_cons_gloc, instead of just
565 * vectors.c (scm_make_vector): Fill vectors with the undefined
566 value, to help make Guile Scheme code more portable to other
569 * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
570 * symbols.h, tags.h: Doc fixes.
572 Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
574 * async.c (scm_take_signal): Doc fixes.
576 Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
578 * numbers.c (scm_divbigint): When the remainder is zero, we don't
579 want to subtract it from the modulus; we just want to leave it
582 Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
584 * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
587 * throw.h (scm_catch_apply): Removed the `lazyp' argument.
589 * throw.c (scm_catch_apply): Finished implementation of
592 Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
594 * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
596 (scm_init_filesys): set "i/o-extensions" feature.
599 Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
601 * Makefile.in (root.o): Correct dependencies.
603 Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
605 * Makefile.in: Added dependency entry for root.o.
607 * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
608 throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
610 * init.c (scm_start_stack): Set initial root continuation number
613 * procs.c: New function: scm_thunk_p.
615 * procs.h: Added declarations of scm_thunk_p.
617 * root.c: Renamed `call-with-new-root' -->
618 `call-with-dynamic-root'.
619 (cwdr): Removed allocation of new root state. This should be done
620 separately by use of scm_make_root.
621 (scm_apply_with_dynamic_root): New function: Does what it
622 sounds like. Needed when spawning threads.
624 * root.h: Added member last_debug_frame to root state.
625 Added #include "libguile/debug.h"
627 * throw.c: Renamed scm_catch --> scm_catch_apply and added more
628 arguments. The motivation is that code in root.c needs catch
629 functionality, and we want to avoid code duplication.
630 New functions: scm_catch, scm_lazy_catch. These are wrappers for
631 scm_catch_apply. scm_lazy_catch is intended to introduce catch
632 handlers that run without popping the stack into the dynwind
635 * throw.h: Added prototypes for scm_catch_apply and
638 Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
640 * root.h (scm_root, scm_set_root): Decouple thread support details
641 by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
642 SCM_SET_THREAD_LOCAL_DATA.
644 * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
645 and tortoise scanning loop.
647 Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
649 * Makefile.in: Rebuild dependencies.
651 * libguile.h: #include "libguile/print.h" before "smob.h", since
652 the latter uses the print_state structure.
654 * throw.c (scm_ithrow): Use the correct variable when checking to
655 see if a given element of scm_dynwinds is a valid catch.
657 * throw.c (scm_ithrow): If scm_dynwinds has invalid list
658 structure, abort; don't just silently ignore the garbage.
660 * _scm.h: #include "print.h" here, since it seems to be used just
662 * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
663 strports.c, unif.h: Don't #include "print.h".
665 Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
667 * feature.h (scm_loc_features): Removed external declaration.
668 (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
670 Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
672 * feature.c (scm_init_feature): Added threads feature (needs to be
673 initialized here, since features doesn't exist when
674 scm_init_threads is called).
676 * libguile.h: Added #include "libguile/../threads/threads.h".
677 (This is a kludge to get thread support working. This should be
680 * configure.in, acconfig.h: Added flags for thread support.
682 * scmsigs.c: Define `signal' to be `pthread_signal' if using
685 * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
686 SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
689 * _scm.h: Added conditional #include "threads.h"
691 * __scm.h (SCM_ASYNC_TICK): Added call to macro
692 SCM_THREADS_SWITCHING_CODE.
694 * init.c (scm_start_stack): Call `scm_make_root' to dynamically
695 allocate the basic dynamic root object.
696 (scm_boot_guile): Added call to scm_init_root.
698 * * root.c, root.h: Added root smob.
699 (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
700 functions: Implements dynamic roots mostly according to spec in
701 SCM manual. Main difference is that the second argument is a
702 throw handler rather than an error "thunk".
704 * root.h: Added declaration of scm_init_root.
706 * root.c: Added #include "genio.h", #include "smob.h", #include
707 "pairs.h", #include "throw.h", #include "dynwind.h", #include
709 (scm_init_root): Added #include "root.x".
711 * throw.c: Added #include "stackchk.h"
712 (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
713 SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
714 can be used in scm_call_with_new_root; Added reenabling of stack
715 checking when catching a throw.
717 Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
719 * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
721 * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
722 element is not found, as per R4RS.
724 Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
726 * list.c: Doc fixes throughout.
728 Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
730 * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
731 declare the char * to be const. Avoids a warning in rgx.c.
733 * ports.h: spelling fix.
735 * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
738 * load.c (scm_sys_try_load_path): throw an error if file not found
739 (like it says it in NEWS).
741 Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
743 * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
744 PROPS slot to '(), not #f; it's an empty alist.
746 * throw.h, throw.c: Use SCM_P instead of #if hair.
748 Remove special support for uncaught throws; see throw.c for
750 * throw.c (uncaught_throw): New function.
751 (scm_ithrow): Call uncaught_throw if we don't find a throw
752 target; don't mess with scm_bad_throw_vcell.
753 (scm_bad_throw_vcell): Variable deleted.
754 (scm_init_throw): Don't initialize it.
756 * throw.c (scm_ithrow): Don't let outer key matches shadow inner
759 Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
761 * numbers.c (scm_istr2int): If the number is short (as most
762 numbers are), just call scm_small_istr2int to deal with it.
763 (scm_small_istr2int): New function, created by un-#ifdefing the
764 non-bignum version of scm_istr2int and renaming it.
766 Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
768 * load.c (scm_sys_try_load): don't check whether value returned
769 by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
770 Change the Scheme name from %try-load to primitive-load.
772 * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
773 Can avoid passing a message, allowing it to be derived in the
774 error handler (e.g., if we want to throw to the key both from
777 Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
779 * * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
780 references now have a new appearance which is more compact and
781 also gives a clue about what the target of the reference is.
782 By setting parameters in the print state, more fancy printing can
783 be achieved. This is used by the (not yet commited) backtrace
786 Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
788 * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
791 * print.c: Added #include "struct.h". Removed function
794 * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
795 scm_iprin1. Removed prototype for scm_prlist.
797 * arbiters.c (prinarb),
798 async.c (print_async),
799 debug.c (prindebugobj, prinmemoized),
800 eval.c (prinprom, prinmacro),
801 filesys.c (scm_fd_print, scm_dir_print),
803 mallocs.c (prinmalloc),
804 numbers.c, numbers.h (scm_floprint, scm_bigprint),
805 smob.h (scm_smobfuns),
806 srcprop.c (prinsrcprops),
808 unif.c, unif.h (scm_raprin1, rapr1),
809 variable.c (prin_var): Changed argument `int writing' to
810 `scm_print_state *pstate'.
812 * init.c (scm_boot_guile): Moved scm_init_struct upwards so
813 that it will be called before scm_init_print.
815 * print.c (scm_prin1): Print states are now allocated when calling
816 scm_prin1 and then passed around to all printing functions as an
817 argument. A cache `print_state_pool' enables reuse of print
819 (scm_make_print_state): New function.
820 (scm_iprin1): Adaption to print states.
821 (scm_iprlist): An initial "hare and tortoise" scan brings down
822 time complexity to O (depth * N). (Better time complexity will be
823 achieved when the printing code is completely rewritten.)
825 Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
827 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
828 AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
829 it gets done whether or not the cache variable has a value.
831 Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
833 Distinguish #f and ().
834 * __scm.h: #undef SICP.
835 * pairs.h (SCM_EOL): Delete this definition, equating it with
837 * tags.h (SCM_EOL): Give it a new definition here; I think I found
838 the value it used to have. Doc fixes, too.
840 Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
842 * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
843 scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
844 Lord's implementation of structs, allowing for tail arrays as
845 described in the manual. Also fixed some bugs. (Both the interface
846 and the implementation should be improved.)
848 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
850 * print.c, print.h: Closures now print like #<procedure foo (x)>.
851 People who whish to see the source can do `(print-enable 'source)'.
852 Removed #ifdef DEBUG_EXTENSIONS.
854 Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
856 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
857 integer (assuming for now accepting an integer is a good thing).
859 * error.c, fports.c: replace use of %S in lgh_error args with %s.
860 %S will be used instead for write'ing arguments.
862 * unif.c (scm_transpose_array): change arguments in the SCM_WNA
863 asserts. fix a few other asserts.
864 (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
865 scm_uniform_vector_ref, scm_array_set_x,
866 scm_dimensions_to_unform_array): change args in
867 SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
868 strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
869 scm_substring_fill_x): likewise.
870 gsubr.c (scm_gsubr_apply): likewise.
871 eval.c (SCM_APPLY): likewise.
873 * eval.c (4 places): replace scm_everr with lgh_error or
876 * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
877 scm_memory_error): new procedures.
878 * scm_everr: deleted. can use scm_wta, dropping first two args.
879 scm_error: convert NULL subr to SCM_BOOL_F.
881 * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
884 * stackchk.c (scm_report_stack_overflow): use lgh_error instead
887 * error.c, error.h: new error keys: scm_arg_type_key,
888 scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
890 scm_wta: reimplement using lgh_error instead of scm_everr.
892 Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
894 * gdbint.c: scm_lread now has one more argument.
896 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
897 scm_port_\1; Added mutator scm_set_port_filename_x (used when
898 loading source from non-file ports, which, e. g., happens when
899 using the Emacs interface).
901 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
904 * read.c: Added code for recording of positions of source code
905 expressions; New functions: recsexpr, scm_lreadrecparen;
906 _scm_make_srcprops --> scm_make_srcprops
907 (scm_flush_ws): Removed updating of positions counters. This work
908 is already done by scm_gen_getc
910 * read.h: Added prototype for scm_lreadrecparen
912 * print.c: Added #include "alist.h"
914 * eval.c: Added #include "hash.h"
916 * eq.c: Added #include "ramap.h"
918 * options.c: Documentation fixes.
920 * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
921 (scm_init_srcprop): Adjusted size of initial source-whash. Name
922 changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
923 --> scm_make_srcprops
925 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
926 _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
927 function calls in the definition of the whash access macros.
929 Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
931 * init.c (scm_boot_guile): Add level of indirection to
932 scm_boot_guile_1() to ensure that stack base pointer is properly
933 initialized. There was no guarantee that variable i was the
934 highest/lowest variable on stack (i.e. the call frame of
935 scm_boot_guile was not completely protected from gc).
937 Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
939 * ports.h (scm_port_table): put back file_name, it will be used to
940 support debugging. Undo related changes in fports.c, ioext.c,
943 Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
945 * ports.h (scm_port_table): remove file_name member for now, it seems
947 * fports.c (scm_open_file): don't set file_name in PTAB.
948 (prinfport): don't use file_name in PTAB.
949 * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
950 * ports.c (scm_add_to_port_table): don't intialize file_name.
951 (scm_port_file_name): remove for now.
952 * gc.c (scm_gc_mark): don't mark PTAB file_name.
954 * fports.h (scm_mkfile): prototype deleted.
955 * fports.c (scm_mkfile): merged into scm_open_file to simplify.
957 * debug.c, unif.c: use scm_out_of_range instead of
958 wta for range errors (ASSERT still needs work).
960 * error.c, error.h (scm_out_of_range): new procedure.
962 * error.c, error.h (scm_out_of_range_key): new key.
964 * posix.c (scm_sync): #else was missing.
966 * error.c, error.h: append _key to names scm_num_overflow and
969 * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
970 of consing an empty list.
971 (SCM_SYSERROR etc.): move into error.c, make them procedures instead
972 of macros, saves code and string space.
973 error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
974 fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
975 lower case. Rename scm_syserror_m to scm_syserror_msg.
976 error.h: prototypes for new procedures.
978 Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
980 * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
982 * error.c, error.h: setup scm_num_overflow key.
984 * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
985 Remove definition of SCM_OVSCM_FLOW.
987 * fports.c (scm_open_file): use SCM_SYSERROR_M.
989 * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
990 explicit message and args.
992 * error.c, error.h, __scm.h: change system_error_sym to
995 * error.c (system_error_sym): remove leading %% from the Scheme name
998 * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
1000 Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1002 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
1003 fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
1004 numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
1005 tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
1006 renamed. (These were introduced by unsupervised name
1009 Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1011 * * print.c: Added code for detection of circular references during
1012 printing. (init_ref_stack, grow_ref_stack): New functions. Added
1013 a hook for printing of closures (accessible via print options).
1014 This leads to a split of calls to scm_iprin1 into two classes:
1015 elementary print operations (e. g. the code which prints a smob)
1016 still use scm_iprin1 while top level calls (like scm_display) use
1017 scm_prin1. scm_prin1 begins by clearing the data structure used
1018 to record reference information.
1020 * print.h: Added declarations of scm_prin1 and scm_prlist.
1022 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
1024 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
1026 * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
1028 * error.c (err_head): scm_iprin1 --> scm_prin1
1030 * debug.c: Adjusted header comment.
1034 Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
1036 * strerror.c: Doc fix.
1038 Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1040 * gdbint.c (gdb_read): Now possible to run during GC.
1041 (unmark_port, remark_port): New functions.
1043 * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
1045 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
1046 of allocating a new string object. Also, increase size by
1047 the factor 2 instead of 1.5.
1049 Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
1051 * __scm.h (SCM_P): Corrected to run under traditional C.
1053 * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
1056 * async.c: Calls to scm_sysintern corrected.
1058 * async.h (scm_async_clock): Redundant declaration removed.
1060 * continuations.c (scm_dynthrow): Redundant declaration removed.
1062 * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
1063 Definition typos corrected.
1065 * debug.h: Missing declarations of functions in debug.c added
1068 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
1069 Missing declarations to functions in eval.c added.
1071 * filesys.c: Possibly uninitialized variable rv.
1073 * gc.h (scm_object_addr, scm_unhash_name): Missing
1074 declarations of functions defined in gc.c added.
1076 * genio.c: Possible typos str_data -> wstr_data. ???
1078 * genio.c: Possibly unintended shadowing of local variable
1079 `int c' (gotos out of scope of inner `c'). ???
1081 * init.c: Uninitialized `SCM last' may be used.
1083 * ioext.h: (scm_sys_isatty_p): Typo.
1085 * list.h (scm_list_head): Missing prototype for function in
1088 * numbers.c (scm_two_doubles): Changed from extern to static
1089 (is used only within numbers.c).
1091 * numbers.h: Repeated declarations removed.
1093 * ports.h (scm_close_all_ports_except): Declaration for the
1094 function defined in ports.c added.
1096 * posix.h: Missing declarations added.
1098 * procs.h (scm_make_subr_opt): Missing declaration added.
1100 * socket.h (scm_sys_gethost): Missing declaration added.
1102 * socket.h: Redundant declarations removed (they are in fdsocket.h).
1104 * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
1105 Missing declarations added.
1107 * stime.h (scm_get_internal_real_time): Repeated declarations removed.
1109 * struct.c: Uninitialized variable `SCM answer' may be used.
1111 * unif.c (l2ra): Declaration prototype.
1113 * unif.c (scm_array_equal_p): Dummy definition removed (it is
1114 defined in ramap.c).
1116 * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
1117 Redundant declarations removed (they are in ramap.h).
1119 * variable.h (scm_make_udvariable,
1120 scm_make_undefined_variable): Declaration corrected to
1121 correspond variable.c.
1123 * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
1124 Missing declarations added.
1126 Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
1128 * Makefile.in (distclean): Don't forget to delete fd.h.
1130 Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
1132 * fd.h.in, tags.h: Trivial cleanups.
1134 * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
1135 marksweep.h just declared functions from gc.c.
1136 * gc.h, libguile.h: Don't #include "marksweep.h".
1137 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1138 marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
1139 dependencies updated.
1141 * libguile.h: Don't #include "files.h"; it's been deleted.
1143 * files.c (scm_sys_delete_file): Moved to filesys.c.
1144 File is now empty; deleted.
1146 * filesys.c: scm_sys_delete_file is now here. Remove
1147 #if's; they seem to rely on remnants of an old portability
1148 regimen. If the problems come up again, solve them properly,
1149 using autoconf. Specifically: Don't test M_SYSV, and #define
1150 remove to be unlink if it's #defined; don't use remove just
1151 because HAVE_STDC_HEADERS is #defined.
1152 * filesys.h: Add declarations for scm_sys_delete_file.
1153 * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
1154 files.o, files.h, files.c, and files.x.
1155 * init.c: Don't #include "files.h", and don't call scm_init_files.
1157 Use SCM_P instead of PROTO; the latter intrudes on the user's
1159 * params.h: Deleted; definition of SCM_P moved to...
1160 * __scm.h: ... here, where it replaces PROTO macro.
1161 * libguile.h, smob.h: Don't #include "params.h".
1162 * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
1163 smob.h: Fix prototypes accordingly.
1164 * Makefile.in: Update dependencies.
1165 (inner_h_files): Remove params.h.
1167 * gc.c: #include "gc.h"; every module should include its header,
1168 to let the compiler cross-check the declarations against the
1171 * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
1172 simpos.h: #include "libguile/__scm.h".
1174 Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
1176 * init.c: Don't forget to #include smob.h and init.h.
1177 * Makefile.in: Dependencies updated.
1179 * smob.h: Use PROTO instead of #if __STDC__.
1181 * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
1183 * __scm.h: Doc fixes.
1185 * __scm.h, libguile.h: Use "quotes" in the #includes, not
1186 <angles>; this allows `make depends' to work properly.
1188 * libguile.h: #include smob.h and pairs.h before the others; they
1189 define typedefs used by other headers.
1191 C files should #include only the header files they need, not
1192 libguile.h (which #includes all the header files); the pointless
1193 recompilation was wasting my time.
1194 * Makefile.in (all .o dependency lists): Regenerated.
1195 * libguile.h: Don't try to get a definition for size_t here...
1196 * __scm.h: Do it here.
1197 * _scm.h: Since this is the internal libguile header, put things
1198 here that all (or a majority) of the libguile files will want.
1199 Don't #include <libguile.h> here; that generates dependencies on
1200 way too much. Instead, get "__scm.h", "error.h", "pairs.h",
1201 "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
1202 "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
1204 * alist.c: Get "eq.h", "list.h", "alist.h".
1205 * append.c: Get "append.h", "list.h".
1206 * arbiters.c: Get "arbiters.h", "smob.h".
1207 * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
1208 * boolean.c: Get "boolean.h".
1209 * chars.c: Get "chars.h".
1210 * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
1212 * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
1213 "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
1214 "genio.h", "throw.h", "eval.h".
1215 * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
1216 * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
1218 * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
1219 * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
1220 "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
1221 "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
1223 * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
1224 * feature.c: Get "feature.h".
1225 * files.c: Get "files.h".
1226 * filesys.c: Get "filesys.h", "smob.h", "genio.h".
1227 * fports.c: Get "fports.h", "markers.h".
1228 * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
1229 "genio.h", "struct.h", "stackchk.h", "stime.h".
1230 * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
1231 "read.h", "strports.h", "tag.h".
1232 * genio.c: Get "genio.h", "chars.h".
1233 * gsubr.c: Get "gsubr.h", "genio.h".
1234 * hash.c: Get "hash.h", "chars.h".
1235 * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
1236 * init.c: Get everyone who has an scm_init_mumble function:
1237 "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
1238 "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
1239 "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
1240 "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
1241 "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
1242 "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
1243 "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
1244 "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
1245 "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
1246 "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
1247 "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
1248 "async.h", "arbiters.h", "append.h", "alist.h".
1249 * ioext.c: Get "ioext.h", "fports.h".
1250 * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
1251 * list.c: Get "list.h", "eq.h".
1252 * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
1253 * mallocs.c: Get "smob.h", "genio.h".
1254 * markers.c: Get "markers.h".
1255 * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
1257 * numbers.c: Get "unif.h", "genio.h".
1258 * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
1259 * options.c: Get "options.h".
1260 * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
1261 "markers.h", "chars.h", "genio.h".
1262 * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
1263 "read.h", "scmsigs.h", "genio.h", "fports.h".
1264 * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
1265 "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
1267 * procprop.c: Get "procprop.h", "eval.h", "alist.h".
1268 * procs.c: Get "procs.h".
1269 * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
1270 "chars.h", "smob.h", "unif.h".
1271 * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
1272 "eval.h", "genio.h", "chars.h".
1273 * root.c: Get "root.h", "stackchk.h".
1274 * scmsigs.c: Get "scmsigs.h".
1275 * sequences.c: Get "sequences.h".
1276 * simpos.c: Get "simpos.h", "scmsigs.h".
1277 * smob.c: Get "smob.h".
1278 * socket.c: Get "socket.h", "feature.h".
1279 * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
1280 "alist.h", "smob.h".
1281 * stackchk.c: Get "stackchk.h", "genio.h".
1282 * stime.c: Get "stime.h"."libguile/continuations.h".
1283 * strings.c: Get "strings.h", "chars.h".
1284 * strop.c: Get "strop.h", "chars.h".
1285 * strorder.c: Get "strorder.h", "chars.h".
1286 * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
1287 * struct.c: Get "struct.h", "chars.h".
1288 * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
1289 "variable.h", "eval.h", "chars.h".
1290 * tag.c: Get "tag.h", "struct.h", "chars.h".
1291 * throw.c: Get "throw.h", "continuations.h", "debug.h",
1292 "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
1293 * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
1294 "smob.h", "genio.h", "eval.h", "chars.h".
1295 * variable.c: Get "variable.h", "smob.h", "genio.h".
1296 * vectors.c: Get "vectors.h", "eq.h".
1297 * version.c: Get "version.h".
1298 * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
1299 * weaks.c: Get "weaks.h".
1301 * stackchk.h: #include "libguile/debug.h",
1303 * print.h, read.h: #include "options.h", since everyone who uses
1304 either of these files will need that.
1306 * smob.h: #include "ports.h", "genio.h", and "print.h", since
1307 anyone who uses this file will need them to define the smob
1308 printing functions. Also, get markers.h, since people will need
1309 to #define the mark functions.
1311 * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
1312 * ports.h: ... to here.
1314 * ports.h (scm_port_table_size): Explicitly give type as 'int';
1315 don't rely on archaic C default type rules.
1317 * fports.h: #include "libguile/ports.h", since you need that in
1318 order to parse this.
1320 * genio.h: #include "libguile/print.h", because you need that to
1321 parse this; don't bother #including "ports.h", since print.h gets
1324 * error.h: Don't #include "pairs.h"; _scm.h will do that now.
1326 * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
1327 this; it's now a reference to an element of *scm_root.
1329 * debug.h: Don't #include "options.h"; the compiler won't be able
1330 to find that once the headers are installed; instead, #include
1331 "libguile/options.h".
1332 * gc.h: Same, with marksweep.h.
1333 * mbstrings.h: Same, with symbols.h.
1334 * scmhob.h: Same, with _scm.h.
1335 * smob.h: Same, with params.h.
1337 * Makefile.in (depends): Don't nuke scmconfig.h and the generated
1338 C files; there's no need for this, and it forces recompilations
1341 Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
1343 * error.c (scm_error): declare scm_error_callback.
1345 * error.h: prototype for scm_error_callback.
1347 * __scm.h: define lgh_error.
1348 (SCM_SYSERROR): redefine using lgh_error.
1350 Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
1352 * error.c (scm_error): new procedure.
1354 * error.h: prototype for scm_error.
1356 * Makefile.in (install): install scmconfig.h from the current
1357 directory, not $(srcdir).
1359 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
1361 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
1362 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
1363 feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
1364 hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
1365 mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
1366 posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
1367 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
1368 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
1369 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
1370 vports.h, weaks.h: #include "libguile/__scm.h", not
1371 <libguile/__scm.h>. This allows 'gcc -MM' to determine which
1372 dependencies are within libguile properly.
1374 Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
1376 * Makefile.in (.c.x): Simplify; there's no need to run this rule
1377 when scmconfig.h doesn't exist.
1379 * load.c (scm_sys_try_load): Correct spelling.
1381 * feature.c (scm_loc_features): Make this static.
1383 * Makefile.in (libpath.h): Omit trailing slash from path. We
1384 shouldn't require it of users, so why put it here?
1386 Move code to initialize and search %load-path from ice-9 to C
1387 code, so we can use the load-path to find the ice-9 boot code;
1388 this makes it easier to run Guile without installing it. See
1389 corresponding changes in guile/Makefile.in.
1390 * feature.c: Move stuff concerned with the load path to load.c.
1391 (scm_compiled_library_path): Deleted.
1392 Don't #include libpath.h here.
1393 * feature.h: Don't mention scm_compiled_library_path.
1394 * load.c: #include "libpath.h" here, as well as <sys/types.h>,
1395 <sys/stat.h>, and <unistd.h> (if present).
1396 (R_OK): #define if the system hasn't deigned to.
1397 (scm_loc_load_path): New variable.
1398 (scm_init_load_path, scm_sys_search_load_path,
1399 scm_sys_try_load_path): New functions.
1400 (scm_init_load): Initialize scm_loc_load_path to point to the
1401 value cell of the Scheme %load-path variable.
1402 * load.h: Add declarations for scm_sys_search_load_path,
1403 scm_sys_try_load_path.
1404 * init.c: Call scm_init_load_path.
1405 * Makefile.in (feature.o, load.o): Dependencies updated.
1407 * load.c, load.h: Rewrite using PROTO macro.
1409 Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1411 * gc.c (scm_cellp): New function: C predicate to determine if an
1412 SCM value can be regarded as a pointer to a cell on the heap.
1414 * gc.h: Added declaration of scm_cellp.
1416 * gdb_interface.h: New file: The GDB interface header from the GDB
1419 * gdbint.c: New file: GDB interface.
1421 * gdbint.h: New file: GDB interface.
1423 * libguile.h: Added #include <libguile/gdbint.h>.
1425 * init.c (scm_boot_guile): Added scm_init_gdbint.
1427 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
1428 Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
1429 found if object files and source are kept separate).
1431 Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
1433 * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
1435 Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
1437 * configure.in: Don't substitute the values of TCL_SRC_DIR and
1438 TK_SRC_DIR; they're not relevant any more.
1440 * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
1441 * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
1443 Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
1445 * PLUGIN/guile.config (xtra_cflags): Include .. in the header
1446 search path, so we can find the <libguile/MUMBLE.h> headers.
1448 * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
1450 * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
1451 implicit in the .c.o rule.
1452 (.c.x): Don't mention ALL_CFLAGS here; its value is included in
1455 Put the library path in a header file, instead of passing it on
1456 the command line in every compilation.
1457 * Makefile.in (libpath.h): New target.
1458 (feature.o): Depend on libpath.h.
1459 (clean): Delete libpath.h.
1460 (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
1461 * feature.c: ... #include "libpath.h" here.
1462 * .cvsignore: Ignore libpath.h.
1464 * Don't install the unwashed masses of Guile header files in the
1465 main #include path; put most of them in a subdirectory called
1466 'libguile'. This avoids naming conflicts between Guile header
1467 files and system header files (of which there were a few).
1468 * Makefile.in (pkgincludedir): Deleted.
1469 (innerincludedir): New variable; this and $(includedir) are enough.
1470 (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
1471 (installed_h_files): Divide this up. Now this variable lists
1472 those header files which should go into $(includedir) (i.e. appear
1473 directly in the #include path), and ...
1474 (inner_h_files): ... this new variable says which files appear in
1475 a subdirectory, and are referred to as <libguile/mumble.h>.
1476 (h_files): List them both.
1477 (install): Create innerincludedir, not pkgincludedir. Put
1478 the installed_h_files and inner_h_files in their proper places.
1479 (uninstall): Corresponding changes.
1480 * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
1481 continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
1482 feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
1483 ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
1484 mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
1485 print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
1486 sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
1487 strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
1488 tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
1489 vports.h, weaks.h: Find __scm.h in its new location.
1490 * __scm.h: Find scmconfig.h and tags.h in their new locations
1491 (they're both "inner" files).
1493 Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
1495 * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
1497 Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
1499 * posix.c: Doc fixes.
1501 Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
1503 * socket.c: Don't include a prototype for inet_aton; just use a
1504 K&R style declaration, to avoid warnings but minimize the chance
1505 of conflicts with the system.
1507 On NextStep, <utime.h> doesn't define struct utime, unless we
1508 #define _POSIX_SOURCE before #including it.
1509 * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
1510 * acconfig.h: New comment text for above CPP symbol.
1511 * configure.in: Call it.
1512 * posix.c: #define _POSIX_SOURCE if it seems necessary.
1514 * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
1516 * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
1517 testing for __EMX__.
1519 * posix.c: #include <libc.h>, if it exists.
1521 * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
1522 don't even know if the latter exists.
1524 * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
1525 s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
1526 s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
1528 * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
1530 (scm_init_posix): Use them when initializing the Scheme constants
1533 Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
1535 * Makefile.in (libdir, includedir, bindir): Use the
1536 autoconf-supplied values, instead of deriving them ourselves.
1537 (pkgincludedir, datadir, pkgdatadir): New variables.
1538 (install, uninstall): Put the header files in a special
1539 subdirectory, not in the main search path.
1541 * Makefile.in (ALL_CFLAGS): Provide the proper value for
1542 LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
1544 * Makefile.in (IMPLPATH): Deleted; never used.
1546 * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
1547 on the Tcl/Tk source any more.
1548 (INCLUDE_CFLAGS): Remove references to the above.
1550 * Makefile.in (version.o): Corrected dependencies.
1552 Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
1554 * libguile.h: #include "version.h"
1556 * init.c (scm_boot_guile): Call scm_init_version.
1557 * gscm.c (gscm_run_scm): Call scm_init_version.
1559 * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
1560 GUILE_VERSION): AC_DEFINE these.
1561 (acconfig.h): #undef the above symbols.
1563 * Makefile.in (libobjs): Add version.o.
1564 (installed_h_files): Add version.h.
1565 (c_files): Add version.c.
1566 (gen_c_files): Add version.x.
1567 (version.o): New rule.
1568 (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
1569 chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
1570 fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
1571 genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
1572 mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
1573 objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
1574 procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
1575 simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
1576 strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
1577 throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
1578 weaks.o): Add version.h to dependency lists.
1579 (markers.o): Remove duplicate rule.
1581 * version.h: New file.
1583 * version.c: New file.
1585 Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
1587 * symbols.c (scm_strhash): scm_downcase is now a function, not an
1588 array; use it appropriately. Since GCC is quite happy to
1589 subscript functions, it never warned us about this; we should use
1590 -Wpointer-arith in the future. I guess we never tested
1593 Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
1595 * socket.c: Doc and copyright fixes.
1597 Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1599 * debug.c: Fixed and improved gdb support.
1601 Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1603 * socket.c: Added declaration of inet_aton to avoid compiler
1604 warning. (Hope this solution is correct.)
1606 * stime.c: Added declaration of ftime. (This is missing in
1609 Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
1611 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
1613 * Makefile.in (c_files): add strerror.c.
1615 * strerror.c: new file from Emacs' sysdep.c.
1616 maybe configure should also check for sys_errlist.
1618 * configure.in (AC_REPLACE_FUNCS): add strerror.
1620 Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1622 * debug.c (scm_init_debug): Added initialization for
1623 scm_evaluator_traps.
1625 * debug.h, debug.c: Various name changes.
1626 (Mostly prefixing with SCM_.) Renamed "debug-options" -->
1627 "debug-options-interface". See commentary in options.c.
1629 * options.h, options.c: Options now have documentation strings.
1630 Also added a long explanatory commentary.
1632 * eval.c, print.h, print.c, read.h, read.c: Modifications to
1635 * gscm.c, init.c, root.c, throw.c: Bug fixes:
1636 last_debug_info_frame is now updated in all cases.
1638 * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
1641 Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1643 * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
1644 Added option STACK_CHECKING.
1646 Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
1648 * Makefile.in: Added {debug,options,srcprop}.{h,c}
1650 * __scm.h: Removed symbols for debugging support.
1652 * acconfig.h: Added symbols for debugging support.
1654 * * configure.in: Added user option for debugging support.
1655 --enable-debug will include the debugging code into libguile.a.
1657 * continuations.c (scm_make_cont): Enlarged the #if 0 around
1658 scm_relocate_chunk_to_heap.
1660 * * debug.c: New file: low-level debugging support. It also
1661 includes support for debugging with gdb. (The extensions to gdb
1662 are written by Per Bothner at Cygnus.)
1664 * debug.h: New file: low-level debugging support.
1666 * * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
1667 argument pairs. Extensive modifications to the debugging
1668 evaluator. Added "SECTION:" commentaries to clarify what happens
1669 when, during double compilation. Renamed EVALIMP --> EVALIM.
1670 Renamed EVAL --> XEVAL. Removed function evalcar. Defined
1671 evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
1672 the beginning of the file. New procedure: scm_unmemocopy.
1673 Added some global state variables needed by the debugging
1674 evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
1675 check_entry, check_apply, check_exit, debug_options and
1676 evaluator_traps. New acro: undefine.
1678 * eval.h: Renamed EVAL --> XEVAL.
1680 * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
1681 --> scm_make_weak_key_hash_table.
1683 * init.c (scm_restart_stack, scm_boot_guile): Added initialization
1684 of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
1686 * libguile.h: Conditionally include debug.h
1688 * * objprop.c (scm_object_properties, scm_set_object_properties_x):
1689 scm_object_properties shouldn't return handle. `handle' now gets
1690 initialized in scm_set_object_properties_x. scm_object_properties
1691 doesn't any longer create an entry in scm_object_whash.
1693 * * options.c: New file: handling of run time options.
1695 * options.h: New file: handling of run time options.
1697 * posix.c (scm_getpgrp): Cast pointer to getpgrp.
1699 * * print.c: New procedure: scm_print_options
1701 * print.h: Defines for print options.
1703 * * read.c: New procedure: scm_read_options
1705 * read.h: Defines for reader options.
1707 * root.h: Added scm_source_whash among scm_sys_protects.
1709 * * srcprop.c: New file: source properties.
1711 * srcprop.h: New file: source properties.
1713 * throw.c (jbsmob): Jump buffers are now correctly allocated.
1714 (Bug found by A. Green.)
1716 * * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
1718 * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
1720 Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
1722 * libguile.h: #include "objprop.h"; I guess this was forgotten.
1724 * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
1725 and should be called by the final client.
1727 Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
1729 * gc.h: Use the PROTO macro when declaring functions.
1730 * gc.c: Use the PROTO macro when declaring static functions.
1731 Remove the CPP hair around function definitions.
1733 * gc.c (scm_init_storage): Initialize scm_asyncs.
1735 * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
1736 preprocessor symbol; "__scm.h" is where it might get #defined.
1737 * __scm.h: Similar: #include <scmconfig.h> before testing
1740 * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
1742 Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
1744 * * init.c (scm_boot_guile): Add init_func argument; call
1745 (*init_func) instead of calling scm_appinit; it's ucky to
1746 hard-code names for the user's procedures.
1747 * init.h (scm_boot_guile): Adjust declaration.
1749 * __scm.h (PROTO): New macro, for declaring functions with
1752 * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
1753 eliminate all the __STDC__ conditionals.
1754 (scm_boot_guile): Add declaration.
1755 * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
1756 Remove __STDC__ conditionals around function definitions; the
1757 declarations in init.h will provide the same information, more
1760 * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
1761 complain about it in the error message; the error message is
1762 adequate without that note, and there's nothing the user can do
1765 Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
1767 * Makefile.in (ancillary): Drop def.sed.
1769 * posix.c (scm_init_posix): Use numeric values, rather than
1770 CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
1771 F_OK. The symbols aren't available on some systems, and I'm
1772 pretty sure their values are fixed by common widespread practice.
1773 * ioext.c (scm_init_ioext): Code here defined them too; remove it.
1775 More functions unavailable on some systems.
1776 * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
1777 tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
1779 * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
1780 * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
1781 scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
1782 bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
1783 stub that signals an error as the #else.
1785 * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
1787 Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
1789 * Fixes motivated by Petr Adamek <adamek@mit.edu>:
1791 * unif.c: include ramap.h.
1793 * read.c (endif): case_insensative_p renamed case_insensitive_p.
1795 * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
1797 * ports.c: include sys/ioctl.h.
1799 * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
1801 * configure.in: check for sys/ioctl.h.
1803 * ports.c: include <malloc.h> not "malloc.h".
1805 * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
1807 * fports.c: remove ttyname and tmpnam declarations.
1809 * posix.c: fewer ttyname declarations.
1811 * fports.c: include <string.h> not "string.h".
1813 * init.c, ioext.c: include string.h and unistd.h.
1815 * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
1817 * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
1818 genio.c, simpos.c, vports.c: include string.h.
1820 * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
1822 * fdsocket.c (getsockopt, setsockopt): change type of optlen from
1824 (scm_addr_buffer_size): change type from scm_sizet to int.
1825 (accept, getsockname, getpeername, recvfrom): change type of tmp_size
1826 from scm_sizet to int.
1828 * error.c: include unistd.h.
1830 * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
1833 * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
1835 * __scm.hd, def.sed: deleted.
1837 Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
1839 Changes for NeXT, suggested by Robert Brown.
1840 * configure.in: Call AC_TYPE_MODE_T.
1841 (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
1842 NeXT. Put header file list in alphabetical order.
1843 * configure, scmconfig.h.in: Regenerated.
1844 * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
1846 * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
1849 * acconfig.h: New file, providing documentation for the CPP
1850 symbols defined in configure.in
1851 * acconfig-1.5.h: Removed; superceded by the above.
1853 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
1855 * ioext.c (scm_sys_fdopen): fix the port-table assignment.
1857 * * fports.c (scm_open_file): don't return #f, throw error.
1859 * * ioext.c (fileno): renamed from %fileno.
1860 (soft-fileno): deleted.
1862 * ports.c (scm_port_revealed): don't need to check for -1 from
1864 (scm_set_port_revealed_x): return unspecified, not #f.
1866 * * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
1868 * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
1870 * scmconfig.h.in: add HAVE_STRUCT_LINGER.
1872 * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
1874 Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
1876 * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
1877 This is necessary on Ultrix, and doesn't hurt portability.
1879 * Makefile.in (dist-dir): New target, implementing a new dist system.
1880 (installed_h_files): Put in alphabetical order.
1881 Remove duplicate entries for markers.h and unif.h.
1882 (c_files): Remove duplicate entries for markers.c.
1883 (ancillary): Renamed from anillery; all uses changed. Remove
1884 PLUGIN; it's a directory, and needs special treatment in dist-dir.
1885 Remove all the ../doc/* files; doc/Makefile.in handles that.
1887 * Makefile.in (libobjs): Remove duplicate entry for markers.o.
1889 * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
1890 every if must have an else, or else the whole command has a
1891 non-zero exit code whenever the if's condition is false.
1893 Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
1895 * posix.c: include string.h.
1897 Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
1899 * * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
1902 * * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
1903 Remove leading % from scheme names.
1904 Do not return error values, call SCM_SYSERROR or similar.
1906 * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
1908 Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
1910 * struct.c (scm_init_struct): new file.
1912 Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
1914 * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
1915 (scm_list_head): added list-head for rapidly chopping argument
1916 lists off of longer lists (and similar).
1918 Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
1920 * objprop.c (scm_object_property): assq the cdr of the whash
1921 handle for obj, not the handle itself.
1923 Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
1925 * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
1926 weak hash tables last of all marking to avoid an obscure gc bug.
1927 WARNING: circular lists stored in a weak hash table will hose us.
1929 Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
1931 * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
1932 new functions similar to scm_substring_move_left_x and
1933 scm_substring_move_right_x.
1935 Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
1937 * init.c (scm_boot_guile): prevent gc with scm_block_gc not
1940 Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
1942 * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
1944 Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
1946 * strports.c (scm_strprint_obj): convenience function. C for
1947 (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
1949 * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
1950 removed to a separate library
1952 * init.c (scm_boot_guile): copied from guile-tcl.c.
1953 Initialization specific to tcl interpreters removed.
1955 Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
1957 * ports.c (scm_ports_prehistory): size malloced here doesn't
1958 matter so long as it is non-0 (got rid of "* 4").
1960 Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
1962 * gscm.h: gscm_mkarray eliminated (presumably was not being used
1963 since its definition was bogus).
1965 Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
1967 * mallocs.[ch]: back again (for rx at least).
1969 Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
1971 * ports.c: removed functions relating to the mapping between ports
1972 and descriptors. (That stuff is unix-specific and should be collected
1973 in a separate library).
1975 * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
1976 (Tom Mckay@avanticorp.com)
1978 Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
1980 * gc.c (scm_gc_sweep): Immediates in weak vectors were not
1981 handled correctly (SCM_FREEP was applied to them) -- test for
1982 NIMP. Keys in weak hash tables were spuriously (though harmlessly)
1983 being overwritten with #f. (brown@grettir.bibliotech.com)
1985 Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
1987 * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
1988 for a specific symbol or for all symbols.
1990 Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
1992 * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
1993 keys and weak values confused).
1995 Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
1997 * list.c (scm_last_pair): map '()=>'()
1999 Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
2001 * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
2002 Generalized assoc and hash-table functions.
2003 Factored pairs.c into multiple files.
2005 Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
2007 * gscm.c (gscm_run_scm): got rid of objprop.
2009 Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
2011 * genio.c (scm_getc):
2012 NOTE: fgetc may not be interruptable.
2014 * procprop.c (scm_stand_in_scm_proc):
2015 NOTE: don't use a alist here.
2016 (scm_set_procedure_properties_x): fix type checking throughout this file.
2018 * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
2020 * ports.c (scm_remove_from_port_table): adjust scm_mallocated
2021 after freeing part of the port table.
2023 Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
2025 * strports.c (scm_mkstrport):
2026 * vports.c (scm_make_soft_port): allocate a port table entry
2027 (possibly triggering gc) before setting the tag of the corresponding
2030 * pairs.c (scm_delq_x): never throw an error.
2032 * vectors.c (scm_make_vector): made the default vector fill argument
2033 into '() (much more useful than the previous value, "#unspecified")
2035 Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
2037 * ports.c (scm_add_to_port_table): Added fields
2038 to port table entries: file_name, line_num, col.
2039 Update these in open_file, gen_getc and gen_ungetc.
2040 Added procedures to access those fields.
2042 Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
2044 * procs.c (scm_make_subr_opt): new entry point for making
2047 Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
2049 * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
2051 Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
2053 * numbers.c (scm_exact_p): This function no longer
2054 implements "integer?".
2056 Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
2058 * gc.c (scm_gc_end): simulate a signal at the end of each GC.
2059 (scm_gc_stats): return an assoc of useful data. Replaces "room"
2060 and the stats reporting formerlly built into repl.
2062 * repl.[ch]: removed.
2063 GC statistics keeping moved to gc.c.
2064 Other statistics keeping can be done from Scheme.
2065 REPLS are now written in Scheme.
2067 Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
2069 * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
2070 conservatively marked objects).
2072 * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
2074 * error.c (scm_init_error): init system_error_sym here, not in repl.c.
2076 * feature.c (scm_compiled_library_path): moved here from repl.c.
2077 This file is for stuff relating specifically to Scheme libraries
2080 * eval.c (scm_m_define): don't give warning about redefinition, don't
2083 NOTE: this should throw a resumable exception with parameters --
2084 the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
2086 * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
2088 * error.c: scm_warn eliminated.
2090 * read.c (scm_lreadr): extra right paren gets an error, not a warning.
2092 * repl.c, marksweep.c, gc.c (various):
2093 lose exit_report, growth_mon.
2095 * gscm.c: got rid of verbosity functions.
2097 Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
2099 * throw.c (scm_ithrow): guard against the bad-throw hook changing
2100 between the call to procedurep and use.
2102 * error.c (scm_everr):
2104 * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
2107 * strports.c: don't reveal the port's string to the caller
2108 because it changes size.
2110 (stputc stwrite): check/change the strings length with interrupts
2113 * objprop.c (scm_set_object_property_x &c): use the generic
2114 hashing functions and be threadsafe.
2116 * eval.c (scm_unmemocar): do this operation in a thread-safe way.
2117 (per suggestion jaffer@gnu.ai.mit.edu).
2119 * mbstrings.c (scm_multi_byte_string): guard against argument list
2122 * strings.c (scm_make_string): loop cleanup
2124 * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
2127 * weaks.c (scm_weak_vector): guard against argument list
2130 * variable.c (scm_builtin_variable): check for/make a built-in
2133 * vectors.c (scm_vector): while filling the new array,
2134 guard against a list of fill elements that grows after
2135 the vector is allocated.
2137 * hashtab.c -- new file: general hash table
2138 functions. hash, hashq, hashv, hashx.
2140 * tags.h: made wvect an option bit of vector.
2142 Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
2144 * symbols.c: made the basic symbol table operations atomic.
2146 * root.c &c.: collected stack-specific global state.
2147 linum/colnum etc *should* be port-specific state.
2149 * struct.c (scm_init_struct): init the first struct type during
2150 initialization to fix a race condition.
2152 * continuations.c (scm_dynthrow): pass throwval in the 'regs'
2153 object, not in a global.
2154 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2156 * throw.c (_scm_throw): Pass throwval on the stack, not in a global
2157 (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
2159 * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
2160 and C symbols to begin with SCM_ or scm_.
2162 Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
2164 * gsubr.c (scm_gsubr_apply): statically allocate the
2165 array of arguments (bothner@cygnus.com).
2167 Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
2169 * scmsigs.c: Simplified to use async rountines.
2171 * async.c: New support for interrupt handlers.
2173 Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
2175 * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
2176 set the multi_byte flag correctly in symbols. This is wrong.
2177 intern_obbary_soft and msymbolize should take an extra parameter.
2178 Also, weird multibyte symbols don't print correctly.
2179 The weird symbol syntax is also a bit bogus (emacs doesn't quite
2182 Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
2184 * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
2185 use the system symhash. == #t means create an uninterned symbol.
2187 Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
2189 * strings.c (scm_make_shared_substring): build'em.
2190 It might better to keep a table of these and use one
2191 less cons-pair per shared-substring.
2193 Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
2195 * strings.c (scm_string_shared_substring): create shared
2196 substrings. (Doesn't handle mb strings yet).
2198 * mbstrings.c (scm_print_mb_string): handle RO strings.
2200 * print.c (scm_iprin1): print substrings as their non-substring
2201 counterparts (dubious).
2203 * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
2206 * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
2208 * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
2210 * eq.c (scm_equal_p): handle RO and MB strings.
2212 * symbols.c (scm_string_to_symbol):
2213 (scm_string_to_obarray_symbol):
2214 * strop.c (scm_i_index):
2216 (scm_string_null_p):
2217 (scm_string_to_list):
2218 * strings.c (scm_string_length):
2221 (scm_string_append):
2222 * simpos.c (scm_system):
2224 * fports.c (scm_open_file):
2225 * strorder.c (scm_string_equal_p):
2226 (scm_string_ci_equal_p):
2227 (scm_string_less_p):
2228 (scm_string_ci_less_p):
2229 * pairs.c (scm_obj_length):
2230 * mbstrings.c (scm_multi_byte_string_length):
2232 Use RO string macros for RO strings.
2234 Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
2236 * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
2238 * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
2239 index/rindex. Do handle embedded \000 characters.
2241 Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
2243 * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
2244 Eliminate a (presumed) warning on some systems.
2246 * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
2247 (Mikael Djurfeldt <mdj@nada.kth.se>)
2249 Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
2251 * eval.c (scm_map): added argument type checking.
2252 (kawai@sail.t.u-tokyo.ac.jp)
2254 * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
2255 for C++. (Seth Alves <alves@gryphon.com>)
2257 (gscm_cstr): uses an uninitialized local variable causing
2258 segv. (kawai@sail.t.u-tokyo.ac.jp)
2261 * lvectors.c (scm_get_lvector_hook):
2262 In guile-ii, the lvector code was broken. It was fixed in guile-iii.
2263 It seems to me like if it is broken again in guile-iv...Here is a patch.
2264 "! || (LENGTH (keyvec) == 0))"
2265 (From: Mikael Djurfeldt <mdj@nada.kth.se>)
2268 * gscm.c (gscm_sys_default_verbosity):
2269 incorrectly declared for non-__STDC__
2270 (Tom_Mckay@avanticorp.com)
2272 * ports.c (scm_setfileno): Tweak the macro a bit
2273 to make it easier to port to systems that use
2274 more than a single structure field to hold a descriptor.
2276 * debug.c (change_mode): Avoid GNUCism "int foo[n];"
2277 Give a warning, not an error, for unrecognized modes.
2279 * eval.c (SCM_CEVAL):
2280 static char scm_s_for_each[];
2281 static char scm_s_map[];
2284 * strings.c (scm_string_p):
2285 static char s_string[];
2288 * struct.c (scm_sys_struct_set_x):
2289 static char s_sys_make_struct[];
2290 static char s_sys_struct_ref[];
2291 static char s_sys_struct_set_x[];
2292 Rearrange code to eliminate those forward decls for the sake of
2295 * variable.c (make_vcell_variable): static char s_make_variable[];
2298 * fports.c (scm_port_mode):
2299 chars modes[3] = "";
2303 (Tom_Mckay@avanticorp.com)
2306 * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
2307 scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
2308 (Tom_Mckay@avanticorp.com)
2310 * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
2311 scm_num_eq_p() was scm_equal_p().
2312 (Tom_Mckay@avanticorp.com)
2314 * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
2315 (Tom_Mckay@avanticorp.com)
2317 Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
2319 * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
2320 (Tom_Mckay@avanticorp.com)
2322 * strop.c (scm_substring_fill_x):
2323 Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
2324 (Tom_Mckay@avanticorp.com)
2326 * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
2327 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
2329 * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
2330 Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
2332 * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
2333 can turn into an obscure gc bug.
2335 * chars.c (scm_char_p): fixed PROC call.
2337 * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
2340 Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
2342 * elisp.c (new file): dynamic scoping and other bits for
2343 elisp. Don't use this yet unless you specificly want to
2344 hack on elisp emulation.
2346 * dynwind.c (scm_dowinds): When entering or leaving a dynamic
2347 scope created by scm_with_dynamic_bindings_operation_x, swap
2348 the bindings of that scope with the corresponding globals.
2350 * continuations.c (scm_make_cont): when a continuation is captured,
2351 relocate the continuation stack chunks registered on the wind chain
2354 Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
2356 * eval.c (SCM_CEVAL): if the function position evaluates
2357 to a macro, process it accordingly. (Previously, macros were
2358 handled only if the function position was a symbol naming a
2359 variable bound to a macro).
2361 Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
2363 * eval.c (scm_m_set): allow multi-variable set! like
2366 Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
2368 * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
2369 STREAM of ports into the port table and replaced it with a
2372 * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
2374 * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
2376 * mbstrings.c (new file): functions on multi-byte strings.
2378 * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
2379 for multi-byte strings. Moved the string tag.
2381 * chars.h chars.c repl.c (many functions): made scm_upcase and
2382 scm_downcase functions that are safe for extended character sets.
2384 Changed the range of integer->char.
2386 Changed the type of SCM_ICHR.
2388 Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
2390 * guile.c: Changed init file name from "SCM_INIT_PATH" to
2393 Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
2395 * guile.c (gscm_is_gscm_type): New function. (Without this how will we
2396 know that it's safe to pass an object to gscm_get_type?)
2397 (gscm_get_type): Fix tyop in error message.
2399 * variable.c (scm_variable_ref): fixed assertion test.
2400 (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
2402 * gscm.h: fixed several prototypes, notably gscm_vref.
2403 Add gscm_is_eq and temporarily commented out gscm_eq (see
2404 the note in gscm.h near gscm_eq if this change effects your
2406 (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
2408 * pairs.c (scm_obj_length): see next entry.
2410 * gscm.h (gscm_obj_length): A way to get an integer
2411 length for lists, strings, symbols (treated as strings),
2412 and vectors. Returns -1 on error.
2414 * eq.c (scm_equal_p): fixed smob case.
2415 (William Gribble <grib@arlut.utexas.edu>)
2417 * Makefile.in (X_CFLAGS): defined.
2418 (William Gribble <grib@arlut.utexas.edu>)
2420 * gscm.h (gscm_2_double): provided now
2421 (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
2423 Tue Jun 13 01:04:09 1995 gnu