From aa838dbc2da589457c3854fd890934d62d788e7f Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Fri, 5 Dec 2008 09:04:16 -0600 Subject: [PATCH] Fix compile errors --- basis/compiler/codegen/fixup/fixup.factor | 2 +- .../tree/propagation/known-words/known-words.factor | 7 +++---- basis/stack-checker/backend/backend.factor | 2 +- basis/threads/threads.factor | 6 +++--- core/io/streams/c/c.factor | 6 +++--- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/basis/compiler/codegen/fixup/fixup.factor b/basis/compiler/codegen/fixup/fixup.factor index 0302218652..a56ae04a7b 100755 --- a/basis/compiler/codegen/fixup/fixup.factor +++ b/basis/compiler/codegen/fixup/fixup.factor @@ -9,7 +9,7 @@ IN: compiler.codegen.fixup GENERIC: fixup* ( obj -- ) -: code-format 22 getenv ; +: code-format ( -- n ) 22 getenv ; : compiled-offset ( -- n ) building get length code-format * ; diff --git a/basis/compiler/tree/propagation/known-words/known-words.factor b/basis/compiler/tree/propagation/known-words/known-words.factor index 163b17094a..59e2c0b9db 100644 --- a/basis/compiler/tree/propagation/known-words/known-words.factor +++ b/basis/compiler/tree/propagation/known-words/known-words.factor @@ -144,10 +144,9 @@ most-negative-fixnum most-positive-fixnum [a,b] comparison-ops [ dup '[ _ define-comparison-constraints ] each-derived-op ] each -generic-comparison-ops [ - dup specific-comparison - '[ _ _ define-comparison-constraints ] each-derived-op -] each +! generic-comparison-ops [ +! dup specific-comparison define-comparison-constraints +! ] each ! Remove redundant comparisons : fold-comparison ( info1 info2 word -- info ) diff --git a/basis/stack-checker/backend/backend.factor b/basis/stack-checker/backend/backend.factor index 07030085a6..7f8c920b19 100644 --- a/basis/stack-checker/backend/backend.factor +++ b/basis/stack-checker/backend/backend.factor @@ -148,7 +148,7 @@ M: object apply-object push-literal ; { [ dup inline? ] [ drop f ] } { [ dup deferred? ] [ drop f ] } { [ dup crossref? not ] [ drop f ] } - [ def>> [ [ word? ] [ primitive? not ] bi and ] contains? ] + [ def>> [ word? ] contains? ] } cond ; : ?missing-effect ( word -- ) diff --git a/basis/threads/threads.factor b/basis/threads/threads.factor index 1e04ad88c2..305ef0cca3 100644 --- a/basis/threads/threads.factor +++ b/basis/threads/threads.factor @@ -36,7 +36,7 @@ sleep-entry ; : tchange ( key quot -- ) tnamespace swap change-at ; inline -: threads 64 getenv ; +: threads ( -- assoc ) 64 getenv ; : thread ( id -- thread ) threads at ; @@ -73,9 +73,9 @@ PRIVATE> : ( quot name -- thread ) \ thread new-thread ; -: run-queue 65 getenv ; +: run-queue ( -- dlist ) 65 getenv ; -: sleep-queue 66 getenv ; +: sleep-queue ( -- heap ) 66 getenv ; : resume ( thread -- ) f >>state diff --git a/core/io/streams/c/c.factor b/core/io/streams/c/c.factor index 47e19d2c40..71c9ffd7d9 100755 --- a/core/io/streams/c/c.factor +++ b/core/io/streams/c/c.factor @@ -56,9 +56,9 @@ M: c-reader dispose* M: c-io-backend init-io ; -: stdin-handle 11 getenv ; -: stdout-handle 12 getenv ; -: stderr-handle 61 getenv ; +: stdin-handle ( -- alien ) 11 getenv ; +: stdout-handle ( -- alien ) 12 getenv ; +: stderr-handle ( -- alien ) 61 getenv ; : init-c-stdio ( -- stdin stdout stderr ) stdin-handle