aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-20 22:11:05 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-20 22:11:05 -0700
commit261bf12c91286ffca9fcb0bf761d6d1666359dc7 (patch)
tree4b6d388843bad1aadae666fa8597c9f0d50488b0 /env.h
parentb08fb866378693d2e75f17fdfe5e60401a29136a (diff)
Lots of miscellaneous cleanup. Unified the path_get_cd_path, path_allocate_cd_path, etc. functions
Diffstat (limited to 'env.h')
-rw-r--r--env.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/env.h b/env.h
index 73f5b984..bd597f1b 100644
--- a/env.h
+++ b/env.h
@@ -183,14 +183,17 @@ int env_set_pwd();
class env_vars_snapshot_t {
std::map<wcstring, wcstring> vars;
+ bool is_current() const;
public:
env_vars_snapshot_t(const wchar_t * const * keys);
env_vars_snapshot_t(void);
- const wchar_t *get(const wchar_t *key) const;
env_var_t get(const wcstring &key) const;
+ // Returns the fake snapshot representing the live variables array
+ static const env_vars_snapshot_t &current();
+
// vars necessary for highlighting
static const wchar_t * const highlighting_keys[];
};