Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
Doug Coleman
e3cb325040
factor: clean up whitespace in -docs files
2015-07-02 10:31:22 -07:00
Doug Coleman
352e5de16a
core, basis, extra: Remove DOS line endings from files.
...
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Benjamin Pollack
2c3dd8c3c8
Remove executable bit from tons of files that aren't
2014-11-05 20:40:42 -08:00
Björn Lindqvist
47c16ed078
io.streams.limited.tests: use with-stream in the tests to ensure that the pipes are disposed
2014-09-24 14:40:34 -07:00
John Benediktsson
b039b6a542
io.streams.string: cleanup tests.
2014-03-11 11:25:53 -07:00
John Benediktsson
ee040a242c
io.streams: some more test cases for sequence-read-until.
2014-03-10 15:29:11 -07:00
John Benediktsson
bf1f4e9aa2
io.streams.sequence: cleanup by moving type checks.
2014-02-25 09:32:47 -08:00
John Benediktsson
f243b31ddd
io.streams.sequence: rename (stream-seek) to sequence-seek.
2014-02-25 07:56:28 -08:00
John Benediktsson
ee9ead89f8
io.streams.sequence: bounds check sequence-read-until.
2014-02-25 07:52:07 -08:00
John Benediktsson
0b04d3f279
io.streams.string: faster M\ string-reader stream-readln.
2014-02-24 21:47:49 -08:00
John Benediktsson
2fe03b6711
io.streams.string: inline <string-writer> so with-string-writer is faster.
2014-02-10 20:46:25 -08:00
John Benediktsson
1acf307e15
io.streams: make stream-element-type inline on string-reader and byte-reader.
2013-12-02 17:44:03 -08:00
Joe Groff
e40453ebee
io.streams.limited: missed INSTANCE: input-stream
2011-10-18 21:27:08 -07:00
Joe Groff
13b17fb84a
io: input-stream and output-stream mixins
2011-10-18 16:25:09 -07:00
Joe Groff
e426512534
more stream-seekable? and stream-length methods
...
- limited-streams and throw-on-eof-streams
- string-readers and byte-readers
2011-10-17 21:23:09 -07:00
Joe Groff
09f55f82fa
clean up forwarding stream-read-partial-unsafe
...
Now that "io" provides a method on object for stream-read-partial-unsafe that forwards to stream-read-unsafe, individual stream class that don't implement partial reads don't need to provide such a method themselves.
2011-10-17 21:23:06 -07:00
Joe Groff
6f12322bda
kill noncopying-reader mixin, stream-read generic
...
Now that all streams have been updated to implement the stream-read-unsafe protocol, take out the noncopying-reader shim. Turn stream-read and stream-read-partial into plain functions over the -unsafe generics.
2011-10-17 21:23:05 -07:00
Joe Groff
055196d4b7
io.streams.(limited,throwing): read-unsafe methods
2011-10-17 21:23:00 -07:00
Joe Groff
01419b3e6b
io.streams.null: read-unsafe methods
2011-10-17 21:23:00 -07:00
Joe Groff
d5f4b6f155
io.streams.sequence: change to provide read-unsafe
...
Change io.streams.sequence and its children io.streams.byte-array and io.streams.string to implement the -unsafe protocol and mixin noncopying-reader.
2011-10-17 21:22:59 -07:00
Doug Coleman
1b20b0c476
Make sure 0 read always returns f. Fixes issue #70 .
...
More unit tests, fix read-until to return f f sometimes
Rename ((read-until)) to read-until-loop. Fix the stack effect declarations of (read) and handle-readln.
2011-09-09 18:51:06 -07:00
Slava Pestov
fbbaef70c4
Remove stream-peek and stream-peek1, re-implement dns vocab to not need this abstraction
2010-10-08 18:55:13 -07:00
Doug Coleman
d462355035
Implement and document stream-peek
2010-10-08 06:34:19 -07:00
Doug Coleman
e48c28359e
Fix io.streams.throwing word and write docs for it. Fix typo in io.streams.limited docs
2010-09-27 20:20:48 -05:00
Doug Coleman
dc4970e234
Fix file uploads by using unlimit-stream for now. Will compare solution to with-combinators tomorrow.
2010-09-08 02:50:25 -05:00
Joe Groff
b04bc8640f
io.streams.throwing: add test file
2010-07-09 23:36:40 -07:00
Joe Groff
b1c557a825
io.streams.throwing: rename throws-on-eof -> stream-throw-on-eof and input-throws-on-eof -> throw-on-eof and change stream-throw-on-eof to leave the rigged stream on the stack, to better follow convention of other io words
2010-07-09 18:10:51 -07:00
Joe Groff
fb4cbd87d4
io.streams.limited: scrape out last vestiges of unlimiting
2010-07-09 14:56:54 -07:00
Joe Groff
90b962bbd3
io.streams.throwing: implement read-until
2010-07-09 14:26:01 -07:00
Joe Groff
99db070c9e
io.streams.throwing: implement tell and seek
2010-07-09 14:08:54 -07:00
Joe Groff
0bdc1514fd
io.streams.limited: remove unlimit*
2010-07-09 13:52:15 -07:00
Doug Coleman
2ca509a8fe
Split off io.streams.throwing from io.streams.limited and update usages of limited streams
2010-07-09 13:32:09 -05:00
Slava Pestov
627295f094
Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO)
2010-05-06 17:21:02 -04:00
Slava Pestov
2eda6fc6aa
io.encodings: add a fast-path for ascii, utf8 and 8-bit encodings when string only contains ASCII characters
2010-04-19 01:14:00 -05:00
Slava Pestov
0612bc6177
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Doug Coleman
1ff1e3f4bc
add docs to 8-bit encodings vocabs, update usages
2009-11-12 18:36:20 -06:00
Doug Coleman
bd13e018dd
memq? -> member-eq?, sorted-memq? -> sorted-member-eq?
2009-10-28 15:02:00 -05:00
Doug Coleman
81e342e755
clarify behavior of seekable/nonseekable limited streams
2009-10-05 16:16:59 -05:00
Doug Coleman
84fd08d86b
update docs for stream-tell
2009-10-03 19:39:06 -05:00
Doug Coleman
770405359e
better tests for stream-tell
2009-10-03 19:33:54 -05:00
Doug Coleman
098fd0248a
support limited-streams correctly for seekable streams
2009-10-03 18:27:09 -05:00
Keith Lazuka
405e5d015b
docs: change $subsection to $subsections
2009-10-02 12:15:48 -04:00
Doug Coleman
69229032c2
define a method on stream-element-type, fix a bug in unlimited-input and add a unit test
2009-09-28 15:51:40 -05:00
Doug Coleman
edb7090993
support seeking on limited streams
2009-08-26 13:48:41 -05:00
Slava Pestov
197a64eaae
io.streams.duplex: fix test
2009-08-24 20:19:55 -05:00
Doug Coleman
175b03c134
add a <limited-file-reader> word to open a limited stream from a file correctly
2009-06-03 21:21:21 -05:00
Slava Pestov
96b1ae86a4
Clean up init-stdio implementations and move io.streams.null to basis
2009-05-12 03:35:48 -05:00
Slava Pestov
9488e78532
clean up contents and lines words; contents never outputs f now
2009-05-10 16:39:51 -05:00
Slava Pestov
a63ad6a7a5
Remove cruddy string encoding/decoding code from VM
2009-05-02 13:45:38 -05:00