Make "foo.private" require load foo instead.

Move require from vocabs.loader to vocabs. Update everything.
Fixes #201.
db4
Doug Coleman 2011-11-02 11:23:41 -07:00
parent 359c931d35
commit 94db86a6db
99 changed files with 135 additions and 111 deletions

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien alien.strings assocs io.backend USING: accessors alien alien.strings assocs io.backend
kernel namespaces destructors sequences strings kernel namespaces destructors sequences strings
system io.pathnames fry combinators vocabs.loader ; system io.pathnames fry combinators vocabs ;
IN: alien.libraries IN: alien.libraries
: dlopen ( path -- dll ) native-string>alien (dlopen) ; : dlopen ( path -- dll ) native-string>alien (dlopen) ;

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: atk.ffi IN: atk.ffi
<< <<

View File

@ -1,12 +1,12 @@
! Copyright (C) 2007, 2010 Slava Pestov. ! Copyright (C) 2007, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! 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 sequences namespaces parser kernel kernel.private classes
classes.private arrays hashtables vectors classes.tuple sbufs classes.private arrays hashtables vectors classes.tuple sbufs
hashtables.private sequences.private math classes.tuple.private 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 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 ; FROM: compiler => enable-optimizer ;
IN: bootstrap.compiler IN: bootstrap.compiler

View File

@ -1,6 +1,6 @@
USING: help help.topics help.syntax help.crossref USING: help help.topics help.syntax help.crossref
help.definitions io io.files kernel namespaces vocabs sequences help.definitions io io.files kernel namespaces sequences
parser vocabs.loader vocabs.loader.private accessors assocs ; parser vocabs vocabs.loader vocabs.loader.private accessors assocs ;
IN: bootstrap.help IN: bootstrap.help
: load-help ( -- ) : load-help ( -- )

View File

@ -1,6 +1,6 @@
! Copyright (C) 2008, 2011 Slava Pestov. ! Copyright (C) 2008, 2011 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USE: vocabs.loader USE: vocabs
"threads" require "threads" require
"io.thread" require "io.thread" require

View File

