Lines Matching refs:FFI
2 FFI 027: Incomplete and variable length arrays
9 $ffi = FFI::cdef();
18 FFI::cdef("static int (*foo)[*];");
24 FFI::cdef("typedef int foo[*];");
30 FFI::cdef("static void foo(int[*][*]);");
36 var_dump(FFI::sizeof($ffi->new("int[0]")));
41 var_dump(FFI::sizeof($ffi->new("int[]")));
46 var_dump(FFI::sizeof($ffi->cast("int[]", $ffi->new("int[2]"))));
51 FFI::cdef("struct _x {int a; int b[];};");
57 $f = FFI::cdef("typedef int(*foo)[];");
63 $f = FFI::cdef("typedef int foo[][2];");
69 $f = FFI::cdef("typedef int foo[];");
75 $f = FFI::cdef("static int foo(int[]);");
82 FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
83 FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
84 FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
86 FFI\Exception: Cannot instantiate FFI\CData of zero size
87 FFI\ParserException: "[]" is not allowed at line 1
88 FFI\ParserException: "[]" is not allowed at line 1