1 #include "nit.common.h"
2 #define COLOR_standard__file__FStream___path 1
3 extern const struct type type_standard__Int
;
4 extern const char FILE_standard__kernel
[];
5 #define COLOR_standard__file__FStream___file 2
6 extern const char FILE_standard__file
[];
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 long kernel___Sys_errno___impl( struct nitni_instance
* recv
);
12 val
* standard__string___Int___strerror(long self
);
13 val
* NEW_standard__Array(const struct type
* type
);
14 extern const struct type type_standard__Array__standard__Object
;
15 val
* NEW_standard__NativeArray(int length
, const struct type
* type
);
16 extern const struct type type_standard__NativeArray__standard__Object
;
17 #define COLOR_standard__array__Array__with_native 73
18 #define COLOR_standard__string__Object__to_s 9
19 #define COLOR_standard__error__Error__message_61d 33
20 #define COLOR_standard__kernel__Object__init 7
21 #define COLOR_standard__stream__IOS___last_error 0
22 #include "kernel_nit.h"
23 #define COLOR_standard__stream__BufferedIStream___buffer 3
24 void standard___standard__FlatBuffer___Buffer__clear(val
* self
);
25 #define COLOR_standard__file__IFStream___end_reached 5
26 extern const char FILE_standard__string
[];
27 #define COLOR_standard__string__FlatText___items 1
28 #define COLOR_standard__string__FlatBuffer___capacity 7
29 #define COLOR_standard__string__FlatText___length 3
30 #define COLOR_standard__stream__BufferedIStream___buffer_pos 4
31 void standard___standard__BufferedIStream___prepare_buffer(val
* self
, long p0
);
32 val
* NEW_standard__file__NativeFile(const struct type
* type
);
33 extern const struct type type_standard__file__NativeFile
;
34 #define COLOR_standard__string__Text__to_cstring 54
35 val
* standard__file___standard__file__NativeFile___io_open_read(val
* self
, char* p0
);
36 #define COLOR_standard__kernel__Object___61d_61d 2
37 #define COLOR_standard__file__OFStream___is_writable 3
38 extern const struct type type_standard__FlatText
;
39 void standard___standard__OFStream___write_native(val
* self
, char* p0
, long p1
);
40 #define COLOR_standard__string__Text__substrings 49
41 val
* standard___standard__Iterator___iterator(val
* self
);
42 #define COLOR_standard__abstract_collection__Iterator__is_ok 34
43 #define COLOR_standard__abstract_collection__Iterator__item 32
44 #define COLOR_standard__string__Text__length 47
45 #define COLOR_standard__abstract_collection__Iterator__next 33
46 val
* BOX_standard__Int(long);
47 val
* standard__file___standard__file__NativeFile___io_open_write(val
* self
, char* p0
);
48 #define COLOR_standard__file__Sys___stdout 2
49 val
* standard__string___Array___Object__to_s(val
* self
);
50 void standard___standard__OFStream___standard__stream__OStream__write(val
* self
, val
* p0
);
51 val
* standard___standard__NativeString___Object__to_s(char* self
);
52 #define COLOR_standard___standard__Stdin___standard__kernel__Object__init 48
53 val
* standard__file___standard__file__NativeFile___native_stdin(val
* self
);
54 #define COLOR_standard___standard__Stdout___standard__kernel__Object__init 41
55 val
* standard__file___standard__file__NativeFile___native_stdout(val
* self
);
56 #define COLOR_standard___standard__Stderr___standard__kernel__Object__init 41
57 val
* standard__file___standard__file__NativeFile___native_stderr(val
* self
);
58 #define COLOR_standard__file__Path___path 0
59 val
* standard___standard__Path___open_ro(val
* self
);
60 val
* standard___standard__Path___open_wo(val
* self
);
61 short int standard___standard__BufferedIStream___IStream__eof(val
* self
);
62 val
* standard___standard__BufferedIStream___IStream__read(val
* self
, long p0
);
63 void standard___standard__IFStream___standard__stream__IOS__close(val
* self
);
64 void standard___standard__OFStream___standard__stream__IOS__close(val
* self
);
65 val
* NEW_standard__IFStream(const struct type
* type
);
66 extern const struct type type_standard__IFStream
;
67 void standard___standard__IFStream___open(val
* self
, val
* p0
);
68 val
* NEW_standard__OFStream(const struct type
* type
);
69 extern const struct type type_standard__OFStream
;
70 void standard___standard__OFStream___open(val
* self
, val
* p0
);
71 extern const struct type type_standard__Path
;
72 val
* standard__file___String___simplify_path(val
* self
);
73 #define COLOR_standard__kernel__Object__hash 4
74 #define COLOR_standard___standard__Path___standard__kernel__Object__init 37
75 val
* NEW_standard__Path(const struct type
* type
);
76 #define COLOR_standard__file__Path__path_61d 33
77 val
* standard__file___Text___to_path(val
* self
);
78 void standard___standard__Path___copy(val
* self
, val
* p0
);
79 short int standard___standard__Text___has_suffix(val
* self
, val
* p0
);
80 #define COLOR_standard__string__Text__substring 48
81 #define COLOR_standard__string__Text__chars 46
82 #define COLOR_standard__abstract_collection__SequenceRead___91d_93d 45
83 extern const struct class class_standard__Char
;
84 val
* BOX_standard__Char(char);
85 #define COLOR_standard__abstract_collection__SequenceRead__last_index_of_from 50
86 val
* standard__file___String___strip_extension(val
* self
, val
* p0
);
87 val
* standard___standard__NativeString___to_s_with_copy(char* self
);
88 val
* standard__string_search___Text___split_with(val
* self
, val
* p0
);
89 extern const struct type type_standard__Array__standard__String
;
90 void standard___standard__Array___standard__kernel__Object__init(val
* self
);
91 val
* standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(val
* self
);
92 short int standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(val
* self
);
93 val
* standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(val
* self
);
94 short int standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__is_empty(val
* self
);
95 val
* standard___standard__SequenceRead___last(val
* self
);
96 val
* standard___standard__AbstractArray___standard__abstract_collection__Sequence__pop(val
* self
);
97 void standard___standard__AbstractArray___standard__abstract_collection__Sequence__push(val
* self
, val
* p0
);
98 void standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(val
* self
);
99 #define COLOR_standard__array__AbstractArrayRead___length 0
100 val
* standard___standard__SequenceRead___Collection__first(val
* self
);
101 val
* standard__string___Collection___join(val
* self
, val
* p0
);
102 short int standard___standard__Text___is_empty(val
* self
);
103 char standard___standard__Text___last(val
* self
);
104 val
* standard__file___String___join_path(val
* self
, val
* p0
);
105 val
* standard__file___Object___getcwd(val
* self
);
106 val
* standard__file___String____47d(val
* self
, val
* p0
);
107 val
* standard__string_search___Text___split(val
* self
, val
* p0
);
108 val
* standard___standard__AbstractArray___standard__abstract_collection__Sequence__shift(val
* self
);
109 #define COLOR_standard__string__String___42d 83
110 #define COLOR_standard__string__String___43d 82
111 val
* NEW_standard__FlatBuffer(const struct type
* type
);
112 extern const struct type type_standard__FlatBuffer
;
113 #define COLOR_standard___standard__FlatBuffer___standard__kernel__Object__init 96
114 val
* standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
);
115 void standard___standard__FlatBuffer___Buffer__add(val
* self
, char p0
);
116 void standard___standard__FlatBuffer___Buffer__append(val
* self
, val
* p0
);
117 val
* standard___standard__FlatBuffer___Object__to_s(val
* self
);
118 #define COLOR_standard__abstract_collection__SequenceRead__last_index_of 48
119 val
* BOX_standard__Pointer(void*);
120 extern const struct class class_standard__file__NativeFile
;
121 extern const struct type type_standard__FStream
;
122 void standard___standard__FStream___set_buffering_mode(val
* self
, long p0
, long p1
);
123 #define COLOR_standard__file__Sys___stderr 3