alien.destructors
alien.libraries alien.libraries.finder
alien.syntax
+ assocs
kernel
- sequences ;
+ sequences
+ system ;
IN: python.ffi
-<< "python" { "3.0" "2.6" "2.7" } [
+<< "python" {
+ { unix { "3.0" "2.6" "2.7" } } { windows { "26" "27" "30" } }
+} os of [
"python" prepend find-library
] map-find drop cdecl add-library >>
FUNCTION: PyObject* PyObject_Str ( PyObject* o ) ;
! Strings
-FUNCTION: c-string PyString_AsString ( PyObject* string ) ;
+FUNCTION: void* PyString_AsString ( PyObject* string ) ;
FUNCTION: PyObject* PyString_FromString ( c-string v ) ;
! Unicode
int size,
void* errors ) ;
FUNCTION: PyObject* PyUnicodeUCS4_FromString ( c-string s ) ;
+FUNCTION: PyObject* PyUnicodeUCS2_FromString ( c-string s ) ;
+FUNCTION: PyObject* PyUnicodeUCS2_AsUTF8String ( PyObject* unicode ) ;
FUNCTION: PyObject* PyUnicodeUCS4_AsUTF8String ( PyObject* unicode ) ;
! Ints