some no-op changes, planning a new branch to update the LaTeX files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@187 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 1999-10-12 19:21:31 +00:00
parent 4bc9d812cf
commit d7dbc63467
3 changed files with 13 additions and 11 deletions

View File

@ -1,3 +1,10 @@
1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/LaTeX.C: some no-op changes moved declaration of some
variables around.
* src/LaTeX.h (LATEX_H): changed include guard name
1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lib/reLyX/Makefile.am: install noweb2lyx. * lib/reLyX/Makefile.am: install noweb2lyx.

View File

@ -132,7 +132,7 @@ void TeXErrors::scanError(LyXLex &lex)
// msg. // msg.
if (contains(errstr, "l.")) { if (contains(errstr, "l.")) {
// We make a const copy to make [] fast. (Asger) // We make a const copy to make [] fast. (Asger)
string const es = errstr; string const es(errstr);
for (string::size_type i = 2; i < es.length(); ++i) { for (string::size_type i = 2; i < es.length(); ++i) {
if (es[i-2] == 'l' && es[i-1] == '.' && if (es[i-2] == 'l' && es[i-1] == '.' &&
(es[i] >= '0' && es[i]<= '9')) { (es[i] >= '0' && es[i]<= '9')) {
@ -198,9 +198,6 @@ void TeXErrors::printErrors()
<< tmperr->error_in_line << tmperr->error_in_line
<< ": " << tmperr->error_desc << ": " << tmperr->error_desc
<< '\n' << tmperr->error_text << endl; << '\n' << tmperr->error_text << endl;
//%d: %s\n%s\n", tmperr->error_in_line,
// tmperr->error_desc.c_str(),
// tmperr->error_text.c_str());
tmperr = tmperr->next_error; tmperr = tmperr->next_error;
} while (tmperr); } while (tmperr);
} }
@ -483,20 +480,18 @@ bool LaTeX::runBibTeX(string const &file)
int LaTeX::scanLogFile(TeXErrors &terr) int LaTeX::scanLogFile(TeXErrors &terr)
{ {
string token;
int retval = NO_ERRORS; int retval = NO_ERRORS;
LyXLex lex(0, 0);
string tmp = ChangeExtension(file, ".log", true); string tmp = ChangeExtension(file, ".log", true);
LyXLex lex(0, 0);
if (!lex.setFile(tmp)) { if (!lex.setFile(tmp)) {
// unable to open file // unable to open file
// return at once // return at once
retval |= NO_LOGFILE; retval |= NO_LOGFILE;
return retval; return retval;
} }
string token;
while (lex.IsOK()) { while (lex.IsOK()) {
if (lex.EatLine()) if (lex.EatLine())
token = lex.GetString(); token = lex.GetString();

View File

@ -12,8 +12,8 @@
*====================================================== *======================================================
*/ */
#ifndef _LATEX_H #ifndef LATEX_H
#define _LATEX_H #define LATEX_H
#ifdef __GNUG__ #ifdef __GNUG__
#pragma interface #pragma interface