1 #include "nit.common.h"
2 #define COLOR_file__FStream___path 0
3 #define COLOR_file__FStream___file 1
5 #define COLOR_stream__BufferedIStream___buffer 2
6 void string__FlatBuffer__clear(val
* self
);
7 #define COLOR_file__IFStream___end_reached 4
8 void file__IFStream__close(val
* self
);
9 #define COLOR_string__FlatText___items 1
10 #define COLOR_string__FlatBuffer___capacity 7
11 extern const struct type type_kernel__Int
;
12 #define COLOR_string__FlatText___length 3
13 #define COLOR_stream__BufferedIStream___buffer_pos 3
14 void file__IFStream__fill_buffer(val
* self
);
15 #define COLOR_kernel__Object__init 7
16 void stream__BufferedIStream__prepare_buffer(val
* self
, long p0
);
17 val
* NEW_file__NativeFile(const struct type
* type
);
18 extern const struct type type_file__NativeFile
;
19 char* string__FlatString__to_cstring(val
* self
);
20 val
* file__NativeFile__io_open_read(val
* self
, char* p0
);
21 #include "kernel_nit.h"
22 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
23 long kernel___Sys_errno___impl( struct nitni_instance
* recv
);
24 val
* string__Int__strerror(long self
);
25 val
* NEW_array__Array(const struct type
* type
);
26 extern const struct type type_array__Arraykernel__Object
;
27 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
28 extern const struct type type_array__NativeArraykernel__Object
;
29 #define COLOR_array__Array__with_native 74
30 #define COLOR_string__Object__to_s 9
31 void file__Object__print(val
* self
, val
* p0
);
32 void file__IFStream__open(val
* self
, val
* p0
);
33 void file__IFStream__init(val
* self
);
34 #define COLOR_file__OFStream___is_writable 2
35 extern const struct type type_string__FlatText
;
36 #define COLOR_string__Text__to_cstring 54
37 void file__OFStream__write_native(val
* self
, char* p0
, long p1
);
38 #define COLOR_string__Text__substrings 49
39 val
* abstract_collection__Iterator__iterator(val
* self
);
40 #define COLOR_abstract_collection__Iterator__is_ok 33
41 #define COLOR_abstract_collection__Iterator__item 31
42 #define COLOR_abstract_collection__Iterator__next 32
43 void file__OFStream__write(val
* self
, val
* p0
);
44 void file__OFStream__close(val
* self
);
45 val
* BOX_kernel__Int(long);
46 void file__Object__printn(val
* self
, val
* p0
);
47 val
* file__NativeFile__io_open_write(val
* self
, char* p0
);
48 void file__OFStream__open(val
* self
, val
* p0
);
49 void file__OFStream__init(val
* self
);
50 val
* file__NativeFile__native_stdin(val
* self
);
51 void file__Stdin__init(val
* self
);
52 val
* file__NativeFile__native_stdout(val
* self
);
53 void file__Stdout__init(val
* self
);
54 val
* file__NativeFile__native_stderr(val
* self
);
55 void file__Stderr__init(val
* self
);
56 short int file__String__file_exists(val
* self
);
57 val
* NEW_file__IFStream(const struct type
* type
);
58 extern const struct type type_file__IFStream
;
59 val
* NEW_file__OFStream(const struct type
* type
);
60 extern const struct type type_file__OFStream
;
61 short int stream__BufferedIStream__eof(val
* self
);
62 val
* stream__BufferedIStream__read(val
* self
, long p0
);
63 void file__String__file_copy_to(val
* self
, val
* p0
);
64 short int string__Text__has_suffix(val
* self
, val
* p0
);
65 val
* string__FlatString__substring(val
* self
, long p0
, long p1
);
66 val
* file__String__strip_extension(val
* self
, val
* p0
);
67 #define COLOR_string__FlatString___chars 6
68 #define COLOR_abstract_collection__SequenceRead___91d_93d 46
69 extern const struct class class_kernel__Char
;
70 val
* BOX_kernel__Char(char);
71 #define COLOR_abstract_collection__SequenceRead__last_index_of_from 51
72 val
* file__String__basename(val
* self
, val
* p0
);
73 val
* file__String__dirname(val
* self
);
74 val
* string__NativeString__to_s_with_copy(char* self
);
75 val
* file__String__realpath(val
* self
);
76 val
* string_search__Text__split_with(val
* self
, val
* p0
);
77 extern const struct type type_array__Arraystring__String
;
78 val
* array__AbstractArrayRead__iterator(val
* self
);
79 short int array__ArrayIterator__is_ok(val
* self
);
80 val
* array__ArrayIterator__item(val
* self
);
81 short int string__FlatString___61d_61d(val
* self
, val
* p0
);
82 short int array__AbstractArrayRead__is_empty(val
* self
);
83 val
* abstract_collection__SequenceRead__last(val
* self
);
84 #define COLOR_kernel__Object___61d_61d 2
85 val
* array__AbstractArray__pop(val
* self
);
86 void array__AbstractArray__push(val
* self
, val
* p0
);
87 void array__ArrayIterator__next(val
* self
);
88 #define COLOR_array__AbstractArrayRead___length 0
89 val
* abstract_collection__SequenceRead__first(val
* self
);
90 val
* string__Collection__join(val
* self
, val
* p0
);
91 val
* file__String__simplify_path(val
* self
);
92 short int string__Text__is_empty(val
* self
);
93 char string__Text__last(val
* self
);
94 val
* file__String__join_path(val
* self
, val
* p0
);
95 val
* file__String___47d(val
* self
, val
* p0
);
96 val
* file__Object__getcwd(val
* self
);
97 val
* string_search__Text__split(val
* self
, val
* p0
);
98 val
* array__AbstractArray__shift(val
* self
);
99 val
* string__FlatString___42d(val
* self
, long p0
);
100 val
* string__FlatString___43d(val
* self
, val
* p0
);
101 val
* file__String__relpath(val
* self
, val
* p0
);
102 val
* NEW_string__FlatBuffer(const struct type
* type
);
103 extern const struct type type_string__FlatBuffer
;
104 val
* array__Array___91d_93d(val
* self
, long p0
);
105 void string__FlatBuffer__add(val
* self
, char p0
);
106 void string__FlatBuffer__append(val
* self
, val
* p0
);
107 val
* string__FlatBuffer__to_s(val
* self
);
108 void file__String__mkdir(val
* self
);
109 #define COLOR_abstract_collection__SequenceRead__last_index_of 49
110 val
* file__String__file_extension(val
* self
);
111 val
* BOX_kernel__Pointer(void*);
112 extern const struct class class_file__NativeFile
;
113 #define COLOR_file__Sys___stdout 2
114 #define COLOR_file__Sys___stderr 3
115 val
* string__Array__to_s(val
* self
);
116 val
* string__NativeString__to_s(char* self
);