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