Merge lp:~arcfide/scheme-libraries/master into lp:~scheme-libraries-team/scheme-libraries/srfi
- master
- Merge into srfi
Status: | Merged |
---|---|
Approved by: | Derick Eddington |
Approved revision: | 100 |
Merged at revision: | 97 |
Proposed branch: | lp:~arcfide/scheme-libraries/master |
Merge into: | lp:~scheme-libraries-team/scheme-libraries/srfi |
Diff against target: |
333 lines (+269/-4) 11 files modified
%3a19/time/compat.chezscheme.sls (+35/-0) %3a38/with-shared-structure.chezscheme.sls (+37/-0) %3a39/parameters.chezscheme.sls (+20/-0) %3a48/intermediate-format-strings/compat.chezscheme.sls (+19/-0) %3a6/basic-string-ports/compat.chezscheme.sls (+19/-0) %3a78/lightweight-testing/compat.chezscheme.sls (+19/-0) %3a98/os-environment-variables.chezscheme.sls (+23/-0) README (+4/-4) link-dirs.chezscheme.sps (+40/-0) private/include/compat.chezscheme.sls (+19/-0) private/platform-features.chezscheme.sls (+34/-0) |
To merge this branch: | bzr merge lp:~arcfide/scheme-libraries/master |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Derick Eddington | Approve | ||
Aaron W. Hsu (community) | Needs Resubmitting | ||
Review via email: mp+102613@code.launchpad.net |
Commit message
Add support for Chez Scheme
Description of the change
Port of Portable SRFIs to Chez Scheme
Derick Eddington (derick-eddington) wrote : | # |
- 98. By Aaron W. Hsu
-
Adjust for upstream merging
Aaron W. Hsu (arcfide) wrote : | # |
I think I got everything that you mentioned, let me know if it needs more attention.
Derick Eddington (derick-eddington) wrote : | # |
Your file %3a6/basic-
- 99. By Aaron W. Hsu
-
Adjust for stupidity
Aaron W. Hsu (arcfide) wrote : | # |
Whoops, that was stupid. I think I have fixed it now.
Derick Eddington (derick-eddington) wrote : | # |
I apologize for not being clearer -- %3a6/basic-
The rationale is that %3a6/basic-
I know my %3a6/basic-
- 100. By Aaron W. Hsu
-
Fix unnecessary export from the Chez Scheme Compatability file
Aaron W. Hsu (arcfide) wrote : | # |
Hrm, I think you mean that I do not need to export the extra identifier, right? I have made this fix. I think that does it, no? Hehe.
Derick Eddington (derick-eddington) wrote : | # |
Yeah, that does it. Thanks again!
Preview Diff
1 | === added file '%3a19/time/compat.chezscheme.sls' | |||
2 | --- %3a19/time/compat.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
3 | +++ %3a19/time/compat.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
4 | @@ -0,0 +1,35 @@ | |||
5 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
6 | 2 | ;;; | ||
7 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
8 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
9 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
10 | 6 | ;;; copies. | ||
11 | 7 | ;;; | ||
12 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
13 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
14 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
15 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
16 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
17 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
18 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
19 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
20 | 16 | |||
21 | 17 | (library (srfi :19 time compat) | ||
22 | 18 | (export time-resolution | ||
23 | 19 | (rename (date-zone-offset timezone-offset)) | ||
24 | 20 | current-time | ||
25 | 21 | cumulative-thread-time | ||
26 | 22 | (rename (cpu-time cumulative-process-time)) | ||
27 | 23 | cumulative-gc-time | ||
28 | 24 | time-nanosecond | ||
29 | 25 | time-second) | ||
30 | 26 | (import (chezscheme)) | ||
31 | 27 | |||
32 | 28 | (define time-resolution 1) | ||
33 | 29 | |||
34 | 30 | (define (cumulative-thread-time . args) | ||
35 | 31 | (assertion-violation 'cumulative-thread-time "not implemented")) | ||
36 | 32 | |||
37 | 33 | (define (cumulative-gc-time) (sstats-gc-cpu (statistics))) | ||
38 | 34 | |||
39 | 35 | ) | ||
40 | 0 | 36 | ||
41 | === added file '%3a38/with-shared-structure.chezscheme.sls' | |||
42 | --- %3a38/with-shared-structure.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
43 | +++ %3a38/with-shared-structure.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
44 | @@ -0,0 +1,37 @@ | |||
45 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
46 | 2 | ;;; | ||
47 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
48 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
49 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
50 | 6 | ;;; copies. | ||
51 | 7 | ;;; | ||
52 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
53 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
54 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
55 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
56 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
57 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
58 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
59 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
60 | 16 | |||
61 | 17 | (library (srfi :38 with-shared-structure) | ||
62 | 18 | (export write-with-shared-structure | ||
63 | 19 | (rename (write-with-shared-structure write/ss)) | ||
64 | 20 | read-with-shared-structure | ||
65 | 21 | (rename (read-with-shared-structure read/ss))) | ||
66 | 22 | (import (chezscheme)) | ||
67 | 23 | |||
68 | 24 | (define write-with-shared-structure | ||
69 | 25 | (case-lambda | ||
70 | 26 | [(obj) | ||
71 | 27 | (write-with-shared-structure obj (current-output-port))] | ||
72 | 28 | [(obj port) | ||
73 | 29 | (parameterize ((print-graph #T)) | ||
74 | 30 | (write obj port))] | ||
75 | 31 | [(obj port optarg) | ||
76 | 32 | (assertion-violation 'write-with-shared-structure | ||
77 | 33 | "this implementation does not support optarg")])) | ||
78 | 34 | |||
79 | 35 | (define read-with-shared-structure read) | ||
80 | 36 | |||
81 | 37 | ) | ||
82 | 0 | 38 | ||
83 | === added file '%3a39/parameters.chezscheme.sls' | |||
84 | --- %3a39/parameters.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
85 | +++ %3a39/parameters.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
86 | @@ -0,0 +1,20 @@ | |||
87 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
88 | 2 | ;;; | ||
89 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
90 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
91 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
92 | 6 | ;;; copies. | ||
93 | 7 | ;;; | ||
94 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
95 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
96 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
97 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
98 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
99 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
100 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
101 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
102 | 16 | |||
103 | 17 | (library (srfi :39 parameters) | ||
104 | 18 | (export make-parameter | ||
105 | 19 | parameterize) | ||
106 | 20 | (import (only (chezscheme) make-parameter parameterize))) | ||
107 | 0 | 21 | ||
108 | === added file '%3a48/intermediate-format-strings/compat.chezscheme.sls' | |||
109 | --- %3a48/intermediate-format-strings/compat.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
110 | +++ %3a48/intermediate-format-strings/compat.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
111 | @@ -0,0 +1,19 @@ | |||
112 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
113 | 2 | ;;; | ||
114 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
115 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
116 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
117 | 6 | ;;; copies. | ||
118 | 7 | ;;; | ||
119 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
120 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
121 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
122 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
123 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
124 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
125 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
126 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
127 | 16 | |||
128 | 17 | (library (srfi :48 intermediate-format-strings compat) | ||
129 | 18 | (export pretty-print) | ||
130 | 19 | (import (only (chezscheme) pretty-print))) | ||
131 | 0 | 20 | ||
132 | === added file '%3a6/basic-string-ports/compat.chezscheme.sls' | |||
133 | --- %3a6/basic-string-ports/compat.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
134 | +++ %3a6/basic-string-ports/compat.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
135 | @@ -0,0 +1,19 @@ | |||
136 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
137 | 2 | ;;; | ||
138 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
139 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
140 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
141 | 6 | ;;; copies. | ||
142 | 7 | ;;; | ||
143 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
144 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
145 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
146 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
147 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
148 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
149 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
150 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
151 | 16 | |||
152 | 17 | (library (srfi :6 basic-string-ports compat) | ||
153 | 18 | (export open-output-string get-output-string) | ||
154 | 19 | (import (chezscheme))) | ||
155 | 0 | 20 | ||
156 | === added file '%3a78/lightweight-testing/compat.chezscheme.sls' | |||
157 | --- %3a78/lightweight-testing/compat.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
158 | +++ %3a78/lightweight-testing/compat.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
159 | @@ -0,0 +1,19 @@ | |||
160 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
161 | 2 | ;;; | ||
162 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
163 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
164 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
165 | 6 | ;;; copies. | ||
166 | 7 | ;;; | ||
167 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
168 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
169 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
170 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
171 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
172 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
173 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
174 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
175 | 16 | |||
176 | 17 | (library (srfi :78 lightweight-testing compat) | ||
177 | 18 | (export (rename (pretty-print check:write))) | ||
178 | 19 | (import (chezscheme))) | ||
179 | 0 | 20 | ||
180 | === added file '%3a98/os-environment-variables.chezscheme.sls' | |||
181 | --- %3a98/os-environment-variables.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
182 | +++ %3a98/os-environment-variables.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
183 | @@ -0,0 +1,23 @@ | |||
184 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
185 | 2 | ;;; | ||
186 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
187 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
188 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
189 | 6 | ;;; copies. | ||
190 | 7 | ;;; | ||
191 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
192 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
193 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
194 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
195 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
196 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
197 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
198 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
199 | 16 | |||
200 | 17 | (library (srfi :98 os-environment-variables) | ||
201 | 18 | (export get-environment-variables | ||
202 | 19 | (rename (getenv get-environment-variable))) | ||
203 | 20 | (import (only (chezscheme) getenv environ)) | ||
204 | 21 | |||
205 | 22 | (define (get-environment-variables . args) | ||
206 | 23 | (assertion-violation 'get-environment-variables "not implemented"))) | ||
207 | 0 | 24 | ||
208 | === modified file 'README' | |||
209 | --- README 2010-05-20 17:54:26 +0000 | |||
210 | +++ README 2012-05-08 00:21:19 +0000 | |||
211 | @@ -49,10 +49,10 @@ | |||
212 | 49 | 49 | ||
213 | 50 | https://launchpad.net/scheme-libraries | 50 | https://launchpad.net/scheme-libraries |
214 | 51 | 51 | ||
219 | 52 | Currently supported systems are Ikarus, Larceny, and Ypsilon. PLT Scheme is | 52 | Currently supported systems are Chez Scheme, Ikarus, Larceny, and Ypsilon. |
220 | 53 | only semi-supported because it has its own "srfi" directory which conflicts with | 53 | PLT Scheme is only semi-supported because it has its own "srfi" directory |
221 | 54 | having another "srfi" directory; you can symlink/copy files from this collection | 54 | which conflicts with having another "srfi" directory; you can symlink/copy |
222 | 55 | into PLT's "srfi" directory. | 55 | files from this collection into PLT's "srfi" directory. |
223 | 56 | 56 | ||
224 | 57 | For the latest development version, go to: | 57 | For the latest development version, go to: |
225 | 58 | 58 | ||
226 | 59 | 59 | ||
227 | === added file 'link-dirs.chezscheme.sps' | |||
228 | --- link-dirs.chezscheme.sps 1970-01-01 00:00:00 +0000 | |||
229 | +++ link-dirs.chezscheme.sps 2012-05-08 00:21:19 +0000 | |||
230 | @@ -0,0 +1,40 @@ | |||
231 | 1 | #! /usr/bin/env scheme-script | ||
232 | 2 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
233 | 3 | ;;; | ||
234 | 4 | ;;; Permission to use, copy, modify, and distribute this software for | ||
235 | 5 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
236 | 6 | ;;; above copyright notice and this permission notice appear in all | ||
237 | 7 | ;;; copies. | ||
238 | 8 | ;;; | ||
239 | 9 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
240 | 10 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
241 | 11 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
242 | 12 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
243 | 13 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
244 | 14 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
245 | 15 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
246 | 16 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
247 | 17 | |||
248 | 18 | (import (chezscheme)) | ||
249 | 19 | |||
250 | 20 | ;;; Link all of the SRFIs to their normal directories like sane | ||
251 | 21 | ;;; people who use Chez Scheme prefer. :-) | ||
252 | 22 | |||
253 | 23 | (define (file-loop files) | ||
254 | 24 | (cond | ||
255 | 25 | [(null? files) (void)] | ||
256 | 26 | [(should-link? (car files)) | ||
257 | 27 | (link-file (car files)) | ||
258 | 28 | (file-loop (cdr files))] | ||
259 | 29 | [else (file-loop (cdr files))])) | ||
260 | 30 | |||
261 | 31 | (define (should-link? file) | ||
262 | 32 | (and (< 3 (string-length file)) | ||
263 | 33 | (string=? "%3a" (substring file 0 3)))) | ||
264 | 34 | |||
265 | 35 | (define (link-file file) | ||
266 | 36 | (let ([clean (string-append ":" (substring file 3 (string-length file)))]) | ||
267 | 37 | (printf "Linking ~a~n" file) | ||
268 | 38 | (system (format "ln -sf '~a' '~a'" file clean)))) | ||
269 | 39 | |||
270 | 40 | (file-loop (directory-list ".")) | ||
271 | 0 | 41 | ||
272 | === added file 'private/include/compat.chezscheme.sls' | |||
273 | --- private/include/compat.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
274 | +++ private/include/compat.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
275 | @@ -0,0 +1,19 @@ | |||
276 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
277 | 2 | ;;; | ||
278 | 3 | ;;; Permission to use, copy, modify, and distribute this software for | ||
279 | 4 | ;;; any purpose with or without fee is hereby granted, provided that the | ||
280 | 5 | ;;; above copyright notice and this permission notice appear in all | ||
281 | 6 | ;;; copies. | ||
282 | 7 | ;;; | ||
283 | 8 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
284 | 9 | ;;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
285 | 10 | ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
286 | 11 | ;;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
287 | 12 | ;;; DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA | ||
288 | 13 | ;;; OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
289 | 14 | ;;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
290 | 15 | ;;; PERFORMANCE OF THIS SOFTWARE. | ||
291 | 16 | |||
292 | 17 | (library (srfi private include compat) | ||
293 | 18 | (export (rename (source-directories search-paths))) | ||
294 | 19 | (import (only (chezscheme) source-directories))) | ||
295 | 0 | 20 | ||
296 | === added file 'private/platform-features.chezscheme.sls' | |||
297 | --- private/platform-features.chezscheme.sls 1970-01-01 00:00:00 +0000 | |||
298 | +++ private/platform-features.chezscheme.sls 2012-05-08 00:21:19 +0000 | |||
299 | @@ -0,0 +1,34 @@ | |||
300 | 1 | ;;; Copyright (c) 2012 Aaron W. Hsu <arcfide@sacrideo.us> | ||
301 | 2 | ;;; | ||
302 | 3 | ;;; Permission to use, copy, modify, and distribute this software for any | ||
303 | 4 | ;;; purpose with or without fee is hereby granted, provided that the above | ||
304 | 5 | ;;; copyright notice and this permission notice appear in all copies. | ||
305 | 6 | ;;; | ||
306 | 7 | ;;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
307 | 8 | ;;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
308 | 9 | ;;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
309 | 10 | ;;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
310 | 11 | ;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
311 | 12 | ;;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
312 | 13 | ;;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
313 | 14 | |||
314 | 15 | (library (srfi private platform-features) | ||
315 | 16 | (export expand-time-features run-time-features) | ||
316 | 17 | (import (chezscheme) (srfi private OS-id-features)) | ||
317 | 18 | |||
318 | 19 | (define (expand-time-features) '(chezscheme syntax-case)) | ||
319 | 20 | |||
320 | 21 | (define (run-time-features) | ||
321 | 22 | (OS-id-features (symbol->string (machine-type)) | ||
322 | 23 | '(("t" threads) | ||
323 | 24 | ("a6" x86-64) | ||
324 | 25 | ("i3" x86) | ||
325 | 26 | ("le" linux posix) | ||
326 | 27 | ("ob" openbsd posix bsd) | ||
327 | 28 | ("fb" freebsd posix bsd) | ||
328 | 29 | ("nb" netbsd posix bsd) | ||
329 | 30 | ("osx" darwin posix) | ||
330 | 31 | ("s2" solaris posix) | ||
331 | 32 | ("nt" windows)))) | ||
332 | 33 | |||
333 | 34 | ) |
Thanks for the contribution, Aaron! Before I merge it, there are some issues:
The README file needs to be updated to list Chez as a supported system.
I know the text formatting, mentioned in my per-file comments below, isn't a big deal, but I went to efforts to make mine consistent, so I feel like files with my name on them should keep being consistent. In revision 92, I changed all square brackets to parenthesis, because I've come to dislike brackets. In any files that are not Scheme- system- specific, I don't want brackets, but in files that are specific to a Scheme-system that supports brackets, I'm okay with them if it's not attributed to me. Feel free to change the copyright/ attribution of the inconsistent files to you, and I'll merge them with whatever formatting and brackets you want. (I don't actually care about copyrighting trivial files, but people told me I need copyrights on everything, and once my name is on them I feel like I described.)
If you'd like, I can use the diff from this merge request, and make the changes I'm suggesting myself.
(FWIW, I hate the "%3a" shit as well as needing ":" to have numbers in library names, and I support Chez not doing the file-name encoding. Screw compatibility with Windows. I gave up on my Library Files SRFI because I doubt all the other systems that do the encoding are going to change at this point. I take the blame for promoting the encoding. I also hate the redundant SRFI-97 short-name alias libraries.)
Below are per-file issues:
--
%3a38/with- shared- structure. chezscheme. sls
Indentation typo, line 58. It looks like a tab character in there.
Copied from my file, but has square brackets and export/import forms' formatting
has changed.
--
%3a48/intermedi ate-format- strings/ compat. chezscheme. sls ht-testing/ compat. chezscheme. sls environment- variables. chezscheme. sls
%3a78/lightweig
%3a98/os-
Copied from my file, but export/import forms' formatting has changed.
--
%3a6/basic- string- ports.chezschem e.sls
To be consistent, I think a %3a6/basic- string- ports/compat. chezscheme. sls should
be used, instead.
--
.bzrignore
Don't want this file, because it's inherently private- personal- preference.
--
link-dirs. chezscheme. sps
Do you want your copyright in this file? You put it in your two other non-tiny files. After adding your contribution, I'm going to make a new "utils" directory and move this program and my compile- all.ikarus. sps in to it.