Pelles C forum

Pelles C => Bug reports => Topic started by: post from old forum on September 13, 2004, 11:48:07 PM

Title: found '&' expecting
Post by: post from old forum on September 13, 2004, 11:48:07 PM
This error
X.C(747): error: Syntax error; found '&' expecting ')'.

is generated from this prototype

int CheckGlobal (char *, int &);

for this function

int CheckGlobal (char *ZZ, int &varnum)
{
int hn;
int s;
hn=HashNumber(ZZ);
while(GlobalVarHash)
{
s=GlobalVarHash;
if(str_cmp(ZZ,GlobalVars.VarName)==0)
{
varnum=s;
return GlobalVars.VarType;
}
hn=imod(hn+1,MaxGlobalVars);
}
return vt_UNKNOWN;
}

Robert Wishlaw
Title: found '&' expecting
Post by: post from old forum on September 13, 2004, 11:48:29 PM
Pelles C don't support references like C++. I *might* add it in a future version, but I don't really like them myself...

Pelle
Title: found '&' expecting
Post by: post from old forum on September 13, 2004, 11:48:53 PM
Thank you, disregard my last bug report.

Robert Wishlaw