Adapted to new line infos and spans as written to the object file by the
assembler. git-svn-id: svn://svn.cc65.org/cc65/trunk@5163 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -62,13 +62,8 @@ struct Segment;
|
||||
|
||||
|
||||
|
||||
/* Span is an opaque type */
|
||||
typedef struct Span Span;
|
||||
struct Span {
|
||||
unsigned Id; /* Id of the span */
|
||||
struct Segment* Seg; /* Segment of this span */
|
||||
unsigned long Offs; /* Offset of span within segment */
|
||||
unsigned long Size; /* Size of span */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -78,9 +73,6 @@ struct Span {
|
||||
|
||||
|
||||
|
||||
Span* NewSpan (struct Segment* Seg, unsigned long Offs, unsigned long Size);
|
||||
/* Create and return a new span */
|
||||
|
||||
Span* ReadSpan (FILE* F, struct ObjData* O);
|
||||
/* Read a Span from a file and return it */
|
||||
|
||||
@@ -90,11 +82,8 @@ void ReadSpans (Collection* Spans, FILE* F, struct ObjData* O);
|
||||
void FreeSpan (Span* S);
|
||||
/* Free a span structure */
|
||||
|
||||
void AddSpan (Collection* Spans, struct Segment* Seg, unsigned long Offs,
|
||||
unsigned long Size);
|
||||
/* Either add a new span to the ones already in the given collection, or - if
|
||||
* possible - merge it with adjacent ones that already exist.
|
||||
*/
|
||||
unsigned SpanId (const struct ObjData* O, const Span* S);
|
||||
/* Return the global id of a span */
|
||||
|
||||
unsigned SpanCount (void);
|
||||
/* Return the total number of spans */
|
||||
|
||||
Reference in New Issue
Block a user