* .cvsignore: really add version.h
[bpt/guile.git] / srfi / ChangeLog
CommitLineData
6ddd9412
GH
12001-09-12 Gary Houston <ghouston@arglist.com>
2
3 * srfi-1.scm (filter): change "caller" to "filter" in check-arg-type.
4
8c494e99
DH
52001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
6
7 * srfi-1.scm, srfi-13.scm: Remove the defines that were needed to
8 trick export from the beginning of the files.
9
fa5a8c00
TTN
102001-08-25 Thien-Thi Nguyen <ttn@revel.glug.org>
11
12 * srfi-19.scm (add-duration): Fix bug: Call `add-duration!' w/
13 two args. Thanks to Alex Shinn.
14
b573e744
MV
152001-08-25 Marius Vollmer <mvo@zagadka.ping.de>
16
17 * Makefile.am (AUTOMAKE_OPTIONS): Change "foreign" to "gnu".
18
e9313ed7
TTN
192001-08-24 Thien-Thi Nguyen <ttn@revel.glug.org>
20
21 * srfi-13.h (scm_string_map, scm_string_map_x,
22 scm_string_for_each): Reverse order of first two args.
23 (scm_string_for_each_index): New proc.
24
25 * srfi-13.c (scm_string_for_each): Reverse order of first 2 args.
26 (scm_string_for_each_index): New func.
27
28 * srfi-13.scm (string-for-each-index): New exported proc.
29
30 Thanks to Alex Shinn.
31
80fdeb4e
MD
322001-08-22 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
33
34 * srfi-13.c (string-map): Swapped order of string and proc args to
35 conform with the srfi. (Thanks to Alex Shinn.)
36
5753f02f
GH
372001-08-05 Gary Houston <ghouston@arglist.com>
38
39 * srfi-1.scm (check-arg-type, non-negative-integer?): a couple of new
40 internal definitions.
41 (list-tabulate, iota): check for bad arguments that otherwise
42 give weird output.
43 (filter): check for proper list, to avoid infinite recursion on
44 a circular list.
45
848458d9
GH
462001-08-04 Gary Houston <ghouston@arglist.com>
47
48 * srfi-1.scm (filter): replaced with a tail-recursive version.
49 (remove): implement using filter, to make it tail-recursive.
50
9be74503
GH
512001-07-31 Gary Houston <ghouston@arglist.com>
52
53 * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
54 accounting for the (char-set-union cs2...) in the spec. i.e.,
55 (char-set-diff+intersection a) -> copy-of-a, empty-set
56 and the following are equivalent:
57 (char-set-diff+intersection a (char-set #\a) (char-set #\b))
58 (char-set-diff+intersection a (char-set #\a #\b))
59
60 (scm_char_set_xor_x): disabled the side-effecting code, since it
61 gives inconsistent results to scm_char_set_xor for the case
62 (char-set-xor! a a a).
e9313ed7 63
9be74503
GH
64 (scm_char_set_diff_plus_intersection_x): added cs2 argument, since
65 two arguments are compulsory in final spec. also similar changes
66 as for scm_char_set_diff_plus_intersection.
67 * srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
68
d1bc6602
GH
692001-07-22 Gary Houston <ghouston@arglist.com>
70
71 * srfi-14.c (scm_char_set_intersection, scm_char_set_xor): remove
72 the compulsory cs1 arguments: all args are optional in final spec.
42b54c05 73
d1bc6602
GH
74 * srfi-14.h: declarations updated.
75
46a7b46f
MG
762001-07-18 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
77
78 * srfi-11.scm, srfi-8.scm: Update copyright notice.
79
4c4185ee
MG
802001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
81
82 * srfi-14.c: Okay. Now I got it. Really. This time it's fixed.
83 Guaranteed. (Maybe)
e9313ed7 84
4c4185ee
MG
85 * srfi-19.scm: Define `current-time' before exporting it.
86
2671725a
MG
872001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
88
89 * srfi-14.c: Fix for bug caused by brain-malfunctioning on my
90 side. Bit sets were handled wrong because I couldn't tell bit
91 counts from byte counts. Also, the bit array should be 256 / 8
e9313ed7 92 bytes long. Thank you, Gary!
2671725a
MG
93
94 Removed unnecessary protoype for scm_char_set_copy.
95
8b19021c
GH
962001-07-16 Gary Houston <ghouston@arglist.com>
97
98 * srfi-14.scm: export string->char-set!, not string-char-set!.
99
100 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next,
101 scm_end_of_char_set_p): reject negative cursor values.
102 (scm_list_to_char_set, scm_list_to_char_set_x): when reporting
103 type error in list component, omit the position (was always 1).
104
139777e5
MG
1052001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
106
107 (scm_char_set_map): Bug-fix: char-set-map was modifying the
108 argument instead of the return value.
109
cebf3d62
MG
1102001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
111
112 * srfi-14.c: Allocate correct memory size for charsets (32 bytes),
113 use this value for initializing and comparing charsets.
114 (scm_char_set_hash): Use ``better'' hash algorithm which produces
115 more values.
116
396f36cd 1172001-07-15 Gary Houston <ghouston@arglist.com>
e9313ed7 118
396f36cd
GH
119 * srfi-14.c (scm_char_set_hash): recognise 0 instead of #f in the
120 opt arg to give default bound, as in final spec. don't allow
121 negative bounds.
b87f5a83
GH
122 (scm_char_set_hash): bug fix: was overrunning the buffer and
123 calculating based on garbage.
124 (scm_char_set_eq, scm_char_set_leq): fix argument number in error
125 reporting: wasn't incremented due to macro coding.
126 (scm_char_set): report argument number in error reporting: was
127 hard coded to 1. remove a couple of local variables.
396f36cd 128
22647fef
MV
1292001-07-13 Marius Vollmer <mvo@zagadka.ping.de>
130
131 * srfi-2.scm (and-let*): Use `re-export-syntax' instead of
132 `export-syntax'.
133
dd84cd4d
GH
1342001-07-11 Gary Houston <ghouston@arglist.com>
135
136 * srfi-14.c (s_scm_char_set_eq): bug fix: (char-set=) should
137 return #t instead of giving wrong-number-of-arguments . take a
138 single "rest" argument. use memcmp instead of a loop to compare
139 the values.
be390de2
GH
140 (s_scm_char_set_leq): similarly, (char-set<=) should return #t.
141 take a single "rest" argument.
142 srfi-14.h: update the declarations.
dd84cd4d 143
ee85583a
MG
1442001-07-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
145
146 * README: Cleanup.
147
99f59e93
GH
1482001-07-06 Gary Houston <ghouston@arglist.com>
149
150 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
151 delete!, assoc): roll back the previous change. instead place
152 dummy definitions in a deprecated block at the beginning as in
153 srfi-13.scm.
e9313ed7 154
0d6209aa
RB
1552001-07-06 Rob Browning <rlb@defaultvalue.org>
156
157 * srfi-19.scm (priv:locale-reader): don't need open-output-string.
158
26c22ea8
GH
1592001-07-03 Gary Houston <ghouston@arglist.com>
160
161 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
162 delete!, assoc): don't export until the new bindings have been
163 created. otherwise "export" thinks they are being re-exported and
164 a deprecation warning is produced.
6d52dbf2
GH
165 (map-in-order): defined and exported, to support lists of unequal
166 length.
26c22ea8 167
018adcae
MG
1682001-07-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
169
170 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
e800aa04
MG
171 invalid arguments. Same fix for several other procedures (do not
172 use zero?, use <= 0).
018adcae 173
cef248dd
MG
1742001-07-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
175
176 * srfi-1.scm: Replaced calls to `map' in several procedures to
177 calls to `map1'.
178 (map, for-each): New procedures, extended from R5RS.
179
2c4df451
MG
1802001-06-28 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
181
182 * srfi-4.c: Minor cleanups.
183
184 * srfi-14.c (scm_char_set_fold, scm_char_set_unfold)
185 (scm_char_set_unfold_x, scm_char_set_for_each)
186 (scm_char_set_map, scm_char_set_filter)
187 (scm_char_set_filter_x, scm_char_set_count)
188 (scm_char_set_every, scm_char_set_any): Replace calls to
189 scm_apply() with the corresponding scm_call_N() functions.
190
191 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next)
192 (scm_char_set_unfold, scm_char_set_unfold_x)
193 (scm_char_set_map, scm_char_set_diff_plus_intersection)
194 (scm_char_set_diff_plus_intersection_x): Replace deprecated macros
195 SCM_LISTN with calls to scm_list_N().
196
197 * srfi-13.c (scm_string_tabulate, scm_string_map)
198 (scm_string_map_x, scm_string_unfold)
199 (scm_string_unfold_right): Replace deprecated macros SCM_LISTN
200 with calls to scm_list_N().
201
202 * srfi-13.c (scm_string_any, scm_string_every),
203 (scm_string_tabulate, scm_string_trim),
204 (scm_string_trim_right, scm_string_trim_both),
205 (scm_string_compare, scm_string_compare_ci),
206 (scm_string_indexS, scm_string_index_right),
207 (scm_string_skip, scm_string_skip_right, scm_string_count),
208 (scm_string_map, scm_string_map_x, scm_string_fold),
209 (scm_string_fold_right, scm_string_unfold),
210 (scm_string_unfold_right, scm_string_for_each),
211 (scm_string_filter, scm_string_delete): Replace calls to
212 scm_apply() with the corresponding scm_call_N() functions.
213
71ca65d9
MG
2142001-06-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
215
216 * Makefile.am: Added SRFI-4 files in various places.
217
218 * srfi-4.c, srfi-4.h, srfi-4.scm: New files implementing SRFI-4.
219
36284627
DH
2202001-06-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
221
222 * srfi-13.c (scm_string_copyS, scm_string_take, scm_string_drop,
223 scm_string_take_right, scm_string_drop_right, scm_string_trim,
224 scm_string_trim_right, scm_string_trim_both, scm_string_tokenize):
225 Use scm_mem2string instead of scm_makfromstr.
226
227 (scm_reverse_list_to_string, string_titlecase_x): Prefer
228 !SCM_<pred> over SCM_N<pred>.
229
f6581113
MV
2302001-06-25 Marius Vollmer <mvo@zagadka.ping.de>
231
232 * srfi-8.scm: Use `re-export-syntax' to correctly re-export
233 `receive'.
234
d0e06238
MV
2352001-06-18 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
236
237 The SRFI-19 implementation was completely broken. Already the
238 reference implementation did not handle DST and time zones
239 properly and relied on non-R5RS-isms like passing reals to
240 `quotient'. For Guile, some additional fixes were needed because
241 of the incomplete numeric tower implementation. See also
e9313ed7
TTN
242 srfi-19.test.
243
d0e06238 244 * srfi-19.scm (date-zone-offset): Fixed typo in export clause.
e9313ed7 245 (add-duration): Renamed from priv:add-duration.
d0e06238
MV
246 (priv:time-normalize!): Handle fractional nanoseconds; remove
247 duplicate definition.
248 (priv:current-time-tai): Fixed typo.
249 (time=?, time<=?): Fixed typos.
250 (time-tai->time-utc, time-utc->time-tai,
251 time-utc->time-monotonic): Use make-time-unnormalized instead of
252 make-time when uninitialized time fields are used.
253 (set-date-nanosecond!, set-date-second!, set-date-minute!,
254 set-date-hour!, set-date-day!, set-date-month!, set-date-year!,
255 set-date-zone-offset!): Define.
256 (priv:local-tz-offset): Take an extra argument in order to handle
257 DST effects.
258 (time-utc->date, time-tai->date, time-monotonic->date): Handle the
259 changed signature of priv:local-tz-offset. Don't pass non-integer
e9313ed7 260 arguments to quotient (non-R5RS, not supported by Guile).
d0e06238
MV
261 (date->time-utc): Ensure that seconds in a date structure are
262 always exact integers. Handle DST properly.
263 (current-date, julian-day->date, modified-julian-day->date):
e9313ed7 264 Handle the changed signature of priv:local-tz-offset.
d0e06238
MV
265 (julian-day->time-utc): Reverted earlier inexact->exact hack;
266 make-time now handles inexact arguments.
267 (priv:locale-print-time-zone): At least print the numerical time
e9313ed7 268 zone.
d0e06238
MV
269 (priv:integer-reader): Fixed named let iteration.
270 (priv:read-directives): Use set-date-month! instead of
271 priv:set-date-month! etc.
272 (string->date): Handle DST properly.
273
0f002b27
MV
2742001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
275
276 * srfi-13.scm: Prevent `export' from re-exporting core bindings.
277
e81d98ec
DH
2782001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
279
280 * srfi-14.c (charset_print): Mark unused parameters with
281 SCM_UNUSED.
282
563058ef
MG
2832001-06-07 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
284
285 * srfi-1.scm (fold, fold-pair): Fixed a buggy call to apply.
286 (delete-duplicates): Now the first occurrence of an element is
287 retained, as required.
288 (member, assoc): Fixed wrong order of equality predicate
289 application.
563058ef 290
e9680547
MG
2912001-06-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
292
293 * README: Update.
294
295 * srfi-1.scm: New file.
296
f480396b
MV
2972001-06-04 Marius Vollmer <mvo@zagadka.ping.de>
298
299 Added exception notice to all files.
300
dd22a80a
MG
3012001-05-31 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
302
303 * srfi-14.scm, srfi-13.scm: Use `load-extension' for loading the
304 shared library.
305
998c3141
ML
3062001-05-31 Michael Livshin <mlivshin@bigfoot.com>
307
308 * Makefile.am (MKDEP): copied from libguile/Makefile.am, just in
309 case.
310 (CLEANFILES): added *.x (and removed from DISTCLEANFILES)
311
6b0d28a3
ML
3122001-05-28 Michael Livshin <mlivshin@bigfoot.com>
313
314 * srfi-19.scm: removed a stray open parenthesis. (thanks to
315