X-Git-Url: http://nitlanguage.org diff --git a/c_src/file.sep.0.h b/c_src/file.sep.0.h index 880a109..8e55ba6 100644 --- a/c_src/file.sep.0.h +++ b/c_src/file.sep.0.h @@ -1,154 +1,116 @@ #include "nit.common.h" -extern const int COLOR_file__Object__stdout; -extern const int COLOR_string__Object__to_s; -extern const int COLOR_stream__OStream__write; -void file__Object__printn(val* self, val* p0); -val* string__NativeString__to_s_with_length(char* self, long p0); -void file__Object__print(val* self, val* p0); -extern const int COLOR_file__Object__stdin; -extern const int COLOR_stream__IStream__read_char; -char file__Object__getc(val* self); -extern const int COLOR_stream__IStream__read_line; -val* file__Object__gets(val* self); -extern const int COLOR_file__Object__file_getcwd; -val* string__NativeString__to_s(char* self); -val* file__Object__getcwd(val* self); +#define COLOR_file__FStream___path 0 +#define COLOR_file__FStream___file 1 #include "file_nit.h" -char* file__Object__file_getcwd(val* self); -extern const int COLOR_file__FStream___path; -val* file__FStream__path(val* self); -extern const int COLOR_file__FStream___file; -extern const int COLOR_file__NativeFile__file_stat; -void* file__FStream__file_stat(val* self); -void file__FStream__init(val* self); -extern const int COLOR_stream__IStream__eof; -extern const int COLOR_stream__IOS__close; -extern const int COLOR_string__String__to_cstring; -void* file__NativeFile__io_open_read(void* self, char* p0); -extern const int COLOR_file__IFStream___end_reached; -extern const int COLOR_stream__BufferedIStream___buffer_pos; -extern const int COLOR_stream__BufferedIStream___buffer; -extern const int COLOR_abstract_collection__RemovableCollection__clear; -void file__IFStream__reopen(val* self); -extern const int COLOR_file__NativeFile__io_close; +#define COLOR_stream__BufferedIStream___buffer 2 +void string__FlatBuffer__clear(val* self); +#define COLOR_file__IFStream___end_reached 4 void file__IFStream__close(val* self); -extern const int COLOR_string__AbstractString___items; -extern const int COLOR_string__Buffer___capacity; -extern const int COLOR_file__NativeFile__io_read; +#define COLOR_string__FlatText___items 1 +#define COLOR_string__FlatBuffer___capacity 7 extern const struct type type_kernel__Int; -extern const int COLOR_array__AbstractArrayRead___length; +#define COLOR_string__FlatText___length 3 +#define COLOR_stream__BufferedIStream___buffer_pos 3 void file__IFStream__fill_buffer(val* self); -short int file__IFStream__end_reached(val* self); -extern const int COLOR_file__FStream__init; -extern const int COLOR_stream__BufferedIStream__init; -extern const int COLOR_stream__BufferedIStream__prepare_buffer; -void file__IFStream__open(val* self, val* p0); -void file__IFStream__init(val* self); -void file__IFStream__without_file(val* self); -extern const int COLOR_file__OFStream___writable; -extern const int COLOR_abstract_collection__Collection__length; -extern const int COLOR_file__OFStream__write_native; -void file__OFStream__write(val* self, val* p0); -short int file__OFStream__is_writable(val* self); -void file__OFStream__close(val* self); -extern const int COLOR_file__NativeFile__io_write; +#define COLOR_kernel__Object__init 7 +void stream__BufferedIStream__prepare_buffer(val* self, long p0); +val* NEW_file__NativeFile(const struct type* type); +extern const struct type type_file__NativeFile; +char* string__FlatString__to_cstring(val* self); +val* file__NativeFile__io_open_read(val* self, char* p0); +#include "kernel_nit.h" +val* string__NativeString__to_s_with_length(char* self, long p0); +long kernel___Sys_errno___impl( struct nitni_instance * recv ); +val* string__Int__strerror(long self); val* NEW_array__Array(const struct type* type); extern const struct type type_array__Arraykernel__Object; val* NEW_array__NativeArray(int length, const struct type* type); extern const struct type type_array__NativeArraykernel__Object; -extern const int COLOR_array__Array__with_native; -void CHECK_NEW_array__Array(val*); -extern const int COLOR_file__Object__printn; +#define COLOR_array__Array__with_native 74 +#define COLOR_string__Object__to_s 9 +void file__Object__print(val* self, val* p0); +void file__IFStream__open(val* self, val* p0); +void file__IFStream__init(val* self); +#define COLOR_file__OFStream___is_writable 2 +extern const struct type type_string__FlatText; +#define COLOR_string__Text__to_cstring 54 void file__OFStream__write_native(val* self, char* p0, long p1); -void* file__NativeFile__io_open_write(void* self, char* p0); +#define COLOR_string__Text__substrings 49 +val* abstract_collection__Iterator__iterator(val* self); +#define COLOR_abstract_collection__Iterator__is_ok 33 +#define COLOR_abstract_collection__Iterator__item 31 +#define COLOR_abstract_collection__Iterator__next 32 +void file__OFStream__write(val* self, val* p0); +void file__OFStream__close(val* self); +val* BOX_kernel__Int(long); +void file__Object__printn(val* self, val* p0); +val* file__NativeFile__io_open_write(val* self, char* p0); void file__OFStream__open(val* self, val* p0); void file__OFStream__init(val* self); -void file__OFStream__without_file(val* self); -extern const int COLOR_file__IFStream__init; -void* file__NativeFile__native_stdin(void* self); +val* file__NativeFile__native_stdin(val* self); void file__Stdin__init(val* self); -short int file__Stdin__poll_in(val* self); -extern const int COLOR_file__OFStream__init; -void* file__NativeFile__native_stdout(void* self); +val* file__NativeFile__native_stdout(val* self); void file__Stdout__init(val* self); -void* file__NativeFile__native_stderr(void* self); +val* file__NativeFile__native_stderr(val* self); void file__Stderr__init(val* self); -short int file__NativeString__file_exists(char* self); short int file__String__file_exists(val* self); -void* file__NativeString__file_stat(char* self); -void* file__String__file_stat(val* self); -void* file__NativeString__file_lstat(char* self); -void* file__String__file_lstat(val* self); -short int file__NativeString__file_delete(char* self); -short int file__String__file_delete(val* self); -extern const int COLOR_string__AbstractString__has_suffix; -extern const int COLOR_string__AbstractString__substring; +val* NEW_file__IFStream(const struct type* type); +extern const struct type type_file__IFStream; +val* NEW_file__OFStream(const struct type* type); +extern const struct type type_file__OFStream; +short int stream__BufferedIStream__eof(val* self); +val* stream__BufferedIStream__read(val* self, long p0); +void file__String__file_copy_to(val* self, val* p0); +short int string__Text__has_suffix(val* self, val* p0); +val* string__FlatString__substring(val* self, long p0, long p1); val* file__String__strip_extension(val* self, val* p0); -extern const int COLOR_array__AbstractArrayRead__last_index_of_from; -extern const int COLOR_string__AbstractString__substring_from; -extern const int COLOR_file__String__strip_extension; -val* file__String__basename(val* self, val* p0); -extern const int COLOR_abstract_collection__SequenceRead___91d_93d; +#define COLOR_string__FlatString___chars 6 +#define COLOR_abstract_collection__SequenceRead___91d_93d 46 extern const struct class class_kernel__Char; +val* BOX_kernel__Char(char); +#define COLOR_abstract_collection__SequenceRead__last_index_of_from 51 +val* file__String__basename(val* self, val* p0); val* file__String__dirname(val* self); -extern const int COLOR_string_search__String__split_with; +val* string__NativeString__to_s_with_copy(char* self); +val* file__String__realpath(val* self); +val* string_search__Text__split_with(val* self, val* p0); extern const struct type type_array__Arraystring__String; -extern const int COLOR_array__Array__init; -extern const int COLOR_abstract_collection__Collection__iterator; -extern const int COLOR_abstract_collection__Iterator__is_ok; -extern const int COLOR_abstract_collection__Iterator__item; -extern const int COLOR_kernel__Object___61d_61d; -extern const int COLOR_abstract_collection__Collection__is_empty; -extern const int COLOR_abstract_collection__SequenceRead__last; -extern const int COLOR_kernel__Object___33d_61d; -extern const int COLOR_abstract_collection__Sequence__pop; -extern const int COLOR_abstract_collection__Sequence__push; -extern const int COLOR_abstract_collection__Iterator__next; -extern const int COLOR_string__Collection__join; +val* array__AbstractArrayRead__iterator(val* self); +short int array__ArrayIterator__is_ok(val* self); +val* array__ArrayIterator__item(val* self); +short int string__FlatString___61d_61d(val* self, val* p0); +short int array__AbstractArrayRead__is_empty(val* self); +val* abstract_collection__SequenceRead__last(val* self); +#define COLOR_kernel__Object___61d_61d 2 +val* array__AbstractArray__pop(val* self); +void array__AbstractArray__push(val* self, val* p0); +void array__ArrayIterator__next(val* self); +#define COLOR_array__AbstractArrayRead___length 0 +val* abstract_collection__SequenceRead__first(val* self); +val* string__Collection__join(val* self, val* p0); val* file__String__simplify_path(val* self); -extern const int COLOR_array__Array__with_capacity; -extern const int COLOR_abstract_collection__SimpleCollection__add; +short int string__Text__is_empty(val* self); +char string__Text__last(val* self); val* file__String__join_path(val* self, val* p0); -val* NEW_string__Buffer(const struct type* type); -extern const struct type type_string__Buffer; -extern const int COLOR_string__Buffer__init; -void CHECK_NEW_string__Buffer(val*); -extern const int COLOR_abstract_collection__Sequence__append; -short int file__NativeString__file_mkdir(char* self); +val* file__String___47d(val* self, val* p0); +val* file__Object__getcwd(val* self); +val* string_search__Text__split(val* self, val* p0); +val* array__AbstractArray__shift(val* self); +val* string__FlatString___42d(val* self, long p0); +val* string__FlatString___43d(val* self, val* p0); +val* file__String__relpath(val* self, val* p0); +val* NEW_string__FlatBuffer(const struct type* type); +extern const struct type type_string__FlatBuffer; +val* array__Array___91d_93d(val* self, long p0); +void string__FlatBuffer__add(val* self, char p0); +void string__FlatBuffer__append(val* self, val* p0); +val* string__FlatBuffer__to_s(val* self); void file__String__mkdir(val* self); -void file__NativeString__file_chdir(char* self); -void file__String__chdir(val* self); -extern const int COLOR_array__AbstractArrayRead__last_index_of; +#define COLOR_abstract_collection__SequenceRead__last_index_of 49 val* file__String__file_extension(val* self); -val* file__String__files(val* self); -long file__FileStat__mode(void* self); -long file__FileStat__atime(void* self); -long file__FileStat__ctime(void* self); -long file__FileStat__mtime(void* self); -long file__FileStat__size(void* self); -short int file__FileStat__is_reg(void* self); -short int file__FileStat__is_dir(void* self); -short int file__FileStat__is_chr(void* self); -short int file__FileStat__is_blk(void* self); -short int file__FileStat__is_fifo(void* self); -short int file__FileStat__is_lnk(void* self); -short int file__FileStat__is_sock(void* self); -long file__NativeFile__io_read(void* self, char* p0, long p1); -long file__NativeFile__io_write(void* self, char* p0, long p1); -long file__NativeFile__io_close(void* self); -void* file__NativeFile__file_stat(void* self); -val* NEW_file__Stdin(const struct type* type); -extern const struct type type_file__Stdin; -extern const int COLOR_file__Stdin__init; -void CHECK_NEW_file__Stdin(val*); -val* file__Object__stdin(val* self); -val* NEW_file__Stdout(const struct type* type); -extern const struct type type_file__Stdout; -extern const int COLOR_file__Stdout__init; -void CHECK_NEW_file__Stdout(val*); -val* file__Object__stdout(val* self); -val* NEW_file__Stderr(const struct type* type); -extern const struct type type_file__Stderr; -extern const int COLOR_file__Stderr__init; -void CHECK_NEW_file__Stderr(val*); -val* file__Object__stderr(val* self); +val* BOX_kernel__Pointer(void*); +extern const struct class class_file__NativeFile; +#define COLOR_file__Sys___stdout 2 +#define COLOR_file__Sys___stderr 3 +val* string__Array__to_s(val* self); +val* string__NativeString__to_s(char* self);