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