warn about (and otherwise ignore) duplicate frame macros

This commit is contained in:
Bill Currie 2007-05-15 07:36:56 +00:00 committed by Jeff Teunissen
parent 79fdf8db80
commit fee656eb68

View file

@ -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);