From 752f3ddb707da732f1dc050322ab185d6f7200df Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Thu, 6 Aug 2026 19:50:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 -- Test/BuddyTest/.tpv_build/temp/_sha1_map.txt | 2 +- .../temp/ff/ffaf70367668b227.deps.txt | 1 - .../.tpv_build/temp/ff/ffaf70367668b227.vpi | 54 ------------------- includes/string.vp | 2 +- 5 files changed, 2 insertions(+), 62 deletions(-) delete mode 100644 Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.deps.txt delete mode 100644 Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.vpi diff --git a/.gitignore b/.gitignore index de66469..7220377 100644 --- a/.gitignore +++ b/.gitignore @@ -48,14 +48,9 @@ debug.txt *.swo *~ -# 测试输出 -test.exe -test_split.exe - # 排除独立仓库的目录 ViperOS/ ViperTemplateProject/ -StandardTemplateProject/ TransPyV/ # 磁盘镜像 diff --git a/Test/BuddyTest/.tpv_build/temp/_sha1_map.txt b/Test/BuddyTest/.tpv_build/temp/_sha1_map.txt index 724d426..234195c 100644 --- a/Test/BuddyTest/.tpv_build/temp/_sha1_map.txt +++ b/Test/BuddyTest/.tpv_build/temp/_sha1_map.txt @@ -7,7 +7,7 @@ aa246c6e6aa30484:includes/atom.vp f5522571bcce7bcb:includes/stdint.vp 285b6aa29a34754d:includes/stdio.vp 6c658cc728d0bbf4:includes/stdlib.vp -ffaf70367668b227:includes/string.vp +4aa696f75b23f42f:includes/string.vp 748d0424e8976fa0:includes/testcheck.vp c9f4be41ca1cc2b4:includes/viperio.vp f6ab8989f3545e83:includes/viperlib.vp diff --git a/Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.deps.txt b/Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.deps.txt deleted file mode 100644 index 0ec8cde..0000000 --- a/Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.deps.txt +++ /dev/null @@ -1 +0,0 @@ -stdint t c \ No newline at end of file diff --git a/Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.vpi b/Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.vpi deleted file mode 100644 index 2e97004..0000000 --- a/Test/BuddyTest/.tpv_build/temp/ff/ffaf70367668b227.vpi +++ /dev/null @@ -1,54 +0,0 @@ -"""Auto-generated Python stub file""" - - -from stdint import * -import t, c -def strcpy(dest: str, src: str) -> str: pass - -def strcat(dest: str, src: str) -> str: pass - -def strncpy(dest: str, src: str, n: t.CSizeT) -> str: pass - -def strlen(src: str) -> t.CSizeT | t.CExport: pass - -def strcmp(str1: str, str2: str) -> t.CInt: pass - -def samestr(str1: str, str2: str) -> bool: pass - -def strncmp(str1: str, str2: str, n: t.CSizeT) -> t.CInt: pass - -def memcmp(ptr1: t.CVoid | t.CPtr, ptr2: t.CVoid | t.CPtr, n: t.CSizeT) -> t.CInt: pass - -def strchr(s: str, cr: t.CInt) -> str: pass - -def strrchr(s: str, cr: t.CInt) -> str: pass - -def strstr(s: str, needle: str) -> str: pass - -def strspn(s: str, skip: str) -> int: pass - -def memset(ptr: t.CVoid | t.CPtr, value: t.CInt, num: t.CSizeT) -> t.CVoid | t.CPtr | t.CExport: pass - -def memset32(ptr: t.CVoid | t.CPtr, value: t.CUInt32T, count: t.CSizeT) -> t.CVoid | t.CPtr: pass - -def memcpy(dest: t.CVoid | t.CPtr, src: t.CVoid | t.CPtr, num: t.CSizeT) -> t.CVoid | t.CPtr | t.CExport: pass - -def memmove(dest: t.CVoid | t.CPtr, src: t.CVoid | t.CPtr, num: t.CSizeT) -> t.CVoid | t.CPtr: pass - -def atoi(src: str) -> t.CInt: pass - -def atoll(src: str) -> t.CInt64T: pass - -def atof(src: str) -> t.CDouble: pass - -def split(s: str, delim: str, result: t.CArray[str]) -> int: pass - -ascii_lowercase: str -ascii_uppercase: str -ascii_letters: str -digits: str -hexdigits: str -octdigits: str -punctuation: str -whitespace: str -printable: str diff --git a/includes/string.vp b/includes/string.vp index d938d86..ef9ceed 100644 --- a/includes/string.vp +++ b/includes/string.vp @@ -382,4 +382,4 @@ hexdigits: str = "0123456789abcdefABCDEF" octdigits: str = "01234567" punctuation: str = "!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~" whitespace: str = " \t\n\r\f\v" -printable: str = "01234567890123456789abcdefABCDEF01234567!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~ \t\n\r\f\v" +printable: str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\f\v"