• Home
  • Raw
  • Download

Lines Matching refs:ffi1

18         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 *")
355 assert ffi1.typeof("struct foo_s*(*)()") is not (
357 assert ffi1.typeof("void(*)(struct foo_s*)") is not (
496 ffi1 = FFI(); ffi1.cdef(CDEF); verify(ffi1, "test_unique_types_1", CDEF)
499 assert ffi1.typeof("char") is ffi2.typeof("char ")
500 assert ffi1.typeof("long") is ffi2.typeof("signed long int")
501 assert ffi1.typeof("double *") is ffi2.typeof("double*")
502 assert ffi1.typeof("int ***") is ffi2.typeof(" int * * *")
503 assert ffi1.typeof("int[]") is ffi2.typeof("signed int[]")
504 assert ffi1.typeof("signed int*[17]") is ffi2.typeof("int *[17]")
505 assert ffi1.typeof("void") is ffi2.typeof("void")
506 assert ffi1.typeof("int(*)(int,int)") is ffi2.typeof("int(*)(int,int)")
516 assert ffi1.typeof(name) is not ffi2.typeof(name)
518 assert ffi1.typeof("struct foo_s*") is ffi1.typeof("struct foo_s *")
583 ffi1 = FFI()
584 ffi1.cdef("typedef double foo_t;")
585 verify(ffi1, "test_include_1_parent", "typedef double foo_t;")
587 ffi.include(ffi1)
591 assert ffi1.typeof("foo_t") is ffi.typeof("foo_t") is ffi.typeof("double")
594 ffi1 = FFI()
595 ffi1.cdef("int foo1(int);")
596 lib1 = verify(ffi1, "test_include_1b_parent",
599 ffi.include(ffi1)
607 ffi1 = FFI()
608 ffi1.cdef("struct foo_s { int x, y; };")
609 verify(ffi1, "test_include_2_parent", "struct foo_s { int x, y; };")
611 ffi.include(ffi1)
621 assert ffi1.typeof("struct foo_s") is ffi.typeof("struct foo_s")
624 ffi1 = FFI()
625 ffi1.cdef("typedef short sshort_t;")
626 verify(ffi1, "test_include_3_parent", "typedef short sshort_t;")
628 ffi.include(ffi1)
635 assert ffi1.typeof("sshort_t") is ffi.typeof("sshort_t")
638 ffi1 = FFI()
639 ffi1.cdef("typedef struct { int x; } mystruct_t;")
640 verify(ffi1, "test_include_4_parent",
643 ffi.include(ffi1)
652 assert ffi1.typeof("mystruct_t") is ffi.typeof("mystruct_t")
655 ffi1 = FFI()
656 ffi1.cdef("typedef struct { int x[2]; int y; } *mystruct_p;")
657 verify(ffi1, "test_include_5_parent",
660 ffi.include(ffi1)
666 assert ffi1.typeof("mystruct_p") is ffi.typeof("mystruct_p")
676 ffi1 = FFI()
677 ffi1.cdef("typedef ... mystruct_t;")
678 verify(ffi1, "test_include_6_parent",
681 ffi.include(ffi1)
694 ffi1 = FFI()
695 ffi1.cdef("typedef ... mystruct_t;\n"
697 verify(ffi1, "test_include_7_parent",
701 ffi.include(ffi1)
712 ffi1 = FFI()
713 ffi1.cdef("struct foo_s;")
714 verify(ffi1, "test_include_8_parent", "struct foo_s;")
716 ffi.include(ffi1)
1918 ffi1 = FFI()
1919 ffi1.cdef(SOURCE)
1921 ffi2.include(ffi1)
1922 verify(ffi1, "test_introspect_included_type_parent", SOURCE)
1924 assert ffi1.list_types() == ffi2.list_types() == (