*** empty log message ***
[bpt/guile.git] / srfi / ChangeLog
CommitLineData
7c686ba8
MV
12002-02-11 Marius Vollmer <marius.vollmer@uni-dortmund.de>
2
3 * srfi-14.c, srfi-4.c: Use scm_gc_malloc/scm_malloc and
4 scm_gc_free/free instead of scm_must_malloc and scm_must_free, as
5 appropriate.
6
229d2c9c
TTN
72002-01-21 Thien-Thi Nguyen <ttn@giblet.glug.org>
8
9 * srfi-1.scm (count1, take-while): Rewrite to be tail-recursive.
10 Thanks to Panagiotis Vossos.
11
c323f1f4
TTN
122002-01-20 Thien-Thi Nguyen <ttn@giblet.glug.org>
13
14 * srfi-1.scm (map1): Rewrite to be tail-recursive.
15 Thanks to Panagiotis Vossos for the bug report.
16
197ee3d3
MV
172001-12-16 Marius Vollmer <mvo@zagadka.ping.de>
18
19 * srfi-11.scm (let-values): Use `gensym' instead of `gentemp'.
20
ee148ae7
NJ
212001-11-30 Neil Jerram <neil@ossau.uklinux.net>
22
23 * Makefile.am (ETAGS_ARGS): Added.
24
5d8fc640
MV
252001-11-12 Marius Vollmer <mvo@zagadka.ping.de>
26
27 * srfi-4.c: Use HAVE_LONG_LONG instead of HAVE_LONG_LONGS and test
28 it with `#ifdef' instead of `#if'.
29
9401323e
NJ
302001-11-07 Neil Jerram <neil@ossau.uklinux.net>
31
32 * srfi-13.c (scm_string_unfold, scm_string_unfold_right),
33 srfi-14.c (scm_char_set_unfold, scm_char_set_unfold_x): Remove
34 superfluous whitespace at end of docstring lines.
35
23b1bf4b
TTN
362001-11-06 Thien-Thi Nguyen <ttn@glug.org>
37
38 * srfi-19.scm (time-monotonic->time-monotonic): Spurious;
39 remove from exports.
40
8f99e3f3
SJ
412001-11-04 Stefan Jahn <stefan@lkcc.org>
42
23b1bf4b 43 * srfi-13.h, srfi-14.h, srfi-4.h: Follow-up patch. Renamed
8f99e3f3
SJ
44 __FOO__ macros into FOO.
45
836b6557
MV
462001-11-03 Marius Vollmer <mvo@zagadka.ping.de>
47
48 * Makefile.am (libguile_srfi_srfi_4_la_LIBADD,
49 libguile_srfi_srfi_13_14_la_LIBADD): Refer to build directory, not
50 the source directory, for libguile.la. Thanks to Ken Raeburn.
51
f712d833
MV
522001-11-02 Marius Vollmer <mvo@zagadka.ping.de>
53
54 Support for native Win32. Thanks to Stefan Jahn!
23b1bf4b
TTN
55
56 * Makefile.am: Put `-no-undefined' into LDFLAGS to support linkers
f712d833
MV
57 which do not allow unresolved symbols inside shared libraries.
58
23b1bf4b 59 * srfi-13.h, srfi-14.h: Defined SCM_SRFI1314_API. Prefixed each
f712d833
MV
60 exported symbol with SCM_SRFI1314_API.
61
23b1bf4b 62 * srfi-4.h: Defined SCM_SRFI4_API. Prefixed each exported
f712d833
MV
63 symbol with SCM_SRFI4_API.
64
1a179b03
MD
652001-10-21 Mikael Djurfeldt <mdj@linnaeus>
66
67 * srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
68 srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
69 directives `export', `export-syntax', `re-export' and
70 `re-export-syntax' into the `define-module' form. This is the
71 recommended way of exporting bindings.
72
b21cccf3
MD
732001-09-22 Mikael Djurfeldt <mdj@linnaeus>
74
75 * srfi-19.scm (priv:split-real): Inserted missing call to
76 inexact->exact.
77
0b073f0f
RB
782001-09-21 Rob Browning <rlb@defaultvalue.org>
79
80 * srfi-14.h (SCM_CHARSET_GET): need 1L, not just 1 in "<<".
81
82 * srfi-14.c (SCM_CHARSET_SET): need 1L, not just 1 in "<<".
83 (scm_char_set_hash): val needs to be long, not just unsigned.
84 (scm_char_set): need 1L, not just 1 in "<<".
85 (scm_list_to_char_set): need 1L, not just 1 in "<<".
86 (scm_list_to_char_set_x): need 1L, not just 1 in "<<".
87 (scm_list_to_char_set_x): FUNC_NAME was wrong - added a _x.
88 (scm_string_to_char_set): string length var needed to be
89 scm_sizet, not int.
90 (scm_string_to_char_set): need 1L, not just 1 in "<<".
91 (scm_string_to_char_set_x): string length var needed to be
92 scm_sizet, not int.
93 (scm_string_to_char_set_x): need 1L, not just 1 in "<<".
94 (scm_char_set_filter): need 1L, not just 1 in "<<".
95 (scm_char_set_filter_x): need 1L, not just 1 in "<<".
96 (scm_ucs_range_to_char_set): need 1L, not just 1 in "<<".
97 (scm_ucs_range_to_char_set_x): need 1L, not just 1 in "<<".
98 (scm_char_set_adjoin): need 1L, not just 1 in "<<".
99 (scm_char_set_delete): need 1L, not just 1 in "<<".
100 (scm_char_set_adjoin_x): need 1L, not just 1 in "<<".
101 (scm_char_set_delete_x): need 1L, not just 1 in "<<".
102
6ddd9412
GH
1032001-09-12 Gary Houston <ghouston@arglist.com>
104
105 * srfi-1.scm (filter): change "caller" to "filter" in check-arg-type.
106
8c494e99
DH
1072001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
108
109 * srfi-1.scm, srfi-13.scm: Remove the defines that were needed to
110 trick export from the beginning of the files.
111
fa5a8c00
TTN
1122001-08-25 Thien-Thi Nguyen <ttn@revel.glug.org>
113
114 * srfi-19.scm (add-duration): Fix bug: Call `add-duration!' w/
115 two args. Thanks to Alex Shinn.
116
b573e744
MV
1172001-08-25 Marius Vollmer <mvo@zagadka.ping.de>
118
119 * Makefile.am (AUTOMAKE_OPTIONS): Change "foreign" to "gnu".
120
e9313ed7
TTN
1212001-08-24 Thien-Thi Nguyen <ttn@revel.glug.org>
122
123 * srfi-13.h (scm_string_map, scm_string_map_x,
124 scm_string_for_each): Reverse order of first two args.
125 (scm_string_for_each_index): New proc.
126
127 * srfi-13.c (scm_string_for_each): Reverse order of first 2 args.
128 (scm_string_for_each_index): New func.
129
130 * srfi-13.scm (string-for-each-index): New exported proc.
131
132 Thanks to Alex Shinn.
133
80fdeb4e
MD
1342001-08-22 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
135
136 * srfi-13.c (string-map): Swapped order of string and proc args to
137 conform with the srfi. (Thanks to Alex Shinn.)
138
5753f02f
GH
1392001-08-05 Gary Houston <ghouston@arglist.com>
140
141 * srfi-1.scm (check-arg-type, non-negative-integer?): a couple of new
142 internal definitions.
143 (list-tabulate, iota): check for bad arguments that otherwise
144 give weird output.
145 (filter): check for proper list, to avoid infinite recursion on
146 a circular list.
147
848458d9
GH
1482001-08-04 Gary Houston <ghouston@arglist.com>
149
150 * srfi-1.scm (filter): replaced with a tail-recursive version.
151 (remove): implement using filter, to make it tail-recursive.
152
9be74503
GH
1532001-07-31 Gary Houston <ghouston@arglist.com>
154
155 * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
156 accounting for the (char-set-union cs2...) in the spec. i.e.,
157 (char-set-diff+intersection a) -> copy-of-a, empty-set
158 and the following are equivalent:
159 (char-set-diff+intersection a (char-set #\a) (char-set #\b))
160 (char-set-diff+intersection a (char-set #\a #\b))
161
162 (scm_char_set_xor_x): disabled the side-effecting code, since it
163 gives inconsistent results to scm_char_set_xor for the case
164 (char-set-xor! a a a).
e9313ed7 165
9be74503
GH
166 (scm_char_set_diff_plus_intersection_x): added cs2 argument, since
167 two arguments are compulsory in final spec. also similar changes
168 as for scm_char_set_diff_plus_intersection.
169 * srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
170
d1bc6602
GH
1712001-07-22 Gary Houston <ghouston@arglist.com>
172
173 * srfi-14.c (scm_char_set_intersection, scm_char_set_xor): remove
174 the compulsory cs1 arguments: all args are optional in final spec.
42b54c05 175
d1bc6602
GH
176 * srfi-14.h: declarations updated.
177
46a7b46f
MG
1782001-07-18 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
179
180 * srfi-11.scm, srfi-8.scm: Update copyright notice.
181
4c4185ee
MG
1822001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
183
184 * srfi-14.c: Okay. Now I got it. Really. This time it's fixed.
185 Guaranteed. (Maybe)
e9313ed7 186
4c4185ee
MG
187 * srfi-19.scm: Define `current-time' before exporting it.
188
2671725a
MG
1892001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
190
191 * srfi-14.c: Fix for bug caused by brain-malfunctioning on my
192 side. Bit sets were handled wrong because I couldn't tell bit
193 counts from byte counts. Also, the bit array should be 256 / 8
e9313ed7 194 bytes long. Thank you, Gary!
2671725a
MG
195
196 Removed unnecessary protoype for scm_char_set_copy.
197
8b19021c
GH
1982001-07-16 Gary Houston <ghouston@arglist.com>
199
200 * srfi-14.scm: export string->char-set!, not string-char-set!.
201
202 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next,
203 scm_end_of_char_set_p): reject negative cursor values.
204 (scm_list_to_char_set, scm_list_to_char_set_x): when reporting
205 type error in list component, omit the position (was always 1).
206
139777e5
MG
2072001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
208
209 (scm_char_set_map): Bug-fix: char-set-map was modifying the
210 argument instead of the return value.
211
cebf3d62
MG
2122001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
213
214 * srfi-14.c: Allocate correct memory size for charsets (32 bytes),
215 use this value for initializing and comparing charsets.
216 (scm_char_set_hash): Use ``better'' hash algorithm which produces
217 more values.
218
396f36cd 2192001-07-15 Gary Houston <ghouston@arglist.com>
e9313ed7 220
396f36cd
GH
221 * srfi-14.c (scm_char_set_hash): recognise 0 instead of #f in the
222 opt arg to give default bound, as in final spec. don't allow
223 negative bounds.
b87f5a83
GH
224 (scm_char_set_hash): bug fix: was overrunning the buffer and
225 calculating based on garbage.
226 (scm_char_set_eq, scm_char_set_leq): fix argument number in error
227 reporting: wasn't incremented due to macro coding.
228 (scm_char_set): report argument number in error reporting: was
229 hard coded to 1. remove a couple of local variables.
396f36cd 230
22647fef
MV
2312001-07-13 Marius Vollmer <mvo@zagadka.ping.de>
232
233 * srfi-2.scm (and-let*): Use `re-export-syntax' instead of
234 `export-syntax'.
235
dd84cd4d
GH
2362001-07-11 Gary Houston <ghouston@arglist.com>
237
238 * srfi-14.c (s_scm_char_set_eq): bug fix: (char-set=) should
239 return #t instead of giving wrong-number-of-arguments . take a
240 single "rest" argument. use memcmp instead of a loop to compare
241 the values.
be390de2
GH
242 (s_scm_char_set_leq): similarly, (char-set<=) should return #t.
243 take a single "rest" argument.
244 srfi-14.h: update the declarations.
dd84cd4d 245
ee85583a
MG
2462001-07-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
247
248 * README: Cleanup.
249
99f59e93
GH
2502001-07-06 Gary Houston <ghouston@arglist.com>
251
252 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
253 delete!, assoc): roll back the previous change. instead place
254 dummy definitions in a deprecated block at the beginning as in
255 srfi-13.scm.
e9313ed7 256
0d6209aa
RB
2572001-07-06 Rob Browning <rlb@defaultvalue.org>
258
259 * srfi-19.scm (priv:locale-reader): don't need open-output-string.
260
26c22ea8
GH
2612001-07-03 Gary Houston <ghouston@arglist.com>
262
263 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
264 delete!, assoc): don't export until the new bindings have been
265 created. otherwise "export" thinks they are being re-exported and
266 a deprecation warning is produced.
6d52dbf2
GH
267 (map-in-order): defined and exported, to support lists of unequal
268 length.
26c22ea8 269
018adcae
MG
2702001-07-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
271
272 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
e800aa04
MG
273 invalid arguments. Same fix for several other procedures (do not
274 use zero?, use <= 0).
018adcae 275
cef248dd
MG
2762001-07-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
277
278 * srfi-1.scm: Replaced calls to `map' in several procedures to
279 calls to `map1'.
280 (map, for-each): New procedures, extended from R5RS.
281
2c4df451
MG
2822001-06-28 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
283
284 * srfi-4.c: Minor cleanups.
285
286 * srfi-14.c (scm_char_set_fold, scm_char_set_unfold)
287 (scm_char_set_unfold_x, scm_char_set_for_each)
288 (scm_char_set_map, scm_char_set_filter)
289 (scm_char_set_filter_x, scm_char_set_count)
290 (scm_char_set_every, scm_char_set_any): Replace calls to
291 scm_apply() with the corresponding scm_call_N() functions.
292
293 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next)
294 (scm_char_set_unfold, scm_char_set_unfold_x)
295 (scm_char_set_map, scm_char_set_diff_plus_intersection)
296 (scm_char_set_diff_plus_intersection_x): Replace deprecated macros
297 SCM_LISTN with calls to scm_list_N().
298
299 * srfi-13.c (scm_string_tabulate, scm_string_map)
300 (scm_string_map_x, scm_string_unfold)
301 (scm_string_unfold_right): Replace deprecated macros SCM_LISTN
302 with calls to scm_list_N().
303
304 * srfi-13.c (scm_string_any, scm_string_every),
305 (scm_string_tabulate, scm_string_trim),
306 (scm_string_trim_right, scm_string_trim_both),
307 (scm_string_compare, scm_string_compare_ci),
308 (scm_string_indexS, scm_string_index_right),
309 (scm_string_skip, scm_string_skip_right, scm_string_count),
310 (scm_string_map, scm_string_map_x, scm_string_fold),
311 (scm_string_fold_right, scm_string_unfold),
312 (scm_string_unfold_right, scm_string_for_each),
313 (scm_string_filter, scm_string_delete): Replace calls to
314 scm_apply() with the corresponding scm_call_N() functions.
315
71ca65d9
MG
3162001-06-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
317
318 * Makefile.am: Added SRFI-4 files in various places.
319
320 * srfi-4.c, srfi-4.h, srfi-4.scm: New files implementing SRFI-4.
321
36284627
DH
3222001-06-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
323
324 * srfi-13.c (scm_string_copyS, scm_string_take, scm_string_drop,
325 scm_string_take_right, scm_string_drop_right, scm_string_trim,
326 scm_string_trim_right, scm_string_trim_both, scm_string_tokenize):
327 Use scm_mem2string instead of scm_makfromstr.
328
329 (scm_reverse_list_to_string, string_titlecase_x): Prefer
330 !SCM_<pred> over SCM_N<pred>.
331
f6581113
MV
3322001-06-25 Marius Vollmer <mvo@zagadka.ping.de>
333
334 * srfi-8.scm: Use `re-export-syntax' to correctly re-export
335 `receive'.
336
d0e06238
MV
3372001-06-18 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
338
339 The SRFI-19 implementation was completely broken. Already the
340 reference implementation did not handle DST and time zones
341 properly and relied on non-R5RS-isms like passing reals to
342 `quotient'. For Guile, some additional fixes were needed because
343 of the incomplete numeric tower implementation. See also
e9313ed7
TTN
344 srfi-19.test.
345
d0e06238 346 * srfi-19.scm (date-zone-offset): Fixed typo in export clause.
e9313ed7 347 (add-duration): Renamed from priv:add-duration.
d0e06238
MV
348 (priv:time-normalize!): Handle fractional nanoseconds; remove
349 duplicate definition.
350 (priv:current-time-tai): Fixed typo.
351 (time=?, time<=?): Fixed typos.
352 (time-tai->time-utc, time-utc->time-tai,
353 time-utc->time-monotonic): Use make-time-unnormalized instead of
354 make-time when uninitialized time fields are used.
355 (set-date-nanosecond!, set-date-second!, set-date-minute!,
356 set-date-hour!, set-date-day!, set-date-month!, set-date-year!,
357 set-date-zone-offset!): Define.
358 (priv:local-tz-offset): Take an extra argument in order to handle
359 DST effects.
360 (time-utc->date, time-tai->date, time-monotonic->date): Handle the
361 changed signature of priv:local-tz-offset. Don't pass non-integer
e9313ed7 362 arguments to quotient (non-R5RS, not supported by Guile).
d0e06238
MV
363 (date->time-utc): Ensure that seconds in a date structure are
364 always exact integers. Handle DST properly.
365 (current-date, julian-day->date, modified-julian-day->date):
e9313ed7 366 Handle the changed signature of priv:local-tz-offset.
d0e06238
MV
367 (julian-day->time-utc): Reverted earlier inexact->exact hack;
368 make-time now handles inexact arguments.
369 (priv:locale-print-time-zone): At least print the numerical time
e9313ed7 370 zone.
d0e06238
MV
371 (priv:integer-reader): Fixed named let iteration.
372 (priv:read-directives): Use set-date-month! instead of
373 priv:set-date-month! etc.
374 (string->date): Handle DST properly.
375
0f002b27
MV
3762001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
377
378 * srfi-13.scm: Prevent `export' from re-exporting core bindings.
379
e81d98ec
DH
3802001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
381
382 * srfi-14.c (charset_print): Mark unused parameters with
383 SCM_UNUSED.
384
563058ef
MG
3852001-06-07 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
386
387 * srfi-1.scm (fold, fold-pair): Fixed a buggy call to apply.
388 (delete-duplicates): Now the first occurrence of an element is
389 retained, as required.
390 (member, assoc): Fixed wrong order of equality predicate
391 application.
563058ef 392
e9680547
MG
3932001-06-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
394
395 * README: Update.
396
397 * srfi-1.scm: New file.
398
f480396b
MV
3992001-06-04 Marius Vollmer <mvo@zagadka.ping.de>
400
401 Added exception notice to all files.
402
dd22a80a
MG
4032001-05-31 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
404
405 * srfi-14.scm, srfi-13.scm: Use `load-extension' for loading the
406 shared library.
407
998c3141
ML
4082001-05-31 Michael Livshin <mlivshin@bigfoot.com>
409
410 * Makefile.am (MKDEP): copied from libguile/Makefile.am, just in
411 case.
412 (CLEANFILES): added *.x (and removed from DISTCLEANFILES)
413
6b0d28a3
ML
4142001-05-28 Michael Livshin <mlivshin@bigfoot.com>
415
416 * srfi-19.scm: removed a stray open parenthesis. (thanks to
417