1 #include "nit.common.h"
2 #define COLOR_standard__file__FileStream___path 1
3 #define COLOR_standard__file__FileStream___file 2
4 extern const char FILE_standard__file
[];
5 #include "kernel_nit.h"
6 #define COLOR_standard__stream__Stream___last_error 0
7 #define COLOR_standard__kernel__Object___61d_61d 4
8 val
* NEW_standard__IOError(const struct type
* type
);
9 extern const struct type type_standard__IOError
;
10 val
* standard___standard__NativeString___to_s_with_length(char* self
, long p0
);
11 #define COLOR_standard__error__Error__message_61d 16
12 #define COLOR_standard__kernel__Object__init 0
14 val
* NEW_standard__NativeArray(int length
, const struct type
* type
);
15 extern const struct type type_standard__NativeArray__standard__String
;
16 val
* standard__string___Int___strerror(long self
);
17 #define COLOR_standard__string__NativeArray__native_to_s 16
18 extern const struct type type_standard__Int
;
19 extern const char FILE_standard__kernel
[];
20 #define COLOR_standard___standard__FileReader___standard__stream__Stream__close 35
21 void standard___standard__BufferedReader___buffer_reset(val
* self
);
22 #define COLOR_standard__file__FileReader___end_reached 7
23 #define COLOR_standard__stream__BufferedReader___buffer 3
24 #define COLOR_standard__stream__BufferedReader___buffer_capacity 6
25 #define COLOR_standard__stream__BufferedReader___buffer_length 5
26 #define COLOR_standard__stream__BufferedReader___buffer_pos 4
27 void standard___standard__BufferedReader___prepare_buffer(val
* self
, long p0
);
28 val
* NEW_standard__file__NativeFile(const struct type
* type
);
29 extern const struct type type_standard__file__NativeFile
;
30 #define COLOR_standard__string__Text__to_cstring 25
31 val
* standard__file___standard__file__NativeFile___io_open_read(val
* self
, char* p0
);
32 #define COLOR_standard__file__FileWriter___is_writable 3
33 #define COLOR_standard__string__Text__substrings 29
34 #define COLOR_standard__abstract_collection__Iterator__iterator 20
35 #define COLOR_standard__abstract_collection__Iterator__is_ok 16
36 #define COLOR_standard__abstract_collection__Iterator__item 17
37 #define COLOR_standard__string__FlatText___length 3
38 void standard___standard__FileWriter___write_native(val
* self
, char* p0
, long p1
);
39 #define COLOR_standard__abstract_collection__Iterator__next 18
40 #define COLOR_standard__abstract_collection__Iterator__finish 19
41 #define COLOR_standard___standard__FileWriter___standard__stream__Stream__close 25
42 val
* standard__string___Int___Object__to_s(long self
);
43 val
* standard__file___standard__file__NativeFile___io_open_write(val
* self
, char* p0
);
44 #define COLOR_standard___standard__Stdin___standard__kernel__Object__init 36
45 val
* standard__file___standard__file__NativeFile___native_stdin(val
* self
);
46 #define COLOR_standard___standard__Stdout___standard__kernel__Object__init 26
47 val
* standard__file___standard__file__NativeFile___native_stdout(val
* self
);
48 void standard___standard__FileStream___set_buffering_mode(val
* self
, long p0
, long p1
);
49 #define COLOR_standard___standard__Stderr___standard__kernel__Object__init 26
50 val
* standard__file___standard__file__NativeFile___native_stderr(val
* self
);
51 val
* NEW_standard__FileWriter(const struct type
* type
);
52 extern const struct type type_standard__FileWriter
;
53 void standard___standard__FileWriter___open(val
* self
, val
* p0
);
54 #define COLOR_standard__stream__Writable__write_to 32
55 void standard___standard__FileWriter___standard__stream__Stream__close(val
* self
);
56 #define COLOR_standard__file__Path___path 0
57 val
* standard___standard__Path___open_ro(val
* self
);
58 val
* standard___standard__Path___open_wo(val
* self
);
59 short int standard___standard__BufferedReader___Reader__eof(val
* self
);
60 val
* standard___standard__Reader___read(val
* self
, long p0
);
61 void standard___standard__FileWriter___standard__stream__Writer__write(val
* self
, val
* p0
);
62 void standard___standard__FileReader___standard__stream__Stream__close(val
* self
);
63 val
* NEW_standard__FileReader(const struct type
* type
);
64 extern const struct type type_standard__FileReader
;
65 void standard___standard__FileReader___open(val
* self
, val
* p0
);
66 extern const struct type type_standard__Path
;
67 val
* standard__file___String___simplify_path(val
* self
);
68 #define COLOR_standard__kernel__Object__hash 12
69 #define COLOR_standard___standard__Path___standard__kernel__Object__init 21
70 val
* NEW_standard__Path(const struct type
* type
);
71 #define COLOR_standard__string__Object__to_s 3
72 #define COLOR_standard__file__Path__path_61d 18
73 val
* standard__file___Text___to_path(val
* self
);
74 void standard___standard__Path___copy(val
* self
, val
* p0
);
75 short int standard___standard__Text___has_suffix(val
* self
, val
* p0
);
76 #define COLOR_standard__string__Text__length 26
77 #define COLOR_standard__string__Text__substring 28
78 #define COLOR_standard__string__Text__chars 27
79 #define COLOR_standard__abstract_collection__SequenceRead___91d_93d 31
80 #define COLOR_standard__abstract_collection__SequenceRead__last_index_of_from 37
81 val
* standard__file___String___strip_extension(val
* self
, val
* p0
);
82 val
* standard___standard__NativeString___to_s_with_copy(char* self
);
83 val
* standard__string_search___Text___split_with(val
* self
, val
* p0
);
84 val
* NEW_standard__Array(const struct type
* type
);
85 extern const struct type type_standard__Array__standard__String
;
86 void standard___standard__Array___standard__kernel__Object__init(val
* self
);
87 val
* standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(val
* self
);
88 short int standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(val
* self
);
89 val
* standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(val
* self
);
90 short int standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__is_empty(val
* self
);
91 val
* standard___standard__SequenceRead___last(val
* self
);
92 val
* standard___standard__AbstractArray___standard__abstract_collection__Sequence__pop(val
* self
);
93 void standard___standard__AbstractArray___standard__abstract_collection__Sequence__push(val
* self
, val
* p0
);
94 void standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(val
* self
);
95 void standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(val
* self
);
96 #define COLOR_standard__array__AbstractArrayRead___length 0
97 val
* standard___standard__SequenceRead___Collection__first(val
* self
);
98 val
* standard__string___Collection___join(val
* self
, val
* p0
);
99 short int standard___standard__Text___is_empty(val
* self
);
100 uint32_t standard___standard__Text___last(val
* self
);
101 val
* standard__file___String___join_path(val
* self
, val
* p0
);
102 val
* standard__file___Sys___getcwd(val
* self
);
103 val
* standard__file___String____47d(val
* self
, val
* p0
);
104 val
* standard__string_search___Text___split(val
* self
, val
* p0
);
105 val
* standard___standard__AbstractArray___standard__abstract_collection__Sequence__shift(val
* self
);
106 #define COLOR_standard__string__String___42d 72
107 #define COLOR_standard__string__String___43d 71
108 val
* NEW_standard__FlatBuffer(const struct type
* type
);
109 extern const struct type type_standard__FlatBuffer
;
110 #define COLOR_standard___standard__FlatBuffer___standard__kernel__Object__init 80
111 val
* standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
);
112 void standard___standard__FlatBuffer___Buffer__add(val
* self
, uint32_t p0
);
113 void standard___standard__FlatBuffer___Buffer__append(val
* self
, val
* p0
);
114 val
* standard___standard__FlatBuffer___Object__to_s(val
* self
);
115 #define COLOR_standard__abstract_collection__SequenceRead__last_index_of 36
116 val
* BOX_standard__Pointer(void*);
117 extern const struct class class_standard__file__NativeFile
;
118 #define COLOR_standard__file__Sys___stdout 3
119 val
* NEW_standard__Stdout(const struct type
* type
);
120 extern const struct type type_standard__Stdout
;
121 void standard___standard__Stdout___standard__kernel__Object__init(val
* self
);
122 #define COLOR_standard__file__Sys___stderr 5
123 val
* NEW_standard__Stderr(const struct type
* type
);
124 extern const struct type type_standard__Stderr
;
125 void standard___standard__Stderr___standard__kernel__Object__init(val
* self
);
126 val
* standard__file___Sys___stdout(val
* self
);
127 val
* standard__string___Array___Collection__plain_to_s(val
* self
);
128 val
* standard___standard__NativeString___Object__to_s(char* self
);