Big cleanup of env_set. Changed var_table_t to use direct var_entry_t instead of pointers. Changed some ints to bools.

This commit is contained in:
ridiculousfish
2013-01-19 13:16:21 -08:00
parent 98a17f4046
commit e07de09460
6 changed files with 178 additions and 222 deletions

4
env.h
View File

@@ -146,13 +146,13 @@ class env_var_t : public wcstring
env_var_t env_get_string(const wcstring &key);
/**
Returns 1 if the specified key exists. This can't be reliably done
Returns true if the specified key exists. This can't be reliably done
using env_get, since env_get returns null for 0-element arrays
\param key The name of the variable to remove
\param mode the scope to search in. All scopes are searched if unset
*/
int env_exist(const wchar_t *key, int mode);
bool env_exist(const wchar_t *key, int mode);
/**
Remove environemnt variable