Files
TransPyC/Test/TestProject/temp/e5fb16127bce8f68.pyi
2026-07-18 19:25:40 +08:00

67 lines
1.5 KiB
Python

"""
Auto-generated Python stub file from zc.class_test.py
Module: zc.class_test
"""
import stdio
import stdint
import t, c
class SimpleData(t.Object):
x: t.CInt
y: t.CInt
class Point3D(t.Object):
x: t.CFloat
y: t.CFloat
z: t.CFloat
class Student(t.Object):
name: t.CChar | t.CPtr
age: t.CInt
score: t.CInt
def __init__(self: Student, n: t.CChar | t.CPtr, a: t.CInt, s: t.CInt) -> t.CInt: pass
def get_age(self: Student) -> t.CInt: pass
def get_score(self: Student) -> t.CInt: pass
class Counter(t.Object):
value: t.CInt
def __init__(self: Counter, initial: t.CInt) -> t.CInt: pass
def increment(self: Counter) -> t.CInt: pass
def get_value(self: Counter) -> t.CInt: pass
class StackObj(t.Object):
data: t.CInt
next_ptr: t.CVoid | t.CPtr
def TestBasicDataClass() -> t.CInt: pass
def TestPoint3DClass() -> t.CInt: pass
def TestStudentClass() -> t.CInt: pass
def TestCounterClass() -> t.CInt: pass
def TestStackAllocation() -> t.CInt: pass
def TestHeapAllocation() -> t.CInt: pass
def TestHeapObjectWithInit() -> t.CInt: pass
def TestMultipleStackObjects() -> t.CInt: pass
def TestImplicitInitCall() -> t.CInt: pass
def TestClassWithBitFields() -> t.CInt: pass
def TestIntArray() -> t.CInt: pass
def TestFloatArray() -> t.CInt: pass
def TestCharArray() -> t.CInt: pass
def TestNestedArray() -> t.CInt: pass
def TestArrayWithStruct() -> t.CInt: pass
def TestArrayPointer() -> t.CInt: pass
def TestDynamicString() -> t.CInt: pass