]> git.sur5r.net Git - cc65/blobdiff - src/common/filepos.h
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / src / common / filepos.h
index e84ebbba05845172f5870ca6012ade76ceb53d88..d6368ad6f63b3d2c8b5030be850ee1d247e35882 100644 (file)
@@ -1,12 +1,12 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                 filepos.h                                */
+/*                                 filepos.h                                 */
 /*                                                                           */
-/*                       File position data structure                       */
+/*                       File position data structure                        */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2010, Ullrich von Bassewitz                                      */
+/* (C) 1998-2011, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -39,7 +39,7 @@
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
@@ -47,9 +47,9 @@
 /* Type of a file position */
 typedef struct FilePos FilePos;
 struct FilePos {
-    unsigned long   Line;               /* Line */
-    unsigned        Col;                /* Column */
-    unsigned        Name;               /* File */
+    unsigned    Line;               /* Line */
+    unsigned    Col;                /* Column */
+    unsigned    Name;               /* File */
 };
 
 /* Initializer for a FilePos */
@@ -58,7 +58,7 @@ struct FilePos {
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -66,11 +66,14 @@ struct FilePos {
 void InitFilePos (FilePos* P);
 /* Initialize the file position (set all fields to zero) */
 
+int CompareFilePos (const FilePos* P1, const FilePos* P2);
+/* Compare two file positions. Return zero if both are equal, return a value
+** > 0 if P1 is greater and P2, and a value < 0 if P1 is less than P2. The
+** compare rates file index over line over column.
+*/
+
 
 
 /* End of filepos.h */
 
 #endif
-
-
-