]> gitweb.factorcode.org Git - factor.git/commitdiff
python.ffi: Use find-library-from-list instead of all that crufty code.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 8 Jul 2014 18:59:07 +0000 (11:59 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 8 Jul 2014 18:59:07 +0000 (11:59 -0700)
extra/python/ffi/ffi.factor

index a6bb90c7efeae5aa7168d750d268b850b50909fb..d73fea8f0b2d5725d51d095bfb27b3811a62461e 100644 (file)
@@ -1,11 +1,10 @@
-USING: alien alien.c-types alien.destructors alien.libraries alien.libraries.finder
-alien.syntax assocs kernel sequences system ;
+USING: alien alien.c-types alien.destructors alien.libraries
+alien.libraries.finder alien.syntax assocs kernel sequences system ;
 IN: python.ffi
 
 ! << "python" { "3.0" "3" "2.7" "2.6" } ! Python 3 has a different api, enable someday
-<< "python" { "2.7" "2.6" }
-os windows? [ [ [ CHAR: . = not ] filter ] map ] when
-[ "python" prepend find-library* ] map-find drop
+<< "python"
+{ "python2.7" "python2.6" "python27" "python26" } find-library-from-list
 cdecl add-library >>
 
 ! Functions that return borrowed references needs to be called like this: