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