]> gitweb.factorcode.org Git - factor.git/commitdiff
alien.strings: remove latin1 dependency.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 28 Feb 2018 16:58:30 +0000 (08:58 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 28 Feb 2018 16:58:30 +0000 (08:58 -0800)
core/alien/strings/strings.factor

index e2bb70bcd4821e7dd5256b26af2d064250b02d61..74fdfb56370214cd2dc0cf39837830b1eca5d324 100644 (file)
@@ -1,10 +1,10 @@
 ! Copyright (C) 2008, 2011 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors alien arrays byte-arrays byte-vectors init io
-io.encodings io.encodings.ascii io.encodings.latin1
-io.encodings.utf16n io.encodings.utf8 io.streams.memory kernel
-kernel.private math namespaces sequences sequences.private
-strings strings.private system system.private ;
+io.encodings io.encodings.ascii io.encodings.utf16n
+io.encodings.utf8 io.streams.memory kernel kernel.private math
+namespaces sequences sequences.private strings strings.private
+system system.private ;
 IN: alien.strings
 
 GENERIC#: alien>string 1 ( c-ptr encoding -- string/f )
@@ -31,7 +31,7 @@ M: c-ptr string>alien drop ;
 <PRIVATE
 
 : fast-string? ( string encoding -- ? )
-    swap aux>> not [ { ascii latin1 utf8 } member-eq? ] [ drop f ] if ; inline
+    swap aux>> not [ { ascii utf8 } member-eq? ] [ drop f ] if ; inline
 
 : string>alien-fast ( string encoding -- byte-array )
     { string object } declare ! aux>> must be f