mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Organize some code slightly better in env.h
This commit is contained in:
@@ -166,6 +166,7 @@ class env_var_t {
|
||||
}
|
||||
bool operator!=(const env_var_t &rhs) const { return ! (*this == rhs); }
|
||||
};
|
||||
typedef std::map<wcstring, env_var_t> var_table_t;
|
||||
|
||||
/// An environment is read-only access to variable values.
|
||||
class environment_t {
|
||||
@@ -192,9 +193,6 @@ class null_environment_t : public environment_t {
|
||||
wcstring_list_t get_names(int flags) const override;
|
||||
};
|
||||
|
||||
/// Synchronizes all universal variable changes: writes everything out, reads stuff in.
|
||||
void env_universal_barrier();
|
||||
|
||||
/// A environment stack of scopes. This is the main class that tracks fish variables.
|
||||
struct var_stack_t;
|
||||
class env_node_t;
|
||||
@@ -304,10 +302,11 @@ class env_vars_snapshot_t : public environment_t {
|
||||
extern int g_fork_count;
|
||||
extern bool g_use_posix_spawn;
|
||||
|
||||
typedef std::map<wcstring, env_var_t> var_table_t;
|
||||
|
||||
extern bool term_has_xn; // does the terminal have the "eat_newline_glitch"
|
||||
|
||||
/// Synchronizes all universal variable changes: writes everything out, reads stuff in.
|
||||
void env_universal_barrier();
|
||||
|
||||
/// Returns true if we think the terminal supports setting its title.
|
||||
bool term_supports_setting_title();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user