Commit Graph

740 Commits (cb84fefc37ba4be26c9bf68976a97710ebfb6dd1)

Author SHA1 Message Date
Doug Coleman cb14adb1c2 Fix bootstrap. Add missing using on io.serial.linux. Fixes #351. 2011-11-04 06:08:02 -07:00
Doug Coleman e1c123e157 Move io.serial.unix to io.serial.linux, add platforms files. Move termios into io.serial.linux.ffi vocab. 2011-11-03 16:26:34 -07:00
Joe Groff 8cf18d1a82 remove BSD,solaris,etc. misc platform support code 2011-11-02 17:13:51 -07:00
Doug Coleman 94db86a6db Make "foo.private" require load foo instead.
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201.
2011-11-02 11:50:03 -07:00
Joe Groff 13b17fb84a io: input-stream and output-stream mixins 2011-10-18 16:25:09 -07:00
Joe Groff 4d224b552f io: stream-read-into and stream-read-partial-into
Safe user-facing wrappers for stream-read-unsafe.
2011-10-17 21:23:08 -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 8322ff9452 io.streams.peek: test with memory-stream
Some binary stream types use memcpy to implement read-unsafe, while element-agnostic wrapper streams have to use copy. Make sure peek-stream works with both when it has to divide a read between the peek buffer and the underlying buffer (it does).
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 6828eeb27e io.streams.peek: read-unsafe protocol 2011-10-17 21:23:04 -07:00
Joe Groff d54824cb40 io: nab io.streams.peek's stream-exemplar-growable
Rename stream-element-examplar to stream-exemplar to match.
2011-10-17 21:23:01 -07:00
Doug Coleman 1df7a40984 Add 2/4/8le>, 2/4/8be> -- 30% faster on the 8-byte versions, slightly less faster on the others. 2011-10-12 09:48:23 -07:00
Doug Coleman 97fa79d7fa Update serial library so it's usable. 2011-10-08 11:38:43 -07:00
Doug Coleman eead1f0487 Fix the using for peek streams tests. 2011-09-25 22:54:53 -07:00
Doug Coleman c5f1651567 Peekable streams wrapper 2011-09-25 19:32:34 -07:00
Doug Coleman bf2a96e9e0 Remove Windows CE from core/ basis/ and build-support/
Rename the winnt singleton to windows in core/ basis/ extra/
Rename boot images winnt -> windows
Fixes #84.
2011-09-18 23:19:06 -05:00
Slava Pestov 01eeabbcbd Merge classes.struct.packed into classes.struct and remove duplication 2011-08-25 21:02:25 -07:00
John Benediktsson 94812c1f49 Moving io.trash to io.files.trash. 2011-08-19 14:31:19 -07:00
John Benediktsson 5e63f3b5d8 io.trash: cross-platform vocab to send files to trash. 2011-08-19 14:26:32 -07:00
Joe Groff f950fca035 io.encodings.detect: detect empty files as utf8 rather than raise a sequence error 2010-06-10 17:32:56 -07:00
Joe Groff 7825cb6d10 io.encodings.detect: fill in USING: list for tests 2010-06-10 16:39:48 -07:00
Joe Groff 4997489980 new vocab io.encodings.detect: borrow binary file/text encoding detection heuristics from a certain text editor written in java 2010-06-09 00:11:01 -07: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
Doug Coleman 026499e64f Use flags{ instead of flags all over the place 2010-04-01 14:44:03 -05:00
Slava Pestov 0161f4e8d2 io.serial.windows: fix load error 2010-02-21 17:48:05 +13:00
Slava Pestov c3f4bcb616 Fix load errors exposed by platforms.txt change 2010-02-20 13:31:09 +13:00
Slava Pestov 95bfc8a240 vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases 2010-02-20 13:30:49 +13:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman 6fe9daada5 fix more load errors 2009-11-15 11:17:23 -06:00
Doug Coleman 6091c6964a fix using list, reported by zimbatm 2009-11-15 10:55:41 -06:00
Joe Groff a5957b188d nip most uses of tuck from extra 2009-11-05 22:22:21 -06:00
Joe Groff 6c400b44f3 update io.serial structs 2009-09-19 21:14:38 -05:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Doug Coleman fb9d7d67d0 use struct in windows serial code 2009-08-29 23:25:17 -05:00
Samuel Tardieu 65e495aa66 Remove spurious dup in io.serial.unix/linux 2009-06-22 18:08:12 +02:00
Doug Coleman 0820734749 serial library works with the null modem -- add some standard ports for future reference 2009-03-17 15:03:01 -05:00
Doug Coleman 378c8f90ff move serial to io.serial 2009-02-22 17:50:29 -06:00
Doug Coleman d0030ba899 remove old io.serial 2009-02-22 17:44:09 -06:00
Doug Coleman b062425935 clean up io.serial a bit 2008-12-15 09:48:37 -06:00
Doug Coleman 971a6c89be move io.paths from extra to basis 2008-12-08 21:31:41 -06:00
Doug Coleman 7f93d335a6 fix bug in io.paths, add io.paths.windows 2008-12-08 20:10:52 -06:00
Doug Coleman 3d17175926 move io.files.unique to basis 2008-12-03 05:24:47 -06:00
Doug Coleman 7b13604b7b clarify docs for io.files.unique, add a couple more tests, remove usages of >r r> 2008-11-28 16:14:55 -06:00
Doug Coleman 4af3543fcd directory fix 2008-10-19 13:11:10 -05:00
Doug Coleman f9661a4699 fix io.paths 2008-10-02 18:26:56 -05:00
Slava Pestov aea0fed14c Fixing basis -> extra dependencies 2008-09-05 19:29:14 -05:00
Slava Pestov 6ead724b25 Fixing bugs 2008-08-29 04:23:39 -05:00
Slava Pestov 799cefc39a Fix conflict 2008-08-27 05:52:38 -05:00
Slava Pestov 40e926609a Fixing unit tests 2008-08-22 22:07:59 -05:00
Daniel Ehrenberg 1e1da73309 Merge branch 'master' of git://factorcode.org/git/factor 2008-08-19 21:06:26 +02:00