]> gitweb.factorcode.org Git - factor.git/commitdiff
Fixes
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 20 Apr 2008 11:15:08 +0000 (06:15 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 20 Apr 2008 11:15:08 +0000 (06:15 -0500)
core/compiler/tests/intrinsics.factor
core/compiler/tests/templates-early.factor
core/io/encodings/utf16/utf16-tests.factor
extra/math/ranges/ranges.factor
extra/openssl/openssl-tests.factor

index c1ac6b40174c08695706d052c4d0f0c1483e223e..7d473871fe83629159f0cac921e9849e171c567f 100755 (executable)
@@ -4,8 +4,8 @@ math.constants math.private sequences strings tools.test words
 continuations sequences.private hashtables.private byte-arrays
 strings.private system random layouts vectors.private
 sbufs.private strings.private slots.private alien
-alien.accessors alien.c-types alien.syntax namespaces libc
-sequences.private io.encodings.ascii ;
+alien.accessors alien.c-types alien.syntax alien.strings
+namespaces libc sequences.private io.encodings.ascii ;
 
 ! Make sure that intrinsic ops compile to correct code.
 [ ] [ 1 [ drop ] compile-call ] unit-test
@@ -361,7 +361,7 @@ cell 8 = [
     [ ] [ "b" get free ] unit-test
 ] when
 
-[ ] [ "hello world" malloc-char-string "s" set ] unit-test
+[ ] [ "hello world" ascii malloc-string "s" set ] unit-test
 
 "s" get [
     [ "hello world" ] [ "s" get <void*> [ { byte-array } declare *void* ] compile-call ascii alien>string ] unit-test
index 004d08834324aa79c0aa1ca96d159294cfc30020..5a08ed0b5b1dccbc810a03eaeb4f0ea3c81b2ff2 100755 (executable)
@@ -2,7 +2,8 @@
 IN: compiler.tests
 USING: compiler generator generator.registers
 generator.registers.private tools.test namespaces sequences
-words kernel math effects definitions compiler.units accessors ;
+words kernel math effects definitions compiler.units accessors
+cpu.architecture ;
 
 : <int-vreg> ( n -- vreg ) int-regs <vreg> ;
 
index 698598391744df7d21c015779f324d419251f402..0d171ee9aa1c72809fb400b1e043c20d59639669 100755 (executable)
@@ -1,6 +1,6 @@
 USING: kernel tools.test io.encodings.utf16 arrays sbufs
 io.streams.byte-array sequences io.encodings io unicode
-io.encodings.string alien.c-types accessors classes ;
+io.encodings.string alien.c-types alien.strings accessors classes ;
 IN: io.encodings.utf16.tests
 
 [ { CHAR: x } ] [ { 0 CHAR: x } utf16be decode >array ] unit-test
index ca69e787264e94634b9a40f3960ced174535bbc9..cc7d0758e57f24e4c49fed9445670f49533efa82 100755 (executable)
@@ -53,7 +53,7 @@ INSTANCE: range immutable-sequence
     dup range-decreasing? first-or-peek ;
 
 : clamp-to-range ( n range -- n )
-    [ min>> max ] [ max>> min ] bi ;
+    [ range-min max ] [ range-max min ] bi ;
 
 : sequence-index-range  ( seq -- range )
     length [0,b) ;
index a392589211745552b7ba86efd14274b653f614b1..5825ca7270b38d4b8de74074553307a405ad8ffb 100755 (executable)
@@ -1,6 +1,7 @@
-USING: alien alien.c-types assocs bit-arrays hashtables io io.files
-io.sockets kernel mirrors openssl.libcrypto openssl.libssl
-namespaces math math.parser openssl prettyprint sequences tools.test ;
+USING: alien alien.c-types alien.strings assocs bit-arrays
+hashtables io io.files io.encodings.ascii io.sockets kernel
+mirrors openssl.libcrypto openssl.libssl namespaces math
+math.parser openssl prettyprint sequences tools.test ;
 
 ! =========================================================
 ! Some crypto functions (still to be turned into words)