aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-19 13:16:21 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-19 13:32:06 -0800
commite07de09460a81fcf020ff989041ec2116992c02f (patch)
tree74686a9e53c7fbe168b2ced427d8fa7f4f284199 /env_universal_common.h
parent98a17f4046f8098d04727f9cb1891d15a27ba13f (diff)
Big cleanup of env_set. Changed var_table_t to use direct var_entry_t instead of pointers. Changed some ints to bools.
Diffstat (limited to 'env_universal_common.h')
-rw-r--r--env_universal_common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/env_universal_common.h b/env_universal_common.h
index 1f90b6bb..4625725f 100644
--- a/env_universal_common.h
+++ b/env_universal_common.h
@@ -151,8 +151,8 @@ void env_universal_common_destroy();
variables, it does not communicate with any other process.
*/
void env_universal_common_get_names(wcstring_list_t &lst,
- int show_exported,
- int show_unexported);
+ bool show_exported,
+ bool show_unexported);
/**
Perform the specified variable assignment.
@@ -163,7 +163,7 @@ void env_universal_common_get_names(wcstring_list_t &lst,
Do not call this function. Create a message to do it. This function
is only to be used when fishd is dead.
*/
-void env_universal_common_set(const wchar_t *key, const wchar_t *val, int exportv);
+void env_universal_common_set(const wchar_t *key, const wchar_t *val, bool exportv);
/**
Remove the specified variable.
@@ -186,12 +186,12 @@ wchar_t *env_universal_common_get(const wcstring &name);
/**
Get the export flag of the variable with the specified
- name. Returns 0 if the variable doesn't exist.
+ name. Returns false if the variable doesn't exist.
This function operate agains the local copy of all universal
variables, it does not communicate with any other process.
*/
-int env_universal_common_get_export(const wcstring &name);
+bool env_universal_common_get_export(const wcstring &name);
/**
Add messages about all existing variables to the specified connection