stage2 更多的工具库 stage1 修复问题

This commit is contained in:
zzy committed 2026-09-18 10:10:53 +08:00
1 parent 16a1f030d4
commit b3e38ba7e4
28 files changed
+2274 -523

No files matched your search

+4 -1
View File
@@ -173,7 +173,10 @@ fn set_at(set: *Sources, index: usize): *Source {
fn set_find(set: *Sources, fname: ByteView): FindResult {
var out: usize = 0;
if Map.get(&set.by_name, &fname as *u8, &out as *u8) { ret .Found(out); }
match Map.get(&set.by_name, &fname as *u8, &out as *u8) {
.Found => { ret .Found(out); },
.NotFound => {},
}
ret .NotFound;
}