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