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