Use the Span structure also for scopes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5115 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-04 13:14:26 +00:00
parent e9d9ba92b0
commit 04a0dafe25
7 changed files with 97 additions and 68 deletions

View File

@@ -38,6 +38,8 @@
#include <stdio.h>
/* common */
#include "coll.h"
@@ -49,6 +51,7 @@
struct ObjData;
struct Segment;
@@ -77,6 +80,12 @@ 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 */
void ReadSpans (Collection* Spans, FILE* F, struct ObjData* O);
/* Read a list of Spans from a file and return it */
void FreeSpan (Span* S);
/* Free a span structure */