相对稳定版本

This commit is contained in:
TermiNexus committed 2026-08-06 18:04:12 +08:00
1 parent a39b5da0f8
commit 2071486168
6310 files changed
+99310 -37

No files matched your search

@@ -0,0 +1 @@
t c vipermath
@@ -0,0 +1 @@
t stdint w32.win32base
@@ -0,0 +1 @@
t stdint w32.win32base
@@ -0,0 +1 @@
t c stdint vqt6._types
@@ -0,0 +1 @@
t c stdint platmacro memhub string stdio w32.win32base w32 w32.win32process w32 posix
@@ -0,0 +1 @@
t c stdint w32.win32base w32.win32sync
@@ -0,0 +1 @@
string t c
@@ -0,0 +1 @@
t c stdint string memhub platmacro
@@ -0,0 +1 @@
t c stdint
@@ -0,0 +1 @@
string t c
@@ -0,0 +1 @@
stdint string stdlib memhub t c
@@ -0,0 +1 @@
t c stdint memhub string stdio json
@@ -0,0 +1,19 @@
"""Auto-generated Python stub file"""
import t, c
from stdint import *
import memhub
import string
from stdio import snprintf
from . import JsonValue, JSON_NULL, JSON_BOOL, JSON_INT, JSON_FLOAT, JSON_STRING, JSON_ARRAY, JSON_OBJECT
def _write_char(buf: t.CChar | t.CPtr, pos: t.CSizeT, ch: t.CChar) -> t.CSizeT: pass
def _write_str(buf: t.CChar | t.CPtr, pos: t.CSizeT, s: t.CChar | t.CPtr) -> t.CSizeT: pass
def _write_string_escaped(buf: t.CChar | t.CPtr, pos: t.CSizeT, s: t.CChar | t.CPtr) -> t.CSizeT: pass
def _write_value(buf: t.CChar | t.CPtr, pos: t.CSizeT, val: JsonValue | t.CPtr, pool: memhub.MemManager | t.CPtr) -> t.CSizeT: pass
def write(pool: memhub.MemManager | t.CPtr, val: JsonValue | t.CPtr, pretty: bool) -> t.CChar | t.CPtr: pass
@@ -0,0 +1 @@
t c stdint memhub string viperlib ast.tokens
@@ -0,0 +1 @@
t c stdint memhub string json
@@ -0,0 +1,35 @@
"""Auto-generated Python stub file"""
import t, c
from stdint import *
import memhub
import string
from . import JsonValue, JSON_NULL, JSON_BOOL, JSON_INT, JSON_FLOAT, JSON_STRING, JSON_ARRAY, JSON_OBJECT, null, bool_val, int_val, float_val, string_val, array, object
class ParseState:
src: t.CChar | t.CPtr
pos: t.CSizeT
len: t.CSizeT
pool: memhub.MemManager | t.CPtr
def __init__(self, src: t.CChar | t.CPtr, pool: memhub.MemManager | t.CPtr): pass
def _peek(s: ParseState | t.CPtr) -> t.CChar: pass
def _advance(s: ParseState | t.CPtr) -> t.CChar: pass
def _skip_whitespace(s: ParseState | t.CPtr): pass
def _expect(s: ParseState | t.CPtr, ch: t.CChar) -> bool: pass
def _parse_string(s: ParseState | t.CPtr) -> t.CChar | t.CPtr: pass
def _parse_number(s: ParseState | t.CPtr) -> JsonValue | t.CPtr: pass
def _parse_value(s: ParseState | t.CPtr) -> JsonValue | t.CPtr: pass
def _parse_array(s: ParseState | t.CPtr) -> JsonValue | t.CPtr: pass
def _parse_object(s: ParseState | t.CPtr) -> JsonValue | t.CPtr: pass
def parse(pool: memhub.MemManager | t.CPtr, src: t.CChar | t.CPtr) -> JsonValue | t.CPtr: pass
@@ -0,0 +1 @@
t c stdint memhub
@@ -0,0 +1 @@
t c
@@ -0,0 +1,20 @@
"""Auto-generated Python stub file"""
import t, c
def printf(fmt: t.CConst | str, *args) -> int | t.State: pass
def fprintf(stream: bytes, fmt: t.CConst | str, *args) -> int | t.State: pass
def sprintf(buf: bytes, fmt: t.CConst | str, *args) -> int | t.State: pass
def snprintf(buf: bytes, size: t.CSizeT, fmt: t.CConst | str, *args) -> int | t.State: pass
def puts(s: t.CConst | str) -> int | t.State: pass
def fputs(s: t.CConst | str, stream: bytes) -> int | t.State: pass
def fgets(buf: bytes, size: int, stream: bytes) -> bytes | t.State: pass
def fflush(stream: bytes) -> int | t.State: pass
@@ -0,0 +1 @@
t c stdint
@@ -0,0 +1 @@
t c string memhub stdint
@@ -0,0 +1 @@
t c stdint w32.win32base w32.win32sync
@@ -0,0 +1 @@
stdio t c
@@ -0,0 +1 @@
t c stdint memhub string viperlib llvmlite.__types llvmlite.__values llvmlite.__function llvmlite.__module llvmlite.__builder llvmlite.__verify
@@ -0,0 +1 @@
t c
@@ -0,0 +1 @@
string
@@ -0,0 +1 @@
t c stdint w32.win32base w32.win32sync
@@ -0,0 +1 @@
stdint zlib.zdeflate zdeflate zlib.zinflate zinflate zlib.zchecksum zchecksum zlib.zdef zdef zlib.zhuff zhuff stdlib string memhub t c
@@ -0,0 +1 @@
t c
@@ -0,0 +1,123 @@
"""Auto-generated Python stub file"""
import t, c
U_M_PI: t.CDefine
U_M_E: t.CDefine
U_M_PI_2: t.CDefine
U_M_PI_4: t.CDefine
U_M_1_PI: t.CDefine
U_M_2_PI: t.CDefine
U_M_LN2: t.CDefine
U_M_LN10: t.CDefine
U_M_2_SQRT_PI: t.CDefine
def radians(degrees: t.CDouble) -> t.CDouble: pass
def degrees(radians: t.CDouble) -> t.CDouble: pass
def sin(x: t.CDouble) -> t.CDouble: pass
def cos(x: t.CDouble) -> t.CDouble: pass
def tan(x: t.CDouble) -> t.CDouble: pass
def asin(x: t.CDouble) -> t.CDouble: pass
def acos(x: t.CDouble) -> t.CDouble: pass
def _atan_core(x: t.CDouble) -> t.CDouble: pass
def atan(x: t.CDouble) -> t.CDouble: pass
def atan2(y: t.CDouble, x: t.CDouble) -> t.CDouble: pass
def sinh(x: t.CDouble) -> t.CDouble: pass
def cosh(x: t.CDouble) -> t.CDouble: pass
def tanh(x: t.CDouble) -> t.CDouble: pass
def exp(x: t.CDouble) -> t.CDouble: pass
def log(x: t.CDouble) -> t.CDouble: pass
def sqrt(x: t.CDouble) -> t.CDouble: pass
def abs(x: t.CInt) -> t.CInt: pass
def fabs(x: t.CDouble) -> t.CDouble: pass
def labs(x: t.CLong) -> t.CLong: pass
def factorial(n: t.CInt) -> t.CDouble: pass
def combination(n: t.CInt, k: t.CInt) -> t.CDouble: pass
def permutation(n: t.CInt, k: t.CInt) -> t.CDouble: pass
def pow(x: t.CDouble, y: t.CDouble) -> t.CDouble: pass
def powf(x: t.CDouble, y: t.CDouble) -> t.CDouble: pass
def cbrt(x: t.CDouble) -> t.CDouble: pass
def hypot(x: t.CDouble, y: t.CDouble) -> t.CDouble: pass
def floor(x: t.CDouble) -> t.CDouble: pass
def ceil(x: t.CDouble) -> t.CDouble: pass
def round(x: t.CDouble) -> t.CDouble: pass
def trunc(x: t.CDouble) -> t.CDouble: pass
def fmod(x: t.CDouble, y: t.CDouble) -> t.CDouble: pass
def fmodf(x: float, y: float) -> float: pass
def modf(x: t.CDouble, iptr: t.CDouble | t.CPtr) -> t.CDouble: pass
def log10(x: t.CDouble) -> t.CDouble: pass
def log2(x: t.CDouble) -> t.CDouble: pass
def exp2(x: t.CDouble) -> t.CDouble: pass
def expm1(x: t.CDouble) -> t.CDouble: pass
def log1p(x: t.CDouble) -> t.CDouble: pass
def asinh(x: t.CDouble) -> t.CDouble: pass
def acosh(x: t.CDouble) -> t.CDouble: pass
def atanh(x: t.CDouble) -> t.CDouble: pass
def gamma(x: t.CDouble) -> t.CDouble: pass
def erf(x: t.CDouble) -> t.CDouble: pass
def erfc(x: t.CDouble) -> t.CDouble: pass
def sqrtf(x: t.CFloat) -> t.CFloat: pass
def sinf(x: t.CFloat) -> t.CFloat: pass
def cosf(x: t.CFloat) -> t.CFloat: pass
def tanf(x: t.CFloat) -> t.CFloat: pass
def fabsf(x: t.CFloat) -> t.CFloat: pass
def floorf(x: t.CFloat) -> t.CFloat: pass
def ceilf(x: t.CFloat) -> t.CFloat: pass
class _U(t.CUnion):
d: t.CDouble
u: t.CUInt64T
def isnan(x: t.CDouble) -> t.CStatic | t.CInt: pass
def isinf(x: t.CDouble) -> t.CStatic | t.CInt: pass
@@ -0,0 +1 @@
t c stdint string stdio viperlib memhub linkedlist llvmlite.__types llvmlite.__function
@@ -0,0 +1 @@
t c stdint memhub string ast.base
@@ -0,0 +1 @@
stdint zlib.zchecksum zchecksum zlib.zdef zdef zlib.zhuff zhuff string memhub t c
@@ -0,0 +1 @@
t c stdint platmacro memhub os.path os os._win32 os os._posix os
@@ -0,0 +1 @@
t c stdint memhub string ast.base
@@ -0,0 +1 @@
t c stdint viperlib string memhub stdio stdlib linkedlist
@@ -0,0 +1 @@
t c atom
@@ -0,0 +1 @@
t c stdint w32.win32base
@@ -0,0 +1 @@
t c stdint memhub string ast.base
@@ -0,0 +1 @@
stdio
@@ -0,0 +1 @@
t c stdint string viperlib memhub linkedlist llvmlite.__function llvmlite.__module
@@ -0,0 +1 @@
stdint t
@@ -0,0 +1,18 @@
"""Auto-generated Python stub file"""
import c
from stdint import *
import t
def malloc(size: t.CSizeT) -> t.CVoid | t.CPtr | t.State: pass
def calloc(nmemb: t.CSizeT, size: t.CSizeT) -> t.CVoid | t.CPtr | t.State: pass
def realloc(p: t.CVoid | t.CPtr, size: t.CSizeT) -> t.CVoid | t.CPtr | t.State: pass
def free(p: t.CVoid | t.CPtr) -> t.State: pass
def system(cmd: t.CConst | t.CChar | t.CPtr) -> INT | t.State: pass
def exit(status: int) -> t.State: pass
@@ -0,0 +1 @@
t stdint
@@ -0,0 +1 @@
t c
@@ -0,0 +1 @@
t c stdint memhub string viperio json.__parser json.__writer
@@ -0,0 +1,65 @@
"""Auto-generated Python stub file"""
import t, c
from stdint import *
import memhub
import string
import viperio
JSON_NULL: t.CDefine = 0
JSON_BOOL: t.CDefine = 1
JSON_INT: t.CDefine = 2
JSON_FLOAT: t.CDefine = 3
JSON_STRING: t.CDefine = 4
JSON_ARRAY: t.CDefine = 5
JSON_OBJECT: t.CDefine = 6
class JsonValue:
vtype: t.CInt
bool_val: t.CInt
int_val: t.CInt64T
float_val: t.CDouble
str_val: t.CChar | t.CPtr
next: 'JsonValue' | t.CPtr
key: t.CChar | t.CPtr
child: 'JsonValue' | t.CPtr
child_count: t.CSizeT
def __new__(self, pool: memhub.MemManager | t.CPtr): pass
def type(self) -> t.CInt: pass
def is_null(self) -> bool: pass
def is_bool(self) -> bool: pass
def is_int(self) -> bool: pass
def is_float(self) -> bool: pass
def is_string(self) -> bool: pass
def is_array(self) -> bool: pass
def is_object(self) -> bool: pass
def as_bool(self) -> bool: pass
def as_int(self) -> t.CInt64T: pass
def as_float(self) -> t.CDouble: pass
def as_string(self) -> t.CChar | t.CPtr: pass
def __len__(self) -> t.CSizeT: pass
def __getitem__(self, key: t.CChar | t.CPtr) -> 'JsonValue' | t.CPtr: pass
def __setitem__(self, key: t.CChar | t.CPtr, val: 'JsonValue' | t.CPtr): pass
def get_item(self, index: t.CSizeT) -> 'JsonValue' | t.CPtr: pass
def _pool_alloc(self, size: t.CSizeT) -> t.CChar | t.CPtr: pass
def _append_child(self, child: 'JsonValue' | t.CPtr): pass
def null(pool: memhub.MemManager | t.CPtr) -> JsonValue | t.CPtr: pass
def bool_val(pool: memhub.MemManager | t.CPtr, val: bool) -> JsonValue | t.CPtr: pass
def int_val(pool: memhub.MemManager | t.CPtr, val: t.CInt64T) -> JsonValue | t.CPtr: pass
def float_val(pool: memhub.MemManager | t.CPtr, val: t.CDouble) -> JsonValue | t.CPtr: pass
def string_val(pool: memhub.MemManager | t.CPtr, val: t.CChar | t.CPtr) -> JsonValue | t.CPtr: pass
def array(pool: memhub.MemManager | t.CPtr) -> JsonValue | t.CPtr: pass
def object(pool: memhub.MemManager | t.CPtr) -> JsonValue | t.CPtr: pass
def array_append(pool: memhub.MemManager | t.CPtr, arr: JsonValue | t.CPtr, item: JsonValue | t.CPtr): pass
def object_set(pool: memhub.MemManager | t.CPtr, obj: JsonValue | t.CPtr, key: t.CChar | t.CPtr, val: JsonValue | t.CPtr): pass
from .__parser import parse
from .__writer import write
@@ -0,0 +1 @@
t c
@@ -0,0 +1 @@
t
@@ -0,0 +1 @@
t stdint w32.win32base
@@ -0,0 +1 @@
t c stdio w32.win32console
@@ -0,0 +1,27 @@
"""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
@@ -0,0 +1 @@
t c stdint w32.win32process stdlib stdio string
@@ -0,0 +1 @@
t c memhub string stdint
@@ -0,0 +1 @@
t c stdint platmacro memhub string w32.win32base w32 w32.win32file w32 posix
@@ -0,0 +1 @@
t c stdint string viperlib memhub stdio linkedlist llvmlite.__types
@@ -0,0 +1 @@
stdint t c
@@ -0,0 +1 @@
stdint zlib.zchecksum zchecksum zlib.zhuff zhuff zlib.zdef zdef string memhub t c
@@ -0,0 +1 @@
hashlib.__md5 hashlib.__sha1 hashlib.__sha256 hashlib.__sha512
@@ -0,0 +1 @@
t stdint vqt6._types vqt6._qtcore vqt6._qtwidgets vqt6._qtgui vqt6._qtnetwork
@@ -0,0 +1,17 @@
aa246c6e6aa30484:includes/atom.vp
6ddf430432a0e373:includes/json/__init__.vp
240a9a4157959a9f:includes/json/__parser.vp
20cd49775c100a38:includes/json/__writer.vp
f9d023d1df2bc9c5:includes/memhub.vp
f5522571bcce7bcb:includes/stdint.vp
285b6aa29a34754d:includes/stdio.vp
6c658cc728d0bbf4:includes/stdlib.vp
ffaf70367668b227:includes/string.vp
748d0424e8976fa0:includes/testcheck.vp
c9f4be41ca1cc2b4:includes/viperio.vp
3f7c5e78d8652535:includes/vipermath.vp
03d3ece355d95d76:includes/vrandom.vp
fc980acec33d69a7:includes/w32/win32base.vp
bbdf3bbd4c3bc28c:includes/w32/win32console.vp
e0f0afe3caa1e486:includes/_dict.vp
7cadfe07e983fd90:includes/_list.vp
@@ -0,0 +1 @@
t c stdint string socket memhub stdio
@@ -0,0 +1 @@
t c stdint platmacro memhub string w32.win32base w32 w32.win32file w32 w32.win32process w32 w32.win32sync w32 posix
@@ -0,0 +1 @@
t c
@@ -0,0 +1 @@
t c stdint
@@ -0,0 +1 @@
t c stdint w32.win32base w32 w32.win32file w32 memhub stdlib
@@ -0,0 +1 @@
t c stdint string viperlib memhub stdio linkedlist llvmlite.__types llvmlite.__values llvmlite.__function
@@ -0,0 +1 @@
t c stdint w32.win32base w32.win32sync
@@ -0,0 +1 @@
t c
@@ -0,0 +1,22 @@
"""Auto-generated Python stub file"""
import t, c
ATOMIC_RELAXED: t.CDefine = 0
ATOMIC_CONSUME: t.CDefine = 1
ATOMIC_ACQUIRE: t.CDefine = 2
ATOMIC_RELEASE: t.CDefine = 3
ATOMIC_ACQ_REL: t.CDefine = 4
ATOMIC_SEQ_CST: t.CDefine = 5
def __atomic_test_and_set(ptr: t.CUInt64T | t.CPtr, order: t.CInt) -> t.CBool: pass
def __atomic_clear(ptr: t.CUInt64T | t.CPtr, order: t.CInt) -> t.CVoid: pass
def __atomic_thread_fence(order: t.CInt) -> t.CVoid: pass
def __atomic_signal_fence(order: t.CInt) -> t.CVoid: pass
def __atomic_always_lock_free(size: t.CSizeT, ptr: t.CVoid | t.CPtr) -> t.CBool: pass
def __atomic_is_lock_free(size: t.CSizeT, ptr: t.CVoid | t.CPtr) -> t.CBool: pass
@@ -0,0 +1 @@
t c stdint w32.win32base w32.win32process w32.win32sync lock event condition rwlock
@@ -0,0 +1 @@
t
@@ -0,0 +1 @@
t memhub string
@@ -0,0 +1 @@
t c string memhub stdio hashtable
@@ -0,0 +1 @@
t c stdint memhub string ast.base
@@ -0,0 +1 @@
t c stdint memhub string
@@ -0,0 +1 @@
t c
@@ -0,0 +1 @@
t stdint w32.win32base
@@ -0,0 +1 @@
t c stdint vqt6._types
@@ -0,0 +1 @@
stdint stdlib string vipermath stdio t c memhub
@@ -0,0 +1 @@
t c
@@ -0,0 +1 @@
t c stdint
@@ -0,0 +1,19 @@
"""Auto-generated Python stub file"""
import t, c
from stdint import *
class Buf:
data: t.CChar | t.CPtr
length: t.CSizeT
capacity: t.CSizeT
owned: bool
def __init__(self, data: t.CChar | t.CPtr, capacity: t.CSizeT, length: t.CSizeT, owned: bool): pass
def clear(self): pass
def write(self, src: t.CChar | t.CPtr, count: t.CSizeT) -> t.CSizeT: pass
def cstr(self) -> t.CChar | t.CPtr: pass
def reset(self): pass
def __enter__(self) -> 'Buf' | t.CPtr: pass
def __exit__(self): pass
def free(self): pass
@@ -0,0 +1 @@
t c stdint stdio w32.win32base w32 w32.win32file w32
@@ -0,0 +1 @@
t c stdint posix memhub stdlib
@@ -0,0 +1 @@
t c
@@ -0,0 +1 @@
stdint zlib.zdef zdef memhub t c
@@ -0,0 +1 @@
zlib.pyzlib
@@ -0,0 +1 @@
t c stdint vqt6._types
@@ -0,0 +1 @@
t c stdint memhub string ast.tokens ast.base ast.stmts ast.exprs ast.astaux ast.visitor ast.lexer ast.parser ast.parser
@@ -0,0 +1 @@
t c memhub string json stdint
@@ -0,0 +1 @@
t c stdint vqt6._types
@@ -0,0 +1 @@
t
@@ -0,0 +1,95 @@
"""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
@@ -0,0 +1 @@
t c stdint memhub string ast.tokens
@@ -0,0 +1 @@
t c viperio stdarg
@@ -0,0 +1 @@
t stdint w32.win32base
@@ -0,0 +1 @@
t c stdint string platmacro stdio w32.winsock2 w32
@@ -0,0 +1 @@
t c stdint string atom viperio stdio stdlib
@@ -0,0 +1,97 @@
"""Auto-generated Python stub file"""
import t, c
from stdint import *
import string
import atom
import viperio
import stdio
import stdlib
MEMHUB_ALIGN: t.CDefine = 8
MEMSLAB_MIN_BLOCK: t.CDefine = 16
MEMSLAB_BITMAP_BYTES: t.CDefine = 256
MEMBUDDY_MIN_BLOCK: t.CDefine = 32
MEMBUDDY_MAX_ORDERS: t.CDefine = 32
MEMBUDDY_HEADER_SIZE: t.CDefine = 8
def _align_up(val: t.CSizeT, align: t.CSizeT) -> t.CSizeT: pass
def _largest_pow2_le(val: t.CSizeT) -> t.CSizeT: pass
def _block_size_at_order(order: t.CInt) -> t.CSizeT: pass
@t.CVTable
class MemManager:
__provides__: list[str]
base: t.CVoid | t.CPtr
size: t.CSizeT
def __init__(self, base: t.CVoid | t.CPtr, size: t.CSizeT): pass
def alloc(self, size: t.CSizeT) -> t.CVoid | t.CPtr: pass
def free(self, ptr: t.CVoid | t.CPtr) -> t.CInt: pass
def reset(self) -> t.CInt: pass
def calloc(self, count: t.CSizeT, size: t.CSizeT) -> t.CVoid | t.CPtr: pass
def realloc(self, ptr: t.CVoid | t.CPtr, new_size: t.CSizeT) -> t.CVoid | t.CPtr: pass
def __enter__(self) -> 'MemManager' | t.CPtr: pass
def __exit__(self): pass
def alloc_buf(self, capacity: t.CSizeT) -> viperio.Buf | t.CPtr: pass
class MemPool(MemManager):
offset: t.CSizeT
high_water: t.CSizeT
def __init__(self, base: t.CVoid | t.CPtr, size: t.CSizeT): pass
def alloc(self, size: t.CSizeT) -> t.CVoid | t.CPtr: pass
def free(self, ptr: t.CVoid | t.CPtr) -> t.CInt: pass
def reset(self) -> t.CInt: pass
class MemSlab(MemManager):
block_size: t.CSizeT
block_count: t.CSizeT
used_count: t.CSizeT
free_list: t.CVoid | t.CPtr
alloc_map: t.CUInt8T | t.CPtr
alloc_map_size: t.CSizeT
usable: t.CVoid | t.CPtr
usable_size: t.CSizeT
def __init__(self, base: t.CVoid | t.CPtr, size: t.CSizeT, block_size: t.CSizeT): pass
def alloc(self, size: t.CSizeT) -> t.CVoid | t.CPtr: pass
def free(self, ptr: t.CVoid | t.CPtr) -> t.CInt: pass
def reset(self) -> t.CInt: pass
class MemBuddy(MemManager):
__provides__: list[str]
max_order: t.CInt
free_lists: t.CUInt64T | t.CPtr
lock_val: t.CVolatile | t.CInt
usable: t.CVoid | t.CPtr
usable_size: t.CSizeT
chk_stack: t.CUInt64T | t.CPtr
chk_cap: t.CSizeT
chk_depth: t.CSizeT
chk_base: t.CVoid | t.CPtr
def __init__(self, base: t.CVoid | t.CPtr, size: t.CSizeT): pass
def mark(self) -> t.CSizeT: pass
def reset_to(self, mark: t.CSizeT): pass
def reset_all(self): pass
def _fl_push(self, order: t.CInt, block: t.CVoid | t.CPtr): pass
def _fl_pop(self, order: t.CInt) -> t.CVoid | t.CPtr: pass
def _fl_find_and_remove(self, order: t.CInt, target: t.CVoid | t.CPtr) -> t.CInt: pass
def _buddy_of(self, block: t.CVoid | t.CPtr, order: t.CInt) -> t.CVoid | t.CPtr: pass
def _order_for_size(self, size: t.CSizeT) -> t.CInt: pass
def _split_to_order(self, to_order: t.CInt) -> t.CVoid | t.CPtr: pass
def _coalesce(self, block: t.CVoid | t.CPtr, order: t.CInt): pass
def _is_valid_ptr(self, ptr: t.CVoid | t.CPtr) -> t.CInt: pass
def _lock(self): pass
def _unlock(self): pass
def alloc(self, size: t.CSizeT) -> t.CVoid | t.CPtr: pass
def free(self, ptr: t.CVoid | t.CPtr) -> t.CInt: pass
def reset(self) -> t.CInt: pass
def realloc(self, ptr: t.CVoid | t.CPtr, new_size: t.CSizeT) -> t.CVoid | t.CPtr: pass
@property
def mem_size(self) -> t.CSizeT: pass
def stats(self) -> t.CSizeT: pass
def free_count(self) -> t.CSizeT: pass
def free_bytes(self) -> t.CSizeT: pass
def used_bytes(self) -> t.CSizeT: pass
def dump_stats(self, label: t.CChar | t.CPtr): pass
def self_check(self) -> t.CInt: pass
Loaded 100 of 6310 files, more files were not shown because too many files have changed in this diff. Show more