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

@@ -38,8 +38,6 @@
/* ca65 */
#include "fragment.h"
#include "lineinfo.h"
#include "scanner.h"
@@ -60,8 +58,8 @@ Fragment* NewFragment (unsigned char Type, unsigned short Len)
/* Initialize it */
F->Next = 0;
F->LineList = 0;
F->Pos = CurTok.Pos;
F->LI = UseLineInfo (CurLineInfo);
F->LI = EmptyCollection;
GetFullLineInfo (&F->LI);
F->Len = Len;
F->Type = Type;
@@ -71,4 +69,3 @@ Fragment* NewFragment (unsigned char Type, unsigned short Len)