Lines Matching refs:FFI
2 FFI 027: Incomplete and variable length arrays
10 $p = FFI::new("int[*]");
16 FFI::cdef("static int (*foo)[*];");
22 FFI::cdef("typedef int foo[*];");
28 FFI::cdef("static void foo(int[*][*]);");
34 var_dump(FFI::sizeof(FFI::new("int[0]")));
39 var_dump(FFI::sizeof(FFI::new("int[]")));
44 var_dump(FFI::sizeof(FFI::cast("int[]", FFI::new("int[2]"))));
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[]);");
80 FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
81 FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
82 FFI\ParserException: "[*]" is not allowed in other than function prototype scope at line 1
84 FFI\Exception: Cannot instantiate FFI\CData of zero size
85 FFI\ParserException: "[]" is not allowed at line 1
86 FFI\ParserException: "[]" is not allowed at line 1