You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Greg Franks <gr...@sce.carleton.ca> on 2005/06/08 04:00:57 UTC

Re: Merge of 3.0-unstable branch -- solaris 9, CC compiler.

Compiling xercesc/util/PlatformUtils.cpp
"xercesc/util/PlatformUtils.cpp", line 555: Error: "static xercesc_3_0::XMLPlatformUtils::closeFile(void*const, xercesc_3_0::MemoryManager*const)" cannot return a value.
"xercesc/util/PlatformUtils.cpp", line 565: Error: "static xercesc_3_0::XMLPlatformUtils::resetFile(void*, xercesc_3_0::MemoryManager*const)" cannot return a value.

void
XMLPlatformUtils::closeFile(const FileHandle theFile
                            , MemoryManager* const memmgr)
{
    if (!fgFileMgr)
		ThrowXMLwithMemMgr(XMLPlatformUtilsException, XMLExcepts::CPtr_PointerIsZero, memmgr);

	return fgFileMgr->close(theFile, memmgr);
}

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


Re: Merge of 3.0-unstable branch -- solaris 9, CC compiler.

Posted by James Berry <jb...@apache.org>.
On Jun 7, 2005, at 7:00 PM, Greg Franks wrote:

> Compiling xercesc/util/PlatformUtils.cpp
> "xercesc/util/PlatformUtils.cpp", line 555: Error: "static  
> xercesc_3_0::XMLPlatformUtils::closeFile(void*const,  
> xercesc_3_0::MemoryManager*const)" cannot return a value.
> "xercesc/util/PlatformUtils.cpp", line 565: Error: "static  
> xercesc_3_0::XMLPlatformUtils::resetFile(void*,  
> xercesc_3_0::MemoryManager*const)" cannot return a value.
>
> void
> XMLPlatformUtils::closeFile(const FileHandle theFile
>                             , MemoryManager* const memmgr)
> {
>     if (!fgFileMgr)
>         ThrowXMLwithMemMgr(XMLPlatformUtilsException,  
> XMLExcepts::CPtr_PointerIsZero, memmgr);
>
>     return fgFileMgr->close(theFile, memmgr);
> }

Patched. Thanks. -jdb

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