Debian Codegraph @

extra_tests/cffi_tests/cffi0/snippets/setuptools_module/snip_setuptools_verify.py

raw symbols SCIP
1 # Generated by pypy/tool/import_cffi.py
2
3 from cffi import FFI
4 import sys
5
6 ffi = FFI()
7 ffi.cdef(""" // some declarations from the man page
8 struct passwd {
9 char *pw_name;
10 ...;
11 };
12 struct passwd *getpwuid(int uid);
13 """)
14 C = ffi.verify(""" // passed to the real C compiler
15 #include <sys/types.h>
16 #include <pwd.h>
17 """, libraries=[], # or a list of libraries to link with
18 force_generic_engine=hasattr(sys, '_force_generic_engine_'))