Module format change
parent
e4684cb219
commit
2a1167ecec
|
@ -1,4 +1,5 @@
|
||||||
PROVIDE: contrib/benchmark { } {
|
PROVIDE: contrib/benchmark
|
||||||
|
{ +tests+ {
|
||||||
"empty-loop.factor"
|
"empty-loop.factor"
|
||||||
"fac.factor"
|
"fac.factor"
|
||||||
"fib.factor"
|
"fib.factor"
|
||||||
|
@ -10,4 +11,4 @@ PROVIDE: contrib/benchmark { } {
|
||||||
"vectors.factor"
|
"vectors.factor"
|
||||||
"prettyprint.factor"
|
"prettyprint.factor"
|
||||||
"iteration.factor"
|
"iteration.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
USING: alien ;
|
PROVIDE: contrib/cairo { +files+ { "cairo.factor" } } ;
|
||||||
|
|
||||||
PROVIDE: contrib/cairo { "cairo.factor" } ;
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
USE: kernel
|
USE: kernel
|
||||||
|
|
||||||
PROVIDE: contrib/calendar {
|
PROVIDE: contrib/calendar
|
||||||
|
{ +files+ {
|
||||||
{ "os-unix.factor" [ unix? ] }
|
{ "os-unix.factor" [ unix? ] }
|
||||||
{ "os-win32.factor" [ windows? ] }
|
{ "os-win32.factor" [ windows? ] }
|
||||||
"calendar.factor"
|
"calendar.factor"
|
||||||
} { "test/calendar.factor" } ;
|
} }
|
||||||
|
{ +tests+ { "test/calendar.factor" } } ;
|
||||||
|
|
|
@ -3,9 +3,11 @@
|
||||||
!
|
!
|
||||||
REQUIRES: contrib/dlists contrib/serialize contrib/match ;
|
REQUIRES: contrib/dlists contrib/serialize contrib/match ;
|
||||||
|
|
||||||
PROVIDE: contrib/concurrency {
|
PROVIDE: contrib/concurrency
|
||||||
|
{ +files+ {
|
||||||
"concurrency.factor"
|
"concurrency.factor"
|
||||||
"concurrency.facts"
|
"concurrency.facts"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"concurrency-tests.factor"
|
"concurrency-tests.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
REQUIRES: contrib/math ;
|
REQUIRES: contrib/math ;
|
||||||
|
|
||||||
PROVIDE: contrib/crypto {
|
PROVIDE: contrib/crypto
|
||||||
|
{ +files+ {
|
||||||
|
|
||||||
"common.factor"
|
"common.factor"
|
||||||
"timing.factor"
|
"timing.factor"
|
||||||
|
@ -25,7 +26,8 @@ PROVIDE: contrib/crypto {
|
||||||
! Public key
|
! Public key
|
||||||
"rsa.factor"
|
"rsa.factor"
|
||||||
|
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/common.factor"
|
"test/common.factor"
|
||||||
"test/md5.factor"
|
"test/md5.factor"
|
||||||
"test/sha1.factor"
|
"test/sha1.factor"
|
||||||
|
@ -37,4 +39,4 @@ PROVIDE: contrib/crypto {
|
||||||
"test/barrett.factor"
|
"test/barrett.factor"
|
||||||
"test/montgomery.factor"
|
"test/montgomery.factor"
|
||||||
"test/blum-blum-shub.factor"
|
"test/blum-blum-shub.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
REQUIRES: contrib/process contrib/concurrency contrib/x11
|
REQUIRES: contrib/process contrib/concurrency contrib/x11
|
||||||
contrib/vars ;
|
contrib/vars ;
|
||||||
|
|
||||||
PROVIDE: contrib/factory { "factory.factor" } ;
|
PROVIDE: contrib/factory { +files+ { "factory.factor" } } ;
|
||||||
|
|
||||||
USE: factory
|
USE: factory
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
REQUIRES: contrib/furnace ;
|
REQUIRES: contrib/furnace ;
|
||||||
|
|
||||||
PROVIDE: contrib/furnace-pastebin { "pastebin.factor" } ;
|
PROVIDE: contrib/furnace-pastebin
|
||||||
|
{ +files+ { "pastebin.factor" } } ;
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
REQUIRES: contrib/httpd ;
|
REQUIRES: contrib/httpd ;
|
||||||
|
|
||||||
PROVIDE: contrib/furnace {
|
PROVIDE: contrib/furnace
|
||||||
|
{ +files+ {
|
||||||
"validator.factor"
|
"validator.factor"
|
||||||
"responder.factor"
|
"responder.factor"
|
||||||
"tools/help.factor"
|
"tools/help.factor"
|
||||||
"tools/browser.factor"
|
"tools/browser.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/validator.factor"
|
"test/validator.factor"
|
||||||
"test/responder.factor"
|
"test/responder.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
PROVIDE: contrib/gap-buffer
|
PROVIDE: contrib/gap-buffer
|
||||||
{ "circular.factor" "gap-buffer.factor" }
|
{ +files+ { "circular.factor" "gap-buffer.factor" } }
|
||||||
{ "circular-tests.factor" "gap-buffer-tests.factor" } ;
|
{ +tests+ { "circular-tests.factor" "gap-buffer-tests.factor" } } ;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
PROVIDE: contrib/hexdump {
|
PROVIDE: contrib/hexdump
|
||||||
"hexdump.factor"
|
{ +files+ { "hexdump.factor" } }
|
||||||
} {
|
{ +tests+ { "test/hexdump.factor" } } ;
|
||||||
"test/hexdump.factor"
|
|
||||||
} ;
|
|
||||||
|
|
|
@ -2,7 +2,8 @@ USING: io ;
|
||||||
|
|
||||||
REQUIRES: contrib/calendar contrib/http contrib/xml ;
|
REQUIRES: contrib/calendar contrib/http contrib/xml ;
|
||||||
|
|
||||||
PROVIDE: contrib/httpd {
|
PROVIDE: contrib/httpd
|
||||||
|
{ +files+ {
|
||||||
"mime.factor"
|
"mime.factor"
|
||||||
"html-tags.factor"
|
"html-tags.factor"
|
||||||
"responder.factor"
|
"responder.factor"
|
||||||
|
@ -14,12 +15,13 @@ PROVIDE: contrib/httpd {
|
||||||
"embedded.factor"
|
"embedded.factor"
|
||||||
"file-responder.factor"
|
"file-responder.factor"
|
||||||
"default-responders.factor"
|
"default-responders.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/html.factor"
|
"test/html.factor"
|
||||||
"test/http-client.factor"
|
"test/http-client.factor"
|
||||||
"test/httpd.factor"
|
"test/httpd.factor"
|
||||||
"test/url-encoding.factor"
|
"test/url-encoding.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
||||||
USE: httpd
|
USE: httpd
|
||||||
MAIN: contrib/httpd 8888 httpd ;
|
MAIN: contrib/httpd 8888 httpd ;
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
PROVIDE: contrib/jedit { "jedit.factor" "jedit.facts" } { } ;
|
PROVIDE: contrib/jedit
|
||||||
|
{ +files+ { "jedit.factor" "jedit.facts" } } ;
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
! ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
! ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
!
|
!
|
||||||
REQUIRES: contrib/parser-combinators ;
|
REQUIRES: contrib/parser-combinators ;
|
||||||
PROVIDE: contrib/json {
|
PROVIDE: contrib/json
|
||||||
|
{ +files+ {
|
||||||
"json-reader.factor"
|
"json-reader.factor"
|
||||||
"json-writer.factor"
|
"json-writer.factor"
|
||||||
"json.facts"
|
"json.facts"
|
||||||
} {
|
} } ;
|
||||||
} ;
|
|
|
@ -1,12 +1,14 @@
|
||||||
REQUIRES: contrib/lazy-lists contrib/parser-combinators ;
|
REQUIRES: contrib/lazy-lists contrib/parser-combinators ;
|
||||||
PROVIDE: contrib/lambda {
|
PROVIDE: contrib/lambda
|
||||||
|
{ +files+ {
|
||||||
"nodes.factor"
|
"nodes.factor"
|
||||||
"parser.factor"
|
"parser.factor"
|
||||||
"core.factor"
|
"core.factor"
|
||||||
"lambda.factor"
|
"lambda.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/lambda.factor"
|
"test/lambda.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
||||||
USE: lambda
|
USE: lambda
|
||||||
MAIN: contrib/lambda lambda ;
|
MAIN: contrib/lambda lambda ;
|
|
@ -1,7 +1,8 @@
|
||||||
! Copyright (C) 2006 Chris Double.
|
! Copyright (C) 2006 Chris Double.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
|
|
||||||
PROVIDE: contrib/lazy-lists {
|
PROVIDE: contrib/lazy-lists
|
||||||
|
{ +files+ {
|
||||||
"lists.factor"
|
"lists.factor"
|
||||||
"lists.facts"
|
"lists.facts"
|
||||||
"lazy.factor"
|
"lazy.factor"
|
||||||
|
@ -9,6 +10,7 @@ PROVIDE: contrib/lazy-lists {
|
||||||
"lazy-io.factor"
|
"lazy-io.factor"
|
||||||
"lazy-io.facts"
|
"lazy-io.facts"
|
||||||
"examples.factor"
|
"examples.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/lists.factor"
|
"test/lists.factor"
|
||||||
} ;
|
} } ;
|
|
@ -1 +1,2 @@
|
||||||
PROVIDE: contrib/lindenmayer { "lindenmayer.factor" } ;
|
PROVIDE: contrib/lindenmayer
|
||||||
|
{ +files+ { "lindenmayer.factor" } } ;
|
|
@ -1,8 +1,10 @@
|
||||||
! Copyright (C) 2006 Chris Double.
|
! Copyright (C) 2006 Chris Double.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
PROVIDE: contrib/match {
|
PROVIDE: contrib/match
|
||||||
"match.factor"
|
{ +files+ {
|
||||||
|
"match.factor"
|
||||||
"match.facts"
|
"match.facts"
|
||||||
} {
|
} }
|
||||||
"tests.factor"
|
{ +tests+ {
|
||||||
} ;
|
"tests.factor"
|
||||||
|
} } ;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
REQUIRES: contrib/sequences ;
|
REQUIRES: contrib/sequences ;
|
||||||
PROVIDE: contrib/math {
|
PROVIDE: contrib/math
|
||||||
|
{ +files+ {
|
||||||
"utils.factor"
|
"utils.factor"
|
||||||
"combinatorics.factor"
|
"combinatorics.factor"
|
||||||
"analysis.factor"
|
"analysis.factor"
|
||||||
|
@ -8,6 +9,7 @@ PROVIDE: contrib/math {
|
||||||
"matrices.factor"
|
"matrices.factor"
|
||||||
"statistics.factor"
|
"statistics.factor"
|
||||||
"numerical-integration.factor"
|
"numerical-integration.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test.factor"
|
"test.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
REQUIRES: contrib/lazy-lists contrib/sequences ;
|
REQUIRES: contrib/lazy-lists contrib/sequences ;
|
||||||
PROVIDE: contrib/parser-combinators {
|
PROVIDE: contrib/parser-combinators
|
||||||
|
{ +files+ {
|
||||||
"parser-combinators.factor"
|
"parser-combinators.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"tests.factor"
|
"tests.factor"
|
||||||
} ;
|
} } ;
|
|
@ -1,3 +1,3 @@
|
||||||
PROVIDE: contrib/postgresql
|
PROVIDE: contrib/postgresql
|
||||||
{ "libpq.factor" "postgresql.factor" }
|
{ +files+ { "libpq.factor" "postgresql.factor" } }
|
||||||
{ "postgresql-test.factor" } ;
|
{ +tests+ { "postgresql-test.factor" } } ;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
IN: process
|
USE: kernel
|
||||||
USING: kernel ;
|
PROVIDE: contrib/process
|
||||||
PROVIDE: contrib/process {
|
{ +files+ {
|
||||||
{ "os-unix.factor" [ unix? ] }
|
{ "os-unix.factor" [ unix? ] }
|
||||||
{ "os-windows.factor" [ windows? ] }
|
{ "os-windows.factor" [ windows? ] }
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
PROVIDE: contrib/random-tester {
|
PROVIDE: contrib/random-tester
|
||||||
|
{ +files+ {
|
||||||
"utils.factor"
|
"utils.factor"
|
||||||
"random.factor"
|
"random.factor"
|
||||||
"random-tester.factor"
|
"random-tester.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
REQUIRES: contrib/http-client contrib/httpd contrib/sqlite ;
|
REQUIRES: contrib/http-client contrib/httpd contrib/sqlite ;
|
||||||
PROVIDE: contrib/rss {
|
PROVIDE: contrib/rss
|
||||||
|
{ +files+ {
|
||||||
"rss.factor"
|
"rss.factor"
|
||||||
"rss-reader.factor"
|
"rss-reader.factor"
|
||||||
} { } ;
|
} } ;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
PROVIDE: contrib/serialize {
|
PROVIDE: contrib/serialize
|
||||||
|
{ +files+ {
|
||||||
"serialize.factor"
|
"serialize.factor"
|
||||||
"serialize.facts"
|
"serialize.facts"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"tests.factor"
|
"tests.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
PROVIDE: contrib/slate { "slate.factor" } ;
|
PROVIDE: contrib/slate { +files+ { "slate.factor" } } ;
|
|
@ -1,9 +1,10 @@
|
||||||
REQUIRES: contrib/parser-combinators contrib/concurrency ;
|
REQUIRES: contrib/parser-combinators contrib/concurrency ;
|
||||||
|
|
||||||
PROVIDE: contrib/space-invaders {
|
PROVIDE: contrib/space-invaders
|
||||||
|
{ +files+ {
|
||||||
"cpu-8080.factor"
|
"cpu-8080.factor"
|
||||||
"space-invaders.factor"
|
"space-invaders.factor"
|
||||||
} { } ;
|
} } ;
|
||||||
|
|
||||||
USE: space-invaders
|
USE: space-invaders
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
PROVIDE: contrib/sqlite {
|
PROVIDE: contrib/sqlite
|
||||||
"libsqlite.factor"
|
{ +files+ {
|
||||||
"sqlite.factor"
|
"libsqlite.factor"
|
||||||
|
"sqlite.factor"
|
||||||
"sqlite.facts"
|
"sqlite.facts"
|
||||||
"tuple-db.factor"
|
"tuple-db.factor"
|
||||||
"tuple-db.facts"
|
"tuple-db.facts"
|
||||||
} {
|
} }
|
||||||
"tuple-db-tests.factor"
|
{ +tests+ {
|
||||||
} ;
|
"tuple-db-tests.factor"
|
||||||
|
} } ;
|
||||||
|
|
|
@ -3,13 +3,21 @@
|
||||||
|
|
||||||
REQUIRES: contrib/lazy-lists ;
|
REQUIRES: contrib/lazy-lists ;
|
||||||
|
|
||||||
PROVIDE: contrib/tetris {
|
PROVIDE: contrib/tetris
|
||||||
"tetris-colours.factor" "tetromino.factor" "tetris-piece.factor"
|
{ +files+ {
|
||||||
"tetris-board.factor" "tetris.factor" "tetris-gl.factor"
|
"tetris-colours.factor"
|
||||||
|
"tetromino.factor"
|
||||||
|
"tetris-piece.factor"
|
||||||
|
"tetris-board.factor"
|
||||||
|
"tetris.factor"
|
||||||
|
"tetris-gl.factor"
|
||||||
"tetris-gadget.factor"
|
"tetris-gadget.factor"
|
||||||
} {
|
} }
|
||||||
"test/tetris-piece.factor" "test/tetris-board.factor" "test/tetris.factor"
|
{ +tests+ {
|
||||||
} ;
|
"test/tetris-piece.factor"
|
||||||
|
"test/tetris-board.factor"
|
||||||
|
"test/tetris.factor"
|
||||||
|
} } ;
|
||||||
|
|
||||||
USE: tetris-gadget
|
USE: tetris-gadget
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
PROVIDE: contrib/textmate { "textmate.factor" } { } ;
|
PROVIDE: contrib/textmate { +files+ { "textmate.factor" } } ;
|
|
@ -1,13 +1,14 @@
|
||||||
PROVIDE: contrib/topology
|
PROVIDE: contrib/topology
|
||||||
{
|
{ +files+ {
|
||||||
"matrix.factor"
|
"matrix.factor"
|
||||||
"linear.factor"
|
"linear.factor"
|
||||||
"simplex.factor"
|
"simplex.factor"
|
||||||
"hopf.factor"
|
"hopf.factor"
|
||||||
"laplacian.factor"
|
"laplacian.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/matrix.factor"
|
"test/matrix.factor"
|
||||||
"test/simplex.factor"
|
"test/simplex.factor"
|
||||||
"test/hopf.factor"
|
"test/hopf.factor"
|
||||||
"test/laplacian.factor"
|
"test/laplacian.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
PROVIDE: contrib/units
|
PROVIDE: contrib/units
|
||||||
{
|
{ +files+ {
|
||||||
"dimensioned.factor" "si-units.factor" "constants.factor"
|
"dimensioned.factor" "si-units.factor" "constants.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/units.factor"
|
"test/units.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel ;
|
USING: kernel ;
|
||||||
|
|
||||||
PROVIDE: contrib/usb {
|
PROVIDE: contrib/usb
|
||||||
|
{ +files+ {
|
||||||
"usb-common.factor"
|
"usb-common.factor"
|
||||||
{ "usb-unix.factor" [ unix? ] }
|
{ "usb-unix.factor" [ unix? ] }
|
||||||
{ "usb-win32.factor" [ win32? ] }
|
{ "usb-win32.factor" [ win32? ] }
|
||||||
{ "usb-macosx.factor" [ macosx? ] }
|
{ "usb-macosx.factor" [ macosx? ] }
|
||||||
"usb.factor"
|
"usb.factor"
|
||||||
"usb.facts"
|
"usb.facts"
|
||||||
} {
|
|
||||||
} ;
|
} ;
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
REQUIRES: contrib/process ;
|
REQUIRES: contrib/process ;
|
||||||
PROVIDE: contrib/vim {
|
PROVIDE: contrib/vim { +files+ { "vim.factor" "vim.facts" } } ;
|
||||||
"vim.factor"
|
|
||||||
"vim.facts"
|
|
||||||
} ;
|
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
USE: kernel
|
USE: kernel
|
||||||
|
PROVIDE: library/compiler/alien/objc
|
||||||
PROVIDE: library/compiler/alien/objc {
|
{ +files+ {
|
||||||
{ "objc-x86.factor" [ cpu "x86" = ] }
|
{ "objc-x86.factor" [ cpu "x86" = ] }
|
||||||
{ "objc-ppc.factor" [ cpu "ppc" = ] }
|
{ "objc-ppc.factor" [ cpu "ppc" = ] }
|
||||||
"runtime.factor"
|
"runtime.factor"
|
||||||
"utilities.factor"
|
"utilities.factor"
|
||||||
"subclassing.factor"
|
"subclassing.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
REQUIRES: library/compiler/x86 library/compiler/pentium4 ;
|
REQUIRES: library/compiler/x86 library/compiler/pentium4 ;
|
||||||
|
PROVIDE: library/compiler/amd64
|
||||||
PROVIDE: library/compiler/amd64 {
|
{ +files+ {
|
||||||
"architecture.factor"
|
"architecture.factor"
|
||||||
"alien.factor"
|
"alien.factor"
|
||||||
"intrinsics.factor"
|
"intrinsics.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
PROVIDE: library/compiler {
|
PROVIDE: library/compiler
|
||||||
|
{ +files+ {
|
||||||
"inference/shuffle.factor"
|
"inference/shuffle.factor"
|
||||||
"inference/dataflow.factor"
|
"inference/dataflow.factor"
|
||||||
"inference/inference.factor"
|
"inference/inference.factor"
|
||||||
|
@ -46,7 +47,8 @@ PROVIDE: library/compiler {
|
||||||
"inference/stack.facts"
|
"inference/stack.facts"
|
||||||
"inference/words.facts"
|
"inference/words.facts"
|
||||||
"compiler.facts"
|
"compiler.facts"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/alien-objects.factor"
|
"test/alien-objects.factor"
|
||||||
"test/simple.factor"
|
"test/simple.factor"
|
||||||
"test/templates.factor"
|
"test/templates.factor"
|
||||||
|
@ -60,4 +62,4 @@ PROVIDE: library/compiler {
|
||||||
"test/optimizer.factor"
|
"test/optimizer.factor"
|
||||||
"test/alien.factor"
|
"test/alien.factor"
|
||||||
"test/callbacks.factor"
|
"test/callbacks.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
REQUIRES: library/compiler/x86 ;
|
REQUIRES: library/compiler/x86 ;
|
||||||
|
|
||||||
PROVIDE: library/compiler/pentium4 { "intrinsics.factor" } ;
|
PROVIDE: library/compiler/pentium4
|
||||||
|
{ +files+ { "intrinsics.factor" } } ;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
PROVIDE: library/compiler/ppc {
|
PROVIDE: library/compiler/ppc
|
||||||
|
{ +files+ {
|
||||||
"assembler.factor"
|
"assembler.factor"
|
||||||
"architecture.factor"
|
"architecture.factor"
|
||||||
"intrinsics.factor"
|
"intrinsics.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
PROVIDE: library/compiler/x86 {
|
PROVIDE: library/compiler/x86
|
||||||
|
{ +files+ {
|
||||||
"assembler.factor"
|
"assembler.factor"
|
||||||
"architecture.factor"
|
"architecture.factor"
|
||||||
"intrinsics.factor"
|
"intrinsics.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
PROVIDE: library/io/buffer {
|
PROVIDE: library/io/buffer
|
||||||
|
{ +files+ {
|
||||||
"buffer.factor"
|
"buffer.factor"
|
||||||
"buffer.facts"
|
"buffer.facts"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/buffer.factor"
|
"test/buffer.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -2,7 +2,8 @@ USE: kernel
|
||||||
|
|
||||||
REQUIRES: library/io/buffer ;
|
REQUIRES: library/io/buffer ;
|
||||||
|
|
||||||
PROVIDE: library/io/unix {
|
PROVIDE: library/io/unix
|
||||||
|
{ +files+ {
|
||||||
"types.factor"
|
"types.factor"
|
||||||
{ "syscalls-freebsd.factor" [ os "freebsd" = ] }
|
{ "syscalls-freebsd.factor" [ os "freebsd" = ] }
|
||||||
{ "syscalls-linux.factor" [ os "linux" = ] }
|
{ "syscalls-linux.factor" [ os "linux" = ] }
|
||||||
|
@ -12,4 +13,4 @@ PROVIDE: library/io/unix {
|
||||||
"io.factor"
|
"io.factor"
|
||||||
"sockets.factor"
|
"sockets.factor"
|
||||||
"files.factor"
|
"files.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
REQUIRES: library/windows library/io/buffer ;
|
REQUIRES: library/windows library/io/buffer ;
|
||||||
|
|
||||||
PROVIDE: library/io/windows {
|
PROVIDE: library/io/windows
|
||||||
|
{ +files+ {
|
||||||
"errors.factor"
|
"errors.factor"
|
||||||
"io-internals.factor"
|
"io-internals.factor"
|
||||||
"stream.factor"
|
"stream.factor"
|
||||||
"server.factor"
|
"server.factor"
|
||||||
"io.factor"
|
"io.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
PROVIDE: library {
|
PROVIDE: library
|
||||||
|
{ +files+ {
|
||||||
"version.factor"
|
"version.factor"
|
||||||
|
|
||||||
"generic/early-generic.factor"
|
"generic/early-generic.factor"
|
||||||
|
@ -188,9 +189,8 @@ PROVIDE: library {
|
||||||
"tools/listener.facts"
|
"tools/listener.facts"
|
||||||
"tools/memory.facts"
|
"tools/memory.facts"
|
||||||
"tools/test.facts"
|
"tools/test.facts"
|
||||||
}
|
} }
|
||||||
! Test files
|
{ +tests+ {
|
||||||
{
|
|
||||||
"test/annotate.factor"
|
"test/annotate.factor"
|
||||||
"test/binary.factor"
|
"test/binary.factor"
|
||||||
"test/collections/hashtables.factor"
|
"test/collections/hashtables.factor"
|
||||||
|
@ -234,4 +234,4 @@ PROVIDE: library {
|
||||||
"test/tuple.factor"
|
"test/tuple.factor"
|
||||||
"test/words.factor"
|
"test/words.factor"
|
||||||
"test/tools.factor"
|
"test/tools.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -19,7 +19,8 @@ TUPLE: module name files tests main ;
|
||||||
: prefix-paths ( name seq -- newseq )
|
: prefix-paths ( name seq -- newseq )
|
||||||
[ path+ "resource:" swap append ] map-with ;
|
[ path+ "resource:" swap append ] map-with ;
|
||||||
|
|
||||||
C: module ( name files tests -- module )
|
C: module ( name files tests help -- module )
|
||||||
|
nip ! [ set-module-help ] keep
|
||||||
[ >r >r over r> prefix-paths r> set-module-tests ] keep
|
[ >r >r over r> prefix-paths r> set-module-tests ] keep
|
||||||
[ >r dupd prefix-paths r> set-module-files ] keep
|
[ >r dupd prefix-paths r> set-module-files ] keep
|
||||||
[ set-module-name ] keep ;
|
[ set-module-name ] keep ;
|
||||||
|
@ -47,9 +48,12 @@ C: module ( name files tests -- module )
|
||||||
modules get [ first = ] find-with nip
|
modules get [ first = ] find-with nip
|
||||||
[ modules get delete ] when* ;
|
[ modules get delete ] when* ;
|
||||||
|
|
||||||
: provide ( name files tests -- )
|
: provide ( name hash -- )
|
||||||
pick remove-module
|
over remove-module [
|
||||||
[ process-files ] 2apply <module>
|
+files+ get process-files
|
||||||
|
+tests+ get process-files
|
||||||
|
+help+ get
|
||||||
|
] bind <module>
|
||||||
[ module-files run-files ] keep
|
[ module-files run-files ] keep
|
||||||
add-module ;
|
add-module ;
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ $terpri
|
||||||
{ $notes "Module definitions should use the " { $link POSTPONE: REQUIRES: } " parsing word instead. In the listener, the " { $link require } " word might be more useful since it recompiles new words after loading the module." } ;
|
{ $notes "Module definitions should use the " { $link POSTPONE: REQUIRES: } " parsing word instead. In the listener, the " { $link require } " word might be more useful since it recompiles new words after loading the module." } ;
|
||||||
|
|
||||||
HELP: provide
|
HELP: provide
|
||||||
{ $values { "name" "a string" } { "files" "a sequence of strings" } { "tests" "a sequence of strings" } }
|
{ $values { "name" "a string" } { "hash" "a hashtable" } }
|
||||||
{ $description "Registers a module definition and loads its source files. Usually instead of calling this word, module definitions use the parsing word " { $link POSTPONE: PROVIDE: } " instead." } ;
|
{ $description "Registers a module definition and loads its source files. The possible hashtable are documented in the " { $link POSTPONE: PROVIDE: } " word. Usually instead of calling this word, module definitions use the parsing word " { $link POSTPONE: PROVIDE: } " instead." } ;
|
||||||
|
|
||||||
HELP: test-module
|
HELP: test-module
|
||||||
{ $values { "name" "a module name string" } }
|
{ $values { "name" "a module name string" } }
|
||||||
|
|
|
@ -73,7 +73,7 @@ DEFER: !PRIMITIVE: parsing
|
||||||
: !FORGET: scan use get hash-stack [ forget ] when* ; parsing
|
: !FORGET: scan use get hash-stack [ forget ] when* ; parsing
|
||||||
|
|
||||||
: !PROVIDE:
|
: !PROVIDE:
|
||||||
scan [ { { } { } } append first2 provide ] f ; parsing
|
scan [ alist>hash provide ] f ; parsing
|
||||||
|
|
||||||
: !REQUIRES:
|
: !REQUIRES:
|
||||||
string-mode on [
|
string-mode on [
|
||||||
|
@ -90,3 +90,7 @@ DEFER: !PRIMITIVE: parsing
|
||||||
] [
|
] [
|
||||||
drop
|
drop
|
||||||
] if* ; parsing
|
] if* ; parsing
|
||||||
|
|
||||||
|
SYMBOL: !+files+
|
||||||
|
SYMBOL: !+tests+
|
||||||
|
SYMBOL: !+help+
|
||||||
|
|
|
@ -2,7 +2,8 @@ USING: compiler io parser sequences words ;
|
||||||
|
|
||||||
REQUIRES: library/compiler/alien/objc ;
|
REQUIRES: library/compiler/alien/objc ;
|
||||||
|
|
||||||
PROVIDE: library/ui/cocoa {
|
PROVIDE: library/ui/cocoa
|
||||||
|
{ +files+ {
|
||||||
"core-foundation.factor"
|
"core-foundation.factor"
|
||||||
"types.factor"
|
"types.factor"
|
||||||
"init-cocoa.factor"
|
"init-cocoa.factor"
|
||||||
|
@ -13,9 +14,10 @@ PROVIDE: library/ui/cocoa {
|
||||||
"dialogs.factor"
|
"dialogs.factor"
|
||||||
"services.factor"
|
"services.factor"
|
||||||
"ui.factor"
|
"ui.factor"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/cocoa.factor"
|
"test/cocoa.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
||||||
"Compiling Cocoa bindings..." print
|
"Compiling Cocoa bindings..." print
|
||||||
{ "cocoa" "objc" "objc-classes" "gadgets" } compile-vocabs
|
{ "cocoa" "objc" "objc-classes" "gadgets" } compile-vocabs
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
REQUIRES: library/ui/opengl ;
|
REQUIRES: library/ui/opengl ;
|
||||||
|
|
||||||
PROVIDE: library/ui/freetype {
|
PROVIDE: library/ui/freetype
|
||||||
|
{ +files+ {
|
||||||
"freetype.factor"
|
"freetype.factor"
|
||||||
"freetype-gl.factor"
|
"freetype-gl.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
REQUIRES: library/ui/opengl library/ui/freetype ;
|
REQUIRES: library/ui/opengl library/ui/freetype ;
|
||||||
|
|
||||||
PROVIDE: library/ui {
|
PROVIDE: library/ui
|
||||||
|
{ +files+ {
|
||||||
"models.factor"
|
"models.factor"
|
||||||
"backend.factor"
|
"backend.factor"
|
||||||
"timers.factor"
|
"timers.factor"
|
||||||
|
@ -48,7 +49,8 @@ PROVIDE: library/ui {
|
||||||
"tools/workspace.factor"
|
"tools/workspace.factor"
|
||||||
"tools/operations.factor"
|
"tools/operations.factor"
|
||||||
"text/editor.facts"
|
"text/editor.facts"
|
||||||
} {
|
} }
|
||||||
|
{ +tests+ {
|
||||||
"test/editor.factor"
|
"test/editor.factor"
|
||||||
"test/gadgets.factor"
|
"test/gadgets.factor"
|
||||||
"test/models.factor"
|
"test/models.factor"
|
||||||
|
@ -62,4 +64,4 @@ PROVIDE: library/ui {
|
||||||
"test/search.factor"
|
"test/search.factor"
|
||||||
"test/sliders.factor"
|
"test/sliders.factor"
|
||||||
"test/tracks.factor"
|
"test/tracks.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
PROVIDE: library/ui/opengl {
|
PROVIDE: library/ui/opengl
|
||||||
|
{ +files+ {
|
||||||
"gl.factor"
|
"gl.factor"
|
||||||
"glu.factor"
|
"glu.factor"
|
||||||
"opengl-utils.factor"
|
"opengl-utils.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
REQUIRES: library/windows ;
|
REQUIRES: library/windows ;
|
||||||
|
|
||||||
PROVIDE: library/ui/windows {
|
PROVIDE: library/ui/windows { +files+ {
|
||||||
"clipboard.factor"
|
"clipboard.factor"
|
||||||
"ui.factor"
|
"ui.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
||||||
IN: command-line
|
IN: command-line
|
||||||
: default-shell "ui" ;
|
: default-shell "ui" ;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
! Copyright (C) 2005, 2006 Eduardo Cavazos
|
! Copyright (C) 2005, 2006 Eduardo Cavazos
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
|
|
||||||
PROVIDE: library/ui/x11 {
|
PROVIDE: library/ui/x11
|
||||||
|
{ +files+ {
|
||||||
"xlib.factor"
|
"xlib.factor"
|
||||||
"glx.factor"
|
"glx.factor"
|
||||||
"constants.factor"
|
"constants.factor"
|
||||||
|
@ -11,4 +12,4 @@ PROVIDE: library/ui/x11 {
|
||||||
"windows.factor"
|
"windows.factor"
|
||||||
"clipboard.factor"
|
"clipboard.factor"
|
||||||
"ui.factor"
|
"ui.factor"
|
||||||
} ;
|
} } ;
|
|
@ -1,4 +1,5 @@
|
||||||
PROVIDE: library/windows {
|
PROVIDE: library/windows
|
||||||
|
{ +files+ {
|
||||||
"windows-messages.factor"
|
"windows-messages.factor"
|
||||||
"types.factor"
|
"types.factor"
|
||||||
"gdi32-constants.factor"
|
"gdi32-constants.factor"
|
||||||
|
@ -14,7 +15,7 @@ PROVIDE: library/windows {
|
||||||
"winsock.factor"
|
"winsock.factor"
|
||||||
"opengl32.factor"
|
"opengl32.factor"
|
||||||
"utils.factor"
|
"utils.factor"
|
||||||
} ;
|
} } ;
|
||||||
|
|
||||||
IN: command-line
|
IN: command-line
|
||||||
: default-shell "tty" ;
|
: default-shell "tty" ;
|
||||||
|
|
Loading…
Reference in New Issue