]> git.sur5r.net Git - cc65/blobdiff - src/ld65/lineinfo.h
New module strstack
[cc65] / src / ld65 / lineinfo.h
index 8a40126f328e695fc4e3d4d704249f37838cadc5..6d02504af49a813b2ce902d3a15b62e20eb1468b 100644 (file)
@@ -7,8 +7,8 @@
 /*                                                                           */
 /*                                                                           */
 /* (C) 2001      Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 
 
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                Forwards                                  */
 /*****************************************************************************/
 
 
 
+struct Segment;
+
+
+
+/*****************************************************************************/
+/*                                  Data                                    */
+/*****************************************************************************/
+
+
+
+typedef struct CodeRange CodeRange;
+struct CodeRange {
+    unsigned long Offs;
+    unsigned long Size;
+};
+
+
+
 typedef struct LineInfo LineInfo;
 struct LineInfo {
     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 */
 };
 
 
@@ -71,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 */