chore(repo): 清理并忽略构建缓存与 PROF 性能产物,避免提交临时文件
This commit is contained in:
1 parent
0bda395ecc
commit
8e2d5b227c
144 files changed
+451
-3910
No files matched your search
@@ -1 +0,0 @@
|
||||
t c stdio w32.win32console
|
||||
@@ -1,27 +0,0 @@
|
||||
"""Auto-generated Python stub file"""
|
||||
|
||||
|
||||
import t, c
|
||||
import stdio
|
||||
from w32.win32console import SetConsoleOutputCP, SetConsoleCP
|
||||
CP_UTF8: t.CDefine = 65001
|
||||
_pass_count: t.CInt = 0
|
||||
_fail_count: t.CInt = 0
|
||||
_total_pass: t.CInt = 0
|
||||
_total_fail: t.CInt = 0
|
||||
def begin(name: str): pass
|
||||
|
||||
def section(name: str): pass
|
||||
|
||||
def ok(msg: str): pass
|
||||
|
||||
def fail(msg: str): pass
|
||||
|
||||
def check(cond: t.CInt, ok_msg: str, fail_msg: str): pass
|
||||
|
||||
def info(msg: str): pass
|
||||
|
||||
def end() -> t.CInt: pass
|
||||
|
||||
def summary() -> t.CInt: pass
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
09c0472e6fd0d088:includes/stdio.vp
|
||||
748d0424e8976fa0:includes/testcheck.vp
|
||||
001947a1f780bd5f:includes/builtins.vp
|
||||
23899f9254639ba7:includes/testcheck.vp
|
||||
50b9991a98ff2dd5:includes/builtins.vp
|
||||
db613a1bd6a3ca26:includes/w32/win32console.vp
|
||||
f5522571bcce7bcb:includes/stdint.vp
|
||||
d856ba5f6f074f04:includes/stdint.vp
|
||||
e710417730391023:includes/w32/win32base.vp
|
||||
bdfc8bd243b7e5b7:main.vp
|
||||
@@ -6,13 +6,9 @@ import stdio
|
||||
import c
|
||||
import testcheck
|
||||
def square(x: T) -> T: pass
|
||||
|
||||
def test_generic_square_types(): pass
|
||||
|
||||
def clamp(val: T, lo: T, hi: T) -> T: pass
|
||||
|
||||
def test_generic_clamp(): pass
|
||||
|
||||
class Stack[T]:
|
||||
data: t.CArray[t.CInt, 16]
|
||||
top: t.CInt
|
||||
@@ -22,34 +18,23 @@ class Stack[T]:
|
||||
def is_empty(self) -> t.CInt: pass
|
||||
def size_of(self) -> t.CSizeT: pass
|
||||
def type_size(self) -> t.CSizeT: pass
|
||||
|
||||
def test_generic_stack(): pass
|
||||
|
||||
class IntPair:
|
||||
a: t.CInt
|
||||
b: t.CInt
|
||||
|
||||
def generic_swap(p: IntPair | t.CPtr): pass
|
||||
|
||||
def test_generic_swap(): pass
|
||||
|
||||
class Range[T]:
|
||||
start: T
|
||||
end_val: T
|
||||
step: T
|
||||
def __init__(self, s: T, e: T, st: T): pass
|
||||
def sum_all(self) -> T: pass
|
||||
|
||||
def test_generic_range(): pass
|
||||
|
||||
def array_sum(arr: t.CArray[t.CInt, 8], n: t.CInt) -> t.CInt: pass
|
||||
|
||||
def test_generic_array_sum(): pass
|
||||
|
||||
def max_of_three(a: T, b: T, c_val: T) -> T: pass
|
||||
|
||||
def test_generic_max_three(): pass
|
||||
|
||||
class Container[T]:
|
||||
values: t.CArray[t.CInt, 8]
|
||||
size: t.CInt
|
||||
@@ -58,22 +43,14 @@ class Container[T]:
|
||||
def get(self, idx: t.CInt) -> T: pass
|
||||
def contains(self, v: T) -> t.CInt: pass
|
||||
def total(self) -> T: pass
|
||||
|
||||
def test_generic_container(): pass
|
||||
|
||||
def factorial(n: T) -> T: pass
|
||||
|
||||
def test_generic_factorial(): pass
|
||||
|
||||
class Accumulator[T]:
|
||||
total: T
|
||||
def __init__(self, start: T): pass
|
||||
def add_val(self, v: T): pass
|
||||
def get_result(self) -> T: pass
|
||||
|
||||
def test_generic_accumulator(): pass
|
||||
|
||||
def test_generic_sizeof_bug(): pass
|
||||
|
||||
def main() -> t.CInt: pass
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
t
|
||||
@@ -1,95 +0,0 @@
|
||||
"""Auto-generated Python stub file"""
|
||||
|
||||
import c
|
||||
|
||||
import t
|
||||
INT: t.CTypedef = t.CInt
|
||||
INTPTR: t.CTypedef = t.CInt | t.CPtr
|
||||
BOOL: t.CTypedef = t.CInt
|
||||
UINT: t.CTypedef = t.CUnsignedInt
|
||||
UINTPTR: t.CTypedef = UINT | t.CPtr
|
||||
BYTE: t.CTypedef = t.CUnsignedChar
|
||||
BYTEPTR: t.CTypedef = BYTE | t.CPtr
|
||||
WORD: t.CTypedef = t.CUInt16T
|
||||
DWORD: t.CTypedef = t.CUInt32T
|
||||
QWORD: t.CTypedef = t.CUInt64T
|
||||
TCHAR: t.CTypedef = t.CChar
|
||||
CHARLIST: t.CTypedef = str | t.CPtr
|
||||
VOID: t.CTypedef = t.CVoid
|
||||
SHORT: t.CTypedef = t.CShort
|
||||
SHORTPTR: t.CTypedef = t.CShort | t.CPtr
|
||||
USHORT: t.CTypedef = t.CUnsignedShort
|
||||
USHORTPTR: t.CTypedef = t.CUnsignedShort | t.CPtr
|
||||
LONGLONG: t.CTypedef = t.CLongLong
|
||||
ULONGLONG: t.CTypedef = t.CUnsignedLongLong
|
||||
LONG: t.CTypedef = t.CLong
|
||||
ULONG: t.CTypedef = t.CUnsignedLong
|
||||
WCHAR: t.CTypedef = WORD
|
||||
WCHARPTR: t.CTypedef = WORD | t.CPtr
|
||||
CHARPTR: t.CTypedef = t.CChar | t.CPtr
|
||||
FSIZE_t: t.CTypedef = DWORD
|
||||
LBA_t: t.CTypedef = DWORD
|
||||
VOIDPTR: t.CTypedef = t.CVoid | t.CPtr
|
||||
FLOAT: t.CTypedef = t.CFloat
|
||||
DOUBLE: t.CTypedef = t.CDouble
|
||||
FLOAT8: t.CTypedef = t.CFloat8T
|
||||
FLOAT16: t.CTypedef = t.CFloat16T
|
||||
FLOAT32: t.CTypedef = t.CFloat32T
|
||||
FLOAT64: t.CTypedef = t.CFloat64T
|
||||
FLOAT128: t.CTypedef = t.CFloat128T
|
||||
INT8: t.CTypedef = t.CInt8T
|
||||
INT16: t.CTypedef = t.CInt16T
|
||||
INT32: t.CTypedef = t.CInt32T
|
||||
INT64: t.CTypedef = t.CInt64T
|
||||
UINT8: t.CTypedef = t.CUInt8T
|
||||
UINT16: t.CTypedef = t.CUInt16T
|
||||
UINT32: t.CTypedef = t.CUInt32T
|
||||
UINT64: t.CTypedef = t.CUInt64T
|
||||
INT8PTR: t.CTypedef = t.CInt8T | t.CPtr
|
||||
INT16PTR: t.CTypedef = t.CInt16T | t.CPtr
|
||||
INT32PTR: t.CTypedef = t.CInt32T | t.CPtr
|
||||
INT64PTR: t.CTypedef = t.CInt64T | t.CPtr
|
||||
UINT8PTR: t.CTypedef = t.CUInt8T | t.CPtr
|
||||
UINT16PTR: t.CTypedef = t.CUInt16T | t.CPtr
|
||||
UINT32PTR: t.CTypedef = t.CUInt32T | t.CPtr
|
||||
UINT64PTR: t.CTypedef = t.CUInt64T | t.CPtr
|
||||
CHAR8: t.CTypedef = t.CChar8T
|
||||
CHAR16: t.CTypedef = t.CChar16T
|
||||
CHAR32: t.CTypedef = t.CChar32T
|
||||
CHAR8PTR: t.CTypedef = t.CChar8T | t.CPtr
|
||||
CHAR16PTR: t.CTypedef = t.CChar16T | t.CPtr
|
||||
CHAR32PTR: t.CTypedef = t.CChar32T | t.CPtr
|
||||
i8: t.CTypedef = t.CInt8T
|
||||
i16: t.CTypedef = t.CInt16T
|
||||
i32: t.CTypedef = t.CInt32T
|
||||
i64: t.CTypedef = t.CInt64T
|
||||
u8: t.CTypedef = t.CUInt8T
|
||||
u16: t.CTypedef = t.CUInt16T
|
||||
u32: t.CTypedef = t.CUInt32T
|
||||
u64: t.CTypedef = t.CUInt64T
|
||||
SIZE_T: t.CTypedef = t.CSizeT
|
||||
SSIZE_T: t.CTypedef = t.CPtrDiffT
|
||||
PTRDIFF_T: t.CTypedef = t.CPtrDiffT
|
||||
int8_t: t.CTypedef = t.CInt8T
|
||||
int16_t: t.CTypedef = t.CInt16T
|
||||
int32_t: t.CTypedef = t.CInt32T
|
||||
int64_t: t.CTypedef = t.CInt64T
|
||||
uint8_t: t.CTypedef = t.CUInt8T
|
||||
uint16_t: t.CTypedef = t.CUInt16T
|
||||
uint32_t: t.CTypedef = t.CUInt32T
|
||||
uint64_t: t.CTypedef = t.CUInt64T
|
||||
size_t: t.CTypedef = t.CSizeT
|
||||
ssize_t: t.CTypedef = t.CPtrDiffT
|
||||
ptrdiff_t: t.CTypedef = t.CPtrDiffT
|
||||
intptr_t: t.CTypedef = t.CIntPtrT
|
||||
uintptr_t: t.CTypedef = t.CUIntPtrT
|
||||
wchar_t: t.CTypedef = t.CWCharT
|
||||
char8_t: t.CTypedef = t.CChar8T
|
||||
char16_t: t.CTypedef = t.CChar16T
|
||||
char32_t: t.CTypedef = t.CChar32T
|
||||
float8_t: t.CTypedef = t.CFloat8T
|
||||
float16_t: t.CTypedef = t.CFloat16T
|
||||
float32_t: t.CTypedef = t.CFloat32T
|
||||
float64_t: t.CTypedef = t.CFloat64T
|
||||
float128_t: t.CTypedef = t.CFloat128T
|
||||
_Bool: t.CTypedef = t.CBool
|
||||
Reference in new issue
Block a user