]> git.sur5r.net Git - cc65/blobdiff - src/cc65/input.h
Normalized code.
[cc65] / src / cc65 / input.h
index 27ccce77aeec53ec8a89405b4dad677270c80c3d..e6fcc618cd6df0ec10dcfaebc5288f67f6b8af31 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                 input.h                                  */
+/*                                  input.h                                  */
 /*                                                                           */
-/*                           Input file handling                            */
+/*                            Input file handling                            */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
 
 
 /*****************************************************************************/
-/*                                  data                                    */
+/*                                   data                                    */
 /*****************************************************************************/
 
 
 
+/* An enum that describes different types of input files. The members are
+ * choosen so that it is possible to combine them to bitsets
+ */
+typedef enum {
+    IT_MAIN   = 0x01,           /* Main input file */
+    IT_SYSINC = 0x02,           /* System include file (using <>) */
+    IT_USRINC = 0x04,           /* User include file (using "") */
+} InputType;
+
 /* Forward for an IFile structure */
 struct IFile;
 
@@ -64,7 +73,7 @@ extern char NextC;
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -72,7 +81,7 @@ extern char NextC;
 void OpenMainFile (const char* Name);
 /* Open the main file. Will call Fatal() in case of failures. */
 
-void OpenIncludeFile (const char* Name, unsigned DirSpec);
+void OpenIncludeFile (const char* Name, InputType IT);
 /* Open an include file and insert it into the tables. */
 
 void NextChar (void);
@@ -107,7 +116,5 @@ void CreateDependencies (void);
 
 
 /* End of input.h */
-#endif
-
-
 
+#endif