* Makefile.in: Removed, this is auto-generated.
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
e7a96050
MD
12000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2
a177af34
MD
3 * backtrace.c (scm_display_error_message): Bugfix: Don't use
4 result of scm_list_p as C boolean.
5 (scm_display_error_message, scm_set_print_params_x): Use new
6 validation macros. (Thanks to Dirk Herrmann.)
7
d06bcb02
MD
8 * net_db.c (scm_resolv_error): Cast result from hstrerror.
9
10 * strports.c (st_end_input): Inserted parenthesis to get operator
11 grouping correct.
12
13 * list.h (scm_init_list): Removed SCM_P around prototypes.
14
15 * fports.c, list.c, numbers.c, ports.c, stime.c, symbols.c,
16 filesys.c, posix.c: Converted docstrings to ANSI C format and
e7a96050
MD
17 escaped " occurring inside string literals.
18
682eefe9
MD
19Tue Jan 18 13:21:08 2000 Mikael Djurfeldt <mdj@r11n07-s.pdc.kth.se>
20
21 * posix.c (scm_mknod): Escape " occuring inside docstring.
22
56cfe22b
MD
232000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
24
25 * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
26 evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
27 keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
28 objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
29 ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
30 stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
31 symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
32 weaks.c: Converted docstrings to ANSI C format.
33
34 * filesys.c (scm_chmod), simpos.c (scm_system), version
35 (scm_version), vports (scm_make_soft_port): Escape " occuring
36 inside docstring.
37
fcb1720f
GB
38Mon Jan 17 11:41:22 2000 Greg J. Badros <gjb@cs.washington.edu>
39
40 * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
41 SCM_VALIDATE_LONG_COPY
42
43 * numbers.c: Use SCM_VALIDATE_ULONG_COPY, instead of
44 SCM_VALIDATE_INUM_COPY to let bigger numbers be used. Rename a
45 couple of formal arguments (and fix their uses) to make arguments
46 match the documentation.
47
b9af3d0e
MS
482000-01-14 <mstachow@alum.mit.edu>
49
50 * Makefile.am: Augment path when running guile-doc-snarf so
51 guile-func-name-check is found.
52
153511a7
GB
53Fri Jan 14 09:34:55 2000 Greg J. Badros <gjb@cs.washington.edu>
54
55 * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
56 def, not SCM_MAKINUM(def); thanks Janis Bzerins!
57
59d5245f
GB
58Wed Jan 12 00:06:53 2000 Greg J. Badros <gjb@cs.washington.edu>
59
60 * net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's
61 the way guile-1.3.4 worked, but #if 0 out the version using
62 SCM_VALIDATE_INUM_COPY for stricter testing.
63
95aec69f
GB
64Tue Jan 11 18:24:18 2000 Greg J. Badros <gjb@cs.washington.edu>
65
66 * guile-doc-snarf.in: Use new $fullfilename for running
67 guile-func-name-check, and put "$fullfilename" and "$filename" in
68 quotes at uses to make sure re-splitting on whitespace does not
69 occur (so filenames w/ embedded whitespace would work okay, though
70 I sure hope we never have to deal with that! :-) ). Thanks to
71 Mikael for pointing out the source_dir != build_dir was broken.
72
b7ac2837
GB
73Tue Jan 11 17:42:40 2000 Greg J. Badros <gjb@cs.washington.edu>
74
75 * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
76 SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num. Added
77 SCM_COERCE_ROSTRING macro. Added SCM_VALIDATE_NONEMPTYLIST
78 macro. Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
79 variants.
80
81 * ports.c (scm_port_closed_p): Validate that the arg is a PORT,
82 then return whether it's an open port (was validating that it was
83 an open port -- this was a bug I introduced back in December, but
84 my careful reading of diffs caught it).
85
86 * numbers.c: Recombine the two conditional-compilation paths for
87 all the log* primitives -- they were split based on #ifndef
88 scm_long2num; factored out a SCM_LOGOP_RETURN macro, and fixed
89 some bugs and inconsistencies in the two sets of implementations.
90 (scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!
91
92 * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
93 SCM_VALIDATE_INUM_COPY once where it should've been used.
94
95 * fluids.c (scm_internal_with_fluids): Use
96 SCM_VALIDATE_LIST_COPYLEN.
97
98 * filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
99 this is questionable as it relaxes type safety, but other changes
100 were useful and all SCM_NUM2LONG's should probably be
101 revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.
102
103 * evalext.c: line-break change on 1 line.
104
105 * eval.c (nconc2last): Takes a non-empty list as its first
106 argument, not just a list.
107
108 * dynl.c: Use new SCM_COERCE_ROSTRING macro.
109
110Tue Jan 11 15:44:23 2000 Greg J. Badros <gjb@cs.washington.edu>
111
112 * dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
113 net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
114 where possible.
115
116 * symbols.c (scm_sysintern0): Fixed the function name in a
117 scm_misc_error invocation.
118
119 * print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
120 use scm_return_first to ward off latent GC bug that Mikael caught.
121
122 * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
123 used before but should've been.
124
d61f6b02
MD
1252000-01-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
126
127 * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
128 SCM_FUNC_CAST_ARBITRARY_ARGS.
129
88423ab1
GB
130Tue Jan 11 13:44:07 2000 Greg J. Badros <gjb@cs.washington.edu>
131
132 * guile-func-name-check.in: Added this script to statically check
133 #define FUNC_NAME, #undef FUNC_NAME in the source.
134
135 * sort.c, posix.c: Fix #undef FUNC_NAME lines to not have trailing
136 redundant comment, semicolon; caught by new guile-func-name-check
137 script.
138
139 * debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
140 Caught by new guile-func-name-check-script.
141
142 * Makefile.am: Added guile-func-name-check to bin_SCRIPTS
143
144 * ramap.c: Fix #if 0'd out code to be syntactically acceptable to
145 guile-func-name-check.
146
147 * guile-doc-snarf.in: Run guile-func-name-check on the file before
148 doing the snarf.
149
7f15e635
GB
150Tue Jan 11 11:31:10 2000 Greg J. Badros <gjb@cs.washington.edu>
151
152 * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
153 port function take const void*, not void*.
154
bf121b59
GB
155Tue Jan 11 11:18:07 2000 Greg J. Badros <gjb@cs.washington.edu>
156
157 * scm_validate.h, chars.c, ports.c, print.c, read.c, strings.c,
158 strop.c: Use SCM_VALIDATE_ICHR, SCM_VALIDATE_ICHR_COPY instead of
159 SCM_VALIDATE_CHAR, SCM_VALIDATE_CHAR_COPY. Change made for
160 consistency with the other macros dealing with immediate
161 characters. (Similar to INT -> INUM change a week or so ago).
162
7965d98f
GB
163Tue Jan 11 10:41:46 2000 Greg J. Badros <gjb@cs.washington.edu>
164
165 * dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,
166 net_db.c, read.c, socket.c: Update error messages to use ~A for
167 %s, ~S for %S to work with new `simple-format' format and be
168 standardized better.
169
170 * print.h, print.c (scm_simple_format): Added `simple-format'
171 primitive. It's the old scm_display_error, with ARGS now a rest
172 parameter, and the destination first instead of last (and a couple
173 new capabilities inspired by `format' -- #t as destination means
174 current-output-port, #f means return the formatted text as a
175 string.
176
177 * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.
178
179 * backtrace.c (scm_display_error_message): Rewrote to use
180 scm_simple_format() procedure.
181
182 * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
183
f73d2411
MV
1842000-01-09 Marius Vollmer <mvo@zagadka.ping.de>
185
186 Finally applied the libltdl patch from Thomas Tanner, with slight
187 modifications.
188
189 * DYNAMIC-LINKING: Removed because it is obsolete.
190 * dynl.c: Use ANSI prototypes.
191 (sysdep_dynl_link): Use lt_dlopenext instead of lt_dlopen.
192 * scmconfig.h.in: Do not change, as it is automatically generated.
193
194 1999-07-25 Thomas Tanner <tanner@ffii.org>
195
196 * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
197 (obsolete)
198 * Makefile.am: likewise, add INCLTDL (libltdl headers) to
199 INCLUDES, set dlpreopened files in LDFLAGS, link libguile
200 against libltdl
201 * dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
202 * guile.c: register preloaded modules
203 * scmconfig.h.in: remove obsolete symbols
204
38c1d3c4
GH
2052000-01-09 Gary Houston <ghouston@arglist.com>
206
207 * These changes should make it unnecessary to call tzset from
208 Scheme after modifying the TZ environment variable, even if the
209 system date facilities cache the value.
210 * stime.c (setzone, scm_localtime): added comments.
211 (tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
212 (setzone): don't call tzset.
213 (restorezone): call tzset only if HAVE_TZSET is defined.
214 (scm_tzset): don't define if HAVE_TZSET not defined. Change the
215 doc string to indicate that this procedure isn't likely to do
216 anything useful.
217 (scm_localtime, scm_strftime, scm_mktime): call tzset if
218 LOCALTIME_CACHE is defined.
219
9359d657
MD
2202000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
221
222 * posix.c (scm_sync): Return SCM_UNSPECIFIED.
223
f25f761d
GH
2242000-01-09 Gary Houston <ghouston@arglist.com>
225
226 * eval.c: define scm_unbound_variable_key ('unbound-variable).
227 scm_lookupcar1: throw an error with key 'unbound-variable instead
228 of 'misc-error when an unbound variable is encountered.
229
230 * filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
231 scm_symlink, scm_readlink, scm_lstat),
232 posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
233 scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
234 scm_sync),
235 simpos.c (scm_system),
236 stime.c (scm_times, scm_strptime):
237 move the HAVE_XXX feature tests out of the procedure bodies.
238 don't use SCM_SYSMISSING.
239 scm_validate.h (SCM_SYSMISSING): removed.
240 error.h, error.c (scm_sysmissing): comment that this is deprecated.
241 see ChangeLog entry for 1999-12-28.
242
a4dd2611
GB
243Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
244
245 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
246
247Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
248
249 * backtrace.c: Fix spelling typo in a comment.
250
251 * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
252 text. Reformatted some of the expansions.
253
5ac36451
GB
254Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
255
256 * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
257 report the position of the argument.
258
259 * error.h, error.c (scm_out_of_range_pos): Added this function to
260 take extra "pos" argument, the position number of the errant
261 argument.
262
263 * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
264
265 * snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
266 and SCM_SNARFING. Also put the %%% in the SCM_INIT since Mikael
267 prefers that and I'm reasonably indifferent.
268
269Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
270
271 * snarf.h: Factor out differences between C++ and non-C++ into
272 SCM_FUNC_CAST_ARBITRARY_ARGS macro. Modify all the snarf macro
273 definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
274 Mikael's macros, below, but changed names and SCM_SNARFING no
275 longer expands to include %%% -- that must appear in the argument
276 so that the token appears at the call-site as a reminder).
277
088bb1d4
MD
2782000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
279
280 * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
281 snarf macro definitions.
282
636480e6
MD
2832000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
284
285 * chars.c (scm_integer_to_char): Use Greg's nice
286 SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
287 adherence to R5RS.
288
7c5628e2
GB
289Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
290
291 * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
292
2cc0f8cb
GB
293Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
294
295 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
296 instead of GUILE_PROC.
297
298Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
299
300 * alist.c: Do not report mismatch errors on some uses of `tmp' (do
301 this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
302 macro call.
303
9179dcdd
GB
304Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
305
306 * scm_validate.h: Remove some redundant NIMP tests.
307
308 * alist.c: minimize scope of the tmp variables, and initialize
309 them when declared. The strange SCM_NIMP tests are replaced by
310 SCM_CONSP tests that more closely reflect the intended semantics.
311 However, we don't get a performance penalty here, because the
312 SCM_CONSP test was performed by the ALISTCELL test anyway. * The
313 extremely ugly use of ASRTGO macros was removed: The calls to
314 ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
315 label parameter that only exists when SCM_RECKLESS is not defined.
316 This works, because ASRTGO itself is defined in a way that it only
317 makes use of the label parameter if SCM_RECKLESS is not defined
318 (shudder!). Does guile make at all use of the possibility to
319 define SCM_RECKLESS? * Codesize is likely to be reduced, since
320 instead of two calls to SCM_ASSERT performed by the ALISTCELL test
321 we now only get one test.
322
323 * list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate. Also use
324 SCM_NULLP instead of SCM_IMP. Drop use of "register" keyword on
325 some variables in `list?'. Fix `reverse' and `reverse!'
326 primitives to handle improper lists better.
327
15b33280
GB
328Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
329
330 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
331 macros and SCM_DEFINE macros to match GNU coding standards.
332
ca8cd130
GB
333Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
334
335 * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
336
fb764465
GB
337Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
338
339 * *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM for
340 better consistency with the names of other SCM_VALIDATE_ macros
341 and better conformance to guile naming policy.
342
343Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
344
345 * ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
346 SCM_VALIDATE instead of 1 to avoid a check on the argument (since
347 it's not the actual name of the formal).
1e484823
GB
348
349 * guile-snarf.awk.in: Do argument/number mismatch checking and
350 print warnings in an Emacs compile-mode parseable format.
351
352 * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
353 SCM_OUTOFRANGE as 3rd argument.
354
355 * random.c: Fix argument/number mismatch (that I introduced :-( ).
356
357 * __scm.h: Do not #define SCM_ARG* when snarfing;
358 lets us distinguish between 1 and SCM_ARG1 when snarfing as only
359 the former (using the number) requires the argument to match the
360 formal in the current argument snarfing check.
361
362 * snarf.h: Give new definition of SCM_ASSERT when in
363 snarfing mode to output a lexically-identifiable sequence that the
364 guile-snarf.awk script uses to verify argument/position matching.
365
366 * ramap.c: Remove extraneous #undef FUNC_NAME.
367
53fc4636
GB
368Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
369
370 * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
371 current version of the same functionality; it writes the .x output
372 to stdout instead of directly into the file.
373
374Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
375
376 * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
377 posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now
378 redundant with the safer macros. Patch from Dirk Hermann applied
379 by hand. Thanks Dirk!
380
381 * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
382 uses in random.c.
383
384 * ramap.c: whitespace change.
385
3b5345d9
GB
386Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
387
388 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
389 removals from Dirk Hermann.
390
391 * alist.c: Rename formals to match the parameter names in the
392 documentation, updates to documentation. Thanks Dirk Hermann!
393
169aec65
MD
3942000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
395
db62436e
MD
396 * eval.c (SCM_CEVAL): Reverse order of
397 scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
398 (Thanks to Brad Knotwell.)
169aec65 399
da43d822
GB
400Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
401
402 * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
403 allocated cell.
404
405 * pairs.h: Added a comment about the need for the SCM_SETCAR in
406 SCM_NEWCELL macro.
407
408Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
409
410 * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
411 SCM_NIMP tests that were redundant are now eliminated. Patches
412 from Dirk Hermann applied by hand.
413
339999c7 414The ChangeLog continues in the file: "ChangeLog-1996-1999"