]> git.sur5r.net Git - cc65/blobdiff - src/cc65/incpath.c
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / src / cc65 / incpath.c
index 275fc844d1adf18c122924e17ae34ff5ea1cd36c..7a4b31e941a012af419f490a8892d7f5b337864d 100644 (file)
@@ -1,12 +1,12 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                incpath.c                                 */
+/*                                 incpath.c                                 */
 /*                                                                           */
-/*                     Include path handling for cc65                       */
+/*                      Include path handling for cc65                       */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000-2012, Ullrich von Bassewitz                                      */
+/* (C) 2000-2013, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -39,7 +39,7 @@
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
@@ -50,38 +50,38 @@ SearchPath*     UsrIncSearchPath;       /* User include path */
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
-void ForgetAllIncludePaths (void)
-/* Remove all include search paths. */
-{
-    ForgetSearchPath (SysIncSearchPath);
-    ForgetSearchPath (UsrIncSearchPath);
-}
-
-
-
 void InitIncludePaths (void)
 /* Initialize the include path search list */
 {
     /* Create the search path lists */
     SysIncSearchPath = NewSearchPath ();
     UsrIncSearchPath = NewSearchPath ();
+}
+
 
-    /* Add some compiled in search paths if defined at compile time */
-#ifdef CC65_INC
-    AddSearchPath (SysIncSearchPath, STRINGIZE (CC65_INC));
-#endif
 
+void FinishIncludePaths (void)
+/* Finish creating the include path search lists. */
+{
     /* Add specific paths from the environment */
     AddSearchPathFromEnv (SysIncSearchPath, "CC65_INC");
     AddSearchPathFromEnv (UsrIncSearchPath, "CC65_INC");
 
-    /* Add paths relative to a main directory defined in an env var */
+    /* Add paths relative to a main directory defined in an env. var. */
     AddSubSearchPathFromEnv (SysIncSearchPath, "CC65_HOME", "include");
+
+    /* Add some compiled-in search paths if defined at compile time. */
+#ifdef CC65_INC
+    AddSearchPath (SysIncSearchPath, STRINGIZE (CC65_INC));
+#endif
+
+    /* Add paths relative to the parent directory of the Windows binary. */
+    AddSubSearchPathFromWinBin (SysIncSearchPath, "include");
 }