From db656c5e38156b933abe0ec942ffec301c2ed6c2 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 31 Oct 2000 19:12:27 +0000 Subject: [PATCH] Added missing params to Error function git-svn-id: svn://svn.cc65.org/cc65/trunk@424 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/symtab.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ca65/symtab.c b/src/ca65/symtab.c index 8261572ac..7fb88dd1c 100644 --- a/src/ca65/symtab.c +++ b/src/ca65/symtab.c @@ -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); } -- 2.39.5