1 #include "nit.common.h"
2 #define COLOR_core__file__FileStream___path 1
3 #define COLOR_core__file__FileStream___file 2
4 short int core___core__Pointer___Object___61d_61d(val
* self
, val
* p0
);
5 int core__kernel___Pointer_address_is_null___impl( void* self
);
6 #define COLOR_core__stream__Stream___last_error 0
7 #define COLOR_core__kernel__Object___61d_61d 4
8 val
* NEW_core__IOError(const struct type
* type
);
9 extern const struct type type_core__IOError
;
10 val
* core__flat___CString___to_s_unsafe(char* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
11 #define COLOR_core__error__Error__message_61d 12
12 #define COLOR_core__kernel__Object__init 0
13 long core__file___NativeFile_io_close___impl( void* self
);
14 val
* NEW_core__NativeArray(int length
, const struct type
* type
);
15 extern const struct type type_core__NativeArray__core__String
;
16 long core__kernel___Sys_errno___impl( struct nitni_instance
* self
);
17 val
* core__abstract_text___Int___strerror(long self
);
18 #define COLOR_core__abstract_text__NativeArray__native_to_s 12
19 extern const struct type type_core__Int
;
20 extern const char FILE_core__kernel
[];
21 extern const char FILE_core__file
[];
22 long core__file___NativeFile_set_buffering_type___impl( void* self
, long buf_length
, long mode
);
23 #define COLOR_core___core__FileReader___core__stream__Stream__close 31
24 void core___core__BufferedReader___buffer_reset(val
* self
);
25 #define COLOR_core__file__FileReader___end_reached 8
26 #define COLOR_core__stream__BufferedReader___buffer 3
27 #define COLOR_core__stream__BufferedReader___buffer_capacity 7
28 long core__file___NativeFile_io_read___impl( void* self
, char* buf
, long len
);
29 int core__file___NativeFile_ferror___impl( void* self
);
30 #define COLOR_core__stream__BufferedReader___buffer_length 6
31 #define COLOR_core__stream__BufferedReader___buffer_pos 4
32 void core___core__BufferedReader___prepare_buffer(val
* self
, long p0
);
33 val
* NEW_core__file__NativeFile(const struct type
* type
);
34 extern const struct type type_core__file__NativeFile
;
35 #define COLOR_core__abstract_text__Text__to_cstring 24
36 val
* core__file___core__file__NativeFile___io_open_read(val
* self
, char* p0
);
37 #define COLOR_core__file__FileWriter___is_writable 3
38 #define COLOR_core__bytes__Bytes___items 2
39 #define COLOR_core__bytes__Bytes___length 3
40 void core___core__FileWriter___write_native(val
* self
, char* p0
, long p1
, long p2
);
41 #define COLOR_core__file__Text__write_native_to 60
42 #define COLOR_core___core__FileWriter___core__stream__Stream__close 24
43 long core__file___NativeFile_io_write___impl( void* self
, char* buf
, long from
, long len
);
44 val
* core__flat___Int___core__abstract_text__Object__to_s(long self
);
45 val
* core__file___core__file__NativeFile___io_open_write(val
* self
, char* p0
);
46 #define COLOR_core___core__Stdin___core__kernel__Object__init 32
47 val
* core__file___core__file__NativeFile___native_stdin(val
* self
);
48 #define COLOR_core___core__Stdout___core__kernel__Object__init 25
49 val
* core__file___core__file__NativeFile___native_stdout(val
* self
);
50 long core__file___Sys_buffer_mode_line___impl( struct nitni_instance
* self
);
51 void core___core__FileStream___set_buffering_mode(val
* self
, long p0
, long p1
);
52 #define COLOR_core___core__Stderr___core__kernel__Object__init 25
53 val
* core__file___core__file__NativeFile___native_stderr(val
* self
);
54 val
* NEW_core__FileWriter(const struct type
* type
);
55 extern const struct type type_core__FileWriter
;
56 void core___core__FileWriter___open(val
* self
, val
* p0
);
57 #define COLOR_core__stream__Writable__write_to 33
58 void core___core__FileWriter___core__stream__Stream__close(val
* self
);
59 #define COLOR_core__file__Path___path 0
60 #define COLOR_core__file__Path___simplified 3
61 val
* core__file___String___simplify_path(val
* self
);
62 val
* core__file___Text___to_path(val
* self
);
63 void core___core__Path___simplified_61d(val
* self
, val
* p0
);
64 #define COLOR_core__file__Path___last_error 7
65 val
* core___core__Path___open_ro(val
* self
);
66 val
* core___core__Path___open_wo(val
* self
);
67 short int core___core__BufferedReader___Reader__eof(val
* self
);
68 val
* core___core__BufferedReader___Reader__read_bytes(val
* self
, long p0
);
69 void core___core__FileWriter___core__stream__Writer__write_bytes(val
* self
, val
* p0
);
70 void core___core__FileReader___core__stream__Stream__close(val
* self
);
71 val
* NEW_core__FileReader(const struct type
* type
);
72 extern const struct type type_core__FileReader
;
73 void core___core__FileReader___open(val
* self
, val
* p0
);
74 extern const struct type type_core__Path
;
75 val
* core___core__Path___simplified(val
* self
);
76 #define COLOR_core__kernel__Object__hash 8
77 #define COLOR_core___core__Path___core__kernel__Object__init 20
78 #define COLOR_core__file__FileStat___stat 0
79 #define COLOR_core__file__FileStat___finalized 1
80 void core__kernel___Pointer_free___impl( void* self
);
81 int core__file___NativeFileStat_is_dir___impl( void* self
);
82 #define COLOR_core___core__FileStat___core__kernel__Object__init 18
83 val
* NEW_core__Path(const struct type
* type
);
84 #define COLOR_core__abstract_text__Object__to_s 3
85 #define COLOR_core__file__Path__path_61d 16
86 #define COLOR_core__abstract_text__Text__substrings 41
87 #define COLOR_core__abstract_collection__Iterator__iterator 16
88 #define COLOR_core__abstract_collection__Iterator__is_ok 12
89 #define COLOR_core__abstract_collection__Iterator__item 13
90 #define COLOR_core__abstract_text__FlatText___byte_length 5
91 #define COLOR_core__abstract_collection__Iterator__next 14
92 #define COLOR_core__abstract_collection__Iterator__finish 15
93 int core__file___CString_file_exists___impl( char* self
);
94 val
* BOX_core__Pointer(void*);
95 extern const struct type type_core__file__NativeFileStat
;
96 extern const struct class class_core__file__NativeFileStat
;
97 void* core__file___CString_file_stat___impl( char* self
);
98 val
* NEW_core__FileStat(const struct type
* type
);
99 extern const struct type type_core__FileStat
;
100 #define COLOR_core__file__FileStat__stat_61d 14
101 void core___core__Path___copy(val
* self
, val
* p0
);
102 #define COLOR_core__file__String__file_extension 98
103 short int core___core__Text___has_suffix(val
* self
, val
* p0
);
104 #define COLOR_core__abstract_text__Text__length 25
105 #define COLOR_core__abstract_text__Text__substring 28
106 int core__kernel___Sys_is_windows___impl( struct nitni_instance
* self
);
107 #define COLOR_core__abstract_text__Text__chars 27
108 #define COLOR_core__abstract_collection__SequenceRead___91d_93d 34
109 #define COLOR_core__abstract_collection__SequenceRead__last_index_of_from 40
110 long core___core__Text___last_index_of_from(val
* self
, uint32_t p0
, long p1
);
111 long core___core__Int___Comparable__max(long self
, long p0
);
112 val
* core__file___String___strip_extension(val
* self
, val
* p0
);
113 char* core__file___CString_file_realpath___impl( char* self
);
114 short int core__file___Text___file_exists(val
* self
);
115 val
* core__flat___CString___core__abstract_text__Object__to_s(char* self
);
116 val
* core__string_search___Text___split_with(val
* self
, val
* p0
);
117 val
* NEW_core__Array(const struct type
* type
);
118 extern const struct type type_core__Array__core__String
;
119 void core___core__Array___core__kernel__Object__init(val
* self
);
120 val
* core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(val
* self
);
121 short int core___core__AbstractArrayRead___core__abstract_collection__Collection__is_empty(val
* self
);
122 val
* core___core__SequenceRead___last(val
* self
);
123 val
* core___core__AbstractArray___core__abstract_collection__Sequence__pop(val
* self
);
124 void core___core__AbstractArray___core__abstract_collection__Sequence__push(val
* self
, val
* p0
);
125 #define COLOR_core__array__AbstractArrayRead___length 0
126 val
* core___core__SequenceRead___Collection__first(val
* self
);
127 val
* core__abstract_text___Collection___join(val
* self
, val
* p0
, val
* p1
);
128 #define COLOR_core__abstract_text__Text__is_empty 43
129 uint32_t core___core__Text___last(val
* self
);
130 val
* core__file___String___join_path(val
* self
, val
* p0
);
131 val
* core__file___Sys___getcwd(val
* self
);
132 val
* core__file___String____47d(val
* self
, val
* p0
);
133 val
* core__string_search___Text___split(val
* self
, val
* p0
);
134 val
* core___core__AbstractArray___core__abstract_collection__Sequence__shift(val
* self
);
135 #define COLOR_core__abstract_text__Text___42d 45
136 #define COLOR_core__abstract_text__Text___43d 39
137 val
* NEW_core__FlatBuffer(const struct type
* type
);
138 extern const struct type type_core__FlatBuffer
;
139 #define COLOR_core___core__FlatBuffer___core__kernel__Object__init 122
140 val
* core___core__Array___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
);
141 void core___core__FlatBuffer___core__abstract_text__Buffer__add(val
* self
, uint32_t p0
);
142 void core___core__FlatBuffer___core__abstract_text__Buffer__append(val
* self
, val
* p0
);
143 char* core___core__FlatBuffer___core__abstract_text__Text__to_cstring(val
* self
);
144 int core__file___CString_file_mkdir___impl( char* self
, long mode
);
145 long core___core__Int___Discrete__successor(long self
, long p0
);
146 #define COLOR_core__abstract_collection__SequenceRead__last_index_of 37
147 val
* NEW_core__file__NativeDir(const struct type
* type
);
148 extern const struct type type_core__file__NativeDir
;
149 val
* core__file___core__file__NativeDir___opendir(val
* self
, char* p0
);
150 char* core__file___NativeDir_readdir___impl( void* self
);
151 void core___core__Array___core__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
152 void core__file___NativeDir_closedir___impl( void* self
);
153 #define COLOR_core__abstract_text__FlatText___items 3
154 #define COLOR_core__flat__FlatString___first_byte 6
155 long core__flat___FlatText___last_byte(val
* self
);
156 unsigned char core___core__Char___ascii(uint32_t self
);
157 val
* NEW_core__FlatString(const struct type
* type
);
158 extern const struct type type_core__FlatString
;
159 val
* core___core__FlatString___with_infos(val
* self
, char* p0
, long p1
, long p2
);
160 extern const struct class class_core__file__NativeFile
;
161 void* core__file___new_NativeFile_io_open_read___impl( char* path
);
162 void* core__file___new_NativeFile_io_open_write___impl( char* path
);
163 void* core__file___new_NativeFile_native_stdin___impl( );
164 void* core__file___new_NativeFile_native_stdout___impl( );
165 void* core__file___new_NativeFile_native_stderr___impl( );
166 extern const struct class class_core__file__NativeDir
;
167 void* core__file___new_NativeDir_opendir___impl( char* path
);
168 #define COLOR_core__file__Sys___stdout 3
169 val
* NEW_core__Stdout(const struct type
* type
);
170 extern const struct type type_core__Stdout
;
171 void core___core__Stdout___core__kernel__Object__init(val
* self
);
172 #define COLOR_core__file__Sys___stderr 5
173 val
* NEW_core__Stderr(const struct type
* type
);
174 extern const struct type type_core__Stderr
;
175 void core___core__Stderr___core__kernel__Object__init(val
* self
);
176 val
* core__file___Sys___stdout(val
* self
);
177 val
* core__flat___Array___core__abstract_text__Collection__plain_to_s(val
* self
);
178 void core___core__FileWriter___core__stream__Writer__write(val
* self
, val
* p0
);
179 val
* core__file___Sys___stderr(val
* self
);
180 char* core__file___Sys_native_getcwd___impl( struct nitni_instance
* self
);