Changeset 144 for trunk/IPs/systemC/processor/Morpheo/Common
- Timestamp:
- Sep 28, 2010, 1:19:10 PM (14 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/Environment.h
r137 r144 47 47 // Environment variable 48 48 extern std::string MORPHEO_HOME; 49 extern std::string MORPHEO_ TOPLEVEL;49 extern std::string MORPHEO_PREFIX; 50 50 extern std::string MORPHEO_VERSION; 51 51 extern std::string MORPHEO_HEADER; -
trunk/IPs/systemC/processor/Morpheo/Common/src/Basename.cpp
r143 r144 13 13 std::string basename (std::string str, bool keep_extension) 14 14 { 15 std::string res = ::basename( str.c_str());15 std::string res = ::basename(const_cast<char *>(str.c_str())); 16 16 17 17 if (not keep_extension) -
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 -
trunk/IPs/systemC/processor/Morpheo/Common/src/Translation.cpp
r131 r144 23 23 environment(); 24 24 25 std::string dirname = MORPHEO_ TOPLEVEL;26 dirname += "/ IPs/systemC/processor/Morpheo/locale";25 std::string dirname = MORPHEO_PREFIX; 26 dirname += "/locale"; 27 27 28 28 if (bindtextdomain(MORPHEO_PACKAGE,dirname.c_str()) == NULL)
Note: See TracChangeset
for help on using the changeset viewer.