Forgotten strict2 change

stable-5.2
Günther Brammer 2009-07-24 23:43:24 +02:00
parent b0a7d4ed0d
commit 1889d79478
1 changed files with 1 additions and 4 deletions

View File

@ -678,16 +678,13 @@ C4AulTokenType C4AulParseState::GetNextToken(char *pToken, long int *pInt, HoldS
Len = Min(Len, C4AUL_MAX_Identifier);
SCopy(SPos0, pToken, Len);
// check if it's a C4ID (and NOT a label)
BOOL fllid = LooksLikeID(pToken);
if ((C != '(') && (C != ':' || *(SPos+1) == ':') && fllid)
if (LooksLikeID(pToken))
{
// will be parsed next time
State = TGS_C4ID; SPos--; Len--;
}
else
{
// warn if using C4ID as func label
if (fllid) Strict2Error("stupid func label: ", pToken);
// directive?
if (State == TGS_Dir) return ATT_DIR;
// check reserved names