Replace single linked list of sections in a segment by a collection.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5208 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-18 11:58:16 +00:00
parent 2abd77ffe5
commit d3017665d2
2 changed files with 19 additions and 27 deletions

View File

@@ -40,7 +40,8 @@
#include <stdio.h>
/* common */
/* common */
#include "coll.h"
#include "exprdefs.h"
@@ -56,9 +57,8 @@ typedef struct Segment Segment;
struct Segment {
unsigned Name; /* Name index of the segment */
unsigned Id; /* Segment id for debug info */
Segment* Next; /* Hash list */
struct Section* SecRoot; /* Section list */
struct Section* SecLast; /* Pointer to last section */
Segment* Next; /* Hash list */
Collection Sections; /* Sections in this segment */
unsigned long PC; /* PC were this segment is located */
unsigned long Size; /* Size of data so far */
struct ObjData* AlignObj; /* Module that requested the alignment */