]> gitweb.factorcode.org Git - factor.git/commitdiff
Removing slip usage from basis
authorSlava Pestov <slava@shill.internal.stack-effects.com>
Sun, 10 May 2009 20:28:22 +0000 (15:28 -0500)
committerSlava Pestov <slava@shill.internal.stack-effects.com>
Sun, 10 May 2009 20:28:22 +0000 (15:28 -0500)
basis/cocoa/application/application.factor
basis/compiler/codegen/codegen.factor
basis/stack-checker/known-words/known-words.factor
basis/xml/xml.factor

index 8b33986fc2864a938bfe35497118987fb811ebf5..66093645c1d40abdd58a8d2dc284c5299365fbee 100644 (file)
@@ -14,7 +14,7 @@ NSApplicationDelegateReplyCancel
 NSApplicationDelegateReplyFailure ;
 
 : with-autorelease-pool ( quot -- )
-    NSAutoreleasePool -> new slip -> release ; inline
+    NSAutoreleasePool -> new [ call ] [ -> release ] bi* ; inline
 
 : NSApp ( -- app ) NSApplication -> sharedApplication ;
 
index 47593878fae2025fe67102069f3df7a09429b7b3..c7b67b72b4d0bc01ffdf3850927c902ea321862b 100755 (executable)
@@ -444,8 +444,7 @@ TUPLE: callback-context ;
 
 : do-callback ( quot token -- )
     init-catchstack
-    dup 2 setenv
-    slip
+    [ 2 setenv call ] keep
     wait-to-return ; inline
 
 : callback-return-quot ( ctype -- quot )
index 7603324200fb5aef3efae892c45d907a7550df8e..56ef67d2a8d2a0973d8a9dd60f4837a74cfbe035 100644 (file)
@@ -95,15 +95,6 @@ M: composed infer-call*
 M: object infer-call*
     "literal quotation" literal-expected ;
 
-: infer-nslip ( n -- )
-    [ infer->r infer-call ] [ infer-r> ] bi ;
-
-: infer-slip ( -- ) 1 infer-nslip ;
-
-: infer-2slip ( -- ) 2 infer-nslip ;
-
-: infer-3slip ( -- ) 3 infer-nslip ;
-
 : infer-ndip ( word n -- )
     [ literals get ] 2dip
     [ '[ _ def>> infer-quot-here ] ]
@@ -180,9 +171,6 @@ M: object infer-call*
         { \ declare [ infer-declare ] }
         { \ call [ infer-call ] }
         { \ (call) [ infer-call ] }
-        { \ slip [ infer-slip ] }
-        { \ 2slip [ infer-2slip ] }
-        { \ 3slip [ infer-3slip ] }
         { \ dip [ infer-dip ] }
         { \ 2dip [ infer-2dip ] }
         { \ 3dip [ infer-3dip ] }
@@ -216,7 +204,7 @@ M: object infer-call*
     "local-word-def" word-prop infer-quot-here ;
 
 {
-    declare call (call) slip 2slip 3slip dip 2dip 3dip curry compose
+    declare call (call) dip 2dip 3dip curry compose
     execute (execute) call-effect-unsafe execute-effect-unsafe if
     dispatch <tuple-boa> exit load-local load-locals get-local
     drop-locals do-primitive alien-invoke alien-indirect
index fba2eafaba84f72f40364c4eca307950a9077cfb..9df7165e6cd7da88f48ef0555e9bda6a84c3654a 100755 (executable)
@@ -143,7 +143,7 @@ PRIVATE>
 <PRIVATE
 
 : call-under ( quot object -- quot )
-    swap dup slip ; inline
+    swap [ call ] keep ; inline
 
 : xml-loop ( quot: ( xml-elem -- ) -- )
     parse-text call-under