修正了部分代码的表达方式,最后可用版本,正在为 mlirlite 做准备
This commit is contained in:
1 parent
a5ceb3d4eb
commit
951b89be36
69 files changed
+8833
-8590
No files matched your search
@@ -15,7 +15,7 @@ import w32.fileio as fileio
|
||||
# ============================================================
|
||||
|
||||
# 全局 mbuddy 指针
|
||||
_mbuddy: rawptr[memhub.MemBuddy]
|
||||
_mbuddy: memhub.MemBuddy*
|
||||
|
||||
|
||||
# ============================================================
|
||||
@@ -31,7 +31,7 @@ def nibble_to_hex_char(n: int, uppercase: int) -> char:
|
||||
# ============================================================
|
||||
# bytes_to_hex - 字节序列转十六进制字符串
|
||||
# ============================================================
|
||||
def bytes_to_hex(pool: rawptr[memhub.MemBuddy],
|
||||
def bytes_to_hex(pool: memhub.MemBuddy*,
|
||||
digest: bytes,
|
||||
nbytes: sizet,
|
||||
uppercase: int,
|
||||
@@ -63,7 +63,7 @@ def bytes_to_hex(pool: rawptr[memhub.MemBuddy],
|
||||
# ============================================================
|
||||
# compute_sha1 - 计算字符串的 SHA1,返回前 16 个十六进制字符(与 Projectrans.py 一致)
|
||||
# ============================================================
|
||||
def compute_sha1(pool: rawptr[memhub.MemBuddy], content: str) -> str:
|
||||
def compute_sha1(pool: memhub.MemBuddy*, content: str) -> str:
|
||||
"""计算字符串的 SHA1,返回前 16 个十六进制字符(用于文件命名)"""
|
||||
if content is None or pool is None:
|
||||
return None
|
||||
|
||||
Reference in new issue
Block a user