/* 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 }
void ProcessEnv::setEnv(char** newenvs, Lng32 nEnvs) { if (!newenvs) return; addOrChangeEnv(newenvs, nEnvs); removeEnv(newenvs, nEnvs); #ifdef _DEBUG dumpEnvs(); // only if debugging #endif }
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; }
/* 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 : "")); }