Fixing handling of duplicate frame macros: 'continue' would continue the inner for, how could I miss that

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-23 22:40:51 +02:00
parent 5e4b8846d1
commit 7cfb9425a0

View file

@ -405,9 +405,11 @@ static bool lex_finish_frames(lex_file *lex)
lex->frames[i].value = lex->framevalue++;
if (lexwarn(lex, WARN_FRAME_MACROS, "duplicate frame macro defined: `%s`", lex->tok->value))
return false;
continue;
break;
}
}
if (i < lex->frames_count)
continue;
m.value = lex->framevalue++;
m.name = lex->tok->value;