|
22 | 22 | */ |
23 | 23 | return [ |
24 | 24 | 'new' => [ |
25 | | - 'FFI::addr' => ['FFI\CData', '&ptr'=>'FFI\CData'], |
26 | | - 'FFI::alignof' => ['int', '&ptr'=>'mixed'], |
| 25 | + 'FFI::addr' => ['FFI\CData', 'ptr'=>'FFI\CData'], |
| 26 | + 'FFI::alignof' => ['int', 'ptr'=>'mixed'], |
27 | 27 | 'FFI::arrayType' => ['FFI\CType', 'type'=>'string|FFI\CType', 'dims'=>'array<int,int>'], |
28 | | - 'FFI::cast' => ['FFI\CData', 'type'=>'string|FFI\CType', '&ptr'=>''], |
| 28 | + 'FFI::cast' => ['FFI\CData', 'type'=>'string|FFI\CType', 'ptr'=>''], |
29 | 29 | 'FFI::cdef' => ['FFI', 'code='=>'string', 'lib='=>'?string'], |
30 | | - 'FFI::free' => ['void', '&ptr'=>'FFI\CData'], |
| 30 | + 'FFI::free' => ['void', 'ptr'=>'FFI\CData'], |
31 | 31 | 'FFI::load' => ['FFI', 'filename'=>'string'], |
32 | | - 'FFI::memcmp' => ['int', '&ptr1'=>'FFI\CData|string', '&ptr2'=>'FFI\CData|string', 'size'=>'int'], |
33 | | - 'FFI::memcpy' => ['void', '&dst'=>'FFI\CData', '&src'=>'string|FFI\CData', 'size'=>'int'], |
34 | | - 'FFI::memset' => ['void', '&ptr'=>'FFI\CData', 'ch'=>'int', 'size'=>'int'], |
| 32 | + 'FFI::memcmp' => ['int', 'ptr1'=>'FFI\CData|string', 'ptr2'=>'FFI\CData|string', 'size'=>'int'], |
| 33 | + 'FFI::memcpy' => ['void', 'dst'=>'FFI\CData', 'src'=>'string|FFI\CData', 'size'=>'int'], |
| 34 | + 'FFI::memset' => ['void', 'ptr'=>'FFI\CData', 'ch'=>'int', 'size'=>'int'], |
35 | 35 | 'FFI::new' => ['FFI\CData', 'type'=>'string|FFI\CType', 'owned='=>'bool', 'persistent='=>'bool'], |
36 | 36 | 'FFI::scope' => ['FFI', 'scope_name'=>'string'], |
37 | | - 'FFI::sizeof' => ['int', '&ptr'=>'FFI\CData|FFI\CType'], |
38 | | - 'FFI::string' => ['string', '&ptr'=>'FFI\CData', 'size='=>'int'], |
39 | | - 'FFI::typeof' => ['FFI\CType', '&ptr'=>'FFI\CData'], |
| 37 | + 'FFI::sizeof' => ['int', 'ptr'=>'FFI\CData|FFI\CType'], |
| 38 | + 'FFI::string' => ['string', 'ptr'=>'FFI\CData', 'size='=>'int'], |
| 39 | + 'FFI::typeof' => ['FFI\CType', 'ptr'=>'FFI\CData'], |
40 | 40 | 'FFI::type' => ['FFI\CType', 'type'=>'string'], |
41 | 41 | 'fread' => ['string|false', 'fp'=>'resource', 'length'=>'positive-int'], |
42 | 42 | 'get_mangled_object_vars' => ['array', 'obj'=>'object'], |
|
0 commit comments