From fee656eb6820bcc12c7e4e627d7aa76b34e3625e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 15 May 2007 07:36:56 +0000 Subject: [PATCH] warn about (and otherwise ignore) duplicate frame macros --- tools/qfcc/source/qc-lex.l | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/qfcc/source/qc-lex.l b/tools/qfcc/source/qc-lex.l index e3fd1f19f..b722ef9b7 100644 --- a/tools/qfcc/source/qc-lex.l +++ b/tools/qfcc/source/qc-lex.l @@ -440,6 +440,11 @@ void add_frame_macro (char *token) { frame_t *frame; + + if (Hash_Find (frame_tab, token)) { + warning (0, "duplicate frame macro `%s'", token); + return; + } ALLOC (1024, frame_t, frames, frame); frame->name = save_string (token);