X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fld65%2Flineinfo.h;h=5b2a3a9831d8293640305d606d9646192e791ce1;hb=df5132d31c0e3b3cf49460d230870863c10d39d9;hp=98138c47c732f413bb53c8ba75717a031d6444a5;hpb=bfbedfa54b98d059c62f82609a0966f4acddd174;p=cc65 diff --git a/src/ld65/lineinfo.h b/src/ld65/lineinfo.h index 98138c47c..5b2a3a983 100644 --- a/src/ld65/lineinfo.h +++ b/src/ld65/lineinfo.h @@ -48,15 +48,35 @@ /*****************************************************************************/ -/* Data */ +/* Forwards */ /*****************************************************************************/ +struct Segment; + + + +/*****************************************************************************/ +/* Data */ +/*****************************************************************************/ + + + +typedef struct CodeRange CodeRange; +struct CodeRange { + unsigned long Offs; + unsigned long Size; +}; + + + typedef struct LineInfo LineInfo; struct LineInfo { - FilePos Pos; /* File position */ - Collection Fragments; /* Fragments for this line */ + struct FileInfo* File; /* File struct for this line */ + FilePos Pos; /* File position */ + Collection Fragments; /* Fragments for this line */ + Collection CodeRanges; /* Code ranges for this line */ }; @@ -70,6 +90,9 @@ struct LineInfo { LineInfo* ReadLineInfo (FILE* F, ObjData* O); /* Read a line info from a file and return it */ +void RelocLineInfo (struct Segment* S); +/* Relocate the line info for a segment. */ + /* End of lineinfo.h */