39 lines
641 B
Python
39 lines
641 B
Python
"""
|
|
Auto-generated Python stub file from struct_test.py
|
|
Module: struct_test
|
|
"""
|
|
|
|
|
|
import stdio
|
|
import t, c
|
|
|
|
class Point:
|
|
x: t.CInt
|
|
y: t.CInt
|
|
class Box:
|
|
width: t.CInt
|
|
height: t.CInt
|
|
depth: t.CInt
|
|
class Size:
|
|
w: t.CInt = 100
|
|
h: t.CInt = 200
|
|
class State(t.CEnum):
|
|
Idle: t.State
|
|
Run: t.State
|
|
Stop: t.State
|
|
class Color(t.CEnum):
|
|
Red: t.State = 10
|
|
Green: t.State
|
|
Blue: t.State = 20
|
|
Yellow: t.State
|
|
class MixedType(t.CEnum):
|
|
Small: t.CInt8T
|
|
Big: t.CInt64T
|
|
Medium: t.CInt16T
|
|
class DataUnion(t.CUnion):
|
|
i: t.CInt
|
|
f: t.CFloat
|
|
l: t.CInt64T
|
|
|
|
def struct_test() -> int: pass
|