diff --git a/hecl/driver/main.cpp b/hecl/driver/main.cpp index a4f188208..ac36ba81a 100644 --- a/hecl/driver/main.cpp +++ b/hecl/driver/main.cpp @@ -18,7 +18,7 @@ #include "hecl/Blender/BlenderConnection.hpp" #include "logvisor/logvisor.hpp" -logvisor::Module LogModule("HECLDriver"); +logvisor::Module LogModule("hecl::Driver"); #include "ToolBase.hpp" #include "ToolInit.hpp" diff --git a/hecl/include/hecl/Database.hpp b/hecl/include/hecl/Database.hpp index c54ee80b5..d9f507a1e 100644 --- a/hecl/include/hecl/Database.hpp +++ b/hecl/include/hecl/Database.hpp @@ -428,9 +428,9 @@ public: /** * @brief Interrupts a cook in progress (call from SIGINT handler) * - * Database corruption is bad! sqlite is pretty robust at avoiding data corruption, - * but HECL spreads its data objects through the filesystem; this ensures that - * those objects are cleanly finalized or discarded before stopping. + * Database corruption is bad! HECL spreads its data objects through + * the filesystem; this ensures that open objects are cleanly + * finalized or discarded before stopping. * * Note that this method returns immediately; the resumed cookPath() * call will return as quickly as possible. diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index a0d47dfaf..6c3eddd08 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -655,7 +655,7 @@ public: std::vector> GetSystemLocations(); /** - * @brief Special ProjectRootPath class for opening HECLDatabase::IProject instances + * @brief Special ProjectRootPath class for opening Database::Project instances * * Constructing a ProjectPath requires supplying a ProjectRootPath to consistently * resolve canonicalized relative paths. diff --git a/hecl/lib/Project.cpp b/hecl/lib/Project.cpp index 249c8c7e1..13234c3ee 100644 --- a/hecl/lib/Project.cpp +++ b/hecl/lib/Project.cpp @@ -17,7 +17,7 @@ namespace hecl namespace Database { -logvisor::Module LogModule("HECLDatabase"); +logvisor::Module LogModule("hecl::Database"); static const hecl::FourCC HECLfcc("HECL"); /********************************************** diff --git a/hecl/lib/ProjectPath.cpp b/hecl/lib/ProjectPath.cpp index b7801bc60..34ad0565c 100644 --- a/hecl/lib/ProjectPath.cpp +++ b/hecl/lib/ProjectPath.cpp @@ -4,7 +4,6 @@ namespace hecl { -static const SystemRegex regGLOB(_S("\\*"), SystemRegex::ECMAScript|SystemRegex::optimize); static const SystemRegex regPATHCOMP(_S("[/\\\\]*([^/\\\\]+)"), SystemRegex::ECMAScript|SystemRegex::optimize); static const SystemRegex regDRIVELETTER(_S("^([^/]*)/"), SystemRegex::ECMAScript|SystemRegex::optimize); @@ -133,7 +132,7 @@ ProjectPath ProjectPath::getCookedPath(const Database::DataSpecEntry& spec) cons ProjectPath::Type ProjectPath::getPathType() const { - if (std::regex_search(m_absPath, regGLOB)) + if (m_absPath.find(_S('*')) != SystemString::npos) return Type::Glob; Sstat theStat; if (hecl::Stat(m_absPath.c_str(), &theStat)) @@ -149,7 +148,7 @@ Time ProjectPath::getModtime() const { Sstat theStat; time_t latestTime = 0; - if (std::regex_search(m_absPath, regGLOB)) + if (m_absPath.find(_S('*')) != SystemString::npos) { std::vector globResults; getGlobResults(globResults); @@ -198,7 +197,7 @@ static void _recursiveGlob(Database::Project& proj, return; const SystemString& comp = matches[1]; - if (!std::regex_search(comp, regGLOB)) + if (comp.find(_S('*')) != SystemString::npos) { SystemString nextItStr = itStr; if (needSlash)