From: cuz Date: Tue, 8 May 2001 17:56:39 +0000 (+0000) Subject: The .defined function (and .ifdef/.ifndef) flagged an imported symbol as X-Git-Tag: V2.12.0~2842 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3ef00e7d2acefce95275bfd615b3658ffbd1b273;p=cc65 The .defined function (and .ifdef/.ifndef) flagged an imported symbol as "defined". I'm not sure whichever is correct, but I changed it now and will introduce an additional function .isimport if necessary. git-svn-id: svn://svn.cc65.org/cc65/trunk@721 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/symtab.c b/src/ca65/symtab.c index 76055f927..602f41f6b 100644 --- a/src/ca65/symtab.c +++ b/src/ca65/symtab.c @@ -635,7 +635,7 @@ int SymIsDef (const char* Name) /* Return true if the given symbol is already defined */ { SymEntry* S = SymFindAny (SymTab, Name); - return S != 0 && (S->Flags & (SF_DEFINED | SF_IMPORT)) != 0; + return S != 0 && (S->Flags & SF_DEFINED) != 0; }