const StatementKey *Parser::peek(unsigned level)
{
- while(1)
+ while(good)
{
const StatementKey *key = mode->peek(level);
if(key && !key->keyword.compare(0, 2, "__"))
else
return key;
}
+
+ return 0;
}
bool Parser::parse_and_load(unsigned level, Loader &ldr, const LoaderAction &act)