From 7cfb9425a05d9fc79b5c04f27c20ffe298dab6d6 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Thu, 23 Aug 2012 22:40:51 +0200 Subject: [PATCH] Fixing handling of duplicate frame macros: 'continue' would continue the inner for, how could I miss that --- lexer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lexer.c b/lexer.c index 0809692..8d38e4a 100644 --- a/lexer.c +++ b/lexer.c @@ -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; -- 2.39.2