Bug 208314 - remove use of iostreams to allow building with compilers

that don't support classic C++ iostreams (ex: MSVC++ .net 2003).
r=timeless, sr=dbaron
This commit is contained in:
tor@cs.brown.edu
2004-02-07 02:41:10 +00:00
parent 9fab3d8f5a
commit d2cd2d16c7
18 changed files with 731 additions and 732 deletions

View File

@@ -48,7 +48,7 @@
#include "nsIChannel.h"
#include "nsIComponentManager.h"
#include "nsIEnumerator.h"
#include <iostream.h> //BAD DOG -- no biscuit!
#include <stdio.h>
#include "nsReadableUtils.h"
@@ -116,7 +116,7 @@ main(int argc, char* argv[])
}
char* value = ToNewCString(v);
if (value) {
cout << "\"" << i << "\"=\"" << value << "\"" << endl;
printf("\"%d\"=\"%s\"\n", i, value);
delete[] value;
}
else {
@@ -134,8 +134,8 @@ main(int argc, char* argv[])
}
cout << endl << "Key" << "\t" << "Value" << endl;
cout << "---" << "\t" << "-----" << endl;
printf("\nKey\tValue\n");
printf( "---\t-----\n");
PRBool hasMore;
while (NS_SUCCEEDED(propEnum->HasMoreElements(&hasMore)) &&
@@ -163,7 +163,7 @@ main(int argc, char* argv[])
return 1;
}
cout << key.get() << "\t" << value.get() << endl;
printf("%s\t%s\n", key.get(), value.get());
}
return 0;
}