@ -1,4 +1,4 @@
USING: vocabs.loader sequences system combinators ; USING: vocabs sequences system combinators ;
IN: bootstrap.tools IN: bootstrap.tools
{ {

View File

@ -1,4 +1,4 @@
USING: kernel vocabs vocabs.loader sequences system ; USING: kernel vocabs sequences system vocabs.loader ;
{ "ui" "help" "tools" } { "ui" "help" "tools" }
[ "bootstrap." prepend lookup-vocab ] all? [ [ "bootstrap." prepend lookup-vocab ] all? [

View File

@ -1,5 +1,5 @@
USING: alien namespaces system combinators kernel sequences USING: alien namespaces system combinators kernel sequences
vocabs vocabs.loader ; vocabs ;
IN: bootstrap.ui IN: bootstrap.ui
"bootstrap.math" require "bootstrap.math" require

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays classes.tuple combinators USING: accessors arrays classes.tuple combinators
combinators.short-circuit kernel locals math math.functions 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 IN: calendar
HOOK: gmt-offset os ( -- hours minutes seconds ) HOOK: gmt-offset os ( -- hours minutes seconds )

View File

@ -9,7 +9,7 @@ functors.backend generalizations generic.parser kernel
kernel.private lexer libc locals macros math math.order parser kernel.private lexer libc locals macros math math.order parser
quotations sequences slots slots.private specialized-arrays quotations sequences slots slots.private specialized-arrays
stack-checker.dependencies summary vectors vocabs.parser words 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 ; FROM: delegate.private => group-words slot-group-words ;
QUALIFIED: math QUALIFIED: math
IN: classes.struct IN: classes.struct
@ -426,6 +426,6 @@ FUNCTOR-SYNTAX: STRUCT:
[ parse-struct-slots` ] [ ] while [ parse-struct-slots` ] [ ] while
[ >array define-struct-class ] append! ; [ >array define-struct-class ] append! ;
USING: vocabs vocabs.loader ; USING: vocabs.loader ;
{ "classes.struct" "prettyprint" } "classes.struct.prettyprint" require-when { "classes.struct" "prettyprint" } "classes.struct.prettyprint" require-when

View File

@ -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 IN: command-line
HELP: run-bootstrap-init HELP: run-bootstrap-init

View File

@ -1069,7 +1069,7 @@ M: ppc immediate-arithmetic? ( n -- ? ) -32768 32767 between? ;
M: ppc immediate-bitwise? ( n -- ? ) 0 65535 between? ; M: ppc immediate-bitwise? ( n -- ? ) 0 65535 between? ;
M: ppc immediate-store? ( n -- ? ) immediate-comparand? ; M: ppc immediate-store? ( n -- ? ) immediate-comparand? ;
USE: vocabs.loader USE: vocabs
{ {
{ [ os linux? ] [ { [ os linux? ] [
{ {

View File

@ -143,7 +143,7 @@ M: x86.64 struct-return-on-stack? f ;
! x86-64. ! x86-64.
enable-alien-4-intrinsics enable-alien-4-intrinsics
USE: vocabs.loader USE: vocabs
{ {
{ [ os unix? ] [ "cpu.x86.64.unix" require ] } { [ os unix? ] [ "cpu.x86.64.unix" require ] }

View File

@ -6,7 +6,7 @@ cpu.x86.features cpu.x86.features.private cpu.architecture kernel
kernel.private math memory namespaces make sequences words system kernel.private math memory namespaces make sequences words system
layouts combinators math.order math.vectors fry locals compiler.constants layouts combinators math.order math.vectors fry locals compiler.constants
byte-arrays io macros quotations classes.algebra compiler byte-arrays io macros quotations classes.algebra compiler
compiler.units init vm vocabs.loader compiler.units init vm vocabs
compiler.cfg.registers compiler.cfg.registers
compiler.cfg.instructions compiler.cfg.instructions
compiler.cfg.intrinsics compiler.cfg.intrinsics

View File

@ -1,6 +1,6 @@
USING: definitions io.launcher kernel parser words sequences math USING: definitions io.launcher kernel parser words sequences math
math.parser namespaces editors make system combinators.short-circuit math.parser namespaces editors make system combinators.short-circuit
fry threads vocabs.loader ; fry threads vocabs ;
IN: editors.emacs IN: editors.emacs
SINGLETON: emacsclient SINGLETON: emacsclient

View File

@ -1,5 +1,5 @@
USING: editors.vim io.backend kernel namespaces system USING: editors.vim io.backend kernel namespaces system
vocabs.loader editors ; vocabs editors ;
IN: editors.gvim IN: editors.gvim
! This code builds on the code in editors.vim; see there for ! This code builds on the code in editors.vim; see there for

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman. ! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: assocs combinators kernel sequences splitting system USING: assocs combinators kernel sequences splitting system
vocabs.loader init ; vocabs init vocabs.loader ;
IN: environment IN: environment
HOOK: os-env os ( key -- value ) HOOK: os-env os ( key -- value )

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.data alien.strings USING: alien alien.c-types alien.data alien.strings
alien.syntax kernel layouts sequences system unix 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 ; combinators alien.accessors unix.ffi ;
IN: environment.unix IN: environment.unix

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
IN: furnace IN: furnace
USE: vocabs.loader USE: vocabs
"furnace.actions" require "furnace.actions" require
"furnace.alloy" require "furnace.alloy" require
"furnace.asides" require "furnace.asides" require

View File

@ -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 IN: furnace.json
HELP: <json-content> HELP: <json-content>

View File

@ -1,5 +1,5 @@
USING: arrays accessors continuations kernel math system USING: arrays accessors continuations kernel math system
sequences namespaces init vocabs vocabs.loader combinators ; sequences namespaces init vocabs combinators ;
FROM: namespaces => change-global ; FROM: namespaces => change-global ;
IN: game.input IN: game.input

View File

@ -3,7 +3,7 @@
USING: alien alien.c-types alien.destructors alien.libraries USING: alien alien.c-types alien.destructors alien.libraries
alien.syntax cairo.ffi classes.struct combinators alien.syntax cairo.ffi classes.struct combinators
gobject-introspection gobject-introspection.standard-types gobject-introspection gobject-introspection.standard-types
kernel system vocabs.loader ; kernel system vocabs vocabs.loader ;
IN: gdk.ffi IN: gdk.ffi
<< <<

View File

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

View File

@ -3,7 +3,7 @@
USING: alien alien.data alien.libraries alien.syntax USING: alien alien.data alien.libraries alien.syntax
combinators gio.ffi glib.ffi gobject-introspection combinators gio.ffi glib.ffi gobject-introspection
gobject-introspection.standard-types kernel libc gobject-introspection.standard-types kernel libc
sequences system vocabs.loader ; sequences system vocabs ;
IN: gdk.pixbuf.ffi IN: gdk.pixbuf.ffi
<< <<

View File

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

View File

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

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.destructors alien.libraries alien.syntax kernel 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 IN: gobject.ffi
! these two are needed for the definition of GError and others. ! these two are needed for the definition of GError and others.

View File

@ -3,7 +3,7 @@
USING: alien alien.c-types alien.destructors alien.libraries USING: alien alien.c-types alien.destructors alien.libraries
alien.syntax combinators gobject-introspection alien.syntax combinators gobject-introspection
gobject-introspection.standard-types kernel pango.ffi system gobject-introspection.standard-types kernel pango.ffi system
vocabs.loader ; vocabs ;
IN: gtk.ffi IN: gtk.ffi
<< <<

View File

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

View File

@ -29,7 +29,8 @@ html.streams
html html
mime.types mime.types
math.order math.order
xml.writer ; xml.writer
vocabs ;
FROM: mime.multipart => parse-multipart ; FROM: mime.multipart => parse-multipart ;
IN: http.server IN: http.server

View File

@ -1,6 +1,6 @@
! Copyright (C) 2004, 2010 Mackenzie Straight, Doug Coleman. ! Copyright (C) 2004, 2010 Mackenzie Straight, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! 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 IN: io.backend.windows
"io.files.windows" require "io.files.windows" require

View File

@ -2,7 +2,8 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays combinators destructors io io.backend USING: accessors arrays combinators destructors io io.backend
io.encodings.binary io.files io.files.types io.pathnames 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 IN: io.directories
: set-current-directory ( path -- ) : set-current-directory ( path -- )

View File

@ -2,7 +2,8 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs continuations deques dlists fry USING: accessors arrays assocs continuations deques dlists fry
io.backend io.directories io.files.info io.pathnames kernel 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 IN: io.directories.search
: qualified-directory-entries ( path -- seq ) : qualified-directory-entries ( path -- seq )

View File

@ -5,7 +5,7 @@ combinators continuations destructors fry io io.backend
io.directories io.encodings.binary io.directories io.encodings.binary
io.encodings.utf8 io.files io.pathnames io.files.types kernel io.encodings.utf8 io.files io.pathnames io.files.types kernel
math.bitwise sequences system unix unix.stat vocabs.loader 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 IN: io.directories.unix
CONSTANT: file-mode OCT: 0666 CONSTANT: file-mode OCT: 0666

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman, Eduardo Cavazos. ! Copyright (C) 2008 Doug Coleman, Eduardo Cavazos.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel system sequences combinators 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 IN: io.files.info
! File info ! File info

View File

@ -5,7 +5,7 @@ calendar.unix classes.struct combinators
combinators.short-circuit io.backend io.directories combinators.short-circuit io.backend io.directories
io.files.info io.files.types kernel literals math math.bitwise io.files.info io.files.types kernel literals math math.bitwise
sequences specialized-arrays strings system unix unix.ffi 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 IN: io.files.info.unix
SPECIALIZED-ARRAY: timeval SPECIALIZED-ARRAY: timeval

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Slava Pestov, Doug Coleman. ! Copyright (C) 2008 Slava Pestov, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors io.backend io.files.info io.files.types 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 IN: io.files.links
HOOK: make-link os ( target symlink -- ) HOOK: make-link os ( target symlink -- )

View File

@ -3,7 +3,7 @@
USING: arrays combinators continuations fry io io.backend USING: arrays combinators continuations fry io io.backend
io.directories io.directories.hierarchy io.files io.pathnames io.directories io.directories.hierarchy io.files io.pathnames
kernel locals math math.bitwise math.parser namespaces random kernel locals math math.bitwise math.parser namespaces random
sequences system vocabs.loader random.data ; sequences system vocabs random.data ;
IN: io.files.unique IN: io.files.unique
HOOK: (touch-unique-file) io-backend ( path -- ) HOOK: (touch-unique-file) io-backend ( path -- )

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008, 2011 Slava Pestov. ! Copyright (C) 2008, 2011 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: system kernel namespaces strings hashtables sequences 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 accessors concurrency.flags destructors environment fry io
io.encodings.ascii io.backend io.timeouts io.pipes io.encodings.ascii io.backend io.timeouts io.pipes
io.pipes.private io.encodings io.encodings.utf8 io.pipes.private io.encodings io.encodings.utf8

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: continuations destructors io.files io.files.info USING: continuations destructors io.files io.files.info
io.backend kernel quotations system alien alien.accessors 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 ; math ;
IN: io.mmap IN: io.mmap

View File

@ -3,7 +3,7 @@
USING: io.backend kernel continuations destructors namespaces USING: io.backend kernel continuations destructors namespaces
sequences assocs hashtables sorting arrays threads boxes sequences assocs hashtables sorting arrays threads boxes
io.timeouts accessors concurrency.mailboxes fry io.timeouts accessors concurrency.mailboxes fry
system vocabs.loader combinators ; system vocabs combinators ;
IN: io.monitors IN: io.monitors
HOOK: init-monitors io-backend ( -- ) HOOK: init-monitors io-backend ( -- )

View File

@ -3,7 +3,7 @@
USING: io.encodings io.backend io.ports io.streams.duplex USING: io.encodings io.backend io.ports io.streams.duplex
io splitting grouping sequences namespaces kernel io splitting grouping sequences namespaces kernel
destructors math concurrency.combinators accessors fry destructors math concurrency.combinators accessors fry
arrays continuations quotations system vocabs.loader combinators ; arrays continuations quotations system vocabs combinators ;
IN: io.pipes IN: io.pipes
TUPLE: pipe in out ; TUPLE: pipe in out ;

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel namespaces continuations destructors io USING: accessors kernel namespaces continuations destructors io
debugger io.sockets io.sockets.private sequences summary 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 IN: io.sockets.secure
SYMBOL: secure-socket-timeout SYMBOL: secure-socket-timeout

View File

@ -8,7 +8,7 @@ grouping init io.backend io.binary io.encodings
io.encodings.ascii io.encodings.binary io.pathnames io.ports io.encodings.ascii io.encodings.binary io.pathnames io.ports
io.streams.duplex kernel libc locals math math.parser memoize io.streams.duplex kernel libc locals math math.parser memoize
namespaces parser present sequences splitting strings summary namespaces parser present sequences splitting strings summary
system values vocabs.loader vocabs.parser system values vocabs.loader vocabs.parser vocabs
sequences.private ; sequences.private ;
IN: io.sockets IN: io.sockets

View File

@ -6,7 +6,7 @@ destructors generic init io.backend io.backend.unix io.binary
io.encodings.utf8 io.files.private io.pathnames io.encodings.utf8 io.files.private io.pathnames
io.sockets.private io.streams.duplex kernel libc locals math io.sockets.private io.streams.duplex kernel libc locals math
math.parser sequences system threads unix unix.ffi math.parser sequences system threads unix unix.ffi
vocabs.loader ; vocabs ;
EXCLUDE: namespaces => bind ; EXCLUDE: namespaces => bind ;
EXCLUDE: io => read write ; EXCLUDE: io => read write ;
EXCLUDE: io.sockets => accept ; EXCLUDE: io.sockets => accept ;

View File

@ -1,7 +1,7 @@
! Copyright (C) 2011 Doug Coleman. ! Copyright (C) 2011 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: combinators io.pathnames kernel sequences system USING: combinators io.pathnames kernel sequences system
vocabs.loader ; vocabs ;
IN: io.standard-paths IN: io.standard-paths
HOOK: find-native-bundle os ( string -- path ) HOOK: find-native-bundle os ( string -- path )

View File

@ -1,4 +1,4 @@
USING: kernel vocabs.loader ; USING: kernel vocabs ;
IN: json IN: json
SINGLETON: json-null SINGLETON: json-null

View File

@ -1,5 +1,5 @@
USING: help.markup help.syntax kernel io system prettyprint USING: help.markup help.syntax kernel io system prettyprint
continuations quotations vocabs.loader parser ; continuations quotations vocabs parser vocabs.loader ;
IN: listener IN: listener
ARTICLE: "listener-watch" "Watching variables in the listener" ARTICLE: "listener-watch" "Watching variables in the listener"

View File

@ -142,7 +142,7 @@ SYNTAX: LOG:
'[ 1array stack>message _ _ log-message ] '[ 1array stack>message _ _ log-message ]
( message -- ) define-declared ; ( message -- ) define-declared ;
USE: vocabs.loader USE: vocabs
"logging.parser" require "logging.parser" require
"logging.analysis" require "logging.analysis" require

View File

@ -2,7 +2,7 @@
USING: alien.syntax arrays assocs biassocs combinators USING: alien.syntax arrays assocs biassocs combinators
combinators.short-circuit continuations generalizations kernel combinators.short-circuit continuations generalizations kernel
literals locals math math.bitwise sequences sets system literals locals math math.bitwise sequences sets system
vocabs.loader ; vocabs ;
IN: math.floats.env IN: math.floats.env
SINGLETONS: SINGLETONS:

View File

@ -1,7 +1,7 @@
USING: accessors alien.c-types arrays assocs biassocs USING: accessors alien.c-types arrays assocs biassocs
classes.struct combinators cpu.x86.features kernel literals classes.struct combinators cpu.x86.features kernel literals
math math.bitwise math.floats.env math.floats.env.private math math.bitwise math.floats.env math.floats.env.private
system vocabs.loader ; system vocabs ;
IN: math.floats.env.x86 IN: math.floats.env.x86
STRUCT: sse-env STRUCT: sse-env

View File

@ -4,7 +4,7 @@ sequences.cords cpu.architecture fry generalizations grouping
kernel libc locals macros math math.libm math.order kernel libc locals macros math math.libm math.order
math.ranges math.vectors sequences sequences.generalizations math.ranges math.vectors sequences sequences.generalizations
sequences.private sequences.unrolled sequences.unrolled.private sequences.private sequences.unrolled sequences.unrolled.private
specialized-arrays vocabs.loader words effects.parser locals.parser ; specialized-arrays vocabs words effects.parser locals.parser ;
QUALIFIED-WITH: alien.c-types c QUALIFIED-WITH: alien.c-types c
SPECIALIZED-ARRAYS: SPECIALIZED-ARRAYS:
c:char c:short c:int c:longlong c:char c:short c:int c:longlong

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax cairo.ffi combinators USING: alien alien.libraries alien.syntax cairo.ffi combinators
kernel gobject-introspection system vocabs.loader ; kernel gobject-introspection system vocabs ;
IN: pango.cairo.ffi IN: pango.cairo.ffi
<< <<

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.destructors alien.libraries USING: alien alien.c-types alien.destructors alien.libraries
alien.syntax combinators kernel gobject-introspection alien.syntax combinators kernel gobject-introspection
gobject-introspection.standard-types system vocabs.loader ; gobject-introspection.standard-types system vocabs ;
IN: pango.ffi IN: pango.ffi
<< <<

View File

@ -4,7 +4,7 @@ USING: accessors alien.c-types alien.data arrays assocs
byte-arrays byte-vectors combinators fry io.backend io.binary byte-arrays byte-vectors combinators fry io.backend io.binary
kernel locals math math.bitwise math.constants math.functions kernel locals math math.bitwise math.constants math.functions
math.order math.ranges namespaces sequences sequences.private math.order math.ranges namespaces sequences sequences.private
sets summary system vocabs.loader ; sets summary system vocabs ;
IN: random IN: random
SYMBOL: system-random-generator SYMBOL: system-random-generator

View File

@ -12,7 +12,7 @@ vectors byte-arrays quotations hashtables hashtables.identity
assocs help.syntax help.markup splitting io.streams.byte-array assocs help.syntax help.markup splitting io.streams.byte-array
io.encodings.string io.encodings.utf8 io.encodings.binary io.encodings.string io.encodings.utf8 io.encodings.binary
combinators accessors locals prettyprint compiler.units combinators accessors locals prettyprint compiler.units
sequences.private classes.tuple.private vocabs.loader ; sequences.private classes.tuple.private vocabs ;
IN: serialize IN: serialize
GENERIC: (serialize) ( obj -- ) GENERIC: (serialize) ( obj -- )

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman. ! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: combinators io kernel math math.parser system USING: combinators io kernel math math.parser system
vocabs.loader ; vocabs ;
IN: system-info IN: system-info
HOOK: os-version os ( -- version ) HOOK: os-version os ( -- version )

View File

@ -1,6 +1,6 @@
! (c)2010 Joe Groff bsd license ! (c)2010 Joe Groff bsd license
USING: alien.libraries io.pathnames io.pathnames.private kernel USING: alien.libraries io.pathnames io.pathnames.private kernel
system vocabs.loader ; system vocabs ;
IN: tools.deploy.libraries IN: tools.deploy.libraries
HOOK: find-library-file os ( file -- path ) HOOK: find-library-file os ( file -- path )

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.data arrays byte-arrays compiler.units destructors USING: alien alien.data arrays byte-arrays compiler.units destructors
io kernel libc math quotations sequences stack-checker system tr io kernel libc math quotations sequences stack-checker system tr
vocabs.loader words ; vocabs words ;
IN: tools.disassembler IN: tools.disassembler
GENERIC: disassemble ( obj -- ) GENERIC: disassemble ( obj -- )

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays calendar combinators fry io io.directories USING: accessors arrays calendar combinators fry io io.directories
io.files.info kernel math math.parser prettyprint sequences system io.files.info kernel math math.parser prettyprint sequences system
vocabs.loader sorting.slots calendar.format ; vocabs sorting.slots calendar.format ;
IN: tools.files IN: tools.files
<PRIVATE <PRIVATE

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors assocs cache combinators images images.loader USING: accessors assocs cache combinators images images.loader
kernel memoize namespaces opengl opengl.gl opengl.textures system kernel memoize namespaces opengl opengl.gl opengl.textures system
ui.gadgets.worlds vocabs.loader ; ui.gadgets.worlds vocabs.loader vocabs ;
IN: ui.images IN: ui.images
TUPLE: image-name path ; TUPLE: image-name path ;

View File

@ -87,7 +87,7 @@ M: array draw-text
] with each ] with each
] do-matrix ; ] do-matrix ;
USING: vocabs.loader system combinators ; USING: vocabs system combinators ;
{ {
{ [ os macosx? ] [ "core-text" ] } { [ os macosx? ] [ "core-text" ] }

View File

@ -1,7 +1,7 @@
! Copyright (C) 2005, 2006 Slava Pestov. ! Copyright (C) 2005, 2006 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien.c-types alien.syntax classes.struct combinators USING: alien.c-types alien.syntax classes.struct combinators
system unix.types vocabs.loader ; system unix.types vocabs ;
IN: unix.ffi IN: unix.ffi
CONSTANT: MAXPATHLEN 1024 CONSTANT: MAXPATHLEN 1024

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien.c-types alien.syntax system sequences vocabs.loader words USING: alien.c-types alien.syntax system sequences vocabs.loader words
accessors ; accessors vocabs ;
IN: unix.kqueue IN: unix.kqueue
<< "unix.kqueue." os name>> append require >> << "unix.kqueue." os name>> append require >>

View File

@ -1,4 +1,4 @@
USING: alien.syntax layouts combinators vocabs.loader ; USING: alien.syntax layouts combinators vocabs ;
IN: unix.stat IN: unix.stat
cell-bits cell-bits

View File

@ -1,4 +1,4 @@
USING: layouts combinators vocabs.loader alien.syntax ; USING: layouts combinators vocabs alien.syntax ;
IN: unix.stat IN: unix.stat
cell-bits { cell-bits {

View File

@ -1,5 +1,5 @@
USING: kernel system combinators alien.syntax alien.c-types USING: kernel system combinators alien.syntax alien.c-types
math vocabs.loader unix classes.struct ; math vocabs vocabs.loader unix classes.struct ;
IN: unix.stat IN: unix.stat
! File Types ! File Types

View File

@ -1,6 +1,6 @@
! Copyright (C) 2008 Doug Coleman. ! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: combinators system vocabs.loader ; USING: combinators system vocabs ;
IN: unix.statvfs IN: unix.statvfs
os { os {

View File

@ -1,4 +1,4 @@
USING: alien.syntax alien.c-types combinators layouts vocabs.loader ; USING: alien.syntax alien.c-types combinators layouts vocabs ;
IN: unix.types IN: unix.types
! NetBSD 4.0 ! NetBSD 4.0

View File

@ -1,4 +1,4 @@
USING: kernel system alien.c-types alien.syntax combinators vocabs.loader ; USING: kernel system alien.c-types alien.syntax combinators vocabs ;
IN: unix.types IN: unix.types
TYPEDEF: char int8_t TYPEDEF: char int8_t

View File

@ -4,7 +4,7 @@ USING: accessors alien alien.c-types alien.strings assocs
byte-arrays classes.struct combinators combinators.short-circuit byte-arrays classes.struct combinators combinators.short-circuit
continuations fry grouping io.encodings.utf8 kernel math continuations fry grouping io.encodings.utf8 kernel math
math.parser namespaces sequences splitting strings system unix math.parser namespaces sequences splitting strings system unix
unix.ffi vocabs.loader ; unix.ffi vocabs ;
QUALIFIED: unix.ffi QUALIFIED: unix.ffi
IN: unix.users IN: unix.users

View File

@ -3,7 +3,7 @@
USING: alien.c-types alien.data alien.syntax combinators USING: alien.c-types alien.data alien.syntax combinators
continuations io.encodings.string io.encodings.utf8 kernel continuations io.encodings.string io.encodings.utf8 kernel
sequences strings calendar system accessors unix unix.time sequences strings calendar system accessors unix unix.time
unix.ffi calendar.unix vocabs.loader classes.struct ; unix.ffi calendar.unix vocabs classes.struct ;
IN: unix.utmpx IN: unix.utmpx
CONSTANT: EMPTY 0 CONSTANT: EMPTY 0

View File

@ -1,5 +1,5 @@
USING: help.markup help.syntax strings vocabs.loader USING: help.markup help.syntax strings vocabs.loader
sequences ; sequences vocabs ;
IN: vocabs.hierarchy IN: vocabs.hierarchy
ARTICLE: "vocabs.hierarchy" "Vocabulary hierarchy tools" ARTICLE: "vocabs.hierarchy" "Vocabulary hierarchy tools"

View File

@ -70,8 +70,6 @@ SYMBOL: check-vocab-hook
check-vocab-hook [ [ drop ] ] initialize check-vocab-hook [ [ drop ] ] initialize
DEFER: require
<PRIVATE <PRIVATE
SYMBOL: require-when-vocabs SYMBOL: require-when-vocabs
@ -110,9 +108,6 @@ require-when-table [ V{ } clone ] initialize
PRIVATE> PRIVATE>
: require ( vocab -- )
load-vocab drop ;
: require-when ( if then -- ) : require-when ( if then -- )
over [ lookup-vocab ] all? [ over [ lookup-vocab ] all? [
require drop require drop

View File

@ -1,4 +1,4 @@
IN: vocabs.laoder.test.f IN: vocabs.laoder.test.f
USE: vocabs.loader USE: vocabs
"vocabs.loader.test.g" require "vocabs.loader.test.g" require

View File

@ -1,7 +1,7 @@
! Copyright (C) 2007, 2009 Eduardo Cavazos, Slava Pestov. ! Copyright (C) 2007, 2009 Eduardo Cavazos, Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors assocs strings kernel sorting namespaces USING: accessors assocs strings kernel sorting namespaces
sequences definitions sets combinators ; sequences definitions sets combinators splitting ;
IN: vocabs IN: vocabs
SYMBOL: dictionary SYMBOL: dictionary
@ -127,9 +127,33 @@ M: vocab-spec forget* forget-vocab ;
SYMBOL: load-vocab-hook ! ( name -- vocab ) SYMBOL: load-vocab-hook ! ( name -- vocab )
: load-vocab ( name -- vocab ) load-vocab-hook get call( name -- vocab ) ;
PREDICATE: runnable-vocab < vocab PREDICATE: runnable-vocab < vocab
vocab-main >boolean ; vocab-main >boolean ;
INSTANCE: vocab-spec definition INSTANCE: vocab-spec definition
: call-load-vocab-hook ( name -- )
load-vocab-hook get call( name -- vocab ) drop ;
GENERIC: require ( object -- )
M: vocab require name>> require ;
! When calling "foo.private" require, load "foo" instead,
! but only when "foo.private" does not exist.
! The reason for this is that stage1 bootstrap starts out with some .private
! vocabs that contain primitives, and loading the public vocabs would cause
! circularity issues.
M: string require ( vocab -- )
dup ".private" ?tail [
over lookup-vocab [
2drop
] [
nip call-load-vocab-hook
] if
] [
nip call-load-vocab-hook
] if ;
: load-vocab ( name -- vocab )
[ require ] [ lookup-vocab ] bi ;

View File

@ -1,6 +1,6 @@
! (c)2009 Joe Groff bsd license ! (c)2009 Joe Groff bsd license
USING: ascii assocs io.pathnames kernel namespaces USING: ascii assocs io.pathnames kernel namespaces
vocabs.loader ; vocabs ;
IN: audio.loader IN: audio.loader
ERROR: unknown-audio-extension extension ; ERROR: unknown-audio-extension extension ;

View File

@ -1,6 +1,6 @@
! Copyright (C) 2010 Sascha Matzke. ! Copyright (C) 2010 Sascha Matzke.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: vocabs.loader ; USING: vocabs ;
IN: bson IN: bson

View File

@ -1,7 +1,7 @@
! Copyright (C) 2011 Anton Gorenko. ! Copyright (C) 2011 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: clutter.cally.ffi IN: clutter.cally.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel opengl.gl system vocabs.loader ; gobject-introspection kernel opengl.gl system vocabs ;
IN: clutter.cogl.ffi IN: clutter.cogl.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax cairo.ffi combinators USING: alien alien.libraries alien.syntax cairo.ffi combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: clutter.ffi IN: clutter.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: clutter.gtk.ffi IN: clutter.gtk.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: clutter.json.ffi IN: clutter.json.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman. ! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: math.primes kernel math math.functions math.primes USING: math.primes kernel math math.functions namespaces
namespaces sequences accessors ; sequences accessors ;
IN: crypto.rsa IN: crypto.rsa
! The private key is the only secret. ! The private key is the only secret.

View File

@ -6,7 +6,7 @@ io io.binary io.encodings.binary io.encodings.string
io.encodings.utf8 io.sockets io.sockets.private io.encodings.utf8 io.sockets io.sockets.private
io.streams.byte-array io.timeouts kernel make math math.bitwise io.streams.byte-array io.timeouts kernel make math math.bitwise
math.parser namespaces nested-comments random sequences math.parser namespaces nested-comments random sequences
slots.syntax splitting system vectors vocabs.loader strings slots.syntax splitting system vectors vocabs strings
ascii ; ascii ;
IN: dns IN: dns

View File

@ -4,7 +4,7 @@
USING: accessors assocs compiler.units continuations fuel.eval fuel.help USING: accessors assocs compiler.units continuations fuel.eval fuel.help
fuel.remote fuel.xref help.topics io.pathnames kernel namespaces parser fuel.remote fuel.xref help.topics io.pathnames kernel namespaces parser
sequences tools.scaffold vocabs.loader vocabs.parser words vocabs.files sequences tools.scaffold vocabs.loader vocabs.parser words vocabs.files
vocabs.metadata ; vocabs.metadata vocabs ;
IN: fuel IN: fuel

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: gstreamer.base.ffi IN: gstreamer.base.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: gstreamer.controller.ffi IN: gstreamer.controller.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.libraries alien.syntax combinators USING: alien alien.c-types alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: gstreamer.ffi IN: gstreamer.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko. ! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.libraries alien.syntax combinators USING: alien alien.libraries alien.syntax combinators
gobject-introspection kernel system vocabs.loader ; gobject-introspection kernel system vocabs ;
IN: gstreamer.net.ffi IN: gstreamer.net.ffi
<< <<

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 John Benediktsson ! Copyright (C) 2010 John Benediktsson
! See http://factorcode.org/license.txt for BSD license ! See http://factorcode.org/license.txt for BSD license
USING: combinators system vocabs.loader ; USING: combinators system vocabs ;
IN: io.files.trash IN: io.files.trash

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien.c-types assocs combinators destructors USING: accessors alien.c-types assocs combinators destructors
kernel math math.bitwise math.parser sequences summary system kernel math math.bitwise math.parser sequences summary system
vocabs.loader io ; vocabs io ;
IN: io.serial IN: io.serial
TUPLE: serial-port < disposable stream path baud TUPLE: serial-port < disposable stream path baud

View File

@ -1,6 +1,6 @@
! Copyright (C) 2008 Doug Coleman. ! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: combinators system vocabs.loader ; USING: combinators system vocabs ;
IN: io.serial.unix.termios IN: io.serial.unix.termios
{ {

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien.c-types alien.syntax alien.data USING: accessors alien.c-types alien.syntax alien.data
classes.struct combinators io.ports io.streams.duplex classes.struct combinators io.ports io.streams.duplex
system kernel math math.bitwise vocabs.loader io.serial system kernel math math.bitwise vocabs io.serial
io.serial.unix.termios io.backend.unix unix unix.ffi io.serial.unix.termios io.backend.unix unix unix.ffi
literals ; literals ;
IN: io.serial.unix IN: io.serial.unix

View File

@ -1,4 +1,4 @@
USING: vocabs.loader ; USING: vocabs ;
IN: mongodb IN: mongodb

View File

@ -1,6 +1,6 @@
! Copyright (C) 2009 blei, Doug Coleman. ! Copyright (C) 2009 blei, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: kernel sequences math locals make multiline ; USING: kernel sequences math locals make ;
IN: nested-comments IN: nested-comments
: (count-subsequences) ( count substring string n -- count' ) : (count-subsequences) ( count substring string n -- count' )

View File

@ -1,7 +1,7 @@
! Copyright (C) 2007 Chris Double. ! Copyright (C) 2007 Chris Double.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: kernel accessors arrays alien system combinators USING: kernel accessors arrays alien system combinators
alien.syntax namespaces alien.c-types sequences vocabs.loader alien.syntax namespaces alien.c-types sequences vocabs
shuffle openal openal.alut.backend alien.libraries generalizations shuffle openal openal.alut.backend alien.libraries generalizations
specialized-arrays alien.destructors ; specialized-arrays alien.destructors ;
FROM: alien.c-types => float short ; FROM: alien.c-types => float short ;

View File

@ -1,6 +1,6 @@
! Copyright (C) 2010 Doug Coleman. ! Copyright (C) 2010 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: combinators kernel system vocabs.loader ; USING: combinators kernel system vocabs ;
IN: time IN: time
HOOK: set-time os ( timestamp -- ) HOOK: set-time os ( timestamp -- )

View File

@ -3,7 +3,7 @@
USING: alien alien.c-types kernel math namespaces USING: alien alien.c-types kernel math namespaces
cpu.architecture cpu.arm.architecture cpu.arm.assembler cpu.architecture cpu.arm.architecture cpu.arm.assembler
cpu.arm.intrinsics generator generator.registers continuations cpu.arm.intrinsics generator generator.registers continuations
compiler io vocabs.loader sequences system ; compiler io vocabs sequences system ;
! EABI passes floats in integer registers. ! EABI passes floats in integer registers.
[ alien-float ] [ alien-float ]