]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/environment/environment.factor
basis: use lint.vocabs tool to trim using lists
[factor.git] / basis / environment / environment.factor
index f945d2933c516da43a40767382547e84c5647ed8..ee3071acbea9a67be0690c5b5d9c84a605c85e58 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: assocs combinators continuations init kernel sequences
+USING: assocs combinators continuations kernel sequences
 splitting system vocabs vocabs.loader ;
 IN: environment
 
@@ -34,10 +34,9 @@ HOOK: set-os-envs-pointer os ( malloc -- )
     { [ os windows? ] [ "environment.windows" require ] }
 } cond
 
-[
-    "FACTOR_ROOTS" os-env
-    [
+STARTUP-HOOK: [
+    "FACTOR_ROOTS" os-env [
         os windows? ";" ":" ? split
         [ add-vocab-root ] each
     ] when*
-] "environment" add-startup-hook
+]