* numbers.c (scm_copy_big_dec, scm_copy_smaller, scm_big_ior,
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
3e892913
GB
1Thu Mar 9 11:33:25 2000 Greg J. Badros <gjb@cs.washington.edu>
2
3 * vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
4 eliminating some warnings.
5
6 * unif.c, strports.c, print.c, options.c: Fix some warnings on
7 mis-use of SCM/long
8
9 * gc.c, gc.h: Added scm_return_first_int(), and added comment re:
10 what the scm_return_first* functions do.
11
7ac030d6
GB
122000-03-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>, applied by Greg J. Badros, <gjb@cs.washington.edu>
13
14 * libguile/*.[ch]: make a distinction between SCM as a generic
15 name for a Scheme object (now a void*), and SCM as 32 bit word for
16 storing tags and immediates (now a long int). Introduced
17 SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious
18 code in the process: arbiter.c (use macros), unif.c (scm_array_p),
19
f635d2d4
GB
20Wed Mar 8 10:15:59 2000 Greg J. Badros <gjb@cs.washington.edu>
21
22 * numbers.c: Use SCM_VALIDATE_LONG_COPY, and longs, not ints, in
23 various logXXX primitives. Thanks Eric Moore!
24
9eaa7fb6
GB
25Tue Mar 7 08:05:22 2000 Greg J. Badros <gjb@cs.washington.edu>
26
27 * run-test, remaining-docs-needed: Added these scripts. The
28 second one is only temporary until the docstring additions are
29 complete. run-test may best live on, but is here mostly for
30 convenience and awareness for now.
31
32 * hash.c: Docs, minor cleanup patch from Dirk Herrman.
33
49673698
GB
34Thu Mar 2 16:06:58 2000 Greg J. Badros <gjb@cs.washington.edu>
35
36 * error.h, error.c: Added `scm_wrong_type_arg_msg' to support
37 displaying the expected type. Use SCM_LISTn in a couple places
38 instead of scm_cons-ing by hand.
39
40 * __scm.h: Added SCM_ASSERT_TYPE macro.
41
42 * validate.h, scm_validate.h: Added the former, as a renamed
43 version of the latter with SCM_ASSERT_TYPE used in
44 SCM_MAKE_VALIDATE (instead of just SCM_ASSERT)
45
46 * Makefile.am: Rename scm_validate.h to validate.h.
47
48 * *.c, *.h: Include validate.h, not scm_validate.h (old name's
49 prefix was superfluous).
50
417bdef8
GB
51Thu Mar 2 15:33:12 2000 Greg J. Badros <gjb@cs.washington.edu>
52
53 * hashtab.c: Improved documentation for lots of functions. Added
54 handwritten docs for `hash-fold'.
55
56Thu Mar 2 15:13:25 2000 Greg J. Badros <gjb@cs.washington.edu>
57
58 * list.c: Added hand-written docs for `del{q,v,ete}1!'.
59
26a760c6
GB
60Thu Mar 2 12:38:30 2000 Greg J. Badros <gjb@cs.washington.edu>
61
62 * list.c: Moved append docs to append! Thanks Dirk Hermann. Also,
63 added append docs from R4RS.
64
65 * strings.c: Docstring typo fix, + eliminate unneeded IMP tests.
66 Thanks Dirk Hermann!
67
68 * chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and
69 deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann!
70
71 * *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout.
72 Drop use of SCM_P for function prototypes... assume an ANSI C
73 compiler. Thanks Dirk Hermann!
74
898942f8
GB
75Sat Feb 19 12:20:12 2000 Greg J. Badros <gjb@cs.washington.edu>
76
77 * ports.c: Made `set-port-column!' and `set-port-line!' each
78 return SCM_UNSPECIFIED instead of a (not-scheme-object) integer
79 that caused a seg fault. Also fixed `set-port-column!'s
80 docstring. Thanks Han-Wen Nienhuys for finding the bug!
81
84a3df2c
GB
82Sun Feb 13 19:11:42 2000 Greg J. Badros <gjb@cs.washington.edu>
83
84 * arbiters.c, eq.c, gc.c, guardians.c, list.c, ports.c, print.c,
85 regex-posix.c, scmsigs.c, stime.c, strings.c, variable.c, stime.c,
86 strings.c, variable.c: Added lots of documentation, cleaned up
87 some existing documentation. Occasionally changed formal params
88 to match docs. Also folded an #ifdef into the inners of a
89 primitive instead of having two copies of the primitive
90 (`get-internal-real-time', from stime.c)
91
92Sun Feb 13 18:12:19 2000 Greg J. Badros <gjb@cs.washington.edu>
93
94 * ports.c: Added docs for primitives missing them. Written by
95 hand.
96
3f557de6
GB
97Sun Feb 13 09:40:36 2000 Greg J. Badros <gjb@cs.washington.edu>
98
99 * guile-doc-snarf.in: Use ${AWK} -f guile-func-name-check, not
100 just execing guile-func-name-check. Thanks Michael Livshin!
101
ddcccdb3
GB
102Thu Feb 10 11:43:23 2000 Greg J. Badros <gjb@cs.washington.edu>
103
104 * guile-snarf.awk.in: Tweak to work with Sun/HP awk, removed some
105 dead code. Patch from Michael Livshin.
106
107 * guile-doc-snarf.in: Tweak to work with Sun/HP sh. Patch from
108 Michael Livshin.
109
720e8692
GH
1102000-02-09 Gary Houston <ghouston@arglist.com>
111
112 * init.c (scm_init_standard_ports): when stdout is a tty, make the
113 current-output-port unbuffered by default. this is less confusing
114 for interactive use. it was line-buffered because of a
115 performance problem with unbuffered ports, but I think it will be
116 OK now.
117
43ff3170
GH
1182000-02-08 Gary Houston <ghouston@arglist.com>
119
120 * __scm.h: don't define long_long or ulong_long if HAVE_LONG_LONGS
121 is not defined.
122
123 * stime.c (scm_localtime, scm_mktime): if neither HAVE_TM_ZONE nor
124 HAVE_TZNAME are defined, use an empty string instead of giving two
125 spurious compile-time errors.
126
4ba47302
GB
127Tue Feb 8 13:57:46 2000 Greg J. Badros <gjb@cs.washington.edu>
128
129 * ports.c: Doc patches from Richard Kim. Pasted from MIT Scheme.
130 Thanks Richard!
131
09a617f7
GB
132Mon Feb 7 09:07:31 2000 Greg J. Badros <gjb@cs.washington.edu>
133
134 * macros.c: Doc patches from Richard Kim. Pasted from scm.texi.
135
9dbcf010
GB
136Sun Feb 6 20:26:21 2000 Greg J. Badros <gjb@cs.washington.edu>
137
138 * pairs.c: Doc patches from Richard Kim. Pasted from MIT Scheme
139 (which is GNU GPL'd).
140
bd9e24b3
GH
1412000-01-31 Gary Houston <ghouston@arglist.com>
142
143 * strings.h: don't use SCM_P. don't include <string.h>.
144 * error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>.
145
146 * strings.c (scm_string_ref): make the 2nd argument compulsory.
147 previously it defaulted to zero for no good reason that I can see.
148 use a local variable for SCM_INUM (k). replace
149 SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY.
150
151 (scm_makfromstr): cosmetic changes.
152
153 (scm_string): Accept only chars in the list, not strings, for
154 conformance to R5RS (particularly for list->string, which is
155 supposed to be the inverse of string->list.) remove
156 SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since
157 scm_makstr handles the cell allocation. when reporting wrong-type
158 arg, don't report the position as 1.
159
160 * posix.c (scm_init_posix): intern PIPE_BUF if it's defined.
161
28d77376
GH
1622000-01-29 Gary Houston <ghouston@arglist.com>
163
ae1b098b
GH
164 * posix.c (scm_pipe): rewrote the docstring.
165
28d77376
GH
166 * filesys.c (scm_select, retrieve_select_type, get_element,
167 fill_select_type, set_element): modified so that Scheme
168 "select" tests port buffers for the ability to provide input
169 or accept output. Previously only the underlying file descriptors
170 were checked. Rewrote the docstring.
171
7f1497ce
GB
172Thu Jan 27 10:14:25 2000 Greg J. Badros <gjb@cs.washington.edu>
173
174 * vectors.c, symbols.c, strorder.c: Documentation cut and pasted
175 from Gregg Reynolds. Thanks Gregg!
176
2288ff9b
GB
177Thu Jan 27 09:59:38 2000 Greg J. Badros <gjb@cs.washington.edu>
178
179 * strop.c (scm_i_index): Obfuscated commented-out SCM_DEFINE by
180 adding "x" prefix to the line so that guile-func-name-check
181 doesn't complain unnecessarily.
182
349af6dd
GB
183Wed Jan 26 17:33:52 2000 Greg J. Badros <gjb@cs.washington.edu>
184
185 * throw.c: Factor out an #ifdef/#else/#endif choice more finely
186 for maintainability.
187
188 * strop.c: Documentation added by Gregg A. Reynolds. Pasted in
189 from qdocs, RnRs.
190
a28eb127
GB
191Wed Jan 26 10:02:11 2000 Greg J. Badros <gjb@cs.washington.edu>
192
193 * tag.c: Added doc for `tag', but mark as deprecated since Mikael
194 suggests removing tag.c altogether (and using a new `class-of'
195 instead).
196
197 * strings.c: Added documentation from Gregg A. Reynolds. Edited
198 a bit by me to use FOO instead of @var{foo} and to have the
199 summary come before preconditions on input. Also dropped trailing
200 (rnrs) note.
201
202 * gsubr.c: Do not use SCM_DEFINE for `gsubr-apply'. Register the
203 function with scm_make_subr_opt w/ last arg of 0 so it is not
204 visible at the Scheme level. Mikael says that this is the right
205 thing because the first arg to the proc is the guts of a compiled
206 closure and shouldn't be exposed to the Scheme level.
207
ac2259fc
GB
208Tue Jan 25 17:15:47 2000 Greg J. Badros <gjb@cs.washington.edu>
209
210 * sort.c: typo in comment fixed.
211
212 * keywords.c: Added documentation.
213
214 * guardians.c: Added documentation (could be better).
215
216 * gc.c: Added docs for gc-set-debug-check-freelist.
217
218 * eq.c: Added docs for eq?, eqv? equal? abridged from R4RS.
219
220 * boolean.c: Added docs for `not', `boolean?' (by hand).
221
d928e0b4
GB
222Tue Jan 25 13:28:56 2000 Greg J. Badros <gjb@cs.washington.edu>
223
224 * random.c: Added documentation, from SLIB page:
225 http://angela.ctrl-c.liu.se/~calle/scheme/slib_toc.html
226
227Mon Jan 24 17:50:20 2000 Greg J. Badros <gjb@cs.washington.edu>
228
229 * variable.c, version.c: Added documentation, written by hand
230 since I could not find anything already written that was
231 relevant.
232
d831b039
GH
2332000-01-23 Gary Houston <ghouston@arglist.com>
234
235 * filesys.c (scm_chown): omit port/fdes support if HAVE_FCHOWN is
236 not defined (thanks to Richard Y. Kim).
237
88ec97ad
GB
238Thu Jan 20 13:00:38 2000 Greg J. Badros <gjb@cs.washington.edu>
239
240 * Makefile.in: Removed, this is auto-generated.
241
078e9092
GB
242Thu Jan 20 11:33:47 2000 Dirk Hermann <dirk@ida.ing.tu-bs.de> --applied 01/20/00 gjb
243
244 * list.c: Put some variable initialization code at the point of
245 declaration; Added a comment for list*; Formatting changes.
246
247 * load.c: use SCM_NNULLP to make sure the end of a list is not
248 reached yet.
249
e7a96050
MD
2502000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
251
a177af34
MD
252 * backtrace.c (scm_display_error_message): Bugfix: Don't use
253 result of scm_list_p as C boolean.
254 (scm_display_error_message, scm_set_print_params_x): Use new
255 validation macros. (Thanks to Dirk Herrmann.)
256
d06bcb02
MD
257 * net_db.c (scm_resolv_error): Cast result from hstrerror.
258
259 * strports.c (st_end_input): Inserted parenthesis to get operator
260 grouping correct.
261
262 * list.h (scm_init_list): Removed SCM_P around prototypes.
263
264 * fports.c, list.c, numbers.c, ports.c, stime.c, symbols.c,
265 filesys.c, posix.c: Converted docstrings to ANSI C format and
e7a96050
MD
266 escaped " occurring inside string literals.
267
682eefe9
MD
268Tue Jan 18 13:21:08 2000 Mikael Djurfeldt <mdj@r11n07-s.pdc.kth.se>
269
270 * posix.c (scm_mknod): Escape " occuring inside docstring.
271
56cfe22b
MD
2722000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
273
274 * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
275 evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
276 keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
277 objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
278 ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
279 stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
280 symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
281 weaks.c: Converted docstrings to ANSI C format.
282
283 * filesys.c (scm_chmod), simpos.c (scm_system), version
284 (scm_version), vports (scm_make_soft_port): Escape " occuring
285 inside docstring.
286
fcb1720f
GB
287Mon Jan 17 11:41:22 2000 Greg J. Badros <gjb@cs.washington.edu>
288
289 * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
290 SCM_VALIDATE_LONG_COPY
291
292 * numbers.c: Use SCM_VALIDATE_ULONG_COPY, instead of
293 SCM_VALIDATE_INUM_COPY to let bigger numbers be used. Rename a
294 couple of formal arguments (and fix their uses) to make arguments
295 match the documentation.
296
b9af3d0e
MS
2972000-01-14 <mstachow@alum.mit.edu>
298
299 * Makefile.am: Augment path when running guile-doc-snarf so
300 guile-func-name-check is found.
301
153511a7
GB
302Fri Jan 14 09:34:55 2000 Greg J. Badros <gjb@cs.washington.edu>
303
304 * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
305 def, not SCM_MAKINUM(def); thanks Janis Bzerins!
306
59d5245f
GB
307Wed Jan 12 00:06:53 2000 Greg J. Badros <gjb@cs.washington.edu>
308
309 * net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's
310 the way guile-1.3.4 worked, but #if 0 out the version using
311 SCM_VALIDATE_INUM_COPY for stricter testing.
312
95aec69f
GB
313Tue Jan 11 18:24:18 2000 Greg J. Badros <gjb@cs.washington.edu>
314
315 * guile-doc-snarf.in: Use new $fullfilename for running
316 guile-func-name-check, and put "$fullfilename" and "$filename" in
317 quotes at uses to make sure re-splitting on whitespace does not
318 occur (so filenames w/ embedded whitespace would work okay, though
319 I sure hope we never have to deal with that! :-) ). Thanks to
320 Mikael for pointing out the source_dir != build_dir was broken.
321
b7ac2837
GB
322Tue Jan 11 17:42:40 2000 Greg J. Badros <gjb@cs.washington.edu>
323
324 * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
325 SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num. Added
326 SCM_COERCE_ROSTRING macro. Added SCM_VALIDATE_NONEMPTYLIST
327 macro. Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
328 variants.
329
330 * ports.c (scm_port_closed_p): Validate that the arg is a PORT,
331 then return whether it's an open port (was validating that it was
332 an open port -- this was a bug I introduced back in December, but
333 my careful reading of diffs caught it).
334
335 * numbers.c: Recombine the two conditional-compilation paths for
336 all the log* primitives -- they were split based on #ifndef
337 scm_long2num; factored out a SCM_LOGOP_RETURN macro, and fixed
338 some bugs and inconsistencies in the two sets of implementations.
339 (scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!
340
341 * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
342 SCM_VALIDATE_INUM_COPY once where it should've been used.
343
344 * fluids.c (scm_internal_with_fluids): Use
345 SCM_VALIDATE_LIST_COPYLEN.
346
347 * filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
348 this is questionable as it relaxes type safety, but other changes
349 were useful and all SCM_NUM2LONG's should probably be
350 revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.
351
352 * evalext.c: line-break change on 1 line.
353
354 * eval.c (nconc2last): Takes a non-empty list as its first
355 argument, not just a list.
356
357 * dynl.c: Use new SCM_COERCE_ROSTRING macro.
358
359Tue Jan 11 15:44:23 2000 Greg J. Badros <gjb@cs.washington.edu>
360
361 * dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
362 net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
363 where possible.
364
365 * symbols.c (scm_sysintern0): Fixed the function name in a
366 scm_misc_error invocation.
367
368 * print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
369 use scm_return_first to ward off latent GC bug that Mikael caught.
370
371 * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
372 used before but should've been.
373
d61f6b02
MD
3742000-01-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
375
376 * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
377 SCM_FUNC_CAST_ARBITRARY_ARGS.
378
88423ab1
GB
379Tue Jan 11 13:44:07 2000 Greg J. Badros <gjb@cs.washington.edu>
380
381 * guile-func-name-check.in: Added this script to statically check
382 #define FUNC_NAME, #undef FUNC_NAME in the source.
383
384 * sort.c, posix.c: Fix #undef FUNC_NAME lines to not have trailing
385 redundant comment, semicolon; caught by new guile-func-name-check
386 script.
387
388 * debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
389 Caught by new guile-func-name-check-script.
390
391 * Makefile.am: Added guile-func-name-check to bin_SCRIPTS
392
393 * ramap.c: Fix #if 0'd out code to be syntactically acceptable to
394 guile-func-name-check.
395
396 * guile-doc-snarf.in: Run guile-func-name-check on the file before
397 doing the snarf.
398
7f15e635
GB
399Tue Jan 11 11:31:10 2000 Greg J. Badros <gjb@cs.washington.edu>
400
401 * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
402 port function take const void*, not void*.
403
bf121b59
GB
404Tue Jan 11 11:18:07 2000 Greg J. Badros <gjb@cs.washington.edu>
405
406 * scm_validate.h, chars.c, ports.c, print.c, read.c, strings.c,
407 strop.c: Use SCM_VALIDATE_ICHR, SCM_VALIDATE_ICHR_COPY instead of
408 SCM_VALIDATE_CHAR, SCM_VALIDATE_CHAR_COPY. Change made for
409 consistency with the other macros dealing with immediate
410 characters. (Similar to INT -> INUM change a week or so ago).
411
7965d98f
GB
412Tue Jan 11 10:41:46 2000 Greg J. Badros <gjb@cs.washington.edu>
413
414 * dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,
415 net_db.c, read.c, socket.c: Update error messages to use ~A for
416 %s, ~S for %S to work with new `simple-format' format and be
417 standardized better.
418
419 * print.h, print.c (scm_simple_format): Added `simple-format'
420 primitive. It's the old scm_display_error, with ARGS now a rest
421 parameter, and the destination first instead of last (and a couple
422 new capabilities inspired by `format' -- #t as destination means
423 current-output-port, #f means return the formatted text as a
424 string.
425
426 * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.
427
428 * backtrace.c (scm_display_error_message): Rewrote to use
429 scm_simple_format() procedure.
430
431 * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
432
f73d2411
MV
4332000-01-09 Marius Vollmer <mvo@zagadka.ping.de>
434
435 Finally applied the libltdl patch from Thomas Tanner, with slight
436 modifications.
437
438 * DYNAMIC-LINKING: Removed because it is obsolete.
439 * dynl.c: Use ANSI prototypes.
440 (sysdep_dynl_link): Use lt_dlopenext instead of lt_dlopen.
441 * scmconfig.h.in: Do not change, as it is automatically generated.
442
443 1999-07-25 Thomas Tanner <tanner@ffii.org>
444
445 * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
446 (obsolete)
447 * Makefile.am: likewise, add INCLTDL (libltdl headers) to
448 INCLUDES, set dlpreopened files in LDFLAGS, link libguile
449 against libltdl
450 * dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
451 * guile.c: register preloaded modules
452 * scmconfig.h.in: remove obsolete symbols
453
38c1d3c4
GH
4542000-01-09 Gary Houston <ghouston@arglist.com>
455
456 * These changes should make it unnecessary to call tzset from
457 Scheme after modifying the TZ environment variable, even if the
458 system date facilities cache the value.
459 * stime.c (setzone, scm_localtime): added comments.
460 (tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
461 (setzone): don't call tzset.
462 (restorezone): call tzset only if HAVE_TZSET is defined.
463 (scm_tzset): don't define if HAVE_TZSET not defined. Change the
464 doc string to indicate that this procedure isn't likely to do
465 anything useful.
466 (scm_localtime, scm_strftime, scm_mktime): call tzset if
467 LOCALTIME_CACHE is defined.
468
9359d657
MD
4692000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
470
471 * posix.c (scm_sync): Return SCM_UNSPECIFIED.
472
f25f761d
GH
4732000-01-09 Gary Houston <ghouston@arglist.com>
474
475 * eval.c: define scm_unbound_variable_key ('unbound-variable).
476 scm_lookupcar1: throw an error with key 'unbound-variable instead
477 of 'misc-error when an unbound variable is encountered.
478
479 * filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
480 scm_symlink, scm_readlink, scm_lstat),
481 posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
482 scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
483 scm_sync),
484 simpos.c (scm_system),
485 stime.c (scm_times, scm_strptime):
486 move the HAVE_XXX feature tests out of the procedure bodies.
487 don't use SCM_SYSMISSING.
488 scm_validate.h (SCM_SYSMISSING): removed.
489 error.h, error.c (scm_sysmissing): comment that this is deprecated.
490 see ChangeLog entry for 1999-12-28.
491
a4dd2611
GB
492Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
493
494 * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
495
496Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
497
498 * backtrace.c: Fix spelling typo in a comment.
499
500 * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
501 text. Reformatted some of the expansions.
502
5ac36451
GB
503Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
504
505 * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
506 report the position of the argument.
507
508 * error.h, error.c (scm_out_of_range_pos): Added this function to
509 take extra "pos" argument, the position number of the errant
510 argument.
511
512 * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
513
514 * snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
515 and SCM_SNARFING. Also put the %%% in the SCM_INIT since Mikael
516 prefers that and I'm reasonably indifferent.
517
518Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
519
520 * snarf.h: Factor out differences between C++ and non-C++ into
521 SCM_FUNC_CAST_ARBITRARY_ARGS macro. Modify all the snarf macro
522 definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
523 Mikael's macros, below, but changed names and SCM_SNARFING no
524 longer expands to include %%% -- that must appear in the argument
525 so that the token appears at the call-site as a reminder).
526
088bb1d4
MD
5272000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
528
529 * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
530 snarf macro definitions.
531
636480e6
MD
5322000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
533
534 * chars.c (scm_integer_to_char): Use Greg's nice
535 SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
536 adherence to R5RS.
537
7c5628e2
GB
538Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
539
540 * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
541
2cc0f8cb
GB
542Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
543
544 * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
545 instead of GUILE_PROC.
546
547Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
548
549 * alist.c: Do not report mismatch errors on some uses of `tmp' (do
550 this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
551 macro call.
552
9179dcdd
GB
553Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
554
555 * scm_validate.h: Remove some redundant NIMP tests.
556
557 * alist.c: minimize scope of the tmp variables, and initialize
558 them when declared. The strange SCM_NIMP tests are replaced by
559 SCM_CONSP tests that more closely reflect the intended semantics.
560 However, we don't get a performance penalty here, because the
561 SCM_CONSP test was performed by the ALISTCELL test anyway. * The
562 extremely ugly use of ASRTGO macros was removed: The calls to
563 ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
564 label parameter that only exists when SCM_RECKLESS is not defined.
565 This works, because ASRTGO itself is defined in a way that it only
566 makes use of the label parameter if SCM_RECKLESS is not defined
567 (shudder!). Does guile make at all use of the possibility to
568 define SCM_RECKLESS? * Codesize is likely to be reduced, since
569 instead of two calls to SCM_ASSERT performed by the ALISTCELL test
570 we now only get one test.
571
572 * list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate. Also use
573 SCM_NULLP instead of SCM_IMP. Drop use of "register" keyword on
574 some variables in `list?'. Fix `reverse' and `reverse!'
575 primitives to handle improper lists better.
576
15b33280
GB
577Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
578
579 * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
580 macros and SCM_DEFINE macros to match GNU coding standards.
581
ca8cd130
GB
582Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
583
584 * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
585
fb764465
GB
586Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
587
588 * *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM for
589 better consistency with the names of other SCM_VALIDATE_ macros
590 and better conformance to guile naming policy.
591
592Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
593
594 * ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
595 SCM_VALIDATE instead of 1 to avoid a check on the argument (since
596 it's not the actual name of the formal).
1e484823
GB
597
598 * guile-snarf.awk.in: Do argument/number mismatch checking and
599 print warnings in an Emacs compile-mode parseable format.
600
601 * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
602 SCM_OUTOFRANGE as 3rd argument.
603
604 * random.c: Fix argument/number mismatch (that I introduced :-( ).
605
606 * __scm.h: Do not #define SCM_ARG* when snarfing;
607 lets us distinguish between 1 and SCM_ARG1 when snarfing as only
608 the former (using the number) requires the argument to match the
609 formal in the current argument snarfing check.
610
611 * snarf.h: Give new definition of SCM_ASSERT when in
612 snarfing mode to output a lexically-identifiable sequence that the
613 guile-snarf.awk script uses to verify argument/position matching.
614
615 * ramap.c: Remove extraneous #undef FUNC_NAME.
616
53fc4636
GB
617Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
618
619 * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
620 current version of the same functionality; it writes the .x output
621 to stdout instead of directly into the file.
622
623Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
624
625 * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
626 posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now
627 redundant with the safer macros. Patch from Dirk Hermann applied
628 by hand. Thanks Dirk!
629
630 * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
631 uses in random.c.
632
633 * ramap.c: whitespace change.
634
3b5345d9
GB
635Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
636
637 * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
638 removals from Dirk Hermann.
639
640 * alist.c: Rename formals to match the parameter names in the
641 documentation, updates to documentation. Thanks Dirk Hermann!
642
169aec65
MD
6432000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
644
db62436e
MD
645 * eval.c (SCM_CEVAL): Reverse order of
646 scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
647 (Thanks to Brad Knotwell.)
169aec65 648
da43d822
GB
649Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
650
651 * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
652 allocated cell.
653
654 * pairs.h: Added a comment about the need for the SCM_SETCAR in
655 SCM_NEWCELL macro.
656
657Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
658
659 * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
660 SCM_NIMP tests that were redundant are now eliminated. Patches
661 from Dirk Hermann applied by hand.
662
339999c7 663The ChangeLog continues in the file: "ChangeLog-1996-1999"