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