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