1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00

Added missing params to Error function

git-svn-id: svn://svn.cc65.org/cc65/trunk@424 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-10-31 19:12:27 +00:00
parent 4680e36ad0
commit db656c5e38

View File

@ -405,7 +405,7 @@ void SymDef (const char* Name, ExprNode* Expr, int ZP)
SymEntry* S = SymFind (SymTab, Name, SF_ALLOC_NEW); SymEntry* S = SymFind (SymTab, Name, SF_ALLOC_NEW);
if (S->Flags & SF_IMPORT) { if (S->Flags & SF_IMPORT) {
/* Defined symbol is marked as imported external symbol */ /* Defined symbol is marked as imported external symbol */
Error (ERR_SYM_ALREADY_IMPORT); Error (ERR_SYM_ALREADY_IMPORT, Name);
return; return;
} }
if (S->Flags & SF_DEFINED) { if (S->Flags & SF_DEFINED) {
@ -905,7 +905,7 @@ static void SymCheckUndefined (SymEntry* S)
if (S->Flags & SF_EXPORT) { if (S->Flags & SF_EXPORT) {
if (Sym->Flags & SF_IMPORT) { if (Sym->Flags & SF_IMPORT) {
/* The symbol is already marked as imported external symbol */ /* The symbol is already marked as imported external symbol */
PError (&S->Pos, ERR_SYM_ALREADY_IMPORT); PError (&S->Pos, ERR_SYM_ALREADY_IMPORT, S->Name);
} }
Sym->Flags |= S->Flags & (SF_EXPORT | SF_ZP); Sym->Flags |= S->Flags & (SF_EXPORT | SF_ZP);
} }