You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2003/07/31 20:37:30 UTC

cvs commit: xml-xerces/c/src/xercesc/util/Platforms/MacOS MacOSPlatformUtils.cpp MacOSPlatformUtils.hpp

jberry      2003/07/31 11:37:30

  Modified:    c/src/xercesc/util/Platforms/MacOS MacOSPlatformUtils.cpp
                        MacOSPlatformUtils.hpp
  Log:
  Resolve bug #21623; document that XMLParsePath... routines may fail if the file doesn't exist
  
  Revision  Changes    Path
  1.19      +2 -2      xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp
  
  Index: MacOSPlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- MacOSPlatformUtils.cpp	21 May 2003 02:43:07 -0000	1.18
  +++ MacOSPlatformUtils.cpp	31 Jul 2003 18:37:29 -0000	1.19
  @@ -899,7 +899,7 @@
               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)
  
  
  
  1.10      +3 -2      xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.hpp
  
  Index: MacOSPlatformUtils.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.hpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MacOSPlatformUtils.hpp	21 May 2003 02:43:07 -0000	1.9
  +++ MacOSPlatformUtils.hpp	31 Jul 2003 18:37:29 -0000	1.10
  @@ -104,6 +104,8 @@
   
   //	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 gHasFSPathAPIs;
   extern bool gPathAPIsUsePosixPaths;
   extern bool gHasMPAPIs;
  -extern bool gMacOSX;
   extern bool gUsePosixFiles;
   
   XERCES_CPP_NAMESPACE_END
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org