From 2e276ecf5f7d8c34280da1630ff3aa36fbe53c67 Mon Sep 17 00:00:00 2001 From: Josh Aas Date: Mon, 5 May 2014 17:00:55 -0500 Subject: [PATCH] =?UTF-8?q?Bug=201004196:=20Make=20all=20IPDL=20argument?= =?UTF-8?q?=20names=20be=20of=20form=20"aFoo"=20instead=20of=20"foo?= =?UTF-8?q?=E2=80=9D.=20r=3Dbent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ipc/ipdl/ipdl/lower.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ipc/ipdl/ipdl/lower.py b/ipc/ipdl/ipdl/lower.py index de36d0dfd379..06a351bf4eae 100644 --- a/ipc/ipdl/ipdl/lower.py +++ b/ipc/ipdl/ipdl/lower.py @@ -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"))