]> git.sur5r.net Git - cc65/blobdiff - src/ld65/lineinfo.h
New feature: startaddress
[cc65] / src / ld65 / lineinfo.h
index 98138c47c732f413bb53c8ba75717a031d6444a5..5b2a3a9831d8293640305d606d9646192e791ce1 100644 (file)
 
 
 /*****************************************************************************/
-/*                                  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 */