Rewrote the stream stuff to be simple, since Unix build environment cannot even handle ostream and istream. This builds and runs correctly on Linux and Macintosh now.

git-svn-id: svn://10.0.0.236/trunk@16688 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcmullen%netscape.com
1998-12-18 23:06:54 +00:00
parent fe18aadf26
commit a4ac66b40a
12 changed files with 984 additions and 1758 deletions

View File

@@ -18,9 +18,11 @@
#include "nsFileSpec.h"
#include "nsFileStream.h"
#include "prtypes.h"
#ifdef NS_USING_NAMESPACE
#ifdef NS_USING_STL
#include <strstream>
@@ -257,7 +259,7 @@ void nsFileURL::operator = (const nsNativeFileSpec& inOther)
} // nsFileURL::operator =
//----------------------------------------------------------------------------------------
ostream& operator << (ostream& s, const nsFileURL& url)
nsOutputFileStream& operator << (nsOutputFileStream& s, const nsFileURL& url)
//----------------------------------------------------------------------------------------
{
return (s << url.mURL);
@@ -479,7 +481,7 @@ void nsNativeFileSpec::operator = (const char* inString)
#if (defined(XP_UNIX) || defined(XP_PC))
//----------------------------------------------------------------------------------------
ostream& operator << (ostream& s, const nsNativeFileSpec& spec)
nsOutputFileStream& operator << (nsOutputFileStream& s, const nsNativeFileSpec& spec)
//----------------------------------------------------------------------------------------
{
return (s << (const char*)spec.mPath);