/**
   Remove variable with specified name
*/
void env_universal_common_remove(const wcstring &name)
{
    env_var_table_t::iterator result =  env_universal_var.find(name);
    if (result != env_universal_var.end())
    {
        var_uni_entry_t* v = result->second;
        env_universal_var.erase(result);
        delete v;
    }
}
int env_universal_common_get_export(const wcstring &name)
{
    env_var_table_t::const_iterator result = env_universal_var.find(name);
    if (result != env_universal_var.end())
    {
        const var_uni_entry_t *e = result->second;
        if (e != NULL)
            return e->exportv;
    }
    return 0;
}
wchar_t *env_universal_common_get(const wcstring &name)
{
    env_var_table_t::const_iterator result = env_universal_var.find(name);

    if (result != env_universal_var.end())
    {
        const var_uni_entry_t *e = result->second;
        if (e)
            return const_cast<wchar_t*>(e->val.c_str());
    }

    return 0;
}