mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +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:
parent
4680e36ad0
commit
db656c5e38
@ -405,7 +405,7 @@ void SymDef (const char* Name, ExprNode* Expr, int ZP)
|
||||
SymEntry* S = SymFind (SymTab, Name, SF_ALLOC_NEW);
|
||||
if (S->Flags & SF_IMPORT) {
|
||||
/* Defined symbol is marked as imported external symbol */
|
||||
Error (ERR_SYM_ALREADY_IMPORT);
|
||||
Error (ERR_SYM_ALREADY_IMPORT, Name);
|
||||
return;
|
||||
}
|
||||
if (S->Flags & SF_DEFINED) {
|
||||
@ -643,7 +643,7 @@ int SymIsRef (const char* Name)
|
||||
{
|
||||
SymEntry* S = SymFindAny (SymTab, Name);
|
||||
return S != 0 && (S->Flags & SF_REFERENCED) != 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -905,7 +905,7 @@ static void SymCheckUndefined (SymEntry* S)
|
||||
if (S->Flags & SF_EXPORT) {
|
||||
if (Sym->Flags & SF_IMPORT) {
|
||||
/* 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user