diff options
Diffstat (limited to 'testing/cffi0/snippets/distutils_package_1/snip_basic_verify1/__init__.py')
-rw-r--r-- | testing/cffi0/snippets/distutils_package_1/snip_basic_verify1/__init__.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/testing/cffi0/snippets/distutils_package_1/snip_basic_verify1/__init__.py b/testing/cffi0/snippets/distutils_package_1/snip_basic_verify1/__init__.py deleted file mode 100644 index e8a867e..0000000 --- a/testing/cffi0/snippets/distutils_package_1/snip_basic_verify1/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ - -from cffi import FFI -import sys - -ffi = FFI() -ffi.cdef(""" // some declarations from the man page - struct passwd { - char *pw_name; - ...; - }; - struct passwd *getpwuid(int uid); -""") -C = ffi.verify(""" // passed to the real C compiler -#include <sys/types.h> -#include <pwd.h> -""", libraries=[], # or a list of libraries to link with - force_generic_engine=hasattr(sys, '_force_generic_engine_')) |