]> git.sur5r.net Git - cc65/blobdiff - src/ca65/ulabel.c
Finished implemenation of commands to delete macros. Added the new commands to
[cc65] / src / ca65 / ulabel.c
index 3340a68c8ece5f6d8786c59f14b5e59a1def1501..023dd13757e12f3fcf461d952f58ec0a37a3df41 100644 (file)
@@ -83,7 +83,7 @@ static ULabel* NewULabel (ExprNode* Val)
 
     /* Initialize the fields */
     L->LineInfos = EmptyCollection;
-    GetFullLineInfo (&L->LineInfos);
+    GetFullLineInfo (&L->LineInfos, 0);
     L->Val       = Val;
     L->Ref       = 0;
 
@@ -161,8 +161,7 @@ void ULabDef (void)
        ULabel* L = CollAtUnchecked (&ULabList, ULabDefCount);
        CHECK (L->Val == 0);
        L->Val = GenCurrentPC ();
-        CollDeleteAll (&L->LineInfos);
-        GetFullLineInfo (&L->LineInfos);
+        GetFullLineInfo (&L->LineInfos, 0);
     } else {
        /* There is no such label, create it */
                NewULabel (GenCurrentPC ());