Started to generalize line info handling. Remove separate FilePos fields and

try to manage all and everything with LineInfos.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4914 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-01-24 22:38:22 +00:00
parent 0f9ced267e
commit 06e3152035
11 changed files with 446 additions and 141 deletions

View File

@@ -48,6 +48,17 @@
/*****************************************************************************/
/* 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)