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