1 #include <nit_common.h>
2 #include "standard___file._sep.h"
9 struct nitni_ref ref
; /* real ref struct, must be first */
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) )
18 struct nitni_ref ref
; /* real ref struct, must be first */
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) )
27 struct nitni_ref ref
; /* real ref struct, must be first */
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) )
36 struct nitni_ref ref
; /* real ref struct, must be first */
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) )
45 struct nitni_ref ref
; /* real ref struct, must be first */
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) )
54 struct nitni_ref ref
; /* real ref struct, must be first */
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) )
61 #include <standard___file._ffi.h>
63 /* out/indirect function for file::Stdin::poll_in */
64 val_t
Stdin_poll_in___out( val_t recv
);
66 /* out/indirect function for file::String::files */
67 val_t
String_files___out( val_t recv
);
69 /* out/indirect function for file::NativeString::file_exists */
70 val_t
NativeString_file_exists___out( val_t recv
);
72 /* out/indirect function for file::NativeString::file_stat */
73 val_t
NativeString_file_stat___out( val_t recv
);
75 /* out/indirect function for file::NativeString::file_lstat */
76 val_t
NativeString_file_lstat___out( val_t recv
);
78 /* out/indirect function for file::NativeString::file_mkdir */
79 val_t
NativeString_file_mkdir___out( val_t recv
);
81 /* out/indirect function for file::NativeString::file_delete */
82 val_t
NativeString_file_delete___out( val_t recv
);
84 /* out/indirect function for file::FileStat::mode */
85 val_t
FileStat_mode___out( val_t recv
);
87 /* out/indirect function for file::FileStat::atime */
88 val_t
FileStat_atime___out( val_t recv
);
90 /* out/indirect function for file::FileStat::ctime */
91 val_t
FileStat_ctime___out( val_t recv
);
93 /* out/indirect function for file::FileStat::mtime */
94 val_t
FileStat_mtime___out( val_t recv
);
96 /* out/indirect function for file::FileStat::size */
97 val_t
FileStat_size___out( val_t recv
);
99 /* out/indirect function for file::FileStat::is_reg */
100 val_t
FileStat_is_reg___out( val_t recv
);
102 /* out/indirect function for file::FileStat::is_dir */
103 val_t
FileStat_is_dir___out( val_t recv
);
105 /* out/indirect function for file::FileStat::is_chr */
106 val_t
FileStat_is_chr___out( val_t recv
);
108 /* out/indirect function for file::FileStat::is_blk */
109 val_t
FileStat_is_blk___out( val_t recv
);
111 /* out/indirect function for file::FileStat::is_fifo */
112 val_t
FileStat_is_fifo___out( val_t recv
);
114 /* out/indirect function for file::FileStat::is_lnk */
115 val_t
FileStat_is_lnk___out( val_t recv
);
117 /* out/indirect function for file::FileStat::is_sock */
118 val_t
FileStat_is_sock___out( val_t recv
);
120 /* out/indirect function for file::NativeFile::io_read */
121 val_t
NativeFile_io_read___out( val_t recv
, val_t buf
, val_t len
);
123 /* out/indirect function for file::NativeFile::io_write */
124 val_t
NativeFile_io_write___out( val_t recv
, val_t buf
, val_t len
);
126 /* out/indirect function for file::NativeFile::io_close */
127 val_t
NativeFile_io_close___out( val_t recv
);
129 /* out/indirect function for file::NativeFile::file_stat */
130 val_t
NativeFile_file_stat___out( val_t recv
);
132 /* out/indirect function for file::NativeFile::io_open_read */
133 val_t
NEW_NativeFile_standard___file___NativeFile___io_open_read( val_t path
);
135 /* out/indirect function for file::NativeFile::io_open_write */
136 val_t
NEW_NativeFile_standard___file___NativeFile___io_open_write( val_t path
);
138 /* out/indirect function for file::NativeFile::native_stdin */
139 val_t
NEW_NativeFile_standard___file___NativeFile___native_stdin( );
141 /* out/indirect function for file::NativeFile::native_stdout */
142 val_t
NEW_NativeFile_standard___file___NativeFile___native_stdout( );
144 /* out/indirect function for file::NativeFile::native_stderr */
145 val_t
NEW_NativeFile_standard___file___NativeFile___native_stderr( );
146 /* friendly for hash_collection::HashSet::init */
147 HashSet
file_new_HashSet( );
149 #define new_HashSet file_new_HashSet
151 /* friendly for hash_collection::HashSet::(abstract_collection::SimpleCollection::add) */
152 void file_HashSet_add( HashSet recv
, Object item
);
154 #define HashSet_add file_HashSet_add
156 /* friendly for string::NativeString::(string::Object::to_s) */
157 String
file_NativeString_to_s( char * recv
);
158 #ifndef NativeString_to_s
159 #define NativeString_to_s file_NativeString_to_s
161 /* friendly for string::String::to_cstring */
162 char * file_String_to_cstring( String recv
);
163 #ifndef String_to_cstring
164 #define String_to_cstring file_String_to_cstring
167 /* Type check for HashSet[String] with Set[String] */
168 int file_HashSet_is_a_Set( HashSet value
);
169 #ifndef HashSet_is_a_Set
170 #define HashSet_is_a_Set file_HashSet_is_a_Set
173 /* Cast for HashSet[String] to Set[String] */
174 Set
file_HashSet_as_Set( HashSet value
);
175 #ifndef HashSet_as_Set
176 #define HashSet_as_Set file_HashSet_as_Set
179 /* Type check for String with Object */
180 int file_String_is_a_Object( String value
);
181 #ifndef String_is_a_Object
182 #define String_is_a_Object file_String_is_a_Object
185 /* Cast for String to Object */
186 Object
file_String_as_Object( String value
);
187 #ifndef String_as_Object
188 #define String_as_Object file_String_as_Object