Commit d3a6a246 authored by Michael Büsch's avatar Michael Büsch

core/cpu: Declare some methods with void return type

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 4cf2a766
......@@ -162,10 +162,10 @@ cdef class S7CPU(object):
cdef runCycle(self)
cdef __runOB(self, OB block)
cdef run_BE(self)
cdef void run_BE(self)
cdef openDB(self, int32_t dbNumber, _Bool openDI)
cdef run_AUF(self, AwlOperator dbOper)
cdef run_TDB(self)
cdef void run_TDB(self)
cdef Accu getAccu(self, uint32_t index)
cdef Addressregister getAR(self, uint32_t index)
......
......@@ -1374,10 +1374,13 @@ class S7CPU(object): #+cdef
newCse.prevCse = self.callStackTop
self.callStackTop, self.callStackDepth = newCse, callStackDepth + 1
def run_BE(self): #+cdef
def run_BE(self): #@nocy
#@cy cdef void run_BE(self):
#@cy cdef S7StatusWord s
#@cy cdef CallStackElem cse
# This method is declared void and thus must not raise an exception.
s = self.statusWord
s.OS, s.OR, s.STA, s.NER = 0, 0, 1, 0
# Jump beyond end of block
......@@ -1419,8 +1422,10 @@ class S7CPU(object): #+cdef
self.openDB(dbOper.offset.byteOffset, openDI)
def run_TDB(self): #+cdef
# Swap global and instance DB
def run_TDB(self): #@nocy
#@cy cdef void run_TDB(self):
# Swap global and instance DB.
# This method is declared void and thus must not raise an exception.
self.diRegister, self.dbRegister = self.dbRegister, self.diRegister
def getAccu(self, index): #@nocy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment