Lines Matching refs:ffi1
1357 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")
1370 assert ffi1.typeof("union foo *") is not ffi2.typeof("union foo*")
1374 assert ffi1.typeof("struct foo*") is ffi1.typeof("struct foo *")
1756 ffi1 = FFI(); ffi1.cdef("struct foo { int x; };")
1758 foo1 = ffi1.new("struct foo *", [10])
1766 ffi1 = FFI(backend=backend)
1768 ffi1.cdef("typedef signed char schar_t;")
1773 ffi1 = FFI(backend=backend)
1775 ffi1.cdef("typedef signed char schar_t;")
1776 ffi2.include(ffi1)
1782 ffi1 = FFI(backend=backend)
1784 ffi1.cdef("struct foo { int x; };")
1785 ffi2.include(ffi1)
1791 ffi1 = FFI(backend=backend)
1793 ffi1.cdef("union foo { int x; };")
1794 ffi2.include(ffi1)
1800 ffi1 = FFI(backend=backend)
1802 ffi1.cdef("enum foo { FA, FB, FC };")
1803 ffi2.include(ffi1)
1810 ffi1 = FFI(backend=backend)
1812 ffi1.cdef("typedef struct { int x; } *foo_p;")
1813 ffi2.include(ffi1)
1897 ffi1 = FFI()
1898 ffi1.cdef("enum { EE1 };")
1900 ffi.include(ffi1)