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) )
62 /* out/indirect function for file::Stdin::poll_in */
63 val_t
Stdin_poll_in___out( val_t recv
);
65 /* out/indirect function for file::String::files */
66 val_t
String_files___out( val_t recv
);
68 /* out/indirect function for file::NativeString::file_exists */
69 val_t
NativeString_file_exists___out( val_t recv
);
71 /* out/indirect function for file::NativeString::file_stat */
72 val_t
NativeString_file_stat___out( val_t recv
);
74 /* out/indirect function for file::NativeString::file_mkdir */
75 val_t
NativeString_file_mkdir___out( val_t recv
);
77 /* out/indirect function for file::NativeString::file_delete */
78 val_t
NativeString_file_delete___out( val_t recv
);
80 /* out/indirect function for file::FileStat::mode */
81 val_t
FileStat_mode___out( val_t recv
);
83 /* out/indirect function for file::FileStat::atime */
84 val_t
FileStat_atime___out( val_t recv
);
86 /* out/indirect function for file::FileStat::ctime */
87 val_t
FileStat_ctime___out( val_t recv
);
89 /* out/indirect function for file::FileStat::mtime */
90 val_t
FileStat_mtime___out( val_t recv
);
92 /* out/indirect function for file::FileStat::size */
93 val_t
FileStat_size___out( val_t recv
);
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
);
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
);
101 /* out/indirect function for file::NativeFile::io_close */
102 val_t
NativeFile_io_close___out( val_t recv
);
104 /* out/indirect function for file::NativeFile::file_stat */
105 val_t
NativeFile_file_stat___out( val_t recv
);
107 /* out/indirect function for file::NativeFile::io_open_read */
108 val_t
NEW_NativeFile_standard___file___NativeFile___io_open_read( val_t path
);
110 /* out/indirect function for file::NativeFile::io_open_write */
111 val_t
NEW_NativeFile_standard___file___NativeFile___io_open_write( val_t path
);
113 /* out/indirect function for file::NativeFile::native_stdin */
114 val_t
NEW_NativeFile_standard___file___NativeFile___native_stdin( );
116 /* out/indirect function for file::NativeFile::native_stdout */
117 val_t
NEW_NativeFile_standard___file___NativeFile___native_stdout( );
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( );
124 #define new_HashSet file_new_HashSet
126 /* friendly for hash_collection::HashSet::(abstract_collection::SimpleCollection::add) */
127 void file_HashSet_add( HashSet recv
, Object item
);
129 #define HashSet_add file_HashSet_add
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
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
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
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
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
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