1 #include "nit.common.h"
2 extern const int COLOR_file__Object__stdout
;
3 extern const int COLOR_string__Object__to_s
;
4 extern const int COLOR_stream__OStream__write
;
5 void file__Object__printn(val
* self
, val
* p0
);
6 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
7 void file__Object__print(val
* self
, val
* p0
);
8 extern const int COLOR_file__Object__stdin
;
9 extern const int COLOR_stream__IStream__read_char
;
10 char file__Object__getc(val
* self
);
11 extern const int COLOR_stream__IStream__read_line
;
12 val
* file__Object__gets(val
* self
);
13 extern const int COLOR_file__Object__file_getcwd
;
14 val
* string__NativeString__to_s(char* self
);
15 val
* file__Object__getcwd(val
* self
);
17 char* file__Object__file_getcwd(val
* self
);
18 extern const int COLOR_file__FStream___path
;
19 val
* file__FStream__path(val
* self
);
20 extern const int COLOR_file__FStream___file
;
21 extern const int COLOR_file__NativeFile__file_stat
;
22 void* file__FStream__file_stat(val
* self
);
23 void file__FStream__init(val
* self
);
24 extern const int COLOR_stream__IStream__eof
;
25 extern const int COLOR_stream__IOS__close
;
26 extern const int COLOR_string__String__to_cstring
;
27 void* file__NativeFile__io_open_read(void* self
, char* p0
);
28 extern const int COLOR_file__IFStream___end_reached
;
29 extern const int COLOR_stream__BufferedIStream___buffer_pos
;
30 extern const int COLOR_stream__BufferedIStream___buffer
;
31 extern const int COLOR_abstract_collection__RemovableCollection__clear
;
32 void file__IFStream__reopen(val
* self
);
33 extern const int COLOR_file__NativeFile__io_close
;
34 void file__IFStream__close(val
* self
);
35 extern const int COLOR_string__AbstractString___items
;
36 extern const int COLOR_string__Buffer___capacity
;
37 extern const int COLOR_file__NativeFile__io_read
;
38 extern const struct type type_kernel__Int
;
39 extern const int COLOR_array__AbstractArrayRead___length
;
40 void file__IFStream__fill_buffer(val
* self
);
41 short int file__IFStream__end_reached(val
* self
);
42 extern const int COLOR_file__FStream__init
;
43 extern const int COLOR_stream__BufferedIStream__init
;
44 extern const int COLOR_stream__BufferedIStream__prepare_buffer
;
45 void file__IFStream__open(val
* self
, val
* p0
);
46 void file__IFStream__init(val
* self
);
47 void file__IFStream__without_file(val
* self
);
48 extern const int COLOR_file__OFStream___writable
;
49 extern const int COLOR_abstract_collection__Collection__length
;
50 extern const int COLOR_file__OFStream__write_native
;
51 void file__OFStream__write(val
* self
, val
* p0
);
52 short int file__OFStream__is_writable(val
* self
);
53 void file__OFStream__close(val
* self
);
54 extern const int COLOR_file__NativeFile__io_write
;
55 val
* NEW_array__Array(const struct type
* type
);
56 extern const struct type type_array__Arraykernel__Object
;
57 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
58 extern const struct type type_array__NativeArraykernel__Object
;
59 extern const int COLOR_array__Array__with_native
;
60 extern const int COLOR_file__Object__printn
;
61 void file__OFStream__write_native(val
* self
, char* p0
, long p1
);
62 void* file__NativeFile__io_open_write(void* self
, char* p0
);
63 void file__OFStream__open(val
* self
, val
* p0
);
64 void file__OFStream__init(val
* self
);
65 void file__OFStream__without_file(val
* self
);
66 extern const int COLOR_file__IFStream__init
;
67 void* file__NativeFile__native_stdin(void* self
);
68 void file__Stdin__init(val
* self
);
69 short int file__Stdin__poll_in(val
* self
);
70 extern const int COLOR_file__OFStream__init
;
71 void* file__NativeFile__native_stdout(void* self
);
72 void file__Stdout__init(val
* self
);
73 void* file__NativeFile__native_stderr(void* self
);
74 void file__Stderr__init(val
* self
);
75 short int file__NativeString__file_exists(char* self
);
76 short int file__String__file_exists(val
* self
);
77 void* file__NativeString__file_stat(char* self
);
78 void* file__String__file_stat(val
* self
);
79 void* file__NativeString__file_lstat(char* self
);
80 void* file__String__file_lstat(val
* self
);
81 short int file__NativeString__file_delete(char* self
);
82 short int file__String__file_delete(val
* self
);
83 extern const int COLOR_string__AbstractString__has_suffix
;
84 extern const int COLOR_string__AbstractString__substring
;
85 val
* file__String__strip_extension(val
* self
, val
* p0
);
86 extern const int COLOR_array__AbstractArrayRead__last_index_of_from
;
87 extern const int COLOR_string__AbstractString__substring_from
;
88 extern const int COLOR_file__String__strip_extension
;
89 val
* file__String__basename(val
* self
, val
* p0
);
90 extern const int COLOR_abstract_collection__SequenceRead___91d_93d
;
91 extern const struct class class_kernel__Char
;
92 val
* file__String__dirname(val
* self
);
93 char* file__NativeString__file_realpath(char* self
);
94 val
* string__NativeString__to_s_with_copy(char* self
);
95 val
* file__String__realpath(val
* self
);
96 extern const int COLOR_string_search__String__split_with
;
97 extern const struct type type_array__Arraystring__String
;
98 extern const int COLOR_array__Array__init
;
99 extern const int COLOR_abstract_collection__Collection__iterator
;
100 extern const int COLOR_abstract_collection__Iterator__is_ok
;
101 extern const int COLOR_abstract_collection__Iterator__item
;
102 extern const int COLOR_kernel__Object___61d_61d
;
103 extern const int COLOR_abstract_collection__Collection__is_empty
;
104 extern const int COLOR_abstract_collection__SequenceRead__last
;
105 extern const int COLOR_kernel__Object___33d_61d
;
106 extern const int COLOR_abstract_collection__Sequence__pop
;
107 extern const int COLOR_abstract_collection__Sequence__push
;
108 extern const int COLOR_abstract_collection__Iterator__next
;
109 extern const int COLOR_string__Collection__join
;
110 val
* file__String__simplify_path(val
* self
);
111 extern const int COLOR_array__Array__with_capacity
;
112 extern const int COLOR_abstract_collection__SimpleCollection__add
;
113 val
* file__String__join_path(val
* self
, val
* p0
);
114 val
* NEW_string__Buffer(const struct type
* type
);
115 extern const struct type type_string__Buffer
;
116 extern const int COLOR_string__Buffer__init
;
117 extern const int COLOR_abstract_collection__Sequence__append
;
118 short int file__NativeString__file_mkdir(char* self
);
119 void file__String__mkdir(val
* self
);
120 void file__NativeString__file_chdir(char* self
);
121 void file__String__chdir(val
* self
);
122 extern const int COLOR_array__AbstractArrayRead__last_index_of
;
123 val
* file__String__file_extension(val
* self
);
124 val
* file__String__files(val
* self
);
125 long file__FileStat__mode(void* self
);
126 long file__FileStat__atime(void* self
);
127 long file__FileStat__ctime(void* self
);
128 long file__FileStat__mtime(void* self
);
129 long file__FileStat__size(void* self
);
130 short int file__FileStat__is_reg(void* self
);
131 short int file__FileStat__is_dir(void* self
);
132 short int file__FileStat__is_chr(void* self
);
133 short int file__FileStat__is_blk(void* self
);
134 short int file__FileStat__is_fifo(void* self
);
135 short int file__FileStat__is_lnk(void* self
);
136 short int file__FileStat__is_sock(void* self
);
137 long file__NativeFile__io_read(void* self
, char* p0
, long p1
);
138 long file__NativeFile__io_write(void* self
, char* p0
, long p1
);
139 long file__NativeFile__io_close(void* self
);
140 void* file__NativeFile__file_stat(void* self
);
141 val
* NEW_file__Stdin(const struct type
* type
);
142 extern const struct type type_file__Stdin
;
143 extern const int COLOR_file__Stdin__init
;
144 val
* file__Object__stdin(val
* self
);
145 val
* NEW_file__Stdout(const struct type
* type
);
146 extern const struct type type_file__Stdout
;
147 extern const int COLOR_file__Stdout__init
;
148 val
* file__Object__stdout(val
* self
);
149 val
* NEW_file__Stderr(const struct type
* type
);
150 extern const struct type type_file__Stderr
;
151 extern const int COLOR_file__Stderr__init
;
152 val
* file__Object__stderr(val
* self
);