]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/python/ffi/ffi.factor
factor: more top level forms.
[factor.git] / extra / python / ffi / ffi.factor
index 2895c2bdf1dc95d5cdbeb36147199b1d0f829955..1ced8c9049e13d05dc92e192981c1d9cc1c9e059 100644 (file)
@@ -1,10 +1,10 @@
 USING: alien alien.c-types alien.destructors alien.libraries
-alien.libraries.finder alien.syntax classes.struct ;
+alien.libraries.finder alien.syntax classes.struct vocabs.platforms ;
 IN: python.ffi
 
-<< "python"
-{ "python3.10" "python3.9" "python3.8" "python3.7" } find-library-from-list
-cdecl add-library >>
+ADD-FIRST-LIBRARY: python cdecl {
+    "python3.12" "python3.11" "python3.10" "python3.9" "python3.8" "python3.7"
+}
 
 ! Functions that return borrowed references needs to be called like this:
 ! Py_Func dup Py_IncRef &Py_DecRef