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