Lines Matching refs:cdef
52 ffi.cdef("void some_completely_unknown_function();")
70 ffi.cdef("double sin(double x);")
74 def _Wconversion(cdef, source, **kargs): argument
78 ffi.cdef(cdef)
113 ffi.cdef("double sinf(float x);")
121 ffi.cdef("double sin(float x);")
129 ffi.cdef("size_t strlen(const char *s);")
141 ffi.cdef("%s foo(signed char x);" % typename)
148 ffi.cdef("size_t strlen(char[]);")
154 ffi.cdef("long double sinl(long double x);")
167 ffi.cdef("long double step1(long double x);")
241 ffi.cdef('\n'.join(["%s foo_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
270 ffi.cdef(csource)
289 ffi.cdef(csource)
310 ffi.cdef(cdefsrc)
330 ffi.cdef(cdefsrc)
349 ffi.cdef("char foo(char);")
364 ffi.cdef("wchar_t foo(wchar_t);")
370 ffi.cdef("int foo(void);")
376 ffi.cdef("int foo(int, int);")
382 ffi.cdef("int foo(int, int);")
388 ffi.cdef("int *foo(int *);")
398 ffi.cdef("int *foo(int *);")
409 ffi.cdef("typedef %s foo_t;" % cdefed)
418 ffi.cdef("typedef struct foo_s foo_t; int bar(foo_t *);")
426 ffi.cdef("struct foo_s { char x; int y; long *z; };")
466 ffi.cdef("""
485 ffi.cdef("struct foo_s { char x; ...; };")
495 ffi.cdef("struct foo_s { %s x; ...; };" % typename)
539 ffi.cdef("struct foo_s { int a[17]; ...; };")
547 ffi.cdef("struct foo_s { int a[]; int y; ...; };\n"
569 ffi.cdef("struct foo_s { int a[...]; };")
580 ffi.cdef("struct foo_s { int x; int a[]; };")
603 ffi.cdef("struct foo_s { int x; int a[]; ...; };")
619 ffi.cdef("struct foo_s { int (*a)[17]; ...; }; struct bar_s { ...; };")
628 ffi.cdef("struct foo_s { int a:2, b:3; };")
641 ffi.cdef(code)
655 py.test.raises(NotImplementedError, ffi.cdef,
662 ffi.cdef("static const int AA, BB, CC, DD;")
687 ffi.cdef("static const unsigned short AA;")
694 ffi.cdef("static char *const PP;")
701 ffi.cdef("enum ee { EE1, EE2, EE3, ... \n \t };")
712 ffi.cdef("enum ee { EE1, EE2, EE3 };")
718 ffi.cdef("enum ee { EE1,EE2 }; typedef struct { enum ee x; } *sp;")
728 ffi.cdef("enum { EE1 }; enum { EE2, EE3 };")
736 ffi.cdef("enum { EE1, ... }; enum { EE3, ... };")
743 ffi.cdef("enum ee { EE1, EE2=\t..., EE3 };")
750 ffi.cdef("enum ee { EE1, EE2=\t... };")
756 ffi.cdef("enum ee2 { EE4=..., EE5=..., ... };")
763 ffi.cdef("int foo(int);")
777 ffi.cdef("#define FOO ...\n"
789 ffi.cdef("int foo(void);\n"
807 ffi.cdef("int somenumber; static int *const somenumberptr;")
819 ffi.cdef("int foo(int);\n"
850 ffi.cdef("struct foo { int x; ...; };\n"
876 ffi.cdef("int (*cb)(int);\n"
893 ffi.cdef("typedef int mycallback_t(int);\n"
911 ffi.cdef("typedef struct { int x; ...; } foo_t; int foo(foo_t *);")
922 ffi.cdef("""
948 ffi.cdef("typedef ... token_t;")
954 ffi.cdef("""
974 ffi.cdef("int foo(int x, ...);")
991 ffi.cdef("int foo(int x, ...);")
1000 ffi.cdef("struct foo_s { char a; int b; }; int foo(int x, ...);")
1019 ffi.cdef("struct foo_s { long a; double b; ...; };\n"
1036 ffi.cdef("struct foo_s { long a; ...; };\n"
1060 ffi.cdef("""
1080 ffi.cdef("int *(*const fooptr)(void);")
1093 ffi.cdef("""
1101 ffi.cdef("""
1109 ffi.cdef("""
1116 ffi.cdef("""
1129 ffi.cdef("""
1141 ffi.cdef("enum enum1_e { AA, BB };")
1149 ffi.cdef("typedef enum { AA, BB } enum1_t;")
1158 ffi.cdef("typedef enum { AA, BB } enum1_t;")
1165 ffi.cdef("typedef enum { AA, BB, ... } enum1_t;")
1174 ffi.cdef("""
1187 ffi.cdef("""
1199 ffi.cdef("""
1215 ffi.cdef("""
1228 ffi.cdef("""
1242 ffi.cdef("""
1262 ffi.cdef("typedef struct { int x; } **sp; void foo(sp);")
1269 ffi.cdef("struct foo_s { struct { int x; } someone; };")
1277 ffi.cdef("""
1299 ffi.cdef("""
1312 ffi.cdef("""
1322 ffi.cdef("""
1332 ffi.cdef("union foo_u { char x; long *z; };")
1337 ffi.cdef("union foo_u { char x; ...; };")
1343 ffi.cdef("struct foo_s { int x; ...; }; union foo_u { struct foo_s s; };")
1351 ffi.cdef("typedef union { char x; ...; } u1;")
1357 ffi.cdef("typedef struct { int x; ...; } s1;"
1369 ffi.cdef("struct foo_s { int b; ...; };")
1382 ffi.cdef("int foo(int);")
1393 ffi.cdef("int foo(int);")
1404 ffi.cdef("""
1421 ffi.cdef("struct foo_s { _Bool x; };"
1477 ffi.cdef("long double square(long double f); _Bool opposite(_Bool);")
1496 ffi.cdef("struct foo_s { %s x; };\n"
1512 ffi.cdef("""
1553 ffi.cdef("int foobar(void);")
1567 ffi.cdef("int foobar(void);")
1582 ffi.cdef("int printf(const char *, ...); FILE *setstdout(FILE *);")
1613 ffi.cdef("int myprintf11(const char *, int); FILE *myfile;")
1639 ffi.cdef("int fooarray[];")
1645 ffi.cdef("int fooarray[...];")
1653 ffi.cdef("int fooarray[...];")
1658 ffi.cdef("struct foo_s { ...; }; struct bar_s { struct foo_s f; ...; };")
1662 ffi.cdef("struct foo_s { struct bar_s f; ...; }; struct bar_s { ...; };")
1667 ffi.cdef("typedef ... foo_t; foo_t myfunc(void);")
1676 ffi1.cdef("typedef struct { int x; ...; } foo_t;")
1680 ffi2.cdef("int myfunc(foo_t *);")
1690 ffi1.cdef("enum foo_e { AA, ... };")
1694 ffi2.cdef("int myfunc(enum foo_e);")
1702 ffi.cdef("typedef struct { int x; } *mystruct_p;\n"
1726 ffi.cdef("enum foo_e { AA, BB, ... };")
1753 ffi.cdef("enum foo_e { AA };")
1759 ffi.cdef("int myfunc(void *);")
1773 ffi.cdef("""
1820 ffi.cdef("float sum3floats(float *);")
1832 ffi.cdef("char sum3chars(char *);")
1844 ffi.cdef("int seeme1(char *); int seeme2(int *);")
1869 ffi.cdef("int foo(int, char);")
1877 ffi.cdef("int f(void *);")
1883 ffi.cdef("""void somefunc(void);
1898 ffi.cdef("""struct s { int a; }; int foo(struct s);""")
1908 ffi.cdef("""const char *a[...];""")
1914 ffi.cdef("""const int a[];""")
1944 ffi.cdef(cdef_source)
2021 ffi.cdef("typedef ... foo_t; int f1(foo_t*); foo_t *f2(int);")
2067 ffi.cdef("int f(int);")
2088 ffi.cdef("void SetLastError(DWORD);")
2107 ffi1.cdef("int foo_verify_dlopen_flags_1;")
2114 ffi2.cdef("int *getptr(void);")
2124 ffi.cdef("typedef union { int a; float b; } Data;"
2155 ffi.cdef("#define ABA ...")
2164 e = py.test.raises(FFIError, ffi.cdef, "int foo(LPTSTR);")
2170 ffi.cdef("""
2188 ffi.cdef("#define FOO 0x123")
2194 ffi.cdef("#define FOO 123")
2202 ffi.cdef("""
2228 ffi.cdef, """typedef void... foo_t;""")
2230 ffi.cdef("typedef int... foo_t;")
2240 ffi.cdef("int my_value;")
2247 ffi.cdef("int myarray[50], my_value;")
2271 ffi.cdef("struct s { char *const *a; };")
2276 ffi1.cdef("void do_stuff(FILE *);")
2279 ffi2.cdef("FILE *barize(void);")
2308 ffi.cdef("void *malloc(size_t); void free(void *);")
2330 ffi.cdef("void *malloc(size_t); void free(void *);")
2352 ffi.cdef("")