Searched refs:ffi2 (Results 1 – 12 of 12) sorted by relevance
/external/rust/cxx/tests/ |
D | test.rs | 12 use cxx_test_suite::module::ffi2; 44 ffi2::c_return_ns_unique_ptr(); in test_c_return() 115 let unique_ptr_ns = ffi2::c_return_ns_unique_ptr(); in test_c_take() 124 check!(ffi2::c_take_ref_ns_c(&unique_ptr_ns)); in test_c_take() 264 let unique_ptr = ffi2::ns_c_return_unique_ptr_ns(); in test_c_ns_method_calls() 305 let mut d = ffi2::c_return_trivial(); in test_extern_trivial() 306 check!(ffi2::c_take_trivial_ref(&d)); in test_extern_trivial() 309 check!(ffi2::c_take_trivial(d)); in test_extern_trivial() 310 let mut d = ffi2::c_return_trivial_ptr(); in test_extern_trivial() 313 check!(ffi2::c_take_trivial_ptr(d)); in test_extern_trivial() [all …]
|
/external/python/cffi/testing/cffi1/ |
D | test_recompiler.py | 345 ffi2 = FFI(); ffi2.cdef("struct foo_s;") # different one! 347 lib2 = verify(ffi2, 'test_type_caching_2', '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 *") 356 ffi2.typeof("struct foo_s*(*)()")) 358 ffi2.typeof("void(*)(struct foo_s*)")) 497 ffi2 = FFI(); ffi2.cdef(CDEF); verify(ffi2, "test_unique_types_2", CDEF) [all …]
|
D | test_dlopen.py | 114 ffi2 = FFI() 115 ffi2.include(ffi) 117 make_py_source(ffi2, 'test2_include', str(target2))
|
D | test_verify1.py | 1678 ffi2 = FFI() 1679 ffi2.include(ffi1) 1680 ffi2.cdef("int myfunc(foo_t *);") 1681 lib = ffi2.verify("typedef struct { int y, x; } foo_t;" 1683 res = lib.myfunc(ffi2.new("foo_t *", {'x': 10})) 1692 ffi2 = FFI() 1693 ffi2.include(ffi1) 1694 ffi2.cdef("int myfunc(enum foo_e);") 1695 lib2 = ffi2.verify("enum foo_e { CC, BB, AA };" 2113 ffi2 = FFI() [all …]
|
D | test_new_ffi_1.py | 1583 ffi2 = cffi.FFI(); ffi2.cdef(CDEF2) 1584 outputfilename = recompile(ffi2, "test_multiple_independent_structs", 1597 ffi2 = cffi.FFI() 1598 ffi2.include(ffi1) 1599 outputfilename = recompile(ffi2, 1604 ffi2 = module.ffi 1606 p = ffi2.new("struct nonpacked *", [b'A', -43141]) 1615 assert ffi2.sizeof("char[cffiCC0]") == 2 1744 ffi2 = cffi.FFI() 1745 ffi2.cdef("int myfunc(int); int myvar;\n#define MYFOO ...\n") [all …]
|
D | test_ffi_obj.py | 62 ffi2 = _cffi1_backend.FFI() 64 t2 = ffi2.typeof("int *")
|
/external/python/cffi/testing/cffi0/ |
D | backend_tests.py | 1358 ffi2 = 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 …]
|
D | test_verify.py | 1712 ffi2 = FFI() 1713 ffi2.include(ffi1) 1714 ffi2.cdef("int myfunc(foo_t *);") 1715 lib = ffi2.verify("typedef struct { int y, x; } foo_t;" 1717 res = lib.myfunc(ffi2.new("foo_t *", {'x': 10})) 1726 ffi2 = FFI() 1727 ffi2.include(ffi1) 1728 ffi2.cdef("int myfunc(enum foo_e);") 1729 lib2 = ffi2.verify("enum foo_e { CC, BB, AA };" 2151 ffi2 = FFI() [all …]
|
D | test_ffi_backend.py | 500 ffi2 = FFI() 502 ffi2.include(ffi1) 503 assert ffi1.list_types() == ffi2.list_types() == (
|
/external/rust/cxx/tests/ui/ |
D | vec_opaque.rs | 20 mod ffi2 { module
|
/external/rust/cxx/tests/ffi/ |
D | module.rs | 19 pub mod ffi2 { module
|
/external/rust/cxx/book/src/ |
D | extern-c++.md | 318 mod ffi2 {
|