Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Common/src
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Common/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/src/Debug.cpp
r82 r88 7 7 8 8 #include "Common/include/Debug.h" 9 #include "Common/include/Environment.h" 10 11 namespace morpheo { 9 12 10 13 static uint32_t _debug_depth = 0; 11 14 15 #undef FUNCTION 16 #define FUNCTION "debug_tab" 12 17 std::string debug_tab (void) 13 18 { … … 15 20 } 16 21 22 #undef FUNCTION 23 #define FUNCTION "debug_tab_inc" 17 24 void debug_tab_inc (void) 18 25 { … … 20 27 } 21 28 29 #undef FUNCTION 30 #define FUNCTION "debug_tab_dec" 22 31 void debug_tab_dec (void) 23 32 { 24 33 // _debug_depth --; 25 34 } 35 36 }; // end namespace morpheo -
trunk/IPs/systemC/processor/Morpheo/Common/src/Translation.cpp
r82 r88 6 6 */ 7 7 8 #include "../include/Translation.h" 9 #include "../include/ErrorMorpheo.h" 8 #include "Common/include/Environment.h" 9 #include "Common/include/Translation.h" 10 #include "Common/include/ErrorMorpheo.h" 10 11 11 12 namespace morpheo { 12 13 13 Translation:: Translation (void) 14 static bool translation_initialized; 15 16 void translation (void) 14 17 { 15 #ifndef NO_TRANSLATION 16 char * top_level = getenv("MORPHEO_TOPLEVEL"); 17 18 if (top_level == NULL) 19 throw ERRORMORPHEO("Translation","Error morpheo environment is not positioned\n"); 20 21 std::string dirname = top_level; 22 dirname += "IPs/systemC/processor/Morpheo/locale"; 18 #ifdef TRANSLATION 19 if (not translation_initialized) 20 { 21 environment(); 22 23 std::string dirname = MORPHEO_TOPLEVEL; 24 dirname += "/IPs/systemC/processor/Morpheo/locale"; 23 25 24 bindtextdomain(MORPHEO_PACKAGE,dirname.c_str()); 26 if (bindtextdomain(MORPHEO_PACKAGE,dirname.c_str()) == NULL) 27 throw ERRORMORPHEO("Translation","Error in set directory containing message catalogs.\n"); 28 29 translation_initialized = true; 30 } 25 31 #endif 26 32 } 27 33 28 Translation::~Translation (void)29 {30 31 }32 33 34 }; // end namespace morpheo
Note: See TracChangeset
for help on using the changeset viewer.