You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/02/22 01:58:15 UTC
cvs commit: xml-xerces/c/src/util/Platforms/Linux LinuxPlatformUtils.cpp
aruna1 00/02/21 16:58:15
Modified: c/src/util/Platforms/Linux LinuxPlatformUtils.cpp
Log:
openFile API updated
Revision Changes Path
1.10 +12 -1 xml-xerces/c/src/util/Platforms/Linux/LinuxPlatformUtils.cpp
Index: LinuxPlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/Linux/LinuxPlatformUtils.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- LinuxPlatformUtils.cpp 2000/02/06 07:48:28 1.9
+++ LinuxPlatformUtils.cpp 2000/02/22 00:58:15 1.10
@@ -56,6 +56,9 @@
/**
* $Log: LinuxPlatformUtils.cpp,v $
+ * Revision 1.10 2000/02/22 00:58:15 aruna1
+ * openFile API updated
+ *
* Revision 1.9 2000/02/06 07:48:28 rahulj
* Year 2K copyright swat.
*
@@ -432,7 +435,7 @@
return (unsigned int)retVal;
}
-FileHandle XMLPlatformUtils::openFile(const unsigned short* const fileName)
+FileHandle XMLPlatformUtils::openFile(const XMLCh* const fileName)
{
const char* tmpFileName = XMLString::transcode(fileName);
ArrayJanitor<char> janText((char*)tmpFileName);
@@ -443,6 +446,14 @@
return retVal;
}
+FileHandle XMLPlatformUtils::openFile(const char* const fileName)
+{
+ FileHandle retVal = (FILE*)fopen( fileName , "rb" );
+
+ if (retVal == NULL)
+ return 0;
+ return retVal;
+}
FileHandle XMLPlatformUtils::openStdInHandle()