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>
* lib/reLyX/Makefile.am: install noweb2lyx.

View File

@ -132,7 +132,7 @@ void TeXErrors::scanError(LyXLex &lex)
// msg.
if (contains(errstr, "l.")) {
// 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) {
if (es[i-2] == 'l' && es[i-1] == '.' &&
(es[i] >= '0' && es[i]<= '9')) {
@ -198,9 +198,6 @@ void TeXErrors::printErrors()
<< tmperr->error_in_line
<< ": " << tmperr->error_desc
<< '\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;
} while (tmperr);
}
@ -483,13 +480,10 @@ bool LaTeX::runBibTeX(string const &file)
int LaTeX::scanLogFile(TeXErrors &terr)
{
string token;
int retval = NO_ERRORS;
LyXLex lex(0, 0);
string tmp = ChangeExtension(file, ".log", true);
LyXLex lex(0, 0);
if (!lex.setFile(tmp)) {
// unable to open file
// return at once
@ -497,6 +491,7 @@ int LaTeX::scanLogFile(TeXErrors &terr)
return retval;
}
string token;
while (lex.IsOK()) {
if (lex.EatLine())
token = lex.GetString();

View File

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