• Home
  • Raw
  • Download

Lines Matching refs:cdef

19         ffi1.cdef(included)
21 ffi.cdef(input)
136 ffi.cdef("float sin(double); double cos(double);")
147 ffi.cdef("int foo(int *);")
153 ffi.cdef("int *foo(void);")
160 ffi.cdef("int a[100];")
168 ffi.cdef("typedef int **foo_t;")
174 ffi.cdef("typedef ... foo_t;")
179 ffi.cdef("typedef ... *foo_t;")
184 ffi.cdef("int a, b, c;")
201 ffi.cdef("#define FOOBAR ...")
220 ffi.cdef('\n'.join(cdef_lines))
247 ffi.cdef("static const int FOOBAR;")
254 ffi.cdef("static const int FOOBAR = 042;")
263 ffi.cdef("static const double FOOBAR;")
270 ffi.cdef("static double *const FOOBAR;")
277 ffi.cdef("int ff(int); int aa; static const int my_constant;")
297 ffi.cdef("struct foo_s;")
303 ffi.cdef("union foo_s;")
309 ffi.cdef("""struct foo_s { int b; short a; ...; };
335 ffi.cdef("""struct foo_s { int b; short a; };""")
344 ffi1 = FFI(); ffi1.cdef("struct foo_s;")
345 ffi2 = FFI(); ffi2.cdef("struct foo_s;") # different one!
362 ffi.cdef("""enum e1 { B1, A1, ... }; enum e2 { B2, A2, ... };""")
378 ffi.cdef("enum e1 { A1, ... }; enum e2 { A1, ... };")
384 ffi.cdef("struct foo_s { int a[...]; int b[...]; };")
395 ffi.cdef("int aa[...]; int bb[...];")
406 ffi.cdef("struct foo_s { int a[5]; };")
425 ffi.cdef("struct foo_s { int b; int a[]; };")
436 ffi.cdef("double sin(double); void *xxtestfunc();")
463 ffi.cdef("typedef struct { int a; long b; ...; } foo_t;")
472 ffi.cdef("typedef struct { int a; long b; } *foo_t;")
480 ffi.cdef("typedef enum { AA, ... } e1;")
488 ffi.cdef("typedef enum { AA=%d } e1;" % sys.maxsize)
496 ffi1 = FFI(); ffi1.cdef(CDEF); verify(ffi1, "test_unique_types_1", CDEF)
497 ffi2 = FFI(); ffi2.cdef(CDEF); verify(ffi2, "test_unique_types_2", CDEF)
522 ffi.cdef("int foo(int);")
548 ffi.cdef("short glob;")
554 ffi.cdef("int glob[10];")
560 ffi.cdef("int glob[];")
566 ffi.cdef("int glob[][5];")
572 ffi.cdef("int glob[][...];")
578 ffi.cdef("int glob[...][...];")
584 ffi1.cdef("typedef double foo_t;")
588 ffi.cdef("foo_t ff1(foo_t);")
595 ffi1.cdef("int foo1(int);")
600 ffi.cdef("int foo2(int);")
608 ffi1.cdef("struct foo_s { int x, y; };")
612 ffi.cdef("struct foo_s *ff2(struct foo_s *);")
625 ffi1.cdef("typedef short sshort_t;")
629 ffi.cdef("sshort_t ff3(sshort_t);")
639 ffi1.cdef("typedef struct { int x; } mystruct_t;")
644 ffi.cdef("mystruct_t *ff4(mystruct_t *);")
656 ffi1.cdef("typedef struct { int x[2]; int y; } *mystruct_p;")
661 ffi.cdef("mystruct_p ff5(mystruct_p);")
677 ffi1.cdef("typedef ... mystruct_t;")
682 ffi.cdef("mystruct_t *ff6(void); int ff6b(mystruct_t *);")
695 ffi1.cdef("typedef ... mystruct_t;\n"
702 ffi.cdef("mystruct_t *ff7(void);")
713 ffi1.cdef("struct foo_s;")
717 ffi.cdef("struct foo_s { int x, y; };")
739 ffi.cdef(unicode("float sin(double); double cos(double);"))
746 ffi.cdef("struct foo_s { int x; ...; }; int f(int, struct foo_s);")
759 ffi.cdef("struct foo_s { int x; ...; }; struct foo_s f(int);")
769 ffi.cdef("struct foo_s { int x; ...; }; struct bar_s { int y; ...; };\n"
787 ffi.cdef("typedef struct { int x; } foo_t;\n"
800 ffi.cdef("""
838 ffi.cdef("""
850 ffi.cdef("void foo0(void); void foo1(int); void foo2(int, int);")
882 ffi.cdef("long myfunc(long x);")
898 ffi.cdef("struct foo_s { int x; }; long myfunc(struct foo_s);")
914 ffi.cdef("""
932 ffi.cdef("static const float almost_forty_two;")
941 ffi.cdef("""
954 ffi.cdef("""
979 ffi.cdef("const int external_foo;")
990 ffi.cdef("const int external_foo;")
1000 ffi.cdef("typedef struct {...;} foo_t; "
1015 ffi.cdef("struct foo_s { int a[...][...]; };")
1030 ffi.cdef("struct foo_s { int a[][...]; };")
1042 ffi.cdef("int a[...][...];")
1053 ffi.cdef("int a[][...];")
1063 ffi.cdef("int a[10][...];")
1074 ffi.cdef("""
1109 ffi.cdef("""
1131 ffi.cdef, "typedef long double... foo_t;")
1135 ffi.cdef("typedef double... foo_t; foo_t neg(foo_t);")
1146 ffi.cdef("typedef double... foo_t; foo_t neg(foo_t);")
1161 ffi.cdef("""
1176 ffi.cdef("struct foo_s { unsigned long long x; };")
1184 ffi.cdef("int mybar(int); int myvar;\n#define MYFOO ...")
1200 ffi.cdef("int my_value; int *(*get_my_value)(void);")
1249 ffi.cdef("""struct foo_s { const int a; void *const b; };""")
1260 ffi.cdef("""struct foo_s { void * restrict b; };""")
1269 ffi.cdef("""struct foo_s { void * volatile b; };""")
1278 ffi.cdef("""struct foo_s { const int a[4]; };""")
1287 ffi.cdef("""struct foo_s { const int a[]; ...; };""")
1296 ffi.cdef("""struct foo_s { const int a[...]; ...; };""")
1305 ffi.cdef("""int foobar(const int a, const int *b, const int c[]);""")
1315 ffi.cdef("""int (*foobar)(const int a, const int *b, const int c[]);""")
1326 ffi.cdef("""struct foo_s { int x,y; }; const struct foo_s myfoo;""")
1335 ffi.cdef("""typedef const int const_t; const_t aaa;""")
1345 ffi.cdef("""
1393 ffi.cdef("""
1442 ffi.cdef("""
1482 ffi.cdef("""
1544 ffi.cdef("""
1604 ffi.cdef("int abc;")
1628 ffi.cdef("""extern "Python" void bar(int);""")
1644 ffi.cdef("""extern "Python" int bar(int);""")
1659 ffi.cdef("""
1690 ffi.cdef("""
1727 ffi.cdef("""
1762 ffi.cdef("""
1792 ffi.cdef("""
1821 ffi.cdef("float f1(double);")
1834 ffi.cdef("float g1;")
1845 ffi.cdef("float g1[100];")
1858 ffi.cdef("#define FOO 42")
1867 ffi.cdef("typedef int foo_t;")
1877 ffi.cdef("typedef signed char a_t, c_t, g_t, b_t;")
1885 ffi.cdef("struct foo_s { int a; };")
1895 ffi.cdef("union foo_s { int a; };")
1905 ffi.cdef("typedef struct { int a; } foo_t;")
1919 ffi1.cdef(SOURCE)
1929 ffi.cdef("union CFFIaaa { int a; }; typedef struct CFFIccc { int a; } CFFIb;")
1930 ffi.cdef("union CFFIg { int a; }; typedef struct CFFIcc { int a; } CFFIbbb;")
1931 ffi.cdef("union CFFIaa { int a; }; typedef struct CFFIa { int a; } CFFIbb;")
1944 ffi.cdef("bool f(void);")
1950 ffi.cdef('int add(int a, int b);')
1962 ffi.cdef("struct a { struct b b; };")
1968 ffi.cdef("struct a { struct b b[2]; };")
1974 ffi.cdef("struct a { struct b b[]; };")
1986 ffi.cdef("struct a foo(int);")
1994 ffi.cdef("union u1 { int a, b; }; union u1 f1(int);")
2003 ffi.cdef("struct aaa { int a; ...; }; struct aaa f1(int);")
2014 ffi.cdef("float _Complex f1(float a, float b);");
2028 ffi.cdef("double _Complex f1(double a, double b);");
2042 ffi.cdef("float f1(float _Complex x);");
2055 ffi.cdef("double f1(double _Complex);");
2066 ffi.cdef("""
2092 ffi.cdef("""
2120 ffi.cdef("""
2147 ffi.cdef("""
2173 ffi.cdef("""
2197 ffi.cdef("""
2222 ffi.cdef("""
2250 ffi.cdef("""struct foo { char y; int x; };""", pack=2)
2258 ffi.cdef("""
2268 ffi.cdef("typedef long int16_t, char16_t;")
2277 ffi.cdef("""
2312 ffi.cdef("""typedef ... foo_t; struct foo_s { void (*x)(foo_t); };""")