toolchain: xpcg: replace bluelib with fx

This commit is contained in:
2026-03-21 10:33:39 +00:00
parent 68ae449731
commit ffc2ed735e
15 changed files with 524 additions and 538 deletions

View File

@@ -4,16 +4,16 @@
#include "file-span.h"
#include "status.h"
#include <blue/core/stream.h>
#include <blue/ds/array.h>
#include <blue/ds/string.h>
#include <fx/core/stream.h>
#include <fx/ds/array.h>
#include <fx/ds/string.h>
struct line_source {
b_stream *s_stream;
fx_stream *s_stream;
const char *s_path;
b_string *s_linebuf;
b_iterator *s_linebuf_ptr;
b_array *s_lines;
fx_string *s_linebuf;
fx_iterator *s_linebuf_ptr;
fx_array *s_lines;
struct file_cell s_cursor;
};
@@ -21,18 +21,18 @@ struct line_source {
extern enum status line_source_init(
struct line_source *src,
const char *path,
b_stream *stream);
fx_stream *stream);
extern void line_source_cleanup(struct line_source *src);
extern const char *line_source_get_path(const struct line_source *src);
extern const struct file_cell *line_source_get_cursor(
const struct line_source *src);
extern b_wchar line_source_peekc(struct line_source *src);
extern b_wchar line_source_getc(struct line_source *src);
extern fx_wchar line_source_peekc(struct line_source *src);
extern fx_wchar line_source_getc(struct line_source *src);
extern enum status line_source_get_row(
struct line_source *src,
size_t row,
const b_string **out);
const fx_string **out);
extern bool line_source_input_available(struct line_source *src);