1 USING: alien.c-types alien.syntax io.encodings.ascii
2 io.streams.string prettyprint see tools.test ;
3 IN: alien.prettyprint.tests
7 FUNCTION: int function_test ( float x, int[4][FOO] y, char* z, ushort *w )
9 { "USING: alien.c-types alien.syntax ;
10 IN: alien.prettyprint.tests
11 FUNCTION: int function_test
12 ( float x, int[4][FOO] y, char* z, ushort* w ) ; inline
14 [ \ function_test see ] with-string-writer
17 FUNCTION-ALIAS: function-test int function_test
18 ( float x, int[4][FOO] y, char* z, ushort *w )
20 { "USING: alien.c-types alien.syntax ;
21 IN: alien.prettyprint.tests
22 FUNCTION-ALIAS: function-test int function_test
23 ( float x, int[4][FOO] y, char* z, ushort* w ) ; inline
25 [ \ function-test see ] with-string-writer
28 TYPEDEF: c-string[ascii] string-typedef
29 TYPEDEF: char[1][2][3] array-typedef
31 { "USING: alien.c-types alien.syntax ;
32 IN: alien.prettyprint.tests
33 TYPEDEF: c-string[ascii] string-typedef
35 [ \ string-typedef see ] with-string-writer
38 { "USING: alien.c-types alien.syntax ;
39 IN: alien.prettyprint.tests
40 TYPEDEF: char[1][2][3] array-typedef
42 [ \ array-typedef see ] with-string-writer
47 { "USING: alien.syntax ;
48 IN: alien.prettyprint.tests
51 [ \ opaque-c-type see ] with-string-writer
54 TYPEDEF: pointer: int pint
56 { "USING: alien.c-types alien.syntax ;
57 IN: alien.prettyprint.tests
60 [ \ pint see ] with-string-writer
63 { "pointer: int" } [ pointer: int unparse ] unit-test
65 CALLBACK: void callback-test ( int x, float[4] y )
67 { "USING: alien.c-types alien.syntax ;
68 IN: alien.prettyprint.tests
69 CALLBACK: void callback-test ( int x, float[4] y ) ;
71 [ \ callback-test see ] with-string-writer