* regex-posix.c (scm_init_regex_posix): Register the "regex"
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
4885ba0e 1Thu May 29 02:19:40 1997 Jim Blandy <jimb@floss.cyclic.com>
1e5afba0 2
4885ba0e
JB
3 * eval.c: Include scmconfig.h at the beginning of the file so that
4 HAVE_ALLOCA_H may properly be defined. Thanks to Bill Janssen for
5 pointing this out.
1e5afba0
JB
6
7 * regex-posix.c: #include "_scm.h" before conditionally #including
8 <regex.h>; the former defines HAVE_REGCOMP.
9
4885ba0e
JB
10 * regex-posix.c: #include <regex.h> conditionally, so the file is
11 CPP'able (for dependency scanning) even on systems that don't have
12 a <regex.h> header.
13
5aefdd40
JB
14Tue May 27 23:48:38 1997 Jim Blandy <jimb@floss.cyclic.com>
15
16 Add new R4RS-compliant syntax for keywords.
17 * read.c (scm_lreadr): Recognize `#:' as a prefix for keywords,
18 regardless of the setting of the `keywords' read option.
19 * kw.c (prin_kw): Print keywords using the `#:' syntax, so they
20 can be re-read no matter what the setting of the `keywords' read
21 option.
22
737c9113
JB
23Tue May 27 22:47:31 1997 Tim Pierce <twp@twp.tezcat.com>
24
25 Add support for POSIX regular expressions.
26
27 * regex-posix.c, regex-posix.h: New files. (Some code
28 is taken liberally from rx/rgx.c in the old Guile dist.)
29
30 * init.c: Include regex-posix.h.
31 (scm_boot_guile_1): Call scm_init_regex_posix.
32
33 * Makefile.am (EXTRA_libguile_la_SOURCES, modinclude_HEADERS):
34 Add regex-posix.[ch] sources.
35 * Makefile.in: Regenerated.
36
37 * scmconfig.h.in: Add HAVE_REGCOMP macro. (automake is supposed
38 to do this automatically? It didn't for me, bleh.)
39
06de7963
JB
40Mon May 26 18:51:29 1997 Jim Blandy <jimb@floss.cyclic.com>
41
33623b5e
JB
42 * fports.c (print_pipe_port): New function.
43 (scm_fptob): Use print_pipe_port instead of scm_prinport; the
44 latter doesn't even take the right arguments.
45
46 * Makefile.am: Increment shared lib revision number. I think
47 sometimes the uninstalled Guile finds the installed shared lib;
48 Gord says doing this might help. As things turned out, I can't
49 say whether it does.
50 * Makefile.in: Regenerated.
51
06de7963
JB
52 * gh_init.c (gh_enter): Cast c_main_prog to a void * before
53 passing it as the closure argument to scm_boot_guile. (Bill
54 Janssen)
55
56 * ports.c (print_void_port, putc_void_port, puts_void_port,
57 write_void_port, flush_void_port, getc_void_port, close_void_port,
58 noop0): Use ANSI prototypes instead of K&R declarations, so the
59 initialization of void_port_ptob gets aggressively type-checked.
60 Fix arguments of print_void_port and write_void_port. (Bill
61 Janssen)
82892bed
JB
62
63 * COPYING, __scm.h, _scm.h, alist.c, alist.h, append.c, append.h,
64 appinit.c, arbiters.c, arbiters.h, async.c, async.h, backtrace.c,
65 backtrace.h, boolean.c, boolean.h, chars.c, chars.h,
66 continuations.c, continuations.h, coop-defs.h, coop-threads.c,
67 coop-threads.c.cygnus, coop-threads.h, coop-threads.h.cygnus,
68 coop.c, debug.c, debug.h, dynl-dl.c, dynl-dld.c, dynl-shl.c,
69 dynl-vms.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, eq.h,
70 error.c, error.h, eval.c, eval.h, extchrs.h, feature.c, feature.h,
71 filesys.c, filesys.h, fports.c, fports.h, fsu-pthreads.h, gc.c,
72 gc.h, gdbint.c, gdbint.h, genio.c, genio.h, gh.h, gh_data.c,
73 gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c,
74 gh_predicates.c, gh_test_c.c, gh_test_repl.c, gscm.c, gscm.h,
75 gsubr.c, gsubr.h, guile.c, hash.c, hash.h, hashtab.c, hashtab.h,
76 init.c, init.h, ioext.c, ioext.h, kw.c, kw.h, libguile.h, list.c,
77 list.h, load.c, load.h, mallocs.c, mallocs.h, markers.c,
78 markers.h, mbstrings.c, mbstrings.h, mit-pthreads.c,
79 mit-pthreads.h, net_db.c, net_db.h, numbers.c, numbers.h,
80 objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
81 ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
82 procprop.h, procs.c, procs.h, putenv.c, ramap.c, ramap.h, read.c,
83 read.h, root.c, root.h, scmhob.h, scmsigs.c, scmsigs.h, script.c,
84 script.h, sequences.c, sequences.h, simpos.c, simpos.h, smob.c,
85 smob.h, snarf.h, socket.c, socket.h, srcprop.c, srcprop.h,
86 stackchk.c, stackchk.h, stacks.c, stacks.h, stime.c, stime.h,
87 strings.c, strings.h, strop.c, strop.h, strorder.c, strorder.h,
88 strports.c, strports.h, struct.c, struct.h, symbols.c, symbols.h,
89 tag.c, tag.h, tags.h, threads.c, threads.h, throw.c, throw.h,
90 unif.c, unif.h, variable.c, variable.h, vectors.c, vectors.h,
91 version.c, version.h, vports.c, vports.h, weaks.c, weaks.h: New
92 address for FSF.
93
3f4c654d
JB
94Mon May 26 12:37:30 1997 Jim Blandy <jimb@floss.cyclic.com>
95
96 * script.c (scm_find_executable): Use prototype-style definition
97 here; apparently it's not quite right to have const in a prototype
98 and then use a K&R declaration. I wonder if stuff like this will
99 go away if we compile with -Wrequire-prototypes, or whatever that
a00c28cd 100 is... (Bernard URBAN)
3f4c654d
JB
101
102 * scmhob.h: New text from Bernard URBAN.
103
104Sat May 17 17:14:36 1997 Jim Blandy <jimb@floss.cyclic.com>
105
106 * script.c: Don't #define const on hpux. Configure takes care of
107 this. (Thanks to Larry Schwimmer.)
108
109 * script.c: Use the HAVE_UNISTD_H symbol provided by autoconf to
110 decide whether to #include <unistd.h>, instead of listing a bunch
111 of systems. Don't #include stdio twice. Removed dyked-out
112 definition of scm_find_impl_file.
113
eeb56f3c
JB
114Fri May 16 03:06:08 1997 Jim Blandy <jimb@floss.cyclic.com>
115
adb98aa9
JB
116 * Makefile.am (libguile_la_LDFLAGS): Update libguile's shared
117 library version info to 1:0.
118 * Makefile.in: Regenerated.
119
142ad3d9
JB
120 * backtrace.c, backtrace.h, debug.c, debug.h, eq.c,
121 gdb_interface.h, gdbint.c, gdbint.h, gh_data.c, gh_init.c,
122 gh_io.c, gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c,
123 init.c, net_db.c, options.c, options.h, ports.c, print.c, read.c,
124 script.h, snarf.h, srcprop.c, srcprop.h, stacks.c, stacks.h,
125 throw.c: Update copyright years; these files have been worked on
126 significantly in 1997, but only had copyright years for 1996.
127 Also, change name of copyright holder on some from Mikael
128 Djurfeldt to Free Software Foundation; he has signed papers
129 assigning the changes to the FSF.
130
eeb56f3c
JB
131 * script.c (scm_shell_usage): Pass FATAL to exit. There's no
132 reason not to give the user the option.
190b072d
JB
133
134 * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
135 Return #f on end-of-file when scanning table (i.e. when called
136 with no arguments). Try to catch errors, when we can.
095936d2
JB
137 * posix.c (scm_getgrgid, scm_getpwuid): Same.
138
139 * script.h (scm_shell_usage, scm_compile_shell_switches): New
190b072d
JB
140 external declarations. These are useful.
141
a48a89bc
GH
142Thu May 15 05:21:36 1997 Gary Houston <ghouston@actrix.gen.nz>
143
144 * posix.c: don't include <sys/select.h> or define macros for
145 select, since they were not used in this file.
146
095936d2 147 * filesys.c (scm_select): make the fifth parameter microseconds,
a48a89bc
GH
148 not milliseconds. let the fourth parameter be either a real value
149 or an integer or #f. The first, second and third arguments can
150 now be vectors: the type of the corresponding return set will be
151 the same.
152 (set_element, get_element): new static procedures.
153
f3b1485f
JB
154Wed May 14 12:18:12 1997 Jim Blandy <jimb@floss.cyclic.com>
155
223be5f0
JB
156 * strports.c (scm_eval_string): New function.
157 (scm_eval_0str): Trivially re-implemented in terms of
158 scm_eval_string.
159 * strports.h (scm_eval_string): New extern decl.
160
e1cd56f9
JB
161 * net_db.c (h_errno): Add extern decl for this.
162
f3b1485f
JB
163 * fports.c (local_pclose): New function.
164 (scm_pipob): Use it in the initializer here.
165
166 From Tim Pierce:
167 * net_db.c (scm_gethost, scm_getproto, scm_getnet, scm_getserv):
168 Use a meaningful error message when signalling an error. For
169 this, scm_gethost must check h_errno rather than errno.
170
9b01064c
JB
171Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
172
173 * Makefile.in: Regenerated, using automake-1.1p.
174
08fea088
GH
175Tue May 13 04:34:52 1997 Gary Houston <ghouston@actrix.gen.nz>
176
0267051b
GH
177 * socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify,
178 not SCM_UNSPECIFIED.
179
08fea088
GH
180 * script.c (scm_compile_shell_switches): don't append (quit) if
181 interactive.
182 (scm_shell): call scm_exit_status and exit on the result of the
183 evaluation.
184
821eb64e
JB
185Mon May 12 17:23:58 1997 Jim Blandy <jimb@floss.cyclic.com>
186
187 Ensure that shared substrings are handled properly when passed to
188 a system call or other foreign function. Many thanks to Tim
189 Pierce!
190 * symbols.h (SCM_COERCE_SUBSTR): new macro.
191 * filesys.c (scm_chmod, scm_rename, scm_delete_file, scm_mkdir,
192 scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink,
193 scm_lstat), ports.c (scm_sys_make_void_port), posix.c (scm_utime,
194 scm_putenv, scm_setlocale, scm_mknod), stime.c (setzone,
195 scm_strftime), vports.c (scm_make_soft_port), backtrace.c
196 (scm_display_error_message): use RO macros when strings may be RO.
197 * error.c (scm_error_scm), filesys.c (scm_chown, scm_chmod,
198 scm_rename, scm_delete_file, scm_mkdir, scm_rmdir, scm_opendir,
199 scm_chdir, scm_symlink, scm_readlink, scm_lstat), ioext.c
200 (scm_freopen, scm_duplicate_port, scm_fdopen), net_db.c
201 (scm_gethost, scm_getnet, scm_getproto, scm_getserv), ports.c
202 (scm_sys_make_void_port), posix.c (scm_getgrgid, scm_utime,
203 scm_setlocale, scm_mknod), stime.c (setzone, scm_strptime,
204 scm_strftime), vports.c (scm_make_soft_port): use
205 SCM_COERCE_SUBSTR to make sure shared substrings are
206 null-terminated.
207
208Mon May 12 15:33:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
209
210 * error.c (scm_error): Add newline to error message.
211
212 * init.c (scm_init_standard_ports): Doc fix.
213
8e6f33db
MV
214Thu May 8 14:38:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
215
216 * dynl-shl.c: Completely replaced with new code from Bernard
217 URBAN.
218
219 * script.c (scm_ice_9_already_loaded): New variable.
220 (scm_compile_shell_switches): Use it.
221
4edc089c
GH
222Mon May 5 20:35:08 1997 Gary Houston <ghouston@actrix.gen.nz>
223
224 * filesys.c (scm_input_waiting_p): add missing third argument to
225 scm_misc_error.
226
227 * stime.c (scm_localtime): copy the result of localtime before
228 calling gmtime in case they share a buffer.
229 (scm_localtime, scm_mktime): throw an error if neither HAVE_TM_ZONE
230 nor HAVE_TZNAME.
231
554878da
GH
232Fri May 2 19:07:11 1997 Gary Houston <ghouston@actrix.gen.nz>
233
234 * eq.c (scm_equal_p): use SCM_TYP7SD (y) not SCM_TYP7SD (x).
4edc089c 235
914155ca
JB
236Thu May 1 17:01:45 1997 Jim Blandy <jimb@floss.cyclic.com>
237
238 * Makefile.am (check-local): New target, which causes 'make check'
239 to run gh_test_c and gh_test_repl, with some trivial input.
240 * Makefile.in: Rgnrtd.
241
6fa9bcd0
MV
242Tue Apr 29 19:00:40 1997 Marius Vollmer <mvo@zagadka.ping.de>
243
244 * dynl.c (print_dynl_obj): Indicate whether the dynamic object has
245 been unlinked.
246
9ea54cc6
GH
247Mon Apr 28 06:10:14 1997 Gary Houston <ghouston@actrix.gen.nz>
248
249 * async.c (scm_sys_tick_async_thunk): commented out. I'm not
250 sure how this was supposed to work.
251 (scm_async_click): don't send SCM_TICK_SIGNAL.
252 (scm_init_async): don't initialize %tick-thunk.
253
254 * the following change doesn't affect the Scheme interface:
255 gc-thunk is called at the end of garbage collection. however it's
256 no longer implemented by pretending it's a signal.
257
258 * gc.c (scm_gc_end): don't call scm_take_signal. instead mark the
259 system async corresponding to scm_gc_thunk.
260 * async.h: declare scm_gc_async.
261 * async.c (scm_sys_gc_async_thunk): apply the thunk named by
262 gc-thunk directly, instead of going through a signal handler.
263 (scm_gc_async): new variable, points to the GC system-async.
264 (scm_init_async): save the GC async as scm_gc_async instead
265 of using system_signal_asyncs.
266 (scm_gc_vcell): new variable, stores the gc-thunk vcell.
267
10830232
JB
268Mon Apr 28 19:14:44 1997 Jim Blandy <jimb@floss.cyclic.com>
269
270 * Makefile.am (libpath.h, cpp_err_symbols.c, cpp_sig_symbols.c):
271 Don't screw up if we're interrupted.
272 * Makefile.in: Regeneradet.
273
28c682fa
JB
274Sun Apr 27 17:57:15 1997 Jim Blandy <jimb@floss.cyclic.com>
275
276 * aclocal.m4: Removed; unnecessary, given changes of Apr 24.
277
278 * Makefile.am (modincludedir): Use "ice-9" instead of "@module@";
279 we're not using AM_INIT_GUILE_MODULE any more.
280 * Makefile.in: Reneregated.
281
20108301
JB
282Thu Apr 24 00:41:08 1997 Jim Blandy <jimb@floss.cyclic.com>
283
4616e355 284