Home
last modified time | relevance | path

Searched refs:cdef (Results 1 – 25 of 32) sorted by relevance

12

/PHP-7.4/ext/ffi/tests/
H A D015.phpt10 FFI::cdef("struct DIR; static struct DIR dir;");
16 FFI::cdef("struct DIR; static struct DIR *ptr;");
22 FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR dir;");
28 FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR *ptr;");
34 FFI::cdef("struct DIR; static struct DIR foo();");
40 FFI::cdef("struct DIR; static struct DIR* foo();");
46 FFI::cdef("struct DIR; static void foo(struct DIR);");
52 FFI::cdef("struct DIR; static void foo(struct DIR*);");
H A D028.phpt10 FFI::cdef("struct _x {int a; int b[0];};");
16 FFI::cdef("struct _x {int a; int b[];};");
22 FFI::cdef("struct _x {int a[0]; int b;};");
28 FFI::cdef("struct _x {int a[]; int b;};");
34 FFI::cdef("struct _x { struct {int a; int b[];}; int c;};");
40 FFI::cdef("union _x {int a; int b[];};");
H A D027.phpt16 FFI::cdef("static int (*foo)[*];");
22 FFI::cdef("typedef int foo[*];");
28 FFI::cdef("static void foo(int[*][*]);");
49 FFI::cdef("struct _x {int a; int b[];};");
55 $f = FFI::cdef("typedef int(*foo)[];");
61 $f = FFI::cdef("typedef int foo[][2];");
67 $f = FFI::cdef("typedef int foo[];");
73 $f = FFI::cdef("static int foo(int[]);");
H A Dbug79096.phpt21 $ffi = FFI::cdef($header);
24 $ffi = FFI::cdef($header, 'php_zend_test.dll');
26 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A Dbug79532.phpt17 $ffi = FFI::cdef($header);
20 $ffi = FFI::cdef($header, 'php_zend_test.dll');
22 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A D013.phpt26 FFI::cdef("static int foo(int)[5];");
32 FFI::cdef("static int foo[5](int);");
38 FFI::cdef("static int foo(int)(int);");
44 FFI::cdef("typedef int foo[2][];");
50 FFI::cdef("typedef int foo[][2];");
H A D016.phpt10 FFI::cdef("struct X {void x();};");
16 FFI::cdef("struct X {struct X x;};");
22 FFI::cdef("struct X {struct X *ptr;};");
H A D043.phpt9 FFI::cdef("
17 #0 %s043.php(2): FFI::cdef('%s')
H A Dbug79576.phpt11 FFI::cdef('struct tree *get_tree(const oid *, size_t, struct tree *);');
16 FFI::cdef('struct tree *get_tree(oid, size_t, struct tree *);');
21 FFI::cdef('
H A Dbug77632.phpt7 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
16 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
H A D019.phpt10 FFI::cdef("static int foo(int[]);");
16 FFI::cdef("static int foo(int bar(int));");
H A Dutils.inc6 return FFI::cdef($code, $lib);
8 return FFI::cdef($code);
H A Dbug79177.phpt17 $ffi = FFI::cdef($header);
20 $ffi = FFI::cdef($header, 'php_zend_test.dll');
22 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A D018.phpt10 FFI::cdef("struct X {struct X x[2];};");
16 FFI::cdef("struct X {struct X *ptr[2];};");
H A Dbug77632b.phpt8 FFI::cdef("extern void *zend_printf;", ffi_get_php_dll_name());
18 $libc = FFI::cdef("extern size_t (*zend_printf)(const char *format, ...);", ffi_get_php_dll_name());
H A Dbug78270_1.phpt15 FFI::cdef(<<<EOC
25 $ffi = FFI::cdef(<<<EOC
H A Dbug77768.phpt7 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
16 $x = FFI::cdef("
H A D200.phpt8 FFI::cdef("void* zend_write;", ffi_get_php_dll_name());
18 $zend = FFI::cdef("
H A Dbug78543.phpt7 $ffi = FFI::cdef(' struct test { int dummy; }; ');
H A Dbug78270_2.phpt10 FFI::cdef(<<<EOC
33 $ffi = FFI::cdef($signature);
H A Dbug80186.phpt9 $ffi = FFI::cdef('typedef int dummy;');
H A D029.phpt9 $ffi = FFI::cdef("
H A Dbug77706.phpt7 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
30 $ffi = FFI::cdef($header, 'libc.so.6');
H A Dbug79571.phpt12 $ffi = FFI::cdef(<<<EOF
H A Dcallconv.phpt19 $ffi1 = FFI::cdef($header, $dllname);

Completed in 19 milliseconds

12