Skip to content

Commit ce61bbb

Browse files
authored
Try get_env
1 parent 6fb549b commit ce61bbb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Interpreter/Compatibility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define fileno _fileno
1818
#endif
1919

20-
char* GetEnv(const char* Var_Name) {
20+
char* Get_Env(const char* Var_Name) {
2121
#ifdef _WIN32
2222
char* Env = nullptr;
2323
size_t sz = 0;

lib/Interpreter/DynamicLibraryManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace Cpp {
5353
// Behaviour is to not add paths that don't exist...In an interpreted env
5454
// does this make sense? Path could pop into existance at any time.
5555
for (const char* Var : kSysLibraryEnv) {
56-
if (const char* Env = GetEnv(Var)) {
56+
if (const char* Env = Get_Env(Var)) {
5757
SmallVector<StringRef, 10> CurPaths;
5858
SplitPaths(Env, CurPaths, utils::kPruneNonExistant, Cpp::utils::platform::kEnvDelim);
5959
for (const auto& Path : CurPaths)

lib/Interpreter/Paths.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ bool ExpandEnvVars(std::string& Str, bool Path) {
169169

170170
std::string EnvVar = Str.substr(DPos + 1, Length -1); //"HOME"
171171
std::string FullPath;
172-
if (const char* Tok = GetEnv(EnvVar.c_str()))
172+
if (const char* Tok = Get_Env(EnvVar.c_str()))
173173
FullPath = Tok;
174174

175175
Str.replace(DPos, Length, FullPath);

0 commit comments

Comments
 (0)