Skip to content

Commit

Permalink
Make "foo.private" require load foo instead.
Browse files Browse the repository at this point in the history
Move require from vocabs.loader to vocabs. Update everything.
Fixes factor#201.
  • Loading branch information
erg committed Nov 2, 2011
1 parent 359c931 commit 94db86a
Show file tree
Hide file tree
Showing 99 changed files with 135 additions and 111 deletions.
2 changes: 1 addition & 1 deletion basis/alien/libraries/libraries.factor
Expand Up @@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien alien.strings assocs io.backend
kernel namespaces destructors sequences strings
system io.pathnames fry combinators vocabs.loader ;
system io.pathnames fry combinators vocabs ;
IN: alien.libraries

: dlopen ( path -- dll ) native-string>alien (dlopen) ;
Expand Down
2 changes: 1 addition & 1 deletion basis/atk/ffi/ffi.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ;
gobject-introspection kernel system vocabs ;
IN: atk.ffi

<<
Expand Down
6 changes: 3 additions & 3 deletions basis/bootstrap/compiler/compiler.factor
@@ -1,12 +1,12 @@
! Copyright (C) 2007, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors cpu.architecture vocabs.loader system
USING: accessors cpu.architecture vocabs system
sequences namespaces parser kernel kernel.private classes
classes.private arrays hashtables vectors classes.tuple sbufs
hashtables.private sequences.private math classes.tuple.private
growable namespaces.private assocs words command-line vocabs io
growable namespaces.private assocs words command-line io
io.encodings.string libc splitting math.parser memory compiler.units
math.order quotations quotations.private assocs.private ;
math.order quotations quotations.private assocs.private vocabs.loader ;
FROM: compiler => enable-optimizer ;
IN: bootstrap.compiler

Expand Down
4 changes: 2 additions & 2 deletions basis/bootstrap/help/help.factor
@@ -1,6 +1,6 @@
USING: help help.topics help.syntax help.crossref
help.definitions io io.files kernel namespaces vocabs sequences
parser vocabs.loader vocabs.loader.private accessors assocs ;
help.definitions io io.files kernel namespaces sequences
parser vocabs vocabs.loader vocabs.loader.private accessors assocs ;
IN: bootstrap.help

: load-help ( -- )
Expand Down
2 changes: 1 addition & 1 deletion basis/bootstrap/threads/threads.factor
@@ -1,6 +1,6 @@
! Copyright (C) 2008, 2011 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USE: vocabs.loader
USE: vocabs

"threads" require
"io.thread" require
2 changes: 1 addition & 1 deletion basis/bootstrap/tools/tools.factor
@@ -1,4 +1,4 @@
USING: vocabs.loader sequences system combinators ;
USING: vocabs sequences system combinators ;
IN: bootstrap.tools

