*** empty log message ***
[bpt/guile.git] / srfi / ChangeLog
1 2001-08-25 Marius Vollmer <mvo@zagadka.ping.de>
2
3 * Makefile.am (AUTOMAKE_OPTIONS): Change "foreign" to "gnu".
4
5 2001-08-24 Thien-Thi Nguyen <ttn@revel.glug.org>
6
7 * srfi-13.h (scm_string_map, scm_string_map_x,
8 scm_string_for_each): Reverse order of first two args.
9 (scm_string_for_each_index): New proc.
10
11 * srfi-13.c (scm_string_for_each): Reverse order of first 2 args.
12 (scm_string_for_each_index): New func.
13
14 * srfi-13.scm (string-for-each-index): New exported proc.
15
16 Thanks to Alex Shinn.
17
18 2001-08-22 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
19
20 * srfi-13.c (string-map): Swapped order of string and proc args to
21 conform with the srfi. (Thanks to Alex Shinn.)
22
23 2001-08-05 Gary Houston <ghouston@arglist.com>
24
25 * srfi-1.scm (check-arg-type, non-negative-integer?): a couple of new
26 internal definitions.
27 (list-tabulate, iota): check for bad arguments that otherwise
28 give weird output.
29 (filter): check for proper list, to avoid infinite recursion on
30 a circular list.
31
32 2001-08-04 Gary Houston <ghouston@arglist.com>
33
34 * srfi-1.scm (filter): replaced with a tail-recursive version.
35 (remove): implement using filter, to make it tail-recursive.
36
37 2001-07-31 Gary Houston <ghouston@arglist.com>
38
39 * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
40 accounting for the (char-set-union cs2...) in the spec. i.e.,
41 (char-set-diff+intersection a) -> copy-of-a, empty-set
42 and the following are equivalent:
43 (char-set-diff+intersection a (char-set #\a) (char-set #\b))
44 (char-set-diff+intersection a (char-set #\a #\b))
45
46 (scm_char_set_xor_x): disabled the side-effecting code, since it
47 gives inconsistent results to scm_char_set_xor for the case
48 (char-set-xor! a a a).
49
50 (scm_char_set_diff_plus_intersection_x): added cs2 argument, since
51 two arguments are compulsory in final spec. also similar changes
52 as for scm_char_set_diff_plus_intersection.
53 * srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
54
55 2001-07-22 Gary Houston <ghouston@arglist.com>
56
57 * srfi-14.c (scm_char_set_intersection, scm_char_set_xor): remove
58 the compulsory cs1 arguments: all args are optional in final spec.
59
60 * srfi-14.h: declarations updated.
61
62 2001-07-18 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
63
64 * srfi-11.scm, srfi-8.scm: Update copyright notice.
65
66 2001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
67
68 * srfi-14.c: Okay. Now I got it. Really. This time it's fixed.
69 Guaranteed. (Maybe)
70
71 * srfi-19.scm: Define `current-time' before exporting it.
72
73 2001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
74
75 * srfi-14.c: Fix for bug caused by brain-malfunctioning on my
76 side. Bit sets were handled wrong because I couldn't tell bit
77 counts from byte counts. Also, the bit array should be 256 / 8
78 bytes long. Thank you, Gary!
79
80 Removed unnecessary protoype for scm_char_set_copy.
81
82 2001-07-16 Gary Houston <ghouston@arglist.com>
83
84 * srfi-14.scm: export string->char-set!, not string-char-set!.
85
86 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next,
87 scm_end_of_char_set_p): reject negative cursor values.
88 (scm_list_to_char_set, scm_list_to_char_set_x): when reporting
89 type error in list component, omit the position (was always 1).
90
91 2001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
92
93 (scm_char_set_map): Bug-fix: char-set-map was modifying the
94 argument instead of the return value.
95
96 2001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
97
98 * srfi-14.c: Allocate correct memory size for charsets (32 bytes),
99 use this value for initializing and comparing charsets.
100 (scm_char_set_hash): Use ``better'' hash algorithm which produces
101 more values.
102
103 2001-07-15 Gary Houston <ghouston@arglist.com>
104
105 * srfi-14.c (scm_char_set_hash): recognise 0 instead of #f in the
106 opt arg to give default bound, as in final spec. don't allow
107 negative bounds.
108 (scm_char_set_hash): bug fix: was overrunning the buffer and
109 calculating based on garbage.
110 (scm_char_set_eq, scm_char_set_leq): fix argument number in error
111 reporting: wasn't incremented due to macro coding.
112 (scm_char_set): report argument number in error reporting: was
113 hard coded to 1. remove a couple of local variables.
114
115 2001-07-13 Marius Vollmer <mvo@zagadka.ping.de>
116
117 * srfi-2.scm (and-let*): Use `re-export-syntax' instead of
118 `export-syntax'.
119
120 2001-07-11 Gary Houston <ghouston@arglist.com>
121
122 * srfi-14.c (s_scm_char_set_eq): bug fix: (char-set=) should
123 return #t instead of giving wrong-number-of-arguments . take a
124 single "rest" argument. use memcmp instead of a loop to compare
125 the values.
126 (s_scm_char_set_leq): similarly, (char-set<=) should return #t.
127 take a single "rest" argument.
128 srfi-14.h: update the declarations.
129
130 2001-07-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
131
132 * README: Cleanup.
133
134 2001-07-06 Gary Houston <ghouston@arglist.com>
135
136 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
137 delete!, assoc): roll back the previous change. instead place
138 dummy definitions in a deprecated block at the beginning as in
139 srfi-13.scm.
140
141 2001-07-06 Rob Browning <rlb@defaultvalue.org>
142
143 * srfi-19.scm (priv:locale-reader): don't need open-output-string.
144
145 2001-07-03 Gary Houston <ghouston@arglist.com>
146
147 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
148 delete!, assoc): don't export until the new bindings have been
149 created. otherwise "export" thinks they are being re-exported and
150 a deprecation warning is produced.
151 (map-in-order): defined and exported, to support lists of unequal
152 length.
153
154 2001-07-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
155
156 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
157 invalid arguments. Same fix for several other procedures (do not
158 use zero?, use <= 0).
159
160 2001-07-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
161
162 * srfi-1.scm: Replaced calls to `map' in several procedures to
163 calls to `map1'.
164 (map, for-each): New procedures, extended from R5RS.
165
166 2001-06-28 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
167
168 * srfi-4.c: Minor cleanups.
169
170 * srfi-14.c (scm_char_set_fold, scm_char_set_unfold)
171 (scm_char_set_unfold_x, scm_char_set_for_each)
172 (scm_char_set_map, scm_char_set_filter)
173 (scm_char_set_filter_x, scm_char_set_count)
174 (scm_char_set_every, scm_char_set_any): Replace calls to
175 scm_apply() with the corresponding scm_call_N() functions.
176
177 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next)
178 (scm_char_set_unfold, scm_char_set_unfold_x)
179 (scm_char_set_map, scm_char_set_diff_plus_intersection)
180 (scm_char_set_diff_plus_intersection_x): Replace deprecated macros
181 SCM_LISTN with calls to scm_list_N().
182
183 * srfi-13.c (scm_string_tabulate, scm_string_map)
184 (scm_string_map_x, scm_string_unfold)
185 (scm_string_unfold_right): Replace deprecated macros SCM_LISTN
186 with calls to scm_list_N().
187
188 * srfi-13.c (scm_string_any, scm_string_every),
189 (scm_string_tabulate, scm_string_trim),
190 (scm_string_trim_right, scm_string_trim_both),
191 (scm_string_compare, scm_string_compare_ci),
192 (scm_string_indexS, scm_string_index_right),
193 (scm_string_skip, scm_string_skip_right, scm_string_count),
194 (scm_string_map, scm_string_map_x, scm_string_fold),
195 (scm_string_fold_right, scm_string_unfold),
196 (scm_string_unfold_right, scm_string_for_each),
197 (scm_string_filter, scm_string_delete): Replace calls to
198 scm_apply() with the corresponding scm_call_N() functions.
199
200 2001-06-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
201
202 * Makefile.am: Added SRFI-4 files in various places.
203
204 * srfi-4.c, srfi-4.h, srfi-4.scm: New files implementing SRFI-4.
205
206 2001-06-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
207
208 * srfi-13.c (scm_string_copyS, scm_string_take, scm_string_drop,
209 scm_string_take_right, scm_string_drop_right, scm_string_trim,
210 scm_string_trim_right, scm_string_trim_both, scm_string_tokenize):
211 Use scm_mem2string instead of scm_makfromstr.
212
213 (scm_reverse_list_to_string, string_titlecase_x): Prefer
214 !SCM_<pred> over SCM_N<pred>.
215
216 2001-06-25 Marius Vollmer <mvo@zagadka.ping.de>
217
218 * srfi-8.scm: Use `re-export-syntax' to correctly re-export
219 `receive'.
220
221 2001-06-18 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
222
223 The SRFI-19 implementation was completely broken. Already the
224 reference implementation did not handle DST and time zones
225 properly and relied on non-R5RS-isms like passing reals to
226 `quotient'. For Guile, some additional fixes were needed because
227 of the incomplete numeric tower implementation. See also
228 srfi-19.test.
229
230 * srfi-19.scm (date-zone-offset): Fixed typo in export clause.
231 (add-duration): Renamed from priv:add-duration.
232 (priv:time-normalize!): Handle fractional nanoseconds; remove
233 duplicate definition.
234 (priv:current-time-tai): Fixed typo.
235 (time=?, time<=?): Fixed typos.
236 (time-tai->time-utc, time-utc->time-tai,
237 time-utc->time-monotonic): Use make-time-unnormalized instead of
238 make-time when uninitialized time fields are used.
239 (set-date-nanosecond!, set-date-second!, set-date-minute!,
240 set-date-hour!, set-date-day!, set-date-month!, set-date-year!,
241 set-date-zone-offset!): Define.
242 (priv:local-tz-offset): Take an extra argument in order to handle
243 DST effects.
244 (time-utc->date, time-tai->date, time-monotonic->date): Handle the
245 changed signature of priv:local-tz-offset. Don't pass non-integer
246 arguments to quotient (non-R5RS, not supported by Guile).
247 (date->time-utc): Ensure that seconds in a date structure are
248 always exact integers. Handle DST properly.
249 (current-date, julian-day->date, modified-julian-day->date):
250 Handle the changed signature of priv:local-tz-offset.
251 (julian-day->time-utc): Reverted earlier inexact->exact hack;
252 make-time now handles inexact arguments.
253 (priv:locale-print-time-zone): At least print the numerical time
254 zone.
255 (priv:integer-reader): Fixed named let iteration.
256 (priv:read-directives): Use set-date-month! instead of
257 priv:set-date-month! etc.
258 (string->date): Handle DST properly.
259
260 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
261
262 * srfi-13.scm: Prevent `export' from re-exporting core bindings.
263
264 2001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
265
266 * srfi-14.c (charset_print): Mark unused parameters with
267 SCM_UNUSED.
268
269 2001-06-07 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
270
271 * srfi-1.scm (fold, fold-pair): Fixed a buggy call to apply.
272 (delete-duplicates): Now the first occurrence of an element is
273 retained, as required.
274 (member, assoc): Fixed wrong order of equality predicate
275 application.
276
277 2001-06-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
278
279 * README: Update.
280
281 * srfi-1.scm: New file.
282
283 2001-06-04 Marius Vollmer <mvo@zagadka.ping.de>
284
285 Added exception notice to all files.
286
287 2001-05-31 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
288
289 * srfi-14.scm, srfi-13.scm: Use `load-extension' for loading the
290 shared library.
291
292 2001-05-31 Michael Livshin <mlivshin@bigfoot.com>
293
294 * Makefile.am (MKDEP): copied from libguile/Makefile.am, just in
295 case.
296 (CLEANFILES): added *.x (and removed from DISTCLEANFILES)
297
298 2001-05-28 Michael Livshin <mlivshin@bigfoot.com>
299
300 * srfi-19.scm: removed a stray open parenthesis. (thanks to
301 Matthias Köppe for the report).
302
303 2001-05-23 Rob Browning <rlb@cs.utexas.edu>
304
305 * srfi-19.scm (:optional): renamed to optional to avoid reader
306 keywords conflict. Time passes... Removed :optional altogether
307 and just handle optional args directly. Thanks to Matthias Koeppe
308 for the report of this and the two bits below.
309 (priv:decode-julian-day-number): add inexact->exact for truncate
310 result.
311 (time-utc->date): add inexact->exact and floor so quotient will
312 work.
313
314 2001-05-22 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
315
316 * README: Update, document available SRFIs.
317
318 2001-05-21 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
319
320 * srfi-19.scm, srfi-17.scm, srfi-16.scm, srfi-14.scm, srfi-13.scm,
321 srfi-11.scm, srfi-10.scm, srfi-9.scm, srfi-8.scm, srfi-6.scm,
322 srfi-2.scm: Use `cond-expand-provide' for providing features to
323 `cond-expand'.
324
325 2001-05-20 Marius Vollmer <mvo@zagadka.ping.de>
326
327 * srfi-14.c (scm_c_init_srfi_14): Added "int" to declaration of
328 `initialized'.
329
330 2001-05-19 Marius Vollmer <mvo@zagadka.ping.de>
331
332 Avoid using module operations from C.
333
334 * srfi-13.c (scm_init_srfi_13_14): Removed.
335 * srfi-14.h, srfi-14.c (scm_c_init_srfi_14): New. Contains
336 initializations needed by C clients of srfi-14.
337 (scm_init_srfi_13, scm_init_srfi_14): Call it.
338 * srfi-13.scm: Call "scm_init_srfi_13" instead of
339 "scm_init_srfi_13_14".
340 * srfi-14.scm: Call "scm_init_srfi_14" instead of
341 "scm_init_srfi_13_14".
342
343 2001-05-16 Rob Browning <rlb@cs.utexas.edu>
344
345 * srfi-19.scm (priv:integer-reader-exact): minor cleanups.
346
347 2001-05-14 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
348
349 * Makefile.am (srfi_DATA): Added srfi-16.scm.
350
351 * srfi-16.scm: New file.
352
353 2001-05-10 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
354
355 * srfi-13.c (scm_string_delete): Logic was inversed for charset.
356 Fixed.
357
358 2001-05-08 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
359
360 * srfi-13.c (scm_string_copyS): Fixed nasty bug.
361
362 2001-05-05 Rob Browning <rlb@cs.utexas.edu>
363
364 * Makefile.am (srfi_DATA): added srfi-19.scm.
365
366 * srfi-19.scm: New file - time/date SRFI. Thanks to Will
367 Fitzgerald.
368
369 2001-05-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
370
371 * srfi-14.c, srfi-13.c: Added @bullet to various @itemize lists.
372
373 * srfi-10.scm: Typo fix.
374
375 2001-05-02 Rob Browning <rlb@cs.utexas.edu>
376
377 * srfi-11.scm (let-values): fix (a b c . d) case. Thanks Martin.
378
379 2001-05-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
380
381 * Makefile.am (srfi_DATA): Added srfi-10.scm and srfi-17.scm.
382
383 * srfi-10.scm: New file.
384
385 * srfi-17.scm: New file, contributed by Matthias Koeppe. Thanks a
386 lot!
387 Added `Commentary:' tag.
388
389 * srfi-9.scm: Added `Commentary:' tag.
390
391 2001-04-27 Rob Browning <rlb@cs.utexas.edu>
392
393 * srfi-13.h
394 (scm_reverse_string_concatenate): renamed to
395 scm_string_concatentate_reverse.
396 (scm_reverse_string_concatenate_shared): renamed to
397 scm_string_concatenate_reverse_shared.
398
399 2001-04-27 Gary Houston <ghouston@arglist.com>
400
401 * srfi-13.c (scm_init_srfi_13), srfi-14.c (scm_init_srfi_14):
402 add "srfi/" to lines including .x files so they can be found
403 when build_dir != src_dir.
404
405 2001-04-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
406
407 * Makefile.am (srfi_DATA): Added srfi-9.scm.
408
409 * srfi-9.scm: New file. Exports `define-record-type'.
410
411 2001-04-26 Rob Browning <rlb@cs.utexas.edu>
412
413 * Makefile.am (srfi_DATA): added srfi-6.scm.
414 (srfi_DATA): added srfi-11.scm.
415 (srfi_DATA): added srfi-8.scm.
416 (srfi_DATA): added srfi-2.scm.
417
418 * srfi-11.scm: new file - exports let-values and let*-values.
419
420 * srfi-6.scm: new file - guile already has srfi-6 procedures
421 loaded by default, so this is a dummy file right now.
422
423 * srfi-8.scm: new file - exports receive.
424
425 * srfi-2.scm: new file - just use/export (ice-9 and-let-star)
426
427 2001-04-26 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
428
429 Changed two procedure names to match final SRFI document. Thanks
430 to Rob Browning for spotting this.
431
432 * srfi-13.scm (string-concatenate-reverse),
433 (string-concatenate-reverse/shared): Rename from
434 reverse-string-concatenate[/shared].
435
436 * srfi-13.c (scm_string_concatenate_reverse_shared): Renamed from
437 scm_reverse_string_concatenate_shared.
438 (scm_string_concatenate_reverse): Renamed from
439 scm_reverse_string_concatenate.
440
441 2001-04-25 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
442
443 * configure.in, autogen.sh: Removed.
444
445 * srfi-13.c (scm_string_replace): Take sizeof (char) into account
446 when using memmove().
447
448 * srfi-14.h: Added prototypes for all exported procedures..
449
450 * srfi-13.c: Include srfi-13.h
451
452 * srfi-13.h: New file containing the prototypes.
453
454 * Makefile.am: Removed guile-srfi.texi and info_TEXINFOS variable.
455 (libguile_srfi_srfi_13_14_la_SOURCES): Added srfi-14.h, so it gets
456 distributed.
457 (libguile_srfi_srfi_13_14_la_SOURCES): Added srfi-13.h.
458
459 2001-04-24 Neil Jerram <neil@ossau.uklinux.net>
460
461 * Makefile.am: Fixed "srf-14.x" typo.
462
463 2001-04-24 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
464
465 * guile-srfi.texi: Removed, because merged with the GRM.
466
467 * guile-srfi.texi: The docs are now up to date with the
468 implementation and have new introductory material.
469
470 2001-04-23 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
471
472 Integrated the guile-srfi package into the Guile distribution.
473
474 * srfi-13.c: All procedures so specified in the SRFI now accept
475 character set arguments.
476
477 * Makefile.am: Snarfed some variables from the guile-readline
478 directory.
479
480 * srfi-14.c, srfi-14.h: Add prefix SCM_ to exported macros.
481
482 * srfi-13.scm, srfi-14.scm, srfi-13.c, srfi-14.c, srfi-14.h,
483 configure.in, Makefile.am: Added FSF copyright and Guile license
484 information.
485
486 * srfi-13.c, srfi-14.c: Include srfi-14.h.
487 (scm_init_srfi_13_14): Initialize the complete module, if not
488 already done so.
489
490 * srfi-14.h: New file.
491
492 * srfi-13.scm, srfi-14.scm: Load new combined library.
493
494 * Makefile.am: Build only one library,
495 `libguile-srfi-srfi-13-14.la'
496
497 2001-04-04 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
498
499 * guile-srfi.texi: Integrated the SRFI-14 documentation.
500
501 * srfi-14.c, srfi-14.scm: Made the procedures and variables
502 compliant to the final SRFI document.
503
504 * Renamed the package to guile-srfi.
505
506 2001-04-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
507
508 * NEWS: New section for 0.0.3.
509
510 * configure.in, README, guile-srfi-13.texi: Bumped version number
511 to 0.0.3.
512
513 * Released version 0.0.2.
514
515 * Makefile.am: Added rules for builing the SRFI-14 library.
516
517 * srfi-14.c, srfi-14.scm: New files, implementing SRFI-14
518 (character set library).
519
520 2001-03-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
521
522 * README: Updated procedure and incompatibility list.
523
524 * srfi-13.c (string_upcase_x, scm_string_upcase_xS),
525 (scm_string_upcase, string_downcase_x, scm_string_downcase_xS),
526 (scm_string_downcaseS, string_titlecase_x),
527 (scm_string_titlecase_x, scm_string_titlecase),
528 (scm_string_fill_xS, scm_string_copyS, scm_string_to_listS): New
529 procedures.
530
531 * srfi-13.scm: Export new case mapping procedures.
532
533 * guile-srfi-13.texi (What cannot be done): Removed case mapping
534 procedures from incompatibility list.
535 (Case Mapping): New section for case mapping procedures.
536
537 2001-03-26 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
538
539 * NEWS: New section for 0.0.2
540
541 * configure.in, README, guile-srfi-13.texi: Bumbed version number
542 to 0.0.2
543
544 * Released version 0.0.1.
545
546 * README: Made procedure list up-to-date.
547
548 * guile-srfi-13.texi: Fixed typos, completed reference and added
549 introductory blurb.
550
551 * srfi-13.c, srfi-13.scm: Filled in the last missing pieces.
552
553 2001-03-22 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
554
555 * Started guile-srfi-13 package. Files are copied from the
556 guile-gdbm and slightly modified.