Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

env.h

Go to the documentation of this file.
00001 
00005 #ifndef FISH_ENV_H
00006 #define FISH_ENV_H
00007 
00008 #include <wchar.h>
00009 
00010 #include "util.h"
00011 
00015 #define ENV_LOCAL 1
00016 
00020 #define ENV_EXPORT 2
00021 
00025 #define ENV_UNEXPORT 16
00026 
00030 #define ENV_GLOBAL 4
00031 
00037 #define ENV_USER 8
00038 
00042 #define ENV_UNIVERSAL 32
00043 
00047 enum{
00048         ENV_PERM = 1,
00049         ENV_INVALID
00050 }
00051 ;
00052 
00053 
00057 void env_init();
00058 
00062 void env_destroy();
00063 
00064 
00082 int env_set( const wchar_t *key, 
00083                          const wchar_t *val,
00084                          int mode );
00085 
00086 
00094 wchar_t *env_get( const wchar_t *key );
00095 
00103 int env_exist( const wchar_t *key, int mode );
00104 
00113 int env_remove( const wchar_t *key, int mode );
00114 
00118 void env_push( int new_scope );
00119 
00123 void env_pop();
00124 
00128 char **env_export_arr( int recalc );
00129 
00133 void env_get_names( array_list_t *l, int flags );
00134 
00135 #endif

Generated on Sun Jan 13 02:52:28 2008 for fish by  doxygen 1.4.4