修正了 TPC 的一些错误,包括 Test 维护后 TPV 无法重新编译或重编译后越界的部分问题

This commit is contained in:
2026-07-20 11:12:30 +08:00
parent ab73420b4f
commit a277ded8d4
476 changed files with 4000 additions and 3439 deletions

View File

@@ -271,20 +271,10 @@ class _str:
return has_char
def split(self, delimiter: str) -> list[str]:
stdio.printf("DBG split: entry\n")
stdio.fflush(None)
result = list[str](self.__mbuddy__)
stdio.printf("DBG split: list created\n")
stdio.fflush(None)
src: str = self.__data__
stdio.printf("DBG split: src=%s\n", src)
stdio.fflush(None)
length: t.CSizeT = len(src)
stdio.printf("DBG split: length=%lu\n", length)
stdio.fflush(None)
delim_len: t.CSizeT = string.strlen(delimiter)
stdio.printf("DBG split: delim_len=%lu\n", delim_len)
stdio.fflush(None)
start: t.CSizeT = 0
i: t.CSizeT = 0
cur: str = src