]> git.sur5r.net Git - cc65/blobdiff - src/ca65/dbginfo.c
Started to generalize line info handling. Remove separate FilePos fields and
[cc65] / src / ca65 / dbginfo.c
index fc80539b49b303ea48bddaff6eeb2aa4f44ce2b4..15745b3fdff98af972f6c02953e7c64364113122 100644 (file)
 
 
 
+/*****************************************************************************/
+/*                                   Data                                    */
+/*****************************************************************************/
+
+
+
+/* The line info slot used */
+static unsigned LineInfoSlot;
+
+
+
 /*****************************************************************************/
 /*                                          Code                                    */
 /*****************************************************************************/
@@ -103,7 +114,7 @@ void DbgInfoLine (void)
      * follow, the last line info is terminated.
      */
     if (CurTok.Tok == TOK_SEP) {
-       ClearLineInfo ();
+       ClearLineInfo (LineInfoSlot);
        return;
     }
 
@@ -133,7 +144,7 @@ void DbgInfoLine (void)
     }
 
     /* Remember the line info */
-    GenLineInfo (Index, LineNum, 0);
+    GenLineInfo (LineInfoSlot, Index, LineNum, 0);
 }
 
 
@@ -146,5 +157,3 @@ void DbgInfoSym (void)
 
 
 
-
-