1 USING: alien.c-types alien.prettyprint alien.syntax
\r
2 io.streams.string see tools.test prettyprint
\r
4 IN: alien.prettyprint.tests
\r
8 FUNCTION: int function_test ( float x, int[4][FOO] y, char* z, ushort *w ) ;
\r
10 [ "USING: alien.c-types alien.syntax ;
\r
11 IN: alien.prettyprint.tests
\r
12 FUNCTION: int function_test
\r
13 ( float x, int[4][FOO] y, char* z, ushort* w ) ; inline
\r
15 [ \ function_test see ] with-string-writer
\r
18 FUNCTION-ALIAS: function-test int function_test
\r
19 ( float x, int[4][FOO] y, char* z, ushort *w ) ;
\r
21 [ "USING: alien.c-types alien.syntax ;
\r
22 IN: alien.prettyprint.tests
\r
23 FUNCTION-ALIAS: function-test int function_test
\r
24 ( float x, int[4][FOO] y, char* z, ushort* w ) ; inline
\r
26 [ \ function-test see ] with-string-writer
\r
29 TYPEDEF: c-string[ascii] string-typedef
\r
30 TYPEDEF: char[1][2][3] array-typedef
\r
32 [ "USING: alien.c-types alien.syntax ;
\r
33 IN: alien.prettyprint.tests
\r
34 TYPEDEF: c-string[ascii] string-typedef
\r
36 [ \ string-typedef see ] with-string-writer
\r
39 [ "USING: alien.c-types alien.syntax ;
\r
40 IN: alien.prettyprint.tests
\r
41 TYPEDEF: char[1][2][3] array-typedef
\r
43 [ \ array-typedef see ] with-string-writer
\r
46 C-TYPE: opaque-c-type
\r
48 [ "USING: alien.syntax ;
\r
49 IN: alien.prettyprint.tests
\r
50 C-TYPE: opaque-c-type
\r
52 [ \ opaque-c-type see ] with-string-writer
\r
55 TYPEDEF: pointer: int pint
\r
57 [ "USING: alien.c-types alien.syntax ;
\r
58 IN: alien.prettyprint.tests
\r
61 [ \ pint see ] with-string-writer
\r
64 [ "pointer: int" ] [ pointer: int unparse ] unit-test
\r
66 CALLBACK: void callback-test ( int x, float[4] y ) ;
\r
68 [ "USING: alien.c-types alien.syntax ;
\r
69 IN: alien.prettyprint.tests
\r
70 CALLBACK: void callback-test ( int x, float[4] y ) ;
\r
72 [ \ callback-test see ] with-string-writer
\r