meta: rename to fx

This commit is contained in:
2026-03-16 10:35:43 +00:00
parent 84df46489a
commit e9d0e323f0
233 changed files with 12875 additions and 12869 deletions

View File

@@ -1,8 +1,8 @@
#include <blue/core/stream.h>
#include <blue/core/stringstream.h>
#include <blue/ds/string.h>
#include <blue/io/file.h>
#include <blue/io/path.h>
#include <fx/core/stream.h>
#include <fx/core/stringstream.h>
#include <fx/ds/string.h>
#include <fx/io/file.h>
#include <fx/io/path.h>
#include <stdio.h>
int main(int argc, const char **argv)
@@ -12,28 +12,28 @@ int main(int argc, const char **argv)
}
const char *path_cstr = argv[1];
b_path *path = b_path_create_from_cstr(path_cstr);
fx_path *path = fx_path_create_from_cstr(path_cstr);
b_file *src = NULL;
b_result result = b_file_open(NULL, path, B_FILE_READ_ONLY, &src);
if (b_result_is_error(result)) {
b_throw(result);
fx_file *src = NULL;
fx_result result = fx_file_open(NULL, path, FX_FILE_READ_ONLY, &src);
if (fx_result_is_error(result)) {
fx_throw(result);
return -1;
}
b_wchar c;
fx_wchar c;
size_t nr_read;
b_status status = b_stream_read_char(src, &c);
if (!B_OK(status)) {
printf("read error: %s\n", b_status_description(status));
b_file_unref(src);
fx_status status = fx_stream_read_char(src, &c);
if (!FX_OK(status)) {
printf("read error: %s\n", fx_status_description(status));
fx_file_unref(src);
return -1;
}
b_stream_write_char(b_stdout, c);
b_stream_write_char(b_stdout, '\n');
fx_stream_write_char(fx_stdout, c);
fx_stream_write_char(fx_stdout, '\n');
b_file_unref(src);
fx_file_unref(src);
return 0;
}