]> git.lyx.org Git - lyx.git/blobdiff - src/Chktex.C
Add GraphicsTypes.h to libgraphics_la_SOURCES
[lyx.git] / src / Chktex.C
index dd7b410b0296087c38cf69c942e3796a68e86929..6b86ed68504b3956c4d36512d66b4dd2b7d50e80 100644 (file)
 
 #include <config.h>
 
-#include <fstream>
-
 #ifdef __GNUG__
 #pragma implementation
 #endif
 
 #include "Chktex.h"
 #include "LaTeX.h" // TeXErrors
-#include "support/filetools.h"
 #include "lyxlex.h"
-#include "support/FileInfo.h"
 #include "debug.h"
-#include "support/syscall.h"
-#include "support/syscontr.h"
-#include "support/path.h"
 #include "gettext.h"
 
+#include "support/FileInfo.h"
+#include "support/filetools.h"
+#include "support/systemcall.h"
+#include "support/path.h"
+#include "support/lstrings.h"
+
+#include <fstream>
+
 using std::ifstream;
 using std::getline;
 
@@ -48,8 +49,8 @@ int Chktex::run(TeXErrors &terr)
        // run bibtex
        string log = OnlyFilename(ChangeExtension(file, ".log"));
        string tmp = cmd + " -q -v0 -b0 -x " + file + " -o " + log;
-        Systemcalls one;
-       int result= one.startscript(Systemcalls::System, tmp);
+        Systemcall one;
+       int result= one.startscript(Systemcall::Wait, tmp);
        if (result == 0) {
                result = scanLogFile(terr);
        } else {
@@ -68,7 +69,11 @@ int Chktex::scanLogFile(TeXErrors & terr)
 
        ifstream ifs(tmp.c_str());
        while (getline(ifs, token)) {
-               string srcfile, line, pos, warno, warning;
+               string srcfile;
+               string line;
+               string pos;
+               string warno;
+               string warning;
                token = split(token, srcfile, ':');
                token = split(token, line, ':');
                token = split(token, pos, ':');