[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kdvi
From: Stefan Kebekus <stefan.kebekus () uni-bayreuth ! de>
Date: 2005-02-06 14:16:53
Message-ID: 20050206141653.75A281CF5C () office ! kde ! org
[Download RAW message or body]
CVS commit by kebekus:
removes debug messages
M +16 -3 dvisourcesplitter.cpp 1.2
M +4 -2 psgs.cpp 1.29
M +0 -1 special.cpp 1.65
--- kdegraphics/kdvi/dvisourcesplitter.cpp #1.1:1.2
@@ -13,4 +12,7 @@
#include "dvisourcesplitter.h"
+//#define DEBUG_SOURCESPLITTER
+
+
DVI_SourceFileSplitter::DVI_SourceFileSplitter(const QString &srclink, const QString \
&dviFile) {
@@ -20,5 +22,8 @@ DVI_SourceFileSplitter::DVI_SourceFileSp
//line 123 and file.tex or line 12 and \
3file.tex?
- kdDebug() << "DVI_SourceSplitter: srclink " << srclink << endl;
+#ifdef DEBUG_SOURCESPLITTER
+ kdDebug(4300) << "DVI_SourceSplitter: srclink " << srclink << endl;
+#endif
+
//remove src: if necessary
if ( filepart.left(4) == "src:" ) filepart = srclink.mid(4);
@@ -37,5 +42,7 @@ DVI_SourceFileSplitter::DVI_SourceFileSp
linepart = linepart.stripWhiteSpace();
+#ifdef DEBUG_SOURCESPLITTER
kdDebug() << "DVI_SourceSplitter: filepart " << filepart << " linepart " << \
linepart << endl; +#endif
//test if the file exists
@@ -59,8 +66,12 @@ DVI_SourceFileSplitter::DVI_SourceFileSp
{
tempInfo.setFile(linepart.right(index) + tempFileName);
+#ifdef DEBUG_SOURCESPLITTER
kdDebug() << "DVI_SourceSplitter: trying " << tempInfo.fileName() << endl;
+#endif
if ( tempInfo.exists() ) { found = true; break;}
tempInfo.setFile(linepart.right(index) + tempFileName + ".tex");
+#ifdef DEBUG_SOURCESPLITTER
kdDebug() << "DVI_SourceSplitter: trying " << tempInfo.fileName() << endl;
+#endif
if ( tempInfo.exists() ) { found = true; break;}
}
@@ -77,4 +88,6 @@ DVI_SourceFileSplitter::DVI_SourceFileSp
if (!ok) m_line = 0;
+#ifdef DEBUG_SOURCESPLITTER
kdDebug() << "DVI_SourceSplitter: result: file " << m_fileInfo.absFilePath() << " \
line " << m_line << endl; +#endif
}
--- kdegraphics/kdvi/psgs.cpp #1.28:1.29
@@ -21,4 +21,5 @@
extern const char psheader[];
+//#define DEBUG_PSGS
@@ -56,6 +57,7 @@ ghostscript_interface::~ghostscript_inte
void ghostscript_interface::setPostScript(PageNumber page, QString PostScript) {
-
- kdError(4300) << "ghostscript_interface::setPostScript( " << page << ", ... )" << \
endl; +#ifdef DEBUG_PSGS
+ kdDebug(4300) << "ghostscript_interface::setPostScript( " << page << ", ... )" << \
endl; +#endif
if (pageList.find(page) == 0) {
--- kdegraphics/kdvi/special.cpp #1.64:1.65
@@ -229,5 +229,4 @@ void parse_special_argument(QString strg
void dviRenderer::epsf_special(QString cp)
{
- kdError(4300) << "epsf-special: psfile=" << cp <<endl;
#ifdef DEBUG_SPECIAL
kdDebug(4300) << "epsf-special: psfile=" << cp <<endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic