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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user