Lines Matching refs:cdef
86 ffi.cdef("double sin(double x);")
94 ffi.cdef("int pipe(int pipefd[2]);")
103 ffi.cdef("short foo(int, ...);")
112 ffi.cdef("""
121 ffi.cdef("""
133 ffi.cdef("""
146 ffi.cdef("""
156 ffi.cdef("""
173 ffi.cdef("""
190 ffi.cdef("""
202 e = py.test.raises(CDefError, ffi.cdef, '#define FOO "blah"')
213 ffi.cdef("typedef struct { int x; } foo_t;\n"
229 ffi.cdef("int foo(void);")
230 py.test.raises(FFIError, ffi.cdef, "long foo(void);")
232 ffi.cdef("long foo(void);", override=True)
238 e = py.test.raises(CDefError, ffi.cdef, "int foo(...);")
245 e = py.test.raises(CDefError, ffi.cdef, " x y z ")
248 e = py.test.raises(CDefError, ffi.cdef, "\n\n\n x y z ")
254 e = py.test.raises(CDefError, ffi.cdef, """
263 e = py.test.raises(NotImplementedError, ffi.cdef,
281 ffi.cdef("typedef char FILE;")
283 ffi.cdef("typedef char int32_t;")
286 ffi.cdef("typedef int bool, *FILE;")
291 ffi.cdef("typedef bool (*fn_t)(bool, bool);") # "bool," but within "( )"
295 ffi.cdef("void f(bool);")
298 ffi.cdef("typedef _Bool bool; void f(bool);")
302 e = py.test.raises(CDefError, ffi.cdef, "void f(foobarbazzz);")
310 ffi.cdef("typedef void void_t1;"
319 ffi.cdef("void f(WPARAM);")
344 ffi.cdef(input)
357 ffi.cdef(input)
411 ffi.cdef("""
438 ffi.cdef("""
451 ffi.cdef("""
466 e = py.test.raises(CDefError, ffi.cdef, 'void foo(void) {}')