修复了一些错误,更改了一点语法

This commit is contained in:
TermiNexus committed 2026-09-18 20:00:40 +08:00
1 parent 9e2ccbfab7
commit 9910e05760
61 files changed
+2810 -2810

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ import w32.fileio as fileio
# ============================================================
# 全局 mbuddy 指针
_mbuddy: memhub.MemManager | t.CPtr
_mbuddy: rawptr[memhub.MemManager]
# 配置值(从 project.vpj 加载);默认 None/0:未加载时字段为 null,调用方须 is not None 检查兜底(否则垃圾指针 → 崩溃)
SourceDir: str = None
+1 -1
View File
@@ -70,7 +70,7 @@ def compute_sha1(pool: rawptr[memhub.MemBuddy], content: str) -> str:
# 构造 sha1 对象(__init__ 会初始化 state/count/buf)
# ctx 在栈上分配(alloca),函数内使用完即丢弃,无需堆分配
ctx: hashlib.sha1 | t.CPtr = hashlib.sha1()
ctx: rawptr[hashlib.sha1] = hashlib.sha1()
if ctx is None: return None
# 计算摘要