From 14d707898df5b0812da437e9442311a444316cd8 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Tue, 2 Sep 2008 01:53:01 -0500 Subject: [PATCH] new accessors --- basis/compiler/tests/alien.factor | 2 +- basis/compiler/tests/optimizer.factor | 4 ++-- basis/compiler/tests/stack-trace.factor | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/basis/compiler/tests/alien.factor b/basis/compiler/tests/alien.factor index f2a2255949..18f7f67787 100755 --- a/basis/compiler/tests/alien.factor +++ b/basis/compiler/tests/alien.factor @@ -109,7 +109,7 @@ unit-test << "f-stdcall" f "stdcall" add-library >> [ f ] [ "f-stdcall" load-library ] unit-test -[ "stdcall" ] [ "f-stdcall" library library-abi ] unit-test +[ "stdcall" ] [ "f-stdcall" library abi>> ] unit-test : ffi_test_18 ( w x y z -- int ) "int" "f-stdcall" "ffi_test_18" { "int" "int" "int" "int" } diff --git a/basis/compiler/tests/optimizer.factor b/basis/compiler/tests/optimizer.factor index 9f42ad201f..4c39da0479 100755 --- a/basis/compiler/tests/optimizer.factor +++ b/basis/compiler/tests/optimizer.factor @@ -210,10 +210,10 @@ USE: binary-search.private : old-binsearch ( elt quot seq -- elt quot i ) dup length 1 <= [ - slice-from + from>> ] [ [ midpoint swap call ] 3keep roll dup zero? - [ drop dup slice-from swap midpoint@ + ] + [ drop dup from>> swap midpoint@ + ] [ dup midpoint@ cut-slice old-binsearch ] if ] if ; inline diff --git a/basis/compiler/tests/stack-trace.factor b/basis/compiler/tests/stack-trace.factor index 1085feb0c6..c6cbb79ce5 100755 --- a/basis/compiler/tests/stack-trace.factor +++ b/basis/compiler/tests/stack-trace.factor @@ -1,10 +1,10 @@ IN: compiler.tests USING: compiler tools.test namespaces sequences kernel.private kernel math continuations continuations.private -words splitting grouping sorting ; +words splitting grouping sorting accessors ; : symbolic-stack-trace ( -- newseq ) - error-continuation get continuation-call callstack>array + error-continuation get call>> callstack>array 2 group flip first ; : foo ( -- * ) 3 throw 7 ;