From 3ef00e7d2acefce95275bfd615b3658ffbd1b273 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 8 May 2001 17:56:39 +0000 Subject: [PATCH] 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 --- src/ca65/symtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5