* ioext.h: removed scm_duplicate_port prototype.
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
e38303a2
GH
1Mon Jul 21 04:03:42 1997 Gary Houston <ghouston@actrix.gen.nz>
2
3 * ioext.h: removed scm_duplicate_port prototype.
4
5 * ioext.c (scm_primitive_dup2): return the new file descriptor
6 instead of SCM_UNSPECIFIED, since similarity to scm_primitive_dup
7 is convenient.
8 (scm_fdopen): bug fix: don't try to make port unbuffered until its
9 stream has been set.
10 (scm_duplicate_port): deleted, there's now an implementation in
11 boot-9.scm.
12 (scm_primitive_dup2): do nothing if newfd == oldfd.
13
eadd48de
GH
14Sun Jul 20 03:55:49 1997 Gary Houston <ghouston@actrix.gen.nz>
15
a9488d12
GH
16 * filesys.c (scm_close): oops, don't call SCM_INUM twice on the
17 argument.
18
19 * ioext.h: new prototypes.
20 * ioext.c (scm_primitive_dup, scm_primitive_dup2): new procedures.
21
eadd48de
GH
22 * fluids.c (next_fluid_num): don't do
23 SCM_THREAD_CRITICAL_SECTION_START/END unless USE_THREADS is defined.
24
25 * ports.h: prototypes too.
26 * ports.c (scm_mode_bits, scm_port_mode): moved from fports.c.
27
28 * fports.h: prototype too.
29 * fports.c (scm_evict_ports): moved from ioext.c.
30
9c29ac66
GH
31Sat Jul 19 04:56:52 1997 Gary Houston <ghouston@actrix.gen.nz>
32
eadd48de
GH
33 * ports.c (scm_close_port): return a boolean instead of unspecified.
34 throw an error if an error other than EBADF occurs.
35
36 * filesys.h: scm_close prototype.
37 * filesys.c (scm_close): new procedure, can close file descriptors
38 and ports (scsh compatible).
39
9c29ac66
GH
40 * ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
41 optional argument.
42
7f47d2d8
MV
43Fri Jul 18 11:19:53 1997 Marius Vollmer <mvo@zagadka.ping.de>
44
45 * fluids.c, fluid.h: New files.
46 * Makefile.am (libguile_la_SOURCES): Added "fluids.c".
47 (modinclude_HEADERS): Added "fluids.h"
48
49 * init.c: Include "fluids.h". (scm_boot_guile_1): Added call to
50 scm_init_fluids to initialize the fluid machine.
51 (scm_start_stack): Initialize the fluids of the first root with
52 scm_make_initial_fluids.
53
54 * root.h: Added "fluids" member to scm_root_state.
55 * root.c: Include "fluids.h". (scm_mark_root): Mark "fluids".
56 (scm_make_root): Call scm_copy_fluids to make fluid bindings
57 unique for the new root when it has a parent.
58
59 * smob.h: Include "libguile/print.h" to make scm_print_state
60 visible.
61
62 * dynl.c (free_dynl_obj): New function to free the dynamic object
63 data. (dynl_smob): Use it.
64 * dynl.c (scm_dynamic_link): Moved allocating of the memory for
65 the dynamic object data below the linking of the object to avoid
66 memory leak when the linking code throws an error. Now the code
67 leaks a whole dynamically linked library when must_malloc throws,
68 but that should be much less likely.
69
32552d73
JB
70Fri Jul 11 00:19:47 1997 Jim Blandy <jimb@floss.red-bean.com>
71
72 Changes to compile under gnu-win32, from Marcus Daniels:
73 * stime.c (tzset): If tzset isn't provided, make it a NOP.
74 (scm_localtime): Change SCM_EOF to SCM_EOL.
75 (scm_mktime): Likewise.
76 * socket.c: Don't include sys/un.h unless autoconf tells
77 us Unix domain sockets are available.
78 (scm_fill_sockaddr): Ignore Unix domain code.
79 (scm_addr_vector): Likewise.
80 (scm_init_addr_buffer): Likewise.
81 (scm_socketpair): Don't include unless socketpair was
82 found during autoconf.
83 * simpos.c (SYSTNAME): Treat cygwin like Unix.
84 * scmsigs.c (scm_pause): Don't include unless pause was found
85 during autoconf.
86 * posix.c (scm_getgroups): Don't include unless support function
87 was found during autoconf (in this case, getgroups).
88 (scm_setpwent): For setpwent.
89 (scm_setegid): For setegid.
90 * net_db.c (scm_inet_netof): Don't include unless support
91 function was found during autoconf (in this case, inet_netof).
92 (scm_lnaof): For inet_lnaof.
93 (scm_inet_makeaddr): For inet_makeaddr.
94 (scm_getnet): For getnetent, getnetbyname, getnetbyaddr.
95 (scm_getproto): For getprotoent.
96 (scm_getserv): For getservent.
97 (scm_sethost): For sethostent, endhostent.
98 (scm_setnet): For setnetent, endnetent.
99 (scm_setproto): For setprotoent, endprotoent.
100 (scm_setserv): For setservent, endservent.
101 * scmconfig.h.in: Regenerated.
102
8cedfb2e
JB
103Thu Jul 10 00:22:24 1997 Jim Blandy <jimb@floss.red-bean.com>
104
105 * stime.c (scm_localtime, scm_mktime): Pass SCM_EOL to
106 scm_misc_error, not SCM_EOF.
107
108 * error.c (scm_wta): Pass SCM_EOL to scm_misc_error as the list of
109 arguments for formatting the error message, not SCM_BOOL_F. I
110 think this is left over from the (eq? '() #f) days.
111
112 * read.c (recsexpr): Give this a dummy definition if
113 DEBUG_EXTENSIONS isn't #defined.
114
517591cd
MV
115Fri Jul 4 23:42:17 1997 Marius Vollmer <mvo@zagadka.ping.de>
116
117 * coop-threads.c (scm_wait_condition_variable): Lock mutex again
118 after waiting.
119
3f094ddf
MV
120Thu Jul 3 16:31:24 1997 Marius Vollmer <mvo@zagadka.ping.de>
121
122 * root.c (cwdr_outer_body): Bugfix: Pass `c' instead of `&c' to
123 scm_internal_catch.
124
4a5fa91c
TP
125Sat Jun 28 16:14:09 1997 Tim Pierce <twp@twp.tezcat.com>
126
127 * Makefile.am (libguile_la_LIBADD): Remove @ALLOCA@, since
128 alloca.lo will be included in @LIBLOBJS@. Something better than
129 this should be possible.
130 * Makefile.in: Regenerated.
131
7ad3c1e7
GH
132Sat Jun 28 03:40:15 1997 Gary Houston <ghouston@actrix.gen.nz>
133
134 * simpos.h: prototype for scm_primitive_exit.
135 * simpos.c (scm_primitive_exit): new procedure, terminates the
136 process without unwinding the stack.
137
5d4774bc
TP
138Sat Jun 28 03:45:25 1997 Tim Pierce <twp@twp.tezcat.com>
139
140 * regex-posix.c (scm_make_regexp): Make `flags' a variable-length
141 argument and logior its components together, so the user doesn't
142 have to do this explicitly. Also, if regexp/basic is supplied, then
143 turn off REG_EXTENDED.
144 (scm_init_regex_posix): New regexp/basic symbol.
145 (REG_BASIC): #define this if it is not already present.
146
ad6b30a0
TP
147Fri Jun 27 20:36:35 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
148
149 * Makefile.am (libguile_la_LIBADD): Include @ALLOCA@.
150 (MOSTLYCLEANFILES): New target, changed from CLEANFILES.
151 (CLEANFILES): New target, clean versiondat.h, libpath.h.
152 (DISTCLEANFILES): New target, clean *.x.
9159ebec 153 * Makefile.in: Regenerated.
ad6b30a0 154
db561408
JB
155Tue Jun 24 00:29:07 1997 Jim Blandy <jimb@floss.red-bean.com>
156
9230ac78
JB
157 * script.c (scm_compile_shell_switches): Add 1997 to copyright
158 years in usage message.
159
9572c0d0
JB
160 * Makefile.am (libguile_la_LDFLAGS): Bump library version.
161 * Makefile.in: Regenerated.
162
fcff2c5c
JB
163 * regex-posix.c (scm_init_regex_posix): Delete the regexp/nosub
164 flag; I don't think we support it.
9572c0d0
JB
165 (scm_make_regexp): Make sure the user doesn't pass the
166 regexp/nosub flag.
fcff2c5c
JB
167
168 * regex-posix.c (scm_make_regexp, scm_regexp_exec): Add optional
db561408
JB
169 FLAGS arguments.
170 (scm_init_regex_posix): Define constants for the REG_mumble flags;
171 name them according to the SCSH convention: regexp/mumble.
fcff2c5c 172
db561408
JB
173 * regex-posix.h (scm_make_regexp, scm_regexp_exec): Update prototypes.
174
2409cdfa
JB
175Mon Jun 23 18:44:49 1997 Jim Blandy <jimb@floss.red-bean.com>
176
177 * Makefile.am (libpath.h): Include the values of all the standard
178 Makefile directory variables. Print a message, but don't print
179 all the commands.
180 (versiondat.h): Print a message, but don't print all the commands.
181 * load.c: #include "alist.h".
182 (init_build_info): New function.
183 (scm_init_load): Call it.
184 * Makefile.in: Regenerated.
185
eb1e924e
JB
186Sun Jun 22 19:12:58 1997 Jim Blandy <jimb@floss.red-bean.com>
187
d94c6eeb
JB
188 * root.c: Establish a reliable catch-all handler for the new root.
189 After all the Scheme handler function might signal an error too,
190 and we don't want to lose that.
191 (cwdr_inner_body): Renamed from cwdr_body.
192 (cwdr_outer_body): New function, to establish the user's handler,
193 and pass control to cwdr_inner_body.
194 (cwdr): Establish the reliable catch-all handler here, and pass
195 control to cwdr_outer_body.
196 (struct cwdr_body_data): New field, handler, to allow cwdr to pass
197 the user's handler through to cwdr_outer_body.
198 * throw.c (scm_handle_by_message): Move guts into....
199 (handler_message): New static function.
200 (scm_handle_by_message_noexit): New function.
201 * throw.h (scm_handle_by_message_noexit): New prototype.
202
eb1e924e
JB
203 * __scm.h: (SCM_FENCE): New macro: optimizer will not move code
204 across this. Only works on GCC. Otherwise, we hope for the best.
205 (SCM_DEFER_INTS, SCM_ALLOW_INTS): Use FENCE appropriately. I have
206 the feeling that real thread systems will not need this...
207
0dc48630
JB
208Sun Jun 22 15:46:35 1997 Jim Blandy <jimb@floss.red-bean.com>
209
91b28bb5
JB
210 Try to detect when people are using one version of libguile and a
211 different version of ice-9. People have been skewing things and
212 sending in bug reports.
213 * Makefile.am (versiondat.h): New file to generate.
214 * version.c: #include "versiondat.h", to get version info.
215 (scm_libguile_config_stamp): New function.
216 * script.c: #include "version.h".
217 (scm_compile_switches): Call scm_version to get version number.
218 * scmconfig.h.in, Makefile.in: Regenerated.
219 * Makefile.in: Regenerated.
220
221 * Makefile.am (ETAGS_ARGS): Catch SCM_PROC, etc. so we can find
222 primitive definitions under their Scheme names.
223
224 * Makefile.am (libguile_la_LDFLAGS): Update library version to
225 1:2. Helps avoid confusion between installed and uninstalled libs.
226
0dc48630
JB
227 * scmconfig.h.in: Regenerated. (Needed after June 3 change to
228 ../configure.in.)
229
230 * gdb_interface.h (GDB_INTERFACE): Remove semicolon and trailing
231 backslash from definition; this should be used like: GDB_INTERFACE;
232
c85e73d3
GH
233Sun Jun 22 04:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
234
235 * ioext.c (scm_duplicate_port): bug fix: don't try to make the
236 new port unbuffered until its stream has been set.
237
89ea5b7c
GH
238Sat Jun 21 18:44:03 1997 Gary Houston <ghouston@actrix.gen.nz>
239
240 * ports.h: new prototype.
241 * ports.c (scm_flush_all_ports): new procedure, scsh compatible.
242
91529b1d
JB
243Sat Jun 21 00:25:03 1997 Jim Blandy <jimb@floss.red-bean.com>
244
245 Make things compile neatly under Sun's C compiler.
246 * dynl.c (scm_dynamic_func): Cast return value from sysdep_dynl_func.
247 * extchrs.c (xmbtowc): Make the second arg a normal char, not
248 unsigned, because that's what the ANSI function takes.
249 * extchrs.h (xmbtowc): Corresponding change to prototype.
250 * genio.c (scm_gen_getc): Make buf plain chars. Nobody wants
251 uchars here.
252 * mbstrings.c (scm_mb_ilength): Use ANSI arg syntax. Make DATA
253 argument plain char *.
254 * strings.c (scm_string): Use SCM_ROCHARS, since c is a plain
255 char.
256 * tag.c (scm_tag): Remove unreachable statement.
257 * unif.c (scm_array_to_list): If we want to shift a 1 bit to the
258 top of the word, it should be unsigned.
259
260 * eval.c (scm_lookupcar1): Don't declare var2 unless USE_THREADS
261 is defined, to avoid warnings; it's only used in the
262 conflict-checking code. Which might go away anyway.
263 (SCM_CEVAL): All goto's targeting the `dispatch' label are in
264 conditionals; put the label definition in an #if too, to stifle
265 warnings.
266
267 * Makefile.am (EXTRA_DIST): Include ChangeLog-gh and
268 ChangeLog-threads in the distribution.
269 * Makefile.in: Regenerated.
270
bee14491
TP
271Fri Jun 20 10:03:41 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
272
273 * guile-snarf.in: Changed regexp to support CPPs that insert
274 whitespace between lexical tokens (which munges the `%%%' snarf
275 cookie).
276
55407879
TP
277Tue Jun 17 13:49:56 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
278
fcff2c5c 279 * load.c (scm_init_load_path): Append $(datadir)/guile to
55407879
TP
280 %load-path, so modules do not have to be installed in Guile's
281 current version directory.
282
e5f8e12f
MV
283Mon Jun 16 17:20:55 1997 Marius Vollmer <mvo@zagadka.ping.de>
284
285 * dynl.c (scm_dynamic_call, scm_dynamic_args_call): Wrap dynamic
286 function call in SCM_DEFER_INTS/SCM_ALLOW_INTS.
287 (scm_dynamic_link, scm_dynamic_unlink, scm_dynamic_func): Always
288 call the sysdep functions with deferred ints.
289 * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c (sysdep_dynl_link,
290 sysdep_dynl_unlink, sysdep_dynl_func): Expect to be called with
291 deferred interrupts and insert SCM_ALLOW_INTS before throwing an
292 error.
293
294 * dynl.c (scm_dynamic_unlink, scm_dynamic_call): Return
295 SCM_UNSPECIFIED.
296
cc0b3312
GH
297Sat Jun 14 19:00:58 1997 Gary Houston <ghouston@actrix.gen.nz>
298
299 * scmsigs.c (sys_deliver_signals): add a comment about a probable bug.
300
3688473b
JB
301Wed Jun 11 00:33:00 1997 Jim Blandy <jimb@floss.red-bean.com>
302
303 * Makefile.in: Regenerated after xtra_PLUGIN_guile_libs change in
304 ../configure.in.
305
58932e4a
MV
306Sun Jun 8 14:37:26 1997 Marius Vollmer <mvo@zagadka.ping.de>
307
308 * eval.c (scm_lookupcar1): New procedure to cope with a race
309 condition during lookup (when using threads).
310 (scm_lookupcar): Implement in terms of scm_lookupcar1.
311 (SCM_CEVAL): Use scm_lookupcar1 instead of scm_lookupcar in one
312 place.
313
95d59d10
JB
314Fri Jun 6 19:05:07 1997 Jim Blandy <jimb@totoro.cyclic.com>
315
316 * regex-posix.c (scm_regexp_exec): Use the `start' argument if
317 supplied. (Change from Tim Pierce.)
318
0b46857f
MV
319Thu Jun 5 16:38:19 1997 Marius Vollmer <mvo@zagadka.ping.de>
320
321 * struct.c (init_struct): Forget to mention this in the "Wed Jun 4
322 23:47:01 1997" changelog: Slots are now initialized with `#f' by
323 default and not `()'. `#f' is the canonical non-value in Scheme,
324 right?
325
5dade857
MV
326Wed Jun 4 23:47:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
327
328 * struct.c (struct_printer): New variable that holds a handle on
329 the Scheme variable *struct-printer*. This variable can be set by
330 Scheme code to override the printing of structures.
331 (scm_print_struct): If struct_printer is set, call it. If it is
332 not set, or returns #f, print the structure in the old fashion.
333 Include "eval.h" for scm_apply.
334
7507aba1
MV
335Tue Jun 3 23:01:39 1997 Marius Vollmer <mvo@zagadka.ping.de>
336
337 * struct.c (scm_struct_ref, scm_struct_set_x): Use
338 scm_struct_i_n_words to get the number of fields, not
339 -scm_struct_n_extra_words.
340
341 On the route to fancier struct printing:
342 * struct.c (scm_print_struct): New function to print a structure.
343 Include "genio.h" to support it. This function doesn't do
344 anything interesting right now, but I think it should be here
345 anyway.
346 * struct.h: Include "print.h" and add prototype for
347 scm_print_struct.
348 * print.c (scm_iprin1): Call scm_print_struct instead of trying to
349 print structures ourself.
350
2ad6b1a5
GH
351Sun Jun 1 07:58:41 1997 Gary Houston <ghouston@actrix.gen.nz>
352
353 * scmsigs.c (sys_deliver_signals): bug fix: reset got_signal[i]
354 before applying the handler in case it doesn't return.
355
e1a191a8
GH
356Sat May 31 18:57:51 1997 Gary Houston <ghouston@actrix.gen.nz>
357
358 * scmsigs.h, async.h: updated.
359
360 * _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL
361 loop.
362
363 * posix.c (scm_uname): interpret only negative values as an error.
364 Solaris normally returns a positive value.
365
366 * script.c (scm_compile_shell_switches): if we are not going into
367 an interactive repl, set scm_mask_ints to zero so that asyncs can
368 run.
369
370 * simpos.c (scm_system): don't ignore/unignore signals around
371 the "system" call.
372
373 * posix.c (scm_open_pipe): don't ignore/unignore signals around
374 the "popen" call.
375
376 * init.c (scm_boot_guile_1): don't call scm_init_signals, it's
377 done in boot-9.scm instead.
378
379 * scmsigs.c, async.c: Major rewriting of signal handling code.
380 (scm_sigaction): new procedure.
381 (scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the
382 timing.
383 (scm_raise): return unspecified, throw error on failure.
384
0e165281
JB
385Thu May 29 02:47:36 1997 Jim Blandy <jimb@floss.cyclic.com>
386
387 * regex-posix.c (scm_init_regex_posix): Register the "regex"
388 feature, to help boot-9.scm decide whether to import the regex
389 module.
390
4885ba0e 391Thu May 29 02:19:40 1997 Jim Blandy <jimb@floss.cyclic.com>
1e5afba0 392
4885ba0e
JB
393 * eval.c: Include scmconfig.h at the beginning of the file so that
394 HAVE_ALLOCA_H may properly be defined. Thanks to Bill Janssen for
395 pointing this out.
1e5afba0
JB
396
397 * regex-posix.c: #include "_scm.h" before conditionally #including
398 <regex.h>; the former defines HAVE_REGCOMP.
399
4885ba0e
JB
400 * regex-posix.c: #include <regex.h> conditionally, so the file is
401 CPP'able (for dependency scanning) even on systems that don't have
402 a <regex.h> header.
403
5aefdd40
JB
404Tue May 27 23:48:38 1997 Jim Blandy <jimb@floss.cyclic.com>
405
406 Add new R4RS-compliant syntax for keywords.
407 * read.c (scm_lreadr): Recognize `#:' as a prefix for keywords,
408 regardless of the setting of the `keywords' read option.
409 * kw.c (prin_kw): Print keywords using the `#:' syntax, so they
410 can be re-read no matter what the setting of the `keywords' read
411 option.
412
737c9113
JB
413Tue May 27 22:47:31 1997 Tim Pierce <twp@twp.tezcat.com>
414
415 Add support for POSIX regular expressions.
416
417 * regex-posix.c, regex-posix.h: New files. (Some code
418 is taken liberally from rx/rgx.c in the old Guile dist.)
419
420 * init.c: Include regex-posix.h.
421 (scm_boot_guile_1): Call scm_init_regex_posix.
422
423 * Makefile.am (EXTRA_libguile_la_SOURCES, modinclude_HEADERS):
424 Add regex-posix.[ch] sources.
425 * Makefile.in: Regenerated.
426
427 * scmconfig.h.in: Add HAVE_REGCOMP macro. (automake is supposed
428 to do this automatically? It didn't for me, bleh.)
429
06de7963
JB
430Mon May 26 18:51:29 1997 Jim Blandy <jimb@floss.cyclic.com>
431
33623b5e
JB
432 * fports.c (print_pipe_port): New function.
433 (scm_fptob): Use print_pipe_port instead of scm_prinport; the
434 latter doesn't even take the right arguments.
435
436 * Makefile.am: Increment shared lib revision number. I think
437 sometimes the uninstalled Guile finds the installed shared lib;
438 Gord says doing this might help. As things turned out, I can't
439 say whether it does.
440 * Makefile.in: Regenerated.
441
06de7963
JB
442 * gh_init.c (gh_enter): Cast c_main_prog to a void * before
443 passing it as the closure argument to scm_boot_guile. (Bill
444 Janssen)
445
446 * ports.c (print_void_port, putc_void_port, puts_void_port,
447 write_void_port, flush_void_port, getc_void_port, close_void_port,
448 noop0): Use ANSI prototypes instead of K&R declarations, so the
449 initialization of void_port_ptob gets aggressively type-checked.
450 Fix arguments of print_void_port and write_void_port. (Bill
451 Janssen)
82892bed
JB
452
453 * COPYING, __scm.h, _scm.h, alist.c, alist.h, append.c, append.h,
454 appinit.c, arbiters.c, arbiters.h, async.c, async.h, backtrace.c,
455 backtrace.h, boolean.c, boolean.h, chars.c, chars.h,
456 continuations.c, continuations.h, coop-defs.h, coop-threads.c,
457 coop-threads.c.cygnus, coop-threads.h, coop-threads.h.cygnus,
458 coop.c, debug.c, debug.h, dynl-dl.c, dynl-dld.c, dynl-shl.c,
459 dynl-vms.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, eq.h,
460 error.c, error.h, eval.c, eval.h, extchrs.h, feature.c, feature.h,
461 filesys.c, filesys.h, fports.c, fports.h, fsu-pthreads.h, gc.c,
462 gc.h, gdbint.c, gdbint.h, genio.c, genio.h, gh.h, gh_data.c,
463 gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c,
464 gh_predicates.c, gh_test_c.c, gh_test_repl.c, gscm.c, gscm.h,
465 gsubr.c, gsubr.h, guile.c, hash.c, hash.h, hashtab.c, hashtab.h,
466 init.c, init.h, ioext.c, ioext.h, kw.c, kw.h, libguile.h, list.c,
467 list.h, load.c, load.h, mallocs.c, mallocs.h, markers.c,
468 markers.h, mbstrings.c, mbstrings.h, mit-pthreads.c,
469 mit-pthreads.h, net_db.c, net_db.h, numbers.c, numbers.h,
470 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
471 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
472 procprop.h, procs.c, procs.h, putenv.c, ramap.c, ramap.h, read.c,
473 read.h, root.c, root.h, scmhob.h, scmsigs.c, scmsigs.h, script.c,
474 script.h, sequences.c, sequences.h, simpos.c, simpos.h, smob.c,
475 smob.h, snarf.h, socket.c, socket.h, srcprop.c, srcprop.h,
476 stackchk.c, stackchk.h, stacks.c, stacks.h, stime.c, stime.h,
477 strings.c, strings.h, strop.c, strop.h, strorder.c, strorder.h,
478 strports.c, strports.h, struct.c, struct.h, symbols.c, symbols.h,
479 tag.c, tag.h, tags.h, threads.c, threads.h, throw.c, throw.h,
480 unif.c, unif.h, variable.c, variable.h, vectors.c, vectors.h,
481 version.c, version.h, vports.c, vports.h, weaks.c, weaks.h: New
482 address for FSF.
483
3f4c654d
JB
484Mon May 26 12:37:30 1997 Jim Blandy <jimb@floss.cyclic.com>
485
486 * script.c (scm_find_executable): Use prototype-style definition
487 here; apparently it's not quite right to have const in a prototype
488 and then use a K&R declaration. I wonder if stuff like this will
489 go away if we compile with -Wrequire-prototypes, or whatever that
a00c28cd 490 is... (Bernard URBAN)
3f4c654d
JB
491
492 * scmhob.h: New text from Bernard URBAN.
493
494Sat May 17 17:14:36 1997 Jim Blandy <jimb@floss.cyclic.com>
495
496 * script.c: Don't #define const on hpux. Configure takes care of
497 this. (Thanks to Larry Schwimmer.)
498
499 * script.c: Use the HAVE_UNISTD_H symbol provided by autoconf to
500 decide whether to #include <unistd.h>, instead of listing a bunch
501 of systems. Don't #include stdio twice. Removed dyked-out
502 definition of scm_find_impl_file.
503
eeb56f3c
JB
504Fri May 16 03:06:08 1997 Jim Blandy <jimb@floss.cyclic.com>
505
adb98aa9
JB
506 * Makefile.am (libguile_la_LDFLAGS): Update libguile's shared
507 library version info to 1:0.
508 * Makefile.in: Regenerated.
509
142ad3d9
JB
510 * backtrace.c, backtrace.h, debug.c, debug.h, eq.c,
511 gdb_interface.h, gdbint.c, gdbint.h, gh_data.c, gh_init.c,
512 gh_io.c, gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c,
513 init.c, net_db.c, options.c, options.h, ports.c, print.c, read.c,
514 script.h, snarf.h, srcprop.c, srcprop.h, stacks.c, stacks.h,
515 throw.c: Update copyright years; these files have been worked on
516 significantly in 1997, but only had copyright years for 1996.
517 Also, change name of copyright holder on some from Mikael
518 Djurfeldt to Free Software Foundation; he has signed papers
519 assigning the changes to the FSF.
520
eeb56f3c
JB
521 * script.c (scm_shell_usage): Pass FATAL to exit. There's no
522 reason not to give the user the option.
190b072d
JB
523
524 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
525 Return #f on end-of-file when scanning table (i.e. when called
526 with no arguments). Try to catch errors, when we can.
095936d2
JB
527 * posix.c (scm_getgrgid, scm_getpwuid): Same.
528
529 * script.h (scm_shell_usage, scm_compile_shell_switches): New
190b072d
JB
530 external declarations. These are useful.
531
a48a89bc
GH
532Thu May 15 05:21:36 1997 Gary Houston <ghouston@actrix.gen.nz>
533
534 * posix.c: don't include <sys/select.h> or define macros for
535 select, since they were not used in this file.
536
095936d2 537 * filesys.c (scm_select): make the fifth parameter microseconds,
a48a89bc
GH
538 not milliseconds. let the fourth parameter be either a real value
539 or an integer or #f. The first, second and third arguments can
540 now be vectors: the type of the corresponding return set will be
541 the same.
542 (set_element, get_element): new static procedures.
543
f3b1485f
JB
544Wed May 14 12:18:12 1997 Jim Blandy <jimb@floss.cyclic.com>
545
223be5f0
JB
546 * strports.c (scm_eval_string): New function.
547 (scm_eval_0str): Trivially re-implemented in terms of
548 scm_eval_string.
549 * strports.h (scm_eval_string): New extern decl.
550
e1cd56f9
JB
551 * net_db.c (h_errno): Add extern decl for this.
552
f3b1485f
JB
553 * fports.c (local_pclose): New function.
554 (scm_pipob): Use it in the initializer here.
555
556 From Tim Pierce:
557 * net_db.c (scm_gethost, scm_getproto, scm_getnet, scm_getserv):
558 Use a meaningful error message when signalling an error. For
559 this, scm_gethost must check h_errno rather than errno.
560
9b01064c
JB
561Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
562
563 * Makefile.in: Regenerated, using automake-1.1p.
564
08fea088
GH
565Tue May 13 04:34:52 1997 Gary Houston <ghouston@actrix.gen.nz>
566
0267051b
GH
567 * socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify,
568 not SCM_UNSPECIFIED.
569
08fea088
GH
570 * script.c (scm_compile_shell_switches): don't append (quit) if
571 interactive.
572 (scm_shell): call scm_exit_status and exit on the result of the
573 evaluation.
574
821eb64e
JB
575Mon May 12 17:23:58 1997 Jim Blandy <jimb@floss.cyclic.com>
576
577 Ensure that shared substrings are handled properly when passed to
578 a system call or other foreign function. Many thanks to Tim
579 Pierce!
580 * symbols.h (SCM_COERCE_SUBSTR): new macro.
581 * filesys.c (scm_chmod, scm_rename, scm_delete_file, scm_mkdir,
582 scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink,
583 scm_lstat), ports.c (scm_sys_make_void_port), posix.c (scm_utime,
584 scm_putenv, scm_setlocale, scm_mknod), stime.c (setzone,
585 scm_strftime), vports.c (scm_make_soft_port), backtrace.c
586 (scm_display_error_message): use RO macros when strings may be RO.
587 * error.c (scm_error_scm), filesys.c (scm_chown, scm_chmod,
588 scm_rename, scm_delete_file, scm_mkdir, scm_rmdir, scm_opendir,
589 scm_chdir, scm_symlink, scm_readlink, scm_lstat), ioext.c
590 (scm_freopen, scm_duplicate_port, scm_fdopen), net_db.c
591 (scm_gethost, scm_getnet, scm_getproto, scm_getserv), ports.c
592 (scm_sys_make_void_port), posix.c (scm_getgrgid, scm_utime,
593 scm_setlocale, scm_mknod), stime.c (setzone, scm_strptime,
594 scm_strftime), vports.c (scm_make_soft_port): use
595 SCM_COERCE_SUBSTR to make sure shared substrings are
596 null-terminated.
597
598Mon May 12 15:33:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
599
600 * error.c (scm_error): Add newline to error message.
601
602 * init.c (scm_init_standard_ports): Doc fix.
603
8e6f33db
MV
604Thu May 8 14:38:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
605
606 * dynl-shl.c: Completely replaced with new code from Bernard
607 URBAN.
608
609 * script.c (scm_ice_9_already_loaded): New variable.
610 (scm_compile_shell_switches): Use it.
611
4edc089c
GH
612Mon May 5 20:35:08 1997 Gary Houston <ghouston@actrix.gen.nz>
613
614 * filesys.c (scm_input_waiting_p): add missing third argument to
615 scm_misc_error.
616
617 * stime.c (scm_localtime): copy the result of localtime before
618 calling gmtime in case they share a buffer.
619 (scm_localtime, scm_mktime): throw an error if neither HAVE_TM_ZONE
620 nor HAVE_TZNAME.
621
554878da
GH
622Fri May 2 19:07:11 1997 Gary Houston <ghouston@actrix.gen.nz>
623
624 * eq.c (scm_equal_p): use SCM_TYP7SD (y) not SCM_TYP7SD (x).
4edc089c 625
914155ca
JB
626Thu May 1 17:01:45 1997 Jim Blandy <jimb@floss.cyclic.com>
627
628 * Makefile.am (check-local): New target, which causes 'make check'
629 to run gh_test_c and gh_test_repl, with some trivial input.
630 * Makefile.in: Rgnrtd.
631
6fa9bcd0
MV
632Tue Apr 29 19:00:40 1997 Marius Vollmer <mvo@zagadka.ping.de>
633
634 * dynl.c (print_dynl_obj): Indicate whether the dynamic object has
635 been unlinked.
636
9ea54cc6
GH
637Mon Apr 28 06:10:14 1997 Gary Houston <ghouston@actrix.gen.nz>
638
639 * async.c (scm_sys_tick_async_thunk): commented out. I'm not
640 sure how this was supposed to work.
641 (scm_async_click): don't send SCM_TICK_SIGNAL.
642 (scm_init_async): don't initialize %tick-thunk.
643
644 * the following change doesn't affect the Scheme interface:
645 gc-thunk is called at the end of garbage collection. however it's
646 no longer implemented by pretending it's a signal.
647
648 * gc.c (scm_gc_end): don't call scm_take_signal. instead mark the
649 system async corresponding to scm_gc_thunk.
650 * async.h: declare scm_gc_async.
651 * async.c (scm_sys_gc_async_thunk): apply the thunk named by
652 gc-thunk directly, instead of going through a signal handler.
653 (scm_gc_async): new variable, points to the GC system-async.
654 (scm_init_async): save the GC async as scm_gc_async instead
655 of using system_signal_asyncs.
656 (scm_gc_vcell): new variable, stores the gc-thunk vcell.
657
10830232
JB
658Mon Apr 28 19:14:44 1997 Jim Blandy <jimb@floss.cyclic.com>
659
660 * Makefile.am (libpath.h, cpp_err_symbols.c, cpp_sig_symbols.c):
661 Don't screw up if we're interrupted.
662 * Makefile.in: Regeneradet.
663
28c682fa
JB
664Sun Apr 27 17:57:15 1997 Jim Blandy <jimb@floss.cyclic.com>
665
666 * aclocal.m4: Removed; unnecessary, given changes of Apr 24.
667
668 * Makefile.am (modincludedir): Use "ice-9" instead of "@module@";
669 we're not using AM_INIT_GUILE_MODULE any more.
670 * Makefile.in: Reneregated.
671
20108301
JB
672Thu Apr 24 00:41:08 1997 Jim Blandy <jimb@floss.cyclic.com>
673
4616e355 674