mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 1004196: Make all IPDL argument names be of form "aFoo" instead of "foo”. r=bent
This commit is contained in:
parent
b529036d7c
commit
2e276ecf5f
@ -2814,7 +2814,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
|
||||
self.cls.addstmt(StmtDecl(MethodDecl(
|
||||
_deallocMethod(managed, self.side).name,
|
||||
params=[ Decl(actortype, 'actor') ],
|
||||
params=[ Decl(actortype, 'aActor') ],
|
||||
ret=Type.BOOL,
|
||||
virtual=1, pure=1)))
|
||||
|
||||
@ -2824,8 +2824,8 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
actortype = _cxxBareType(actor.asType(), actor.side)
|
||||
self.cls.addstmt(StmtDecl(MethodDecl(
|
||||
_allocMethod(actor.ptype, actor.side).name,
|
||||
params=[ Decl(Type('Transport', ptr=1), 'transport'),
|
||||
Decl(Type('ProcessId'), 'otherProcess') ],
|
||||
params=[ Decl(Type('Transport', ptr=1), 'aTransport'),
|
||||
Decl(Type('ProcessId'), 'aOtherProcess') ],
|
||||
ret=actortype,
|
||||
virtual=1, pure=1)))
|
||||
|
||||
@ -2834,7 +2834,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
Whitespace.NL,
|
||||
MethodDefn(MethodDecl(
|
||||
_destroyMethod().name,
|
||||
params=[ Decl(_DestroyReason.Type(), 'why') ],
|
||||
params=[ Decl(_DestroyReason.Type(), 'aWhy') ],
|
||||
ret=Type.VOID,
|
||||
virtual=1, pure=(self.side == 'parent'))),
|
||||
Whitespace.NL
|
||||
@ -2844,7 +2844,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
# void ProcessingError(code); default to no-op
|
||||
processingerror = MethodDefn(
|
||||
MethodDecl(p.processingErrorVar().name,
|
||||
params=[ Param(_Result.Type(), 'code') ],
|
||||
params=[ Param(_Result.Type(), 'aCode') ],
|
||||
virtual=1))
|
||||
|
||||
# bool ShouldContinueFromReplyTimeout(); default to |true|
|
||||
@ -3162,7 +3162,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
deallocshmemvar = ExprVar('DeallocShmems')
|
||||
|
||||
# OnProcesingError(code)
|
||||
codevar = ExprVar('code')
|
||||
codevar = ExprVar('aCode')
|
||||
onprocessingerror = MethodDefn(
|
||||
MethodDecl('OnProcessingError',
|
||||
params=[ Param(_Result.Type(), codevar.name) ]))
|
||||
@ -3259,7 +3259,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
|
||||
# OnChannelConnected()
|
||||
onconnected = MethodDefn(MethodDecl('OnChannelConnected',
|
||||
params=[ Decl(Type.INT32, 'pid') ]))
|
||||
params=[ Decl(Type.INT32, 'aPid') ]))
|
||||
if not ptype.isToplevel():
|
||||
onconnected.addstmt(
|
||||
_runtimeAbort("'OnConnected' called on non-toplevel actor"))
|
||||
|
Loading…
Reference in New Issue
Block a user