stage1 重构代码新增c后端

This commit is contained in:
zzy committed 2026-10-13 13:14:48 +08:00
1 parent fc2d8f8db4
commit 3714c2d142
24 files changed
+1539 -593

No files matched your search

-7
View File
@@ -148,12 +148,6 @@ void spl_diag_drop(spl_diag_t *d) {
void spl_diag_set_stage(spl_diag_t *d, spl_diag_stage_t stage) { d->stage = stage; }
void spl_diag_set_output(spl_diag_t *d, FILE *out) { d->fout = out; }
void spl_diag_set_color(spl_diag_t *d, bool enabled) { d->color = enabled; }
void spl_diag_set_collect(spl_diag_t *d, bool enabled) { d->collect = enabled; }
void spl_diag_push(spl_diag_t *d, const spl_dbg_node_t *loc, const char *fn_name,
const char *label) {
spl_diag_frame_t f = {0};
@@ -360,7 +354,6 @@ void spl_diag_summary(const spl_diag_t *d) {
for (usize i = printed_limit; i < vec_size(d->records); ++i)
print_record(d, &vec_at(d->records, i));
/* 计数 */
const char *ecol = d->color && d->n_errors > 0 ? ANSI_FG_RED : "";
const char *rst = d->color ? ANSI_NONE : "";
fprintf(out, "%s%zu error%s, %zu warning%s%s\n", ecol, d->n_errors, d->n_errors == 1 ? "" : "s",