зеркало из https://github.com/mozilla/pjs.git
fixed FMM (in debug code); r=kmcclusk
This commit is contained in:
Родитель
399d3371a3
Коммит
9aeb6d28f8
|
@ -495,26 +495,25 @@ void nsXIFConverter::EndCSSDeclaration()
|
||||||
//
|
//
|
||||||
// Leave a temp file for debugging purposes
|
// Leave a temp file for debugging purposes
|
||||||
//
|
//
|
||||||
void nsXIFConverter::WriteDebugFile()
|
void nsXIFConverter::WriteDebugFile() {
|
||||||
{
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
const char* filename="c:\\temp\\xif.xif";
|
const char* filename="c:\\temp\\xif.xif";
|
||||||
ofstream out(filename);
|
|
||||||
|
|
||||||
char* s = mBuffer.ToNewCString();
|
|
||||||
out << s;
|
|
||||||
out.close();
|
|
||||||
delete[] s;
|
|
||||||
#elif defined(XP_UNIX) || defined(XP_BEOS)
|
#elif defined(XP_UNIX) || defined(XP_BEOS)
|
||||||
const char* filename="/tmp/xif.xif";
|
const char* filename="/tmp/xif.xif";
|
||||||
ofstream out(filename);
|
|
||||||
|
|
||||||
char* s = mBuffer.ToNewCString();
|
|
||||||
out << s;
|
|
||||||
out.close();
|
|
||||||
delete[] s;
|
|
||||||
#elif defined(XP_MAC)
|
#elif defined(XP_MAC)
|
||||||
// XXX Someone please write some Mac debugging code here!
|
// XXX Someone please write some Mac debugging code here!
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ofstream out(filename);
|
||||||
|
char* s = mBuffer.ToNewCString();
|
||||||
|
if(s) {
|
||||||
|
out << s;
|
||||||
|
Recycle(s);
|
||||||
|
}
|
||||||
|
out.close();
|
||||||
}
|
}
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче