错拼 rowptr 改为 rawptr

This commit is contained in:
TermiNexus committed 2026-09-16 11:42:28 +08:00
1 parent 7cba4cbc95
commit 9a191daa8d
70 files changed
+585 -585

No files matched your search

+3 -3
View File
@@ -61,7 +61,7 @@ class CallGenMixin(CallGenBase.CallGenBase):
# ============================================================
# 翻译函数调用 Call(func, args) — 模块级版本
# ============================================================
def translate_call(self, pool: rowptr[memhub.MemBuddy],
def translate_call(self, pool: rawptr[memhub.MemBuddy],
builder: llvmlite.IRBuilder | t.CPtr,
mod: llvmlite.LLVMModule | t.CPtr,
node: ast.AST | t.CPtr,
@@ -132,8 +132,8 @@ class CallGenMixin(CallGenBase.CallGenBase):
if self.find_func_in_module(mod, gen_class_name) is not None:
func_name = gen_class_name
else:
# 内建指针/类型下标 cast:(rowptr[list[int]])(lst)、
# (t.CPtr[T])(x)、(t.CArray[i8, N])(x) —— rowptr/CPtr/
# 内建指针/类型下标 cast:(rawptr[list[int]])(lst)、
# (t.CPtr[T])(x)、(t.CArray[i8, N])(x) —— rawptr/CPtr/
# CArray 不是泛型类模板,是类型注解下标。先按注解解析出
# 类型再单参转换(ast/base.vp L392 ops_list 行根因)。
if cl.args is not None and len(cl.args) == 1: