ni_nitdoc: added fast copy past utility to signatures.
[nit.git] / c_src / file._nitni.h
1 #include <nit_common.h>
2 #include "standard___file._sep.h"
3 #ifndef FILE_NITNI_H
4 #define FILE_NITNI_H
5
6 #ifndef STDIN_TYPE
7 #define STDIN_TYPE
8 struct s_Stdin{
9 struct nitni_ref ref; /* real ref struct, must be first */
10 };
11 typedef struct s_Stdin *Stdin;
12 #define Stdin_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
13 #define Stdin_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
14 #endif
15 #ifndef STRING_TYPE
16 #define STRING_TYPE
17 struct s_String{
18 struct nitni_ref ref; /* real ref struct, must be first */
19 };
20 typedef struct s_String *String;
21 #define String_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
22 #define String_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
23 #endif
24 #ifndef SET_TYPE
25 #define SET_TYPE
26 struct s_Set{
27 struct nitni_ref ref; /* real ref struct, must be first */
28 };
29 typedef struct s_Set *Set;
30 #define Set_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
31 #define Set_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
32 #endif
33 #ifndef HASHSET_TYPE
34 #define HASHSET_TYPE
35 struct s_HashSet{
36 struct nitni_ref ref; /* real ref struct, must be first */
37 };
38 typedef struct s_HashSet *HashSet;
39 #define HashSet_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
40 #define HashSet_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
41 #endif
42 #ifndef OBJECT_TYPE
43 #define OBJECT_TYPE
44 struct s_Object{
45 struct nitni_ref ref; /* real ref struct, must be first */
46 };
47 typedef struct s_Object *Object;
48 #define Object_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
49 #define Object_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
50 #endif
51 #ifndef HASHSET_TYPE
52 #define HASHSET_TYPE
53 struct s_HashSet{
54 struct nitni_ref ref; /* real ref struct, must be first */
55 };
56 typedef struct s_HashSet *HashSet;
57 #define HashSet_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
58 #define HashSet_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
59 #endif
60 #include "file_nit.h"
61
62 /* out/indirect function for file::Stdin::poll_in */
63 val_t Stdin_poll_in___out( val_t recv );
64
65 /* out/indirect function for file::String::files */
66 val_t String_files___out( val_t recv );
67
68 /* out/indirect function for file::NativeString::file_exists */
69 val_t NativeString_file_exists___out( val_t recv );
70
71 /* out/indirect function for file::NativeString::file_stat */
72 val_t NativeString_file_stat___out( val_t recv );
73
74 /* out/indirect function for file::NativeString::file_mkdir */
75 val_t NativeString_file_mkdir___out( val_t recv );
76
77 /* out/indirect function for file::NativeString::file_delete */
78 val_t NativeString_file_delete___out( val_t recv );
79
80 /* out/indirect function for file::FileStat::mode */
81 val_t FileStat_mode___out( val_t recv );
82
83 /* out/indirect function for file::FileStat::atime */
84 val_t FileStat_atime___out( val_t recv );
85
86 /* out/indirect function for file::FileStat::ctime */
87 val_t FileStat_ctime___out( val_t recv );
88
89 /* out/indirect function for file::FileStat::mtime */
90 val_t FileStat_mtime___out( val_t recv );
91
92 /* out/indirect function for file::FileStat::size */
93 val_t FileStat_size___out( val_t recv );
94
95 /* out/indirect function for file::NativeFile::io_read */
96 val_t NativeFile_io_read___out( val_t recv, val_t buf, val_t len );
97
98 /* out/indirect function for file::NativeFile::io_write */
99 val_t NativeFile_io_write___out( val_t recv, val_t buf, val_t len );
100
101 /* out/indirect function for file::NativeFile::io_close */
102 val_t NativeFile_io_close___out( val_t recv );
103
104 /* out/indirect function for file::NativeFile::file_stat */
105 val_t NativeFile_file_stat___out( val_t recv );
106
107 /* out/indirect function for file::NativeFile::io_open_read */
108 val_t NEW_NativeFile_standard___file___NativeFile___io_open_read( val_t path );
109
110 /* out/indirect function for file::NativeFile::io_open_write */
111 val_t NEW_NativeFile_standard___file___NativeFile___io_open_write( val_t path );
112
113 /* out/indirect function for file::NativeFile::native_stdin */
114 val_t NEW_NativeFile_standard___file___NativeFile___native_stdin( );
115
116 /* out/indirect function for file::NativeFile::native_stdout */
117 val_t NEW_NativeFile_standard___file___NativeFile___native_stdout( );
118
119 /* out/indirect function for file::NativeFile::native_stderr */
120 val_t NEW_NativeFile_standard___file___NativeFile___native_stderr( );
121 /* friendly for hash_collection::HashSet::init */
122 HashSet file_new_HashSet( );
123 #ifndef new_HashSet
124 #define new_HashSet file_new_HashSet
125 #endif
126 /* friendly for hash_collection::HashSet::(abstract_collection::SimpleCollection::add) */
127 void file_HashSet_add( HashSet recv, Object item );
128 #ifndef HashSet_add
129 #define HashSet_add file_HashSet_add
130 #endif
131 /* friendly for string::String::from_cstring */
132 String file_new_String_from_cstring( char * str );
133 #ifndef new_String_from_cstring
134 #define new_String_from_cstring file_new_String_from_cstring
135 #endif
136 /* friendly for string::String::to_cstring */
137 char * file_String_to_cstring( String recv );
138 #ifndef String_to_cstring
139 #define String_to_cstring file_String_to_cstring
140 #endif
141
142 /* Type check for HashSet[String] with Set[String] */
143 int file_HashSet_is_a_Set( HashSet value );
144 #ifndef HashSet_is_a_Set
145 #define HashSet_is_a_Set file_HashSet_is_a_Set
146 #endif
147
148 /* Cast for HashSet[String] to Set[String] */
149 Set file_HashSet_as_Set( HashSet value );
150 #ifndef HashSet_as_Set
151 #define HashSet_as_Set file_HashSet_as_Set
152 #endif
153
154 /* Type check for String with Object */
155 int file_String_is_a_Object( String value );
156 #ifndef String_is_a_Object
157 #define String_is_a_Object file_String_is_a_Object
158 #endif
159
160 /* Cast for String to Object */
161 Object file_String_as_Object( String value );
162 #ifndef String_as_Object
163 #define String_as_Object file_String_as_Object
164 #endif
165 #endif