-
-
-int Literate::scanLiterateLogFile()
-{
- string token;
- int retval = NO_ERRORS;
-
- string tmp = litfile + ".log";
-
- ifstream ifs(tmp.c_str());
- while (getline(ifs, token)) {
- lyxerr[Debug::LATEX] << token << endl;
-
- if (prefixIs(token, "Build Warning:")) {
- // Here shall we handle different
- // types of warnings
- retval |= LATEX_WARNING;
- lyxerr[Debug::LATEX] << "Build Warning." << endl;
- } else if (prefixIs(token, "! Build Error:")) {
- // Here shall we handle different
- // types of errors
- retval |= LATEX_ERROR;
- lyxerr[Debug::LATEX] << "Build Error." << endl;
- // this is not correct yet
- ++num_errors;
- }
- }
- return retval;
-}
-
-
-int Literate::scanBuildLogFile()
-{
- string token;
- int retval = NO_ERRORS;
-
- string tmp = litfile + ".log";
-
- ifstream ifs(tmp.c_str());
- while (getline(ifs, token)) {
- lyxerr[Debug::LATEX] << token << endl;
-
- if (prefixIs(token, "Build Warning:")) {
- // Here shall we handle different
- // types of warnings
- retval |= LATEX_WARNING;
- lyxerr[Debug::LATEX] << "Build Warning." << endl;
- } else if (prefixIs(token, "! Build Error:")) {
- // Here shall we handle different
- // types of errors
- retval |= LATEX_ERROR;
- lyxerr[Debug::LATEX] << "Build Error." << endl;
- // this is not correct yet
- ++num_errors;
- }
- }
- return retval;
-}