-/* $Id: errwarn.c,v 1.13 2001/07/04 20:53:21 peter Exp $
+/* $Id: errwarn.c,v 1.14 2001/07/04 20:57:53 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
"invalid effective address",
"label or instruction expected at start of line",
"expression syntax error",
- "duplicate definition of `%s'; previously defined line %d",
+ "duplicate definition of `%1'; previously defined line %2",
"mismatch in operand sizes"
};
-/* $Id: symrec.c,v 1.3 2001/06/13 05:56:06 mu Exp $
+/* $Id: symrec.c,v 1.4 2001/07/04 20:57:53 peter Exp $
* Symbol table handling
*
* Copyright (C) 2001 Michael Urman
symtab *tab;
tab = symtab_get_or_new (name, type);
if (tab->rec.status & SYM_DECLARED)
- Error (ERR_DUPLICATE_DEF, (char *)NULL, tab->rec.name, tab->rec.line);
+ Error (ERR_DUPLICATE_DEF, "%s%d", tab->rec.name, tab->rec.line);
tab->rec.status |= SYM_DECLARED;
return &(tab->rec);
}
-/* $Id: errwarn.c,v 1.13 2001/07/04 20:53:21 peter Exp $
+/* $Id: errwarn.c,v 1.14 2001/07/04 20:57:53 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
"invalid effective address",
"label or instruction expected at start of line",
"expression syntax error",
- "duplicate definition of `%s'; previously defined line %d",
+ "duplicate definition of `%1'; previously defined line %2",
"mismatch in operand sizes"
};
-/* $Id: symrec.c,v 1.3 2001/06/13 05:56:06 mu Exp $
+/* $Id: symrec.c,v 1.4 2001/07/04 20:57:53 peter Exp $
* Symbol table handling
*
* Copyright (C) 2001 Michael Urman
symtab *tab;
tab = symtab_get_or_new (name, type);
if (tab->rec.status & SYM_DECLARED)
- Error (ERR_DUPLICATE_DEF, (char *)NULL, tab->rec.name, tab->rec.line);
+ Error (ERR_DUPLICATE_DEF, "%s%d", tab->rec.name, tab->rec.line);
tab->rec.status |= SYM_DECLARED;
return &(tab->rec);
}