///////////////// INSTANCE DECLARATION PASS ///////////////////////
// Returns true if we should add a * to the declarator
-static bool ReplaceClassSpec(OldList specs, Specifier spec, bool param)
+static int ReplaceClassSpec(OldList specs, Specifier spec, bool param)
{
if(spec.type == templateTypeSpecifier)
{
if(decl)
FreeDeclarator(decl);
if(isPointer)
- return true;
+ return 1;
}
}
else if(!param && parameter.dataType)
{
bool isPointer = decl.type == pointerDeclarator;
if(isPointer)
- return true;
+ return 1;
}
}
else
{
spec.type = baseSpecifier;
spec.specifier = VOID;
- return true;
+ return 1;
}
}
else
}
if(_class && _class.dataTypeString && !strcmp(_class.dataTypeString, "char *"))
- return true; //false;
+ return 1; //false;
if(!_class || _class.type == normalClass || _class.type == noHeadClass)
- return true;
+ return 1;
else if(param && _class.type == structClass)
return 2;
}
if(spec.specifier == ANY_OBJECT)
{
spec.specifier = VOID;
- return true;
+ return 1;
}
}
- return false;
+ return 0;
}
static void ReplaceByInstancePtr(Specifier spec, Declarator * declPtr, int type)