]> git.sur5r.net Git - cc65/blobdiff - src/ca65/main.c
Make .DEF, .REF and friends also work with cheap local symbols.
[cc65] / src / ca65 / main.c
index b552e8363fc5c5cb86a2f3a52b19a08db3998432..eae7c384f1278601cc3cb42d09c1d7661928c7b0 100644 (file)
@@ -360,7 +360,7 @@ static void OptAutoImport (const char* Opt attribute ((unused)),
 
 static void OptBinIncludeDir (const char* Opt attribute ((unused)), const char* Arg)
 /* Add an include search path for binaries */
-{                        
+{
     AddSearchPath (BinSearchPath, Arg);
 }
 
@@ -632,12 +632,7 @@ static void OneLine (void)
         int HadWS = WS;
 
         /* Generate the symbol table entry, then skip the name */
-        if (Tok == TOK_LOCAL_IDENT) {
-            Sym = SymFindLocal (SymLast, &SVal, SYM_ALLOC_NEW);
-            NextTok ();
-        } else {
-            Sym = ParseScopedSymName (SYM_ALLOC_NEW);
-        }
+        Sym = ParseAnySymName (SYM_ALLOC_NEW);
 
         /* If a colon follows, this is a label definition. If there
          * is no colon, it's an assignment.