StratoscriptPreprocessor.cpp   StratoscriptPreprocessor.cpp 
skipping to change at line 35 skipping to change at line 35
#include <cmath> #include <cmath>
#include <QDebug> #include <QDebug>
#include <QFile> #include <QFile>
#include <QFileInfo> #include <QFileInfo>
#include <QMap> #include <QMap>
#include <QRegExp> #include <QRegExp>
#include <QString> #include <QString>
#include <QVariant> #include <QVariant>
bool StelScriptMgr::preprocessStratoScript(QFile& input, QFile& output, con st QString& scriptDir) bool StelScriptMgr::preprocessStratoScript(QFile& input, QString& output, c onst QString& scriptDir)
{ {
int n=0; int n=0;
qDebug() << "Translating stratoscript:"; qDebug() << "Translating stratoscript:";
while (!input.atEnd()) while (!input.atEnd())
{ {
QString line = QString::fromUtf8(input.readLine()); QString line = QString::fromUtf8(input.readLine());
line.replace(QRegExp("#.*$"), ""); line.replace(QRegExp("#.*$"), "");
QStringList args = line.split(QRegExp("\\s+")); QStringList args = line.split(QRegExp("\\s+"));
if (args.at(0) == "script") if (args.at(0) == "script")
skipping to change at line 309 skipping to change at line 309
} }
else else
line = "// untranslated stratoscript (timera te): " + line; line = "// untranslated stratoscript (timera te): " + line;
} }
else else
{ {
line = "// untranslated stratoscript: " + line; line = "// untranslated stratoscript: " + line;
} }
qDebug() << QString("%1: ").arg(++n, 4) + line; qDebug() << QString("%1: ").arg(++n, 4) + line;
line += "\n"; line += "\n";
output.write(line.toUtf8()); output += line.toUtf8();
} }
return true; return true;
} }
#endif // ENABLE_STRATOSCRIPT_COMPAT #endif // ENABLE_STRATOSCRIPT_COMPAT
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/