{
Expand Down
2 changes: 1 addition & 1 deletion basis/bootstrap/ui/tools/tools.factor
@@ -1,4 +1,4 @@
USING: kernel vocabs vocabs.loader sequences system ;
USING: kernel vocabs sequences system vocabs.loader ;

{ "ui" "help" "tools" }
[ "bootstrap." prepend lookup-vocab ] all? [
Expand Down
2 changes: 1 addition & 1 deletion basis/bootstrap/ui/ui.factor
@@ -1,5 +1,5 @@
USING: alien namespaces system combinators kernel sequences
vocabs vocabs.loader ;
vocabs ;
IN: bootstrap.ui

"bootstrap.math" require
Expand Down
2 changes: 1 addition & 1 deletion basis/calendar/calendar.factor
Expand Up @@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays classes.tuple combinators
combinators.short-circuit kernel locals math math.functions
math.order sequences summary system vocabs.loader ;
math.order sequences summary system vocabs vocabs.loader ;
IN: calendar

HOOK: gmt-offset os ( -- hours minutes seconds )
Expand Down
4 changes: 2 additions & 2 deletions basis/classes/struct/struct.factor
Expand Up @@ -9,7 +9,7 @@ functors.backend generalizations generic.parser kernel
kernel.private lexer libc locals macros math math.order parser
quotations sequences slots slots.private specialized-arrays
stack-checker.dependencies summary vectors vocabs.parser words
classes.private generic definitions ;
classes.private generic definitions vocabs ;
FROM: delegate.private => group-words slot-group-words ;
QUALIFIED: math
IN: classes.struct
Expand Down Expand Up @@ -426,6 +426,6 @@ FUNCTOR-SYNTAX: STRUCT:
[ parse-struct-slots` ] [ ] while
[ >array define-struct-class ] append! ;

USING: vocabs vocabs.loader ;
USING: vocabs.loader ;

{ "classes.struct" "prettyprint" } "classes.struct.prettyprint" require-when
3 changes: 2 additions & 1 deletion basis/command-line/command-line-docs.factor
@@ -1,4 +1,5 @@
USING: help.markup help.syntax parser vocabs.loader strings ;
USING: help.markup help.syntax parser vocabs.loader strings
vocabs ;
IN: command-line

HELP: run-bootstrap-init
Expand Down
2 changes: 1 addition & 1 deletion basis/cpu/ppc/ppc.factor
Expand Up @@ -1069,7 +1069,7 @@ M: ppc immediate-arithmetic? ( n -- ? ) -32768 32767 between? ;
M: ppc immediate-bitwise? ( n -- ? ) 0 65535 between? ;
M: ppc immediate-store? ( n -- ? ) immediate-comparand? ;

USE: vocabs.loader
USE: vocabs
{
{ [ os linux? ] [
{
Expand Down
2 changes: 1 addition & 1 deletion basis/cpu/x86/64/64.factor
Expand Up @@ -143,7 +143,7 @@ M: x86.64 struct-return-on-stack? f ;
! x86-64.
enable-alien-4-intrinsics

USE: vocabs.loader
USE: vocabs

{
{ [ os unix? ] [ "cpu.x86.64.unix" require ] }
Expand Down
2 changes: 1 addition & 1 deletion basis/cpu/x86/x86.factor
Expand Up @@ -6,7 +6,7 @@ cpu.x86.features cpu.x86.features.private cpu.architecture kernel
kernel.private math memory namespaces make sequences words system
layouts combinators math.order math.vectors fry locals compiler.constants
byte-arrays io macros quotations classes.algebra compiler
compiler.units init vm vocabs.loader
compiler.units init vm vocabs
compiler.cfg.registers
compiler.cfg.instructions
compiler.cfg.intrinsics
Expand Down
2 changes: 1 addition & 1 deletion basis/editors/emacs/emacs.factor
@@ -1,6 +1,6 @@
USING: definitions io.launcher kernel parser words sequences math
math.parser namespaces editors make system combinators.short-circuit
fry threads vocabs.loader ;
fry threads vocabs ;
IN: editors.emacs

SINGLETON: emacsclient
Expand Down
2 changes: 1 addition & 1 deletion basis/editors/gvim/gvim.factor
@@ -1,5 +1,5 @@
USING: editors.vim io.backend kernel namespaces system
vocabs.loader editors ;
vocabs editors ;
IN: editors.gvim

! This code builds on the code in editors.vim; see there for
Expand Down
2 changes: 1 addition & 1 deletion basis/environment/environment.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: assocs combinators kernel sequences splitting system
vocabs.loader init ;
vocabs init vocabs.loader ;
IN: environment

HOOK: os-env os ( key -- value )
Expand Down
2 changes: 1 addition & 1 deletion basis/environment/unix/unix.factor
Expand Up @@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.data alien.strings
alien.syntax kernel layouts sequences system unix
environment io.encodings.utf8 unix.utilities vocabs.loader
environment io.encodings.utf8 unix.utilities vocabs
combinators alien.accessors unix.ffi ;
IN: environment.unix

Expand Down
2 changes: 1 addition & 1 deletion basis/furnace/furnace.factor
Expand Up @@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license.
IN: furnace

USE: vocabs.loader
USE: vocabs
"furnace.actions" require
"furnace.alloy" require
"furnace.asides" require
Expand Down
3 changes: 2 additions & 1 deletion basis/furnace/json/json-docs.factor
@@ -1,4 +1,5 @@
USING: kernel http.server help.markup help.syntax http ;
USING: kernel http.server help.markup help.syntax http
vocabs.loader ;
IN: furnace.json

HELP: <json-content>
Expand Down
2 changes: 1 addition & 1 deletion basis/game/input/input.factor
@@ -1,5 +1,5 @@
USING: arrays accessors continuations kernel math system
sequences namespaces init vocabs vocabs.loader combinators ;
sequences namespaces init vocabs combinators ;
FROM: namespaces => change-global ;
IN: game.input

Expand Down
2 changes: 1 addition & 1 deletion basis/gdk/ffi/ffi.factor
Expand Up @@ -3,7 +3,7 @@
USING: alien alien.c-types alien.destructors alien.libraries
alien.syntax cairo.ffi classes.struct combinators
gobject-introspection gobject-introspection.standard-types
kernel system vocabs.loader ;
kernel system vocabs vocabs.loader ;
IN: gdk.ffi

<<
Expand Down
2 changes: 1 addition & 1 deletion basis/gdk/gl/ffi/ffi.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ;
gobject-introspection kernel system vocabs vocabs.loader ;
IN: gdk.gl.ffi

<<
Expand Down
2 changes: 1 addition & 1 deletion basis/gdk/pixbuf/ffi/ffi.factor
Expand Up @@ -3,7 +3,7 @@
USING: alien alien.data alien.libraries alien.syntax
combinators gio.ffi glib.ffi gobject-introspection
gobject-introspection.standard-types kernel libc
sequences system vocabs.loader ;
sequences system vocabs ;
IN: gdk.pixbuf.ffi

<<
Expand Down
2 changes: 1 addition & 1 deletion basis/gio/ffi/ffi.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ;
gobject-introspection kernel system vocabs ;
IN: gio.ffi

<<
Expand Down
2 changes: 1 addition & 1 deletion basis/gmodule/ffi/ffi.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ;
gobject-introspection kernel system vocabs ;
IN: gmodule.ffi

<<
Expand Down
2 changes: 1 addition & 1 deletion basis/gobject/ffi/ffi.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.destructors alien.libraries alien.syntax kernel
combinators gobject-introspection literals math system vocabs.loader ;
combinators gobject-introspection literals math system vocabs ;
IN: gobject.ffi

! these two are needed for the definition of GError and others.
Expand Down
2 changes: 1 addition & 1 deletion basis/gtk/ffi/ffi.factor
Expand Up @@ -3,7 +3,7 @@
USING: alien alien.c-types alien.destructors alien.libraries
alien.syntax combinators gobject-introspection
gobject-introspection.standard-types kernel pango.ffi system
vocabs.loader ;
vocabs ;
IN: gtk.ffi

<<
Expand Down
2 changes: 1 addition & 1 deletion basis/gtk/gl/ffi/ffi.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ;
gobject-introspection kernel system vocabs ;
IN: gtk.gl.ffi

<<
Expand Down
3 changes: 2 additions & 1 deletion basis/http/server/server.factor
Expand Up @@ -29,7 +29,8 @@ html.streams
html
mime.types
math.order
xml.writer ;
xml.writer
vocabs ;
FROM: mime.multipart => parse-multipart ;
IN: http.server

Expand Down
2 changes: 1 addition & 1 deletion basis/io/backend/windows/windows.factor
@@ -1,6 +1,6 @@
! Copyright (C) 2004, 2010 Mackenzie Straight, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: io.backend namespaces system vocabs.loader ;
USING: io.backend namespaces system vocabs ;
IN: io.backend.windows

"io.files.windows" require
Expand Down
3 changes: 2 additions & 1 deletion basis/io/directories/directories.factor
Expand Up @@ -2,7 +2,8 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays combinators destructors io io.backend
io.encodings.binary io.files io.files.types io.pathnames
kernel namespaces sequences system vocabs.loader fry ;
kernel namespaces sequences system vocabs.loader fry
vocabs ;
IN: io.directories

: set-current-directory ( path -- )
Expand Down
3 changes: 2 additions & 1 deletion basis/io/directories/search/search.factor
Expand Up @@ -2,7 +2,8 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs continuations deques dlists fry
io.backend io.directories io.files.info io.pathnames kernel
locals math sequences sorting system unicode.case vocabs.loader ;
locals math sequences sorting system unicode.case vocabs
vocabs.loader ;
IN: io.directories.search

: qualified-directory-entries ( path -- seq )
Expand Down
2 changes: 1 addition & 1 deletion basis/io/directories/unix/unix.factor
Expand Up @@ -5,7 +5,7 @@ combinators continuations destructors fry io io.backend
io.directories io.encodings.binary
io.encodings.utf8 io.files io.pathnames io.files.types kernel
math.bitwise sequences system unix unix.stat vocabs.loader
classes.struct unix.ffi literals libc ;
classes.struct unix.ffi literals libc vocabs ;
IN: io.directories.unix

CONSTANT: file-mode OCT: 0666
Expand Down
2 changes: 1 addition & 1 deletion basis/io/files/info/info.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman, Eduardo Cavazos.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel system sequences combinators
vocabs.loader io.files.types io.directories math ;
vocabs vocabs.loader io.files.types io.directories math ;
IN: io.files.info

! File info
Expand Down
2 changes: 1 addition & 1 deletion basis/io/files/info/unix/unix.factor
Expand Up @@ -5,7 +5,7 @@ calendar.unix classes.struct combinators
combinators.short-circuit io.backend io.directories
io.files.info io.files.types kernel literals math math.bitwise
sequences specialized-arrays strings system unix unix.ffi
unix.groups unix.stat unix.time unix.users vocabs.loader ;
unix.groups unix.stat unix.time unix.users vocabs ;
IN: io.files.info.unix
SPECIALIZED-ARRAY: timeval

Expand Down
2 changes: 1 addition & 1 deletion basis/io/files/links/links.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2008 Slava Pestov, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors io.backend io.files.info io.files.types
io.pathnames kernel math namespaces system vocabs.loader ;
io.pathnames kernel math namespaces system vocabs ;
IN: io.files.links

HOOK: make-link os ( target symlink -- )
Expand Down
2 changes: 1 addition & 1 deletion basis/io/files/unique/unique.factor
Expand Up @@ -3,7 +3,7 @@
USING: arrays combinators continuations fry io io.backend
io.directories io.directories.hierarchy io.files io.pathnames
kernel locals math math.bitwise math.parser namespaces random
sequences system vocabs.loader random.data ;
sequences system vocabs random.data ;
IN: io.files.unique

HOOK: (touch-unique-file) io-backend ( path -- )
Expand Down
2 changes: 1 addition & 1 deletion basis/io/launcher/launcher.factor
@@ -1,7 +1,7 @@
! Copyright (C) 2008, 2011 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: system kernel namespaces strings hashtables sequences
assocs combinators vocabs.loader init threads continuations math
assocs combinators vocabs init threads continuations math
accessors concurrency.flags destructors environment fry io
io.encodings.ascii io.backend io.timeouts io.pipes
io.pipes.private io.encodings io.encodings.utf8
Expand Down
2 changes: 1 addition & 1 deletion basis/io/mmap/mmap.factor
Expand Up @@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license.
USING: continuations destructors io.files io.files.info
io.backend kernel quotations system alien alien.accessors
accessors vocabs.loader combinators alien.c-types alien.data
accessors vocabs combinators alien.c-types alien.data
math ;
IN: io.mmap

Expand Down
2 changes: 1 addition & 1 deletion basis/io/monitors/monitors.factor
Expand Up @@ -3,7 +3,7 @@
USING: io.backend kernel continuations destructors namespaces
sequences assocs hashtables sorting arrays threads boxes
io.timeouts accessors concurrency.mailboxes fry
system vocabs.loader combinators ;
system vocabs combinators ;
IN: io.monitors

HOOK: init-monitors io-backend ( -- )
Expand Down
2 changes: 1 addition & 1 deletion basis/io/pipes/pipes.factor
Expand Up @@ -3,7 +3,7 @@
USING: io.encodings io.backend io.ports io.streams.duplex
io splitting grouping sequences namespaces kernel
destructors math concurrency.combinators accessors fry
arrays continuations quotations system vocabs.loader combinators ;
arrays continuations quotations system vocabs combinators ;
IN: io.pipes

TUPLE: pipe in out ;
Expand Down
2 changes: 1 addition & 1 deletion basis/io/sockets/secure/secure.factor
Expand Up @@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel namespaces continuations destructors io
debugger io.sockets io.sockets.private sequences summary
calendar delegate system vocabs.loader combinators present ;
calendar delegate system vocabs combinators present ;
IN: io.sockets.secure

SYMBOL: secure-socket-timeout
Expand Down
2 changes: 1 addition & 1 deletion basis/io/sockets/sockets.factor
Expand Up @@ -8,7 +8,7 @@ grouping init io.backend io.binary io.encodings
io.encodings.ascii io.encodings.binary io.pathnames io.ports
io.streams.duplex kernel libc locals math math.parser memoize
namespaces parser present sequences splitting strings summary
system values vocabs.loader vocabs.parser
system values vocabs.loader vocabs.parser vocabs
sequences.private ;
IN: io.sockets

Expand Down

0 comments on commit 94db86a

Please sign in to comment.