mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
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:
4
env.h
4
env.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user