You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

void a()
{
if((tmp == nullptr) ||
((tmp->GetType() != CT_NUMBER) &&
(tmp->GetType() != CT_SIZEOF) &&
!(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
(tmp->GetType() == CT_NEWLINE)
)
{
next->SetType(CT_LABEL_COLON);
}
else if ((tmp == nullptr) ||
((tmp->GetType() != CT_NUMBER) &&
(tmp->GetType() != CT_SIZEOF) &&
!(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
(tmp->GetType() == CT_NEWLINE)
)
{
next->SetType(CT_LABEL_COLON);
}
if ((tmp == nullptr) ||
((tmp->GetType() != CT_NUMBER) &&
(tmp->GetType() != CT_SIZEOF) &&
!(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
(tmp->GetType() == CT_NEWLINE)
)
{
next->SetType(CT_LABEL_COLON);
}
if ((tmp == nullptr) ||
((tmp->GetType() != CT_NUMBER) &&
(tmp->GetType() != CT_SIZEOF) &&
!(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
(tmp->GetType() == CT_NEWLINE)
)
{
next->SetType(CT_LABEL_COLON);
}
}