@@ -1114,7 +1114,7 @@ data_map CGenerator::getStructDefinitionTemplateData(Group *group, StructType *s
11141114 listCounter = 0 ;
11151115
11161116 structInfo[" hasNullableMember" ] = false ;
1117- structInfo[" needTempVariable " ] = false ;
1117+ structInfo[" needTempVariableI32 " ] = false ;
11181118 structInfo[" genStructWrapperF" ] = !isBinaryStruct (structType);
11191119 structInfo[" noSharedMem" ] = (findAnnotation (structType, NO_SHARED_ANNOTATION) != nullptr );
11201120
@@ -1210,13 +1210,13 @@ data_map CGenerator::getStructDefinitionTemplateData(Group *group, StructType *s
12101210 dataType->getName ().c_str ());
12111211
12121212 // Subtemplate setup for read/write struct calls
1213- bool needTempVariable = false ;
1213+ bool needTempVariableI32 = false ;
12141214 member_info[" coderCall" ] = getEncodeDecodeCall (" data->" + memberName, group, dataType, structType, true ,
1215- member, needTempVariable , false );
1215+ member, needTempVariableI32 , false );
12161216
1217- if (needTempVariable )
1217+ if (needTempVariableI32 )
12181218 {
1219- structInfo[" needTempVariable " ] = true ;
1219+ structInfo[" needTempVariableI32 " ] = true ;
12201220 }
12211221
12221222 member_info[" serializedViaMember" ] = " " ;
@@ -1262,10 +1262,10 @@ data_map CGenerator::getUnionDefinitionTemplateData(Group *group, UnionType *uni
12621262 bool &needUnionsServerFree)
12631263{
12641264 (void )group;
1265- bool needTempVariable = false ;
1265+ bool needTempVariableI32 = false ;
12661266 unionInfo[" coderCall" ] =
1267- getEncodeDecodeCall (" data->" , nullptr , unionType, nullptr , true , nullptr , needTempVariable , false );
1268- unionInfo[" needTempVariable " ] = needTempVariable ;
1267+ getEncodeDecodeCall (" data->" , nullptr , unionType, nullptr , true , nullptr , needTempVariableI32 , false );
1268+ unionInfo[" needTempVariableI32 " ] = needTempVariableI32 ;
12691269
12701270 unionInfo[" noSharedMem" ] = (findAnnotation (unionType, NO_SHARED_ANNOTATION) != nullptr );
12711271
@@ -1391,8 +1391,8 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
13911391 info[" isReturnValue" ] = !fn->isOneway ();
13921392 info[" isSendValue" ] = false ;
13931393 setTemplateComments (fnSymbol, info);
1394- info[" needTempVariableServer " ] = false ;
1395- info[" needTempVariableClient " ] = false ;
1394+ info[" needTempVariableServerI32 " ] = false ;
1395+ info[" needTempVariableClientI32 " ] = false ;
13961396 info[" needNullVariableOnServer" ] = false ;
13971397
13981398 /* Is function declared as external? */
@@ -1407,7 +1407,7 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
14071407 if (!trueDataType->isVoid ())
14081408 {
14091409 string result = " result" ;
1410- bool needTempVariable = false ;
1410+ bool needTempVariableI32 = false ;
14111411 setCallingFreeFunctions (structMember, returnInfo, true );
14121412 string extraPointer = getExtraPointerInReturn (dataType);
14131413 string resultVariable = extraPointer + returnSpaceWhenNotEmpty (extraPointer) + result;
@@ -1438,10 +1438,10 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
14381438
14391439 returnInfo[" direction" ] = getDirection (kReturn );
14401440 returnInfo[" coderCall" ] =
1441- getEncodeDecodeCall (result, group, dataType, nullptr , false , structMember, needTempVariable , true );
1441+ getEncodeDecodeCall (result, group, dataType, nullptr , false , structMember, needTempVariableI32 , true );
14421442 returnInfo[" shared" ] = isShared;
14431443 resultVariable = getTypenameName (dataType, resultVariable);
1444- info[" needTempVariableClient " ] = needTempVariable ;
1444+ info[" needTempVariableClientI32 " ] = needTempVariableI32 ;
14451445 returnInfo[" resultVariable" ] = resultVariable;
14461446 returnInfo[" errorReturnValue" ] = getErrorReturnValue (fn);
14471447 returnInfo[" isNullReturnType" ] = (!trueDataType->isScalar () && !trueDataType->isEnum ());
@@ -1457,7 +1457,7 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
14571457 for (StructMember *param : fnParams)
14581458 {
14591459 data_map paramInfo;
1460- bool needTempVariable = false ;
1460+ bool needTempVariableI32 = false ;
14611461 DataType *paramType = param->getDataType ();
14621462 DataType *paramTrueType = paramType->getTrueDataType ();
14631463 string name = getOutputName (param);
@@ -1607,20 +1607,20 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
16071607 Log::debug (" Calling EncodeDecode param %s with paramType %s.\n " , param->getName ().c_str (),
16081608 paramType->getName ().c_str ());
16091609 paramInfo[" coderCall" ] = getEncodeDecodeCall (encodeDecodeName, group, paramType, &fn->getParameters (), false ,
1610- param, needTempVariable , true );
1610+ param, needTempVariableI32 , true );
16111611
16121612 // set parameter direction
16131613 paramInfo[" direction" ] = getDirection (param->getDirection ());
16141614
16151615 setSymbolDataToSide (param, group->getSymbolDirections (param), paramsToClient, paramsToServer, paramInfo);
16161616
1617- if (needTempVariable && param->getDirection () != kInDirection )
1617+ if (needTempVariableI32 && param->getDirection () != kInDirection )
16181618 {
1619- info[" needTempVariableClient " ] = true ;
1619+ info[" needTempVariableClientI32 " ] = true ;
16201620 }
1621- if (needTempVariable && (param->getDirection () == kInDirection || param->getDirection () == kInoutDirection ))
1621+ if (needTempVariableI32 && (param->getDirection () == kInDirection || param->getDirection () == kInoutDirection ))
16221622 {
1623- info[" needTempVariableServer " ] = true ;
1623+ info[" needTempVariableServerI32 " ] = true ;
16241624 }
16251625 params.push_back (paramInfo);
16261626
0 commit comments