diff --git a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp index debc1fe2e701d67bb96b7fea6893c946cb4cf9ff..dc489b040a45e28e9500e60aaea776eb2b3523b8 100644 --- a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp +++ b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp @@ -899,7 +899,7 @@ XMLParsePathToFSRef_Classic(const XMLCh* const pathName, FSRef& ref, MemoryManag err = FSpMakeFSRef(&spec, &ref); } - // ref now refers to the a parent directory: parse the rest of the path + // ref now refers to the parent directory: parse the rest of the path while (err == noErr && *p) { switch (*p) diff --git a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.hpp b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.hpp index 13eede21acec1f68afcd3cd78b0059deb056231a..d2d9e82eefa0ca6c1957f41fcca9d5aa323f3ea1 100644 --- a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.hpp +++ b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.hpp @@ -104,6 +104,8 @@ XMLUTIL_EXPORT XMLCh* XMLCreateFullPathFromFSSpec(const FSSpec& startingSpec, // Convert from path to FSRef/FSSpec // You retain ownership of the pathName. +// Note: in the general case, these routines will fail if the specified file +// does not exist when the routine is called. XMLUTIL_EXPORT bool XMLParsePathToFSRef(const XMLCh* const pathName, FSRef& ref, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager); XMLUTIL_EXPORT bool XMLParsePathToFSSpec(const XMLCh* const pathName, FSSpec& spec, @@ -136,7 +138,6 @@ extern bool gHasHFSPlusAPIs; extern bool gHasFSPathAPIs; extern bool gPathAPIsUsePosixPaths; extern bool gHasMPAPIs; -extern bool gMacOSX; extern bool gUsePosixFiles; XERCES_CPP_NAMESPACE_END