refactor(viperc): 退役 t/c 模块标记,内建类型改由编译器直接识别

This commit is contained in:
TermiNexus committed 2026-10-18 12:56:57 +08:00
1 parent 3242560d02
commit 42b094a575
25 files changed
+437 -660

No files matched your search

+2 -7
View File
@@ -440,8 +440,6 @@ def _PhaseADumpNode(temp_dir: str, td_len: sizet, sha1: str, depth: int, prefix:
nm[tl] = 0
is_last: int = 0
if idx + 1 >= token_count: is_last = 1
builtin: int = 0
if string.strcmp(nm, "t") == 0 or string.strcmp(nm, "c") == 0: builtin = 1
dep_sha1: str = _PhaseAResolveDepSha1(nm)
txt_ok: int = 0
if dep_sha1 is not None: txt_ok = _PhaseATextLLExists(temp_dir, td_len, dep_sha1)
@@ -449,10 +447,7 @@ def _PhaseADumpNode(temp_dir: str, td_len: sizet, sha1: str, depth: int, prefix:
# stack pointer for a literal -> printf %s crashes and the graph output is swallowed)
br_1: str = "|-- "
br_2: str = "`-- "
if builtin != 0:
if is_last != 0: stdio.printf("%s%s%s (builtin)\n", prefix, br_2, nm)
else: stdio.printf("%s%s%s (builtin)\n", prefix, br_1, nm)
elif dep_sha1 is None:
if dep_sha1 is None:
if is_last != 0: stdio.printf("%s%s%s (unresolved)\n", prefix, br_2, nm)
else: stdio.printf("%s%s%s (unresolved)\n", prefix, br_1, nm)
elif txt_ok != 0:
@@ -463,7 +458,7 @@ def _PhaseADumpNode(temp_dir: str, td_len: sizet, sha1: str, depth: int, prefix:
else: stdio.printf("%s%s%s [MISS] text.ll=%s\n", prefix, br_1, nm, dep_sha1)
# Drill down: MISS follows the whole chain (to PA_GRAPH_DEPTH_MAX); OK probes 1 level only
can_expand: int = 0
if dep_sha1 is not None and builtin == 0:
if dep_sha1 is not None:
if txt_ok == 0:
if depth + 1 < PA_GRAPH_DEPTH_MAX: can_expand = 1
else: