(libguile_srfi_srfi_4_la_LIBADD, libguile_srfi_srfi_13_14_la_LIBADD):
[bpt/guile.git] / srfi / ChangeLog
CommitLineData
f712d833
MV
12001-11-02 Marius Vollmer <mvo@zagadka.ping.de>
2
3 Support for native Win32. Thanks to Stefan Jahn!
4
5 * Makefile.am: Put `-no-undefined' into LDFLAGS to support linkers
6 which do not allow unresolved symbols inside shared libraries.
7
8 * srfi-13.h, srfi-14.h: Defined SCM_SRFI1314_API. Prefixed each
9 exported symbol with SCM_SRFI1314_API.
10
11 * srfi-4.h: Defined SCM_SRFI4_API. Prefixed each exported
12 symbol with SCM_SRFI4_API.
13
1a179b03
MD
142001-10-21 Mikael Djurfeldt <mdj@linnaeus>
15
16 * srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
17 srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
18 directives `export', `export-syntax', `re-export' and
19 `re-export-syntax' into the `define-module' form. This is the
20 recommended way of exporting bindings.
21
b21cccf3
MD
222001-09-22 Mikael Djurfeldt <mdj@linnaeus>
23
24 * srfi-19.scm (priv:split-real): Inserted missing call to
25 inexact->exact.
26
0b073f0f
RB
272001-09-21 Rob Browning <rlb@defaultvalue.org>
28
29 * srfi-14.h (SCM_CHARSET_GET): need 1L, not just 1 in "<<".
30
31 * srfi-14.c (SCM_CHARSET_SET): need 1L, not just 1 in "<<".
32 (scm_char_set_hash): val needs to be long, not just unsigned.
33 (scm_char_set): need 1L, not just 1 in "<<".
34 (scm_list_to_char_set): need 1L, not just 1 in "<<".
35 (scm_list_to_char_set_x): need 1L, not just 1 in "<<".
36 (scm_list_to_char_set_x): FUNC_NAME was wrong - added a _x.
37 (scm_string_to_char_set): string length var needed to be
38 scm_sizet, not int.
39 (scm_string_to_char_set): need 1L, not just 1 in "<<".
40 (scm_string_to_char_set_x): string length var needed to be
41 scm_sizet, not int.
42 (scm_string_to_char_set_x): need 1L, not just 1 in "<<".
43 (scm_char_set_filter): need 1L, not just 1 in "<<".
44 (scm_char_set_filter_x): need 1L, not just 1 in "<<".
45 (scm_ucs_range_to_char_set): need 1L, not just 1 in "<<".
46 (scm_ucs_range_to_char_set_x): need 1L, not just 1 in "<<".
47 (scm_char_set_adjoin): need 1L, not just 1 in "<<".
48 (scm_char_set_delete): need 1L, not just 1 in "<<".
49 (scm_char_set_adjoin_x): need 1L, not just 1 in "<<".
50 (scm_char_set_delete_x): need 1L, not just 1 in "<<".
51
6ddd9412
GH
522001-09-12 Gary Houston <ghouston@arglist.com>
53
54 * srfi-1.scm (filter): change "caller" to "filter" in check-arg-type.
55
8c494e99
DH
562001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
57
58 * srfi-1.scm, srfi-13.scm: Remove the defines that were needed to
59 trick export from the beginning of the files.
60
fa5a8c00
TTN
612001-08-25 Thien-Thi Nguyen <ttn@revel.glug.org>
62
63 * srfi-19.scm (add-duration): Fix bug: Call `add-duration!' w/
64 two args. Thanks to Alex Shinn.
65
b573e744
MV
662001-08-25 Marius Vollmer <mvo@zagadka.ping.de>
67
68 * Makefile.am (AUTOMAKE_OPTIONS): Change "foreign" to "gnu".
69
e9313ed7
TTN
702001-08-24 Thien-Thi Nguyen <ttn@revel.glug.org>
71
72 * srfi-13.h (scm_string_map, scm_string_map_x,
73 scm_string_for_each): Reverse order of first two args.
74 (scm_string_for_each_index): New proc.
75
76 * srfi-13.c (scm_string_for_each): Reverse order of first 2 args.
77 (scm_string_for_each_index): New func.
78
79 * srfi-13.scm (string-for-each-index): New exported proc.
80
81 Thanks to Alex Shinn.
82
80fdeb4e
MD
832001-08-22 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
84
85 * srfi-13.c (string-map): Swapped order of string and proc args to
86 conform with the srfi. (Thanks to Alex Shinn.)
87
5753f02f
GH
882001-08-05 Gary Houston <ghouston@arglist.com>
89
90 * srfi-1.scm (check-arg-type, non-negative-integer?): a couple of new
91 internal definitions.
92 (list-tabulate, iota): check for bad arguments that otherwise
93 give weird output.
94 (filter): check for proper list, to avoid infinite recursion on
95 a circular list.
96
848458d9
GH
972001-08-04 Gary Houston <ghouston@arglist.com>
98
99 * srfi-1.scm (filter): replaced with a tail-recursive version.
100 (remove): implement using filter, to make it tail-recursive.
101
9be74503
GH
1022001-07-31 Gary Houston <ghouston@arglist.com>
103
104 * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
105 accounting for the (char-set-union cs2...) in the spec. i.e.,
106 (char-set-diff+intersection a) -> copy-of-a, empty-set
107 and the following are equivalent:
108 (char-set-diff+intersection a (char-set #\a) (char-set #\b))
109 (char-set-diff+intersection a (char-set #\a #\b))
110
111 (scm_char_set_xor_x): disabled the side-effecting code, since it
112 gives inconsistent results to scm_char_set_xor for the case
113 (char-set-xor! a a a).
e9313ed7 114
9be74503
GH
115 (scm_char_set_diff_plus_intersection_x): added cs2 argument, since
116 two arguments are compulsory in final spec. also similar changes
117 as for scm_char_set_diff_plus_intersection.
118 * srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
119
d1bc6602
GH
1202001-07-22 Gary Houston <ghouston@arglist.com>
121
122 * srfi-14.c (scm_char_set_intersection, scm_char_set_xor): remove
123 the compulsory cs1 arguments: all args are optional in final spec.
42b54c05 124
d1bc6602
GH
125 * srfi-14.h: declarations updated.
126
46a7b46f
MG
1272001-07-18 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
128
129 * srfi-11.scm, srfi-8.scm: Update copyright notice.
130
4c4185ee
MG
1312001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
132
133 * srfi-14.c: Okay. Now I got it. Really. This time it's fixed.
134 Guaranteed. (Maybe)
e9313ed7 135
4c4185ee
MG
136 * srfi-19.scm: Define `current-time' before exporting it.
137
2671725a
MG
1382001-07-17 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
139
140 * srfi-14.c: Fix for bug caused by brain-malfunctioning on my
141 side. Bit sets were handled wrong because I couldn't tell bit
142 counts from byte counts. Also, the bit array should be 256 / 8
e9313ed7 143 bytes long. Thank you, Gary!
2671725a
MG
144
145 Removed unnecessary protoype for scm_char_set_copy.
146
8b19021c
GH
1472001-07-16 Gary Houston <ghouston@arglist.com>
148
149 * srfi-14.scm: export string->char-set!, not string-char-set!.
150
151 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next,
152 scm_end_of_char_set_p): reject negative cursor values.
153 (scm_list_to_char_set, scm_list_to_char_set_x): when reporting
154 type error in list component, omit the position (was always 1).
155
139777e5
MG
1562001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
157
158 (scm_char_set_map): Bug-fix: char-set-map was modifying the
159 argument instead of the return value.
160
cebf3d62
MG
1612001-07-16 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
162
163 * srfi-14.c: Allocate correct memory size for charsets (32 bytes),
164 use this value for initializing and comparing charsets.
165 (scm_char_set_hash): Use ``better'' hash algorithm which produces
166 more values.
167
396f36cd 1682001-07-15 Gary Houston <ghouston@arglist.com>
e9313ed7 169
396f36cd
GH
170 * srfi-14.c (scm_char_set_hash): recognise 0 instead of #f in the
171 opt arg to give default bound, as in final spec. don't allow
172 negative bounds.
b87f5a83
GH
173 (scm_char_set_hash): bug fix: was overrunning the buffer and
174 calculating based on garbage.
175 (scm_char_set_eq, scm_char_set_leq): fix argument number in error
176 reporting: wasn't incremented due to macro coding.
177 (scm_char_set): report argument number in error reporting: was
178 hard coded to 1. remove a couple of local variables.
396f36cd 179
22647fef
MV
1802001-07-13 Marius Vollmer <mvo@zagadka.ping.de>
181
182 * srfi-2.scm (and-let*): Use `re-export-syntax' instead of
183 `export-syntax'.
184
dd84cd4d
GH
1852001-07-11 Gary Houston <ghouston@arglist.com>
186
187 * srfi-14.c (s_scm_char_set_eq): bug fix: (char-set=) should
188 return #t instead of giving wrong-number-of-arguments . take a
189 single "rest" argument. use memcmp instead of a loop to compare
190 the values.
be390de2
GH
191 (s_scm_char_set_leq): similarly, (char-set<=) should return #t.
192 take a single "rest" argument.
193 srfi-14.h: update the declarations.
dd84cd4d 194
ee85583a
MG
1952001-07-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
196
197 * README: Cleanup.
198
99f59e93
GH
1992001-07-06 Gary Houston <ghouston@arglist.com>
200
201 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
202 delete!, assoc): roll back the previous change. instead place
203 dummy definitions in a deprecated block at the beginning as in
204 srfi-13.scm.
e9313ed7 205
0d6209aa
RB
2062001-07-06 Rob Browning <rlb@defaultvalue.org>
207
208 * srfi-19.scm (priv:locale-reader): don't need open-output-string.
209
26c22ea8
GH
2102001-07-03 Gary Houston <ghouston@arglist.com>
211
212 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
213 delete!, assoc): don't export until the new bindings have been
214 created. otherwise "export" thinks they are being re-exported and
215 a deprecation warning is produced.
6d52dbf2
GH
216 (map-in-order): defined and exported, to support lists of unequal
217 length.
26c22ea8 218
018adcae
MG
2192001-07-03 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
220
221 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
e800aa04
MG
222 invalid arguments. Same fix for several other procedures (do not
223 use zero?, use <= 0).
018adcae 224
cef248dd
MG
2252001-07-02 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
226
227 * srfi-1.scm: Replaced calls to `map' in several procedures to
228 calls to `map1'.
229 (map, for-each): New procedures, extended from R5RS.
230
2c4df451
MG
2312001-06-28 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
232
233 * srfi-4.c: Minor cleanups.
234
235 * srfi-14.c (scm_char_set_fold, scm_char_set_unfold)
236 (scm_char_set_unfold_x, scm_char_set_for_each)
237 (scm_char_set_map, scm_char_set_filter)
238 (scm_char_set_filter_x, scm_char_set_count)
239 (scm_char_set_every, scm_char_set_any): Replace calls to
240 scm_apply() with the corresponding scm_call_N() functions.
241
242 * srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next)
243 (scm_char_set_unfold, scm_char_set_unfold_x)
244 (scm_char_set_map, scm_char_set_diff_plus_intersection)
245 (scm_char_set_diff_plus_intersection_x): Replace deprecated macros
246 SCM_LISTN with calls to scm_list_N().
247
248 * srfi-13.c (scm_string_tabulate, scm_string_map)
249 (scm_string_map_x, scm_string_unfold)
250 (scm_string_unfold_right): Replace deprecated macros SCM_LISTN
251 with calls to scm_list_N().
252
253 * srfi-13.c (scm_string_any, scm_string_every),
254 (scm_string_tabulate, scm_string_trim),
255 (scm_string_trim_right, scm_string_trim_both),
256 (scm_string_compare, scm_string_compare_ci),
257 (scm_string_indexS, scm_string_index_right),
258 (scm_string_skip, scm_string_skip_right, scm_string_count),
259 (scm_string_map, scm_string_map_x, scm_string_fold),
260 (scm_string_fold_right, scm_string_unfold),
261 (scm_string_unfold_right, scm_string_for_each),
262 (scm_string_filter, scm_string_delete): Replace calls to
263 scm_apply() with the corresponding scm_call_N() functions.
264
71ca65d9
MG
2652001-06-27 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
266
267 * Makefile.am: Added SRFI-4 files in various places.
268
269 * srfi-4.c, srfi-4.h, srfi-4.scm: New files implementing SRFI-4.
270
36284627
DH
2712001-06-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
272
273 * srfi-13.c (scm_string_copyS, scm_string_take, scm_string_drop,
274 scm_string_take_right, scm_string_drop_right, scm_string_trim,
275 scm_string_trim_right, scm_string_trim_both, scm_string_tokenize):
276 Use scm_mem2string instead of scm_makfromstr.
277
278 (scm_reverse_list_to_string, string_titlecase_x): Prefer
279 !SCM_<pred> over SCM_N<pred>.
280
f6581113
MV
2812001-06-25 Marius Vollmer <mvo@zagadka.ping.de>
282
283 * srfi-8.scm: Use `re-export-syntax' to correctly re-export
284 `receive'.
285
d0e06238
MV
2862001-06-18 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
287
288 The SRFI-19 implementation was completely broken. Already the
289 reference implementation did not handle DST and time zones
290 properly and relied on non-R5RS-isms like passing reals to
291 `quotient'. For Guile, some additional fixes were needed because
292 of the incomplete numeric tower implementation. See also
e9313ed7
TTN
293 srfi-19.test.
294
d0e06238 295 * srfi-19.scm (date-zone-offset): Fixed typo in export clause.
e9313ed7 296 (add-duration): Renamed from priv:add-duration.
d0e06238
MV
297 (priv:time-normalize!): Handle fractional nanoseconds; remove
298 duplicate definition.
299 (priv:current-time-tai): Fixed typo.
300 (time=?, time<=?): Fixed typos.
301 (time-tai->time-utc, time-utc->time-tai,
302 time-utc->time-monotonic): Use make-time-unnormalized instead of
303 make-time when uninitialized time fields are used.
304 (set-date-nanosecond!, set-date-second!, set-date-minute!,
305 set-date-hour!, set-date-day!, set-date-month!, set-date-year!,
306 set-date-zone-offset!): Define.
307 (priv:local-tz-offset): Take an extra argument in order to handle
308 DST effects.
309 (time-utc->date, time-tai->date, time-monotonic->date): Handle the
310 changed signature of priv:local-tz-offset. Don't pass non-integer
e9313ed7 311 arguments to quotient (non-R5RS, not supported by Guile).
d0e06238
MV
312 (date->time-utc): Ensure that seconds in a date structure are
313 always exact integers. Handle DST properly.
314 (current-date, julian-day->date, modified-julian-day->date):
e9313ed7 315 Handle the changed signature of priv:local-tz-offset.
d0e06238
MV
316 (julian-day->time-utc): Reverted earlier inexact->exact hack;
317 make-time now handles inexact arguments.
318 (priv:locale-print-time-zone): At least print the numerical time
e9313ed7 319 zone.
d0e06238
MV
320 (priv:integer-reader): Fixed named let iteration.
321 (priv:read-directives): Use set-date-month! instead of
322 priv:set-date-month! etc.
323 (string->date): Handle DST properly.
324
0f002b27
MV
3252001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
326
327 * srfi-13.scm: Prevent `export' from re-exporting core bindings.
328
e81d98ec
DH
3292001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
330
331 * srfi-14.c (charset_print): Mark unused parameters with
332 SCM_UNUSED.
333
563058ef
MG
3342001-06-07 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
335
336 * srfi-1.scm (fold, fold-pair): Fixed a buggy call to apply.
337 (delete-duplicates): Now the first occurrence of an element is
338 retained, as required.
339 (member, assoc): Fixed wrong order of equality predicate
340 application.
563058ef 341
e9680547
MG
3422001-06-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
343
344 * README: Update.
345
346 * srfi-1.scm: New file.
347
f480396b
MV
3482001-06-04 Marius Vollmer <mvo@zagadka.ping.de>
349
350 Added exception notice to all files.
351
dd22a80a
MG
3522001-05-31 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
353
354 * srfi-14.scm, srfi-13.scm: Use `load-extension' for loading the
355 shared library.
356
998c3141
ML
3572001-05-31 Michael Livshin <mlivshin@bigfoot.com>
358
359 * Makefile.am (MKDEP): copied from libguile/Makefile.am, just in
360 case.
361 (CLEANFILES): added *.x (and removed from DISTCLEANFILES)
362
6b0d28a3
ML
3632001-05-28 Michael Livshin <mlivshin@bigfoot.com>
364
365 * srfi-19.scm: removed a stray open parenthesis. (thanks to
366