]> git.sur5r.net Git - cc65/blobdiff - src/common/filepos.h
First test plugin
[cc65] / src / common / filepos.h
index 8378fd4b84f626f12e90d3d3584dcbeb0ef0d07b..7ccde3751c726073fc4afbb4bedf58fc925dbc21 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/*               Wacholderweg 14                                             */
+/*               D-70597 Stuttgart                                           */
+/* EMail:        uz@musoftware.de                                            */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
-/* Size of position in file */
-#define POS_SIZE       5
-
 /* Type of a file position */
-typedef struct FilePos_ FilePos;
-struct FilePos_ {
+typedef struct FilePos FilePos;
+struct FilePos {     
     unsigned long   Line;              /* Line */
-    unsigned char   Col;               /* Column */
-    unsigned char   Name;              /* File */
+    unsigned       Col;                /* Column */
+    unsigned       Name;               /* File */
 };
 
 
 
+/*****************************************************************************/
+/*                                          Code                                    */
+/*****************************************************************************/
+
+
+
+void InitFilePos (FilePos* P);
+/* Initialize the file position (set all fields to zero) */
+
+
+
 /* End of filepos.h */
 
 #endif