aboutsummaryrefslogtreecommitdiffstats
path: root/awlsim/core/lstack.pxd.in
blob: e8f193f1d4b6b72cb0955093fe931e52056e6948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from awlsim.common.cython_support cimport *
from awlsim.core.memory cimport *

cdef struct LStackFrame:
	uint32_t byteOffset
	uint32_t allocBits
	LStackFrame *prevFrame

cdef class LStackAllocator(object):
	cdef public AwlMemory memory
	cdef public uint32_t maxAllocBits
	cdef public uint32_t globAllocBits

	cdef LStackFrame *topFrame
	cdef public topFrameOffset

	cdef resize(self, uint32_t maxAllocBytes)
	cdef reset(self)

	cdef enterStackFrame(self)
	cdef exitStackFrame(self)

	cdef AwlOffset alloc(self, uint32_t nrBits)
bues.ch cgit interface