예제 #1
0
/* Env variables are stored in the environment list as "name=value" strings */
void Command_setEnv(Command_T C, const char *name, const char *value) {
        assert(C);
        assert(name);
        removeEnv(C, name);
        List_append(C->env, Str_cat("%s=%s", name, value ? value : ""));
        FREE(C->_env); // Recreate Command environment on exec
}
예제 #2
0
void ProcessEnv::setEnv(char** newenvs, Lng32 nEnvs) 
{
  if (!newenvs)
    return;
  
  addOrChangeEnv(newenvs, nEnvs);
  removeEnv(newenvs, nEnvs);

#ifdef _DEBUG
  dumpEnvs();					// only if debugging
#endif
}
예제 #3
0
파일: project.cpp 프로젝트: bw-github/wgtf
void Project::fini()
{
    auto uiApplication = contextManager_.queryInterface<IUIApplication>();
    assert( uiApplication != nullptr );
    if(view_ != nullptr)
    {
        uiApplication->removeView( *view_ );
    }
    auto em = contextManager_.queryInterface<IEnvManager>();
    em->removeEnv( envId_ );
    view_ = nullptr;
    projectData_ = nullptr;
}
예제 #4
0
/* Env variables are stored in the environment list as "name=value" strings */
void Command_setEnv(Command_T C, const char *name, const char *value) {
        assert(C);
        assert(name);
        removeEnv(C, name);
        List_append(C->env, Str_cat("%s=%s", name, value ? value : ""));
}