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