Add AddSearchPathFromEnv
git-svn-id: svn://svn.cc65.org/cc65/trunk@2176 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -172,6 +172,14 @@ void AddSearchPath (const char* NewPath, unsigned Where)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void AddSearchPathFromEnv (const char* EnvVar, unsigned Where)
|
||||||
|
/* Add a search from an environment variable */
|
||||||
|
{
|
||||||
|
AddSearchPath (getenv (EnvVar), Where);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
char* SearchFile (const char* Name, unsigned Where)
|
char* SearchFile (const char* Name, unsigned Where)
|
||||||
/* Search for a file in a list of directories. Return a pointer to a malloced
|
/* 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.
|
* area that contains the complete path, if found, return 0 otherwise.
|
||||||
|
|||||||
@@ -66,6 +66,9 @@
|
|||||||
void AddSearchPath (const char* NewPath, unsigned Where);
|
void AddSearchPath (const char* NewPath, unsigned Where);
|
||||||
/* Add a new search path to the existing one */
|
/* 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);
|
char* SearchFile (const char* Name, unsigned Where);
|
||||||
/* Search for a file in a list of directories. Return a pointer to a malloced
|
/* 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.
|
* area that contains the complete path, if found, return 0 otherwise.
|
||||||
|
|||||||
Reference in New Issue
Block a user