- Timestamp:
- Sep 28, 2010, 1:19:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/src/Environment.cpp
r137 r144 11 11 #include "Common/include/Message.h" 12 12 #include <sys/stat.h> 13 #include <errno.h> 13 14 14 15 namespace morpheo { … … 16 17 static bool environment_initialized; 17 18 std::string MORPHEO_HOME; 18 std::string MORPHEO_ TOPLEVEL;19 std::string MORPHEO_PREFIX; 19 20 std::string MORPHEO_VERSION; 20 21 std::string MORPHEO_HEADER; … … 28 29 { 29 30 { 30 char * TOPLEVEL = getenv("MORPHEO_TOPLEVEL");31 char * PREFIX = getenv("MORPHEO_PREFIX"); 31 32 32 if ( TOPLEVEL== NULL)33 if (PREFIX == NULL) 33 34 throw ERRORMORPHEO(FUNCTION,_("Error morpheo environment is not positioned.\n")); 34 35 35 MORPHEO_ TOPLEVEL = TOPLEVEL;36 MORPHEO_PREFIX = PREFIX; 36 37 } 37 38 … … 91 92 if (chdir(dir.c_str())!=0) 92 93 throw ERRORMORPHEO(FUNCTION,toString(_("Error in opening directory \"%s\".\n"),dir.c_str())); 93 chdir(pwd); 94 95 assert(chdir(pwd)==0); 94 96 } 95 97
Note: See TracChangeset
for help on using the changeset viewer.