mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
temporarily un-apply some lower.py fixes that have been subsumed by bug 506171
This commit is contained in:
parent
0c08064243
commit
86f7da7536
@ -384,8 +384,6 @@ class GenerateProtocolHeader(Visitor):
|
||||
opeqdecl.params[0].type = copyintype
|
||||
opeq = cxx.MethodDefn(opeqdecl)
|
||||
opeq.addstmt(cxx.StmtExpr(cxx.ExprAssn(mtypevar, enumvar)))
|
||||
opeq.addstmt(cxx.StmtExpr(
|
||||
cxx.ExprNew(cxxt, args=[ ], newargs=[ callptrmeth ])))
|
||||
opeq.addstmt(cxx.StmtExpr(
|
||||
cxx.ExprAssn(cxx.ExprDeref(callptrmeth),
|
||||
rhsvar)))
|
||||
@ -393,8 +391,6 @@ class GenerateProtocolHeader(Visitor):
|
||||
opeqs.append(opeq)
|
||||
|
||||
opeqswitch.addstmt(caselabel)
|
||||
opeqswitch.addstmt(cxx.StmtExpr(
|
||||
cxx.ExprNew(cxxt, args=[ ], newargs=[ callptrmeth ])))
|
||||
opeqswitch.addstmt(cxx.StmtExpr(
|
||||
cxx.ExprAssn(
|
||||
cxx.ExprDeref(callptrmeth),
|
||||
@ -767,7 +763,7 @@ class GenerateProtocolHeader(Visitor):
|
||||
md.accept(self)
|
||||
|
||||
# spit out message type enum and classes
|
||||
msgstart = self.pname +'MsgStart << 10'
|
||||
msgstart = self.pname +'MsgStart << 12'
|
||||
msgenum = cxx.TypeEnum('MessageType')
|
||||
msgenum.addId(self.pname +'Start', msgstart)
|
||||
msgenum.addId(self.pname +'PreStart', '('+ msgstart +') - 1')
|
||||
@ -1997,7 +1993,8 @@ class GenerateProtocolActorHeader(Visitor):
|
||||
uavar = cxx.ExprVar('__ua')
|
||||
|
||||
failif = cxx.StmtIf(cxx.ExprPrefixUnop(uavar, '!'))
|
||||
failif.addifstmt(cxx.StmtReturn(valueerrcode))
|
||||
failif.addifstmt(cxx.StmtReturn(
|
||||
cxx.ExprVar('MsgValueError')))
|
||||
ifhandle.addifstmt(failif)
|
||||
|
||||
# finally, slam the actor back into the union
|
||||
|
Loading…
Reference in New Issue
Block a user