Use collections in the object file structure instead of managing the items
manually. git-svn-id: svn://svn.cc65.org/cc65/trunk@4773 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2001 Ullrich von Bassewitz */
|
||||
/* R<EFBFBD>merstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* (C) 2001-2010, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
@@ -95,8 +95,8 @@ LineInfo* ReadLineInfo (FILE* F, ObjData* O)
|
||||
ReadFilePos (F, &LI->Pos);
|
||||
|
||||
/* Resolve the file index to a pointer to FileInfo struct */
|
||||
CHECK (LI->Pos.Name < O->FileCount);
|
||||
LI->File = O->Files[LI->Pos.Name];
|
||||
CHECK (LI->Pos.Name < CollCount (&O->Files));
|
||||
LI->File = CollAt (&O->Files, LI->Pos.Name);
|
||||
|
||||
/* Return the new LineInfo */
|
||||
return LI;
|
||||
@@ -189,3 +189,4 @@ void RelocLineInfo (Segment* S)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user