Changeset 8351 for code/trunk/src/libraries/core/command
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- Location:
- code/trunk/src/libraries/core/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/command/ArgumentCompletionFunctions.cc
r7401 r8351 35 35 36 36 #include <map> 37 #include <boost/version.hpp>38 37 #include <boost/filesystem.hpp> 39 38 … … 47 46 #include "TclThreadManager.h" 48 47 49 // Boost 1.36 has some issues with deprecated functions that have been omitted 50 #if (BOOST_VERSION == 103600) 51 # define BOOST_LEAF_FUNCTION filename 48 // Differentiate Boost Filesystem v2 and v3 49 #if (BOOST_FILESYSTEM_VERSION < 3) 50 # define BF_LEAF leaf 51 # define BF_GENERIC_STRING string 52 # define BF_DICTIONARY_ENTRY_NAME string 52 53 #else 53 # define BOOST_LEAF_FUNCTION leaf 54 # define BF_LEAF path().filename().string 55 # define BF_GENERIC_STRING generic_string 56 # define BF_DICTIONARY_ENTRY_NAME path().string 54 57 #endif 55 58 … … 245 248 else 246 249 { 247 const std::string& dir = startdirectory. string();250 const std::string& dir = startdirectory.BF_GENERIC_STRING(); 248 251 if (dir.size() > 0 && dir[dir.size() - 1] == ':') 249 252 startdirectory = dir + '/'; … … 257 260 { 258 261 if (boost::filesystem::is_directory(*file)) 259 dirlist.push_back(ArgumentCompletionListElement(file-> string() + '/', getLowercase(file->string()) + '/', file->BOOST_LEAF_FUNCTION() + '/'));262 dirlist.push_back(ArgumentCompletionListElement(file->BF_DICTIONARY_ENTRY_NAME() + '/', getLowercase(file->BF_DICTIONARY_ENTRY_NAME()) + '/', file->BF_LEAF() + '/')); 260 263 else 261 filelist.push_back(ArgumentCompletionListElement(file-> string(), getLowercase(file->string()), file->BOOST_LEAF_FUNCTION()));264 filelist.push_back(ArgumentCompletionListElement(file->BF_DICTIONARY_ENTRY_NAME(), getLowercase(file->BF_DICTIONARY_ENTRY_NAME()), file->BF_LEAF())); 262 265 ++file; 263 266 } -
code/trunk/src/libraries/core/command/TclThreadManager.cc
r8079 r8351 116 116 TclThreadManager::~TclThreadManager() 117 117 { 118 delete this->interpreterBundles_[0]; 118 119 delete this->interpreterBundlesMutex_; 119 // delete this->mainInterpreterMutex_; // <-- temporar y disabled to avoid crash if a thread is still actively queriyng120 // delete this->mainInterpreterMutex_; // <-- temporarily disabled to avoid crash if a thread is still actively querying 120 121 delete this->messageQueue_; 121 122 }
Note: See TracChangeset
for help on using the changeset viewer.