@@ -1114,7 +1114,7 @@ data_map CGenerator::getStructDefinitionTemplateData(Group *group, StructType *s
1114
1114
listCounter = 0 ;
1115
1115
1116
1116
structInfo[" hasNullableMember" ] = false ;
1117
- structInfo[" needTempVariable " ] = false ;
1117
+ structInfo[" needTempVariableI32 " ] = false ;
1118
1118
structInfo[" genStructWrapperF" ] = !isBinaryStruct (structType);
1119
1119
structInfo[" noSharedMem" ] = (findAnnotation (structType, NO_SHARED_ANNOTATION) != nullptr );
1120
1120
@@ -1210,13 +1210,13 @@ data_map CGenerator::getStructDefinitionTemplateData(Group *group, StructType *s
1210
1210
dataType->getName ().c_str ());
1211
1211
1212
1212
// Subtemplate setup for read/write struct calls
1213
- bool needTempVariable = false ;
1213
+ bool needTempVariableI32 = false ;
1214
1214
member_info[" coderCall" ] = getEncodeDecodeCall (" data->" + memberName, group, dataType, structType, true ,
1215
- member, needTempVariable , false );
1215
+ member, needTempVariableI32 , false );
1216
1216
1217
- if (needTempVariable )
1217
+ if (needTempVariableI32 )
1218
1218
{
1219
- structInfo[" needTempVariable " ] = true ;
1219
+ structInfo[" needTempVariableI32 " ] = true ;
1220
1220
}
1221
1221
1222
1222
member_info[" serializedViaMember" ] = " " ;
@@ -1262,10 +1262,10 @@ data_map CGenerator::getUnionDefinitionTemplateData(Group *group, UnionType *uni
1262
1262
bool &needUnionsServerFree)
1263
1263
{
1264
1264
(void )group;
1265
- bool needTempVariable = false ;
1265
+ bool needTempVariableI32 = false ;
1266
1266
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 ;
1269
1269
1270
1270
unionInfo[" noSharedMem" ] = (findAnnotation (unionType, NO_SHARED_ANNOTATION) != nullptr );
1271
1271
@@ -1391,8 +1391,8 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
1391
1391
info[" isReturnValue" ] = !fn->isOneway ();
1392
1392
info[" isSendValue" ] = false ;
1393
1393
setTemplateComments (fnSymbol, info);
1394
- info[" needTempVariableServer " ] = false ;
1395
- info[" needTempVariableClient " ] = false ;
1394
+ info[" needTempVariableServerI32 " ] = false ;
1395
+ info[" needTempVariableClientI32 " ] = false ;
1396
1396
info[" needNullVariableOnServer" ] = false ;
1397
1397
1398
1398
/* Is function declared as external? */
@@ -1407,7 +1407,7 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
1407
1407
if (!trueDataType->isVoid ())
1408
1408
{
1409
1409
string result = " result" ;
1410
- bool needTempVariable = false ;
1410
+ bool needTempVariableI32 = false ;
1411
1411
setCallingFreeFunctions (structMember, returnInfo, true );
1412
1412
string extraPointer = getExtraPointerInReturn (dataType);
1413
1413
string resultVariable = extraPointer + returnSpaceWhenNotEmpty (extraPointer) + result;
@@ -1438,10 +1438,10 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
1438
1438
1439
1439
returnInfo[" direction" ] = getDirection (kReturn );
1440
1440
returnInfo[" coderCall" ] =
1441
- getEncodeDecodeCall (result, group, dataType, nullptr , false , structMember, needTempVariable , true );
1441
+ getEncodeDecodeCall (result, group, dataType, nullptr , false , structMember, needTempVariableI32 , true );
1442
1442
returnInfo[" shared" ] = isShared;
1443
1443
resultVariable = getTypenameName (dataType, resultVariable);
1444
- info[" needTempVariableClient " ] = needTempVariable ;
1444
+ info[" needTempVariableClientI32 " ] = needTempVariableI32 ;
1445
1445
returnInfo[" resultVariable" ] = resultVariable;
1446
1446
returnInfo[" errorReturnValue" ] = getErrorReturnValue (fn);
1447
1447
returnInfo[" isNullReturnType" ] = (!trueDataType->isScalar () && !trueDataType->isEnum ());
@@ -1457,7 +1457,7 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
1457
1457
for (StructMember *param : fnParams)
1458
1458
{
1459
1459
data_map paramInfo;
1460
- bool needTempVariable = false ;
1460
+ bool needTempVariableI32 = false ;
1461
1461
DataType *paramType = param->getDataType ();
1462
1462
DataType *paramTrueType = paramType->getTrueDataType ();
1463
1463
string name = getOutputName (param);
@@ -1607,20 +1607,20 @@ data_map CGenerator::getFunctionBaseTemplateData(Group *group, FunctionBase *fn)
1607
1607
Log::debug (" Calling EncodeDecode param %s with paramType %s.\n " , param->getName ().c_str (),
1608
1608
paramType->getName ().c_str ());
1609
1609
paramInfo[" coderCall" ] = getEncodeDecodeCall (encodeDecodeName, group, paramType, &fn->getParameters (), false ,
1610
- param, needTempVariable , true );
1610
+ param, needTempVariableI32 , true );
1611
1611
1612
1612
// set parameter direction
1613
1613
paramInfo[" direction" ] = getDirection (param->getDirection ());
1614
1614
1615
1615
setSymbolDataToSide (param, group->getSymbolDirections (param), paramsToClient, paramsToServer, paramInfo);
1616
1616
1617
- if (needTempVariable && param->getDirection () != kInDirection )
1617
+ if (needTempVariableI32 && param->getDirection () != kInDirection )
1618
1618
{
1619
- info[" needTempVariableClient " ] = true ;
1619
+ info[" needTempVariableClientI32 " ] = true ;
1620
1620
}
1621
- if (needTempVariable && (param->getDirection () == kInDirection || param->getDirection () == kInoutDirection ))
1621
+ if (needTempVariableI32 && (param->getDirection () == kInDirection || param->getDirection () == kInoutDirection ))
1622
1622
{
1623
- info[" needTempVariableServer " ] = true ;
1623
+ info[" needTempVariableServerI32 " ] = true ;
1624
1624
}
1625
1625
params.push_back (paramInfo);
1626
1626
0 commit comments