修复了大量存在的问题,增加了假鸭子类型等等机制

This commit is contained in:
2026-06-25 14:49:46 +08:00
parent 19f2787db0
commit d88d11b646
827 changed files with 32617 additions and 18316 deletions

View File

@@ -24,7 +24,7 @@ def snprintf(buf: t.CChar | t.CPtr, size: t.CSizeT, fmt: str, *args) -> t.CInt |
if buf == None or fmt == None or size == 0: return 0
ptr: t.CChar | t.CPtr = buf
write_count: t.CInt = 0
temp: list[t.CChar, 24]
temp: t.CArray[t.CChar, 24]
temp[0] = '\t'
while c.Deref(fmt) != 0 and write_count < size - 1:
if c.Deref(fmt) != 37: