X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlex.C;h=517bad5e00c492d9e7ca3ab632372edd2a7dc50c;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=f036360a67669472561ff581c5ff8a9d95bc2d70;hpb=0eccdd1c3613e5170deb77b22174dd0afde833e9;p=lyx.git diff --git a/src/lyxlex.C b/src/lyxlex.C index f036360a67..517bad5e00 100644 --- a/src/lyxlex.C +++ b/src/lyxlex.C @@ -13,7 +13,7 @@ #endif #include "lyxlex.h" -#include "error.h" +#include "debug.h" #include "support/filetools.h" LyXLex::LyXLex(keyword_item * tab, int num) @@ -41,7 +41,7 @@ void LyXLex::pushTable(keyword_item * tab, int num) void LyXLex::popTable() { if (pushed == 0) - lyxerr.print("LyXLex error: nothing to pop!"); + lyxerr << "LyXLex error: nothing to pop!" << endl; pushed_table * tmp; tmp = pushed; @@ -55,27 +55,27 @@ void LyXLex::popTable() void LyXLex::printTable() { - lyxerr.print(string("\nNumber of tags: ") + tostr(no_items)); + lyxerr << "\nNumber of tags: " << no_items << endl; for(int i=0; i ' ' && !feof(file)) { - i = 0; + int i = 0; do { buff[i++] = c; c = getc(file); @@ -328,7 +325,7 @@ bool LyXLex::next(bool esc) return false; } else { int c; // getc() returns an int - int i; + //int i; status = 0; @@ -340,7 +337,7 @@ bool LyXLex::next(bool esc) if (c=='\\') { // escape - i = 0; + int i = 0; do { if (c == '\\') { // escape the next char @@ -367,7 +364,7 @@ bool LyXLex::next(bool esc) // string if (c=='\"') { - i = -1; + int i = -1; bool escaped = false; do { escaped = false; @@ -402,7 +399,7 @@ bool LyXLex::next(bool esc) } if (c > ' ' && !feof(file)) { - i = 0; + int i = 0; do { if (c == '\\') { // escape the next char