]> git.sur5r.net Git - cc65/blobdiff - src/common/searchpath.h
Add AddSearchPathFromEnv
[cc65] / src / common / searchpath.h
index a59ac7d8670381e7d5e1defd7a8f04f6c36cf80d..0e51e1963617a4e255720dc27e0e5b92cafe3610 100644 (file)
@@ -34,7 +34,7 @@
 
 
 /* Exports facilities to search files in a list of directories. 8 of these
- * lists are managed, and each list can contain an arbitrary number of 
+ * lists are managed, and each list can contain an arbitrary number of
  * directories. The "Where" argument is actually a bitset, specifying which
  * of the search lists should be used when adding paths or searching files.
  */
@@ -66,6 +66,9 @@
 void AddSearchPath (const char* NewPath, unsigned Where);
 /* Add a new search path to the existing one */
 
+void AddSearchPathFromEnv (const char* EnvVar, unsigned Where);
+/* Add a search from an environment variable */
+
 char* SearchFile (const char* Name, unsigned Where);
 /* Search for a file in a list of directories. Return a pointer to a malloced
  * area that contains the complete path, if found, return 0 otherwise.