Home
last modified time | relevance | path

Searched refs:ffi1 (Results 1 – 11 of 11) sorted by relevance

/external/python/cffi/testing/cffi1/
Dtest_recompiler.py18 ffi1 = FFI()
19 ffi1.cdef(included)
20 ffi.include(ffi1)
344 ffi1 = FFI(); ffi1.cdef("struct foo_s;")
346 lib1 = verify(ffi1, 'test_type_caching_1', 'struct foo_s;')
349 assert ffi1.typeof("long") is ffi2.typeof("long")
350 assert ffi1.typeof("long**") is ffi2.typeof("long * *")
351 assert ffi1.typeof("long(*)(int, ...)") is ffi2.typeof("long(*)(int, ...)")
353 assert ffi1.typeof("struct foo_s") is not ffi2.typeof("struct foo_s")
354 assert ffi1.typeof("struct foo_s *") is not ffi2.typeof("struct foo_s *")
[all …]
Dtest_verify1.py1675 ffi1 = FFI()
1676 ffi1.cdef("typedef struct { int x; ...; } foo_t;")
1677 ffi1.verify("typedef struct { int y, x; } foo_t;")
1679 ffi2.include(ffi1)
1685 res = lib.myfunc(ffi1.new("foo_t *", {'x': -10}))
1689 ffi1 = FFI()
1690 ffi1.cdef("enum foo_e { AA, ... };")
1691 lib1 = ffi1.verify("enum foo_e { CC, BB, AA };")
1693 ffi2.include(ffi1)
2106 ffi1 = FFI()
[all …]
Dtest_new_ffi_1.py19 ffi1 = cffi.FFI()
88 ffi1.cdef(DEFS)
89 ffi1.cdef(DEFS_PACKED, packed=True)
90 ffi1.set_source("test_new_ffi_1", CCODE)
92 outputfilename = recompile(ffi1, "test_new_ffi_1", CCODE,
96 construction_params = (ffi1, CCODE)
1588 ffi1 = module.ffi
1589 foo1 = ffi1.new("struct ab *", [10])
1596 ffi1, CCODE = construction_params
1598 ffi2.include(ffi1)
Dtest_ffi_obj.py61 ffi1 = _cffi1_backend.FFI()
63 t1 = ffi1.typeof("int *")
/external/python/cffi/testing/cffi0/
Dbackend_tests.py1357 ffi1 = FFI(backend=self.Backend())
1359 assert ffi1.typeof("char") is ffi2.typeof("char ")
1360 assert ffi1.typeof("long") is ffi2.typeof("signed long int")
1361 assert ffi1.typeof("double *") is ffi2.typeof("double*")
1362 assert ffi1.typeof("int ***") is ffi2.typeof(" int * * *")
1363 assert ffi1.typeof("int[]") is ffi2.typeof("signed int[]")
1364 assert ffi1.typeof("signed int*[17]") is ffi2.typeof("int *[17]")
1365 assert ffi1.typeof("void") is ffi2.typeof("void")
1366 assert ffi1.typeof("int(*)(int,int)") is ffi2.typeof("int(*)(int,int)")
1369 assert ffi1.typeof("struct foo") is not ffi2.typeof("struct foo")
[all …]
Dtest_ffi_backend.py142 ffi1 = FFI()
143 ffi1.cdef("""
151 lib = ffi1.verify("""
499 ffi1 = FFI()
501 ffi1.cdef("typedef signed char schar_t; struct sint_t { int x; };")
502 ffi2.include(ffi1)
503 assert ffi1.list_types() == ffi2.list_types() == (
Dtest_verify.py1709 ffi1 = FFI()
1710 ffi1.cdef("typedef struct { int x; ...; } foo_t;")
1711 ffi1.verify("typedef struct { int y, x; } foo_t;")
1713 ffi2.include(ffi1)
1719 res = lib.myfunc(ffi1.new("foo_t *", {'x': -10}))
1723 ffi1 = FFI()
1724 ffi1.cdef("enum foo_e { AA, ... };")
1725 lib1 = ffi1.verify("enum foo_e { CC, BB, AA };")
1727 ffi2.include(ffi1)
2137 ffi1 = FFI()
[all …]
/external/python/cffi/c/
Dffi_obj.c130 FFIObject *ffi1; in ffi_fetch_int_constant() local
133 ffi1 = (FFIObject *)PyTuple_GET_ITEM(included_ffis, i); in ffi_fetch_int_constant()
134 x = ffi_fetch_int_constant(ffi1, name, recursion + 1); in ffi_fetch_int_constant()
1198 FFIObject *ffi1; in _fetch_external_struct_or_union() local
1203 ffi1 = (FFIObject *)PyTuple_GET_ITEM(included_ffis, i); in _fetch_external_struct_or_union()
1204 sindex = search_in_struct_unions(&ffi1->types_builder.ctx, s->name, in _fetch_external_struct_or_union()
1208 s1 = &ffi1->types_builder.ctx.struct_unions[sindex]; in _fetch_external_struct_or_union()
1212 return _realize_c_struct_or_union(&ffi1->types_builder, sindex); in _fetch_external_struct_or_union()
1216 s, ffi1->types_builder.included_ffis, recursion + 1); in _fetch_external_struct_or_union()
Dlib_obj.c249 FFIObject *ffi1; in lib_build_and_cache_attr() local
251 ffi1 = (FFIObject *)PyTuple_GetItem(included_ffis, i); in lib_build_and_cache_attr()
252 if (ffi1 == NULL) in lib_build_and_cache_attr()
254 x = ffi_fetch_int_constant(ffi1, s, recursion + 1); in lib_build_and_cache_attr()
/external/rust/cxx/tests/ui/
Dvec_opaque.rs9 mod ffi1 { module
/external/rust/cxx/book/src/
Dextern-c++.md303 mod ffi1 {
320 type A = crate::ffi1::A;
340 mod ffi1 {