summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/tokenizer.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-18 23:58:31 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-18 23:58:31 (GMT)
commit7175c49346a147558d65c5b10565423a6d8ea9ec (patch)
tree9dd42e0d3d4f68c083b1dfd0eb095d92ec2751a2 /tools/qdoc3/tokenizer.h
parent83a342b140eeff72c6f46b65dd31e91048ad81d4 (diff)
parentc18beac8163634b48bbf1e7280923e96f5ef0a51 (diff)
downloadQt-7175c49346a147558d65c5b10565423a6d8ea9ec.zip
Qt-7175c49346a147558d65c5b10565423a6d8ea9ec.tar.gz
Qt-7175c49346a147558d65c5b10565423a6d8ea9ec.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt
Conflicts: mkspecs/linux-g++-x11egl/qplatformdefs.h src/declarative/qml/qmldom.h src/declarative/util/qmlview.cpp src/declarative/util/qmlview.h tools/qdoc3/cppcodemarker.cpp tools/qmldebugger/standalone/canvasframerate.cpp tools/qmldebugger/standalone/engine.cpp tools/qmldebugger/standalone/expressionquerywidget.cpp tools/qmldebugger/standalone/expressionquerywidget.h tools/qmldebugger/standalone/objectpropertiesview.cpp tools/qmldebugger/standalone/objectpropertiesview.h tools/qmldebugger/standalone/objecttree.cpp tools/qmldebugger/standalone/qmldebugger.cpp tools/qmldebugger/standalone/watchtable.cpp tools/qmldebugger/standalone/watchtable.h
Diffstat (limited to 'tools/qdoc3/tokenizer.h')
-rw-r--r--tools/qdoc3/tokenizer.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/qdoc3/tokenizer.h b/tools/qdoc3/tokenizer.h
index 519cffb..f55d2ef 100644
--- a/tools/qdoc3/tokenizer.h
+++ b/tools/qdoc3/tokenizer.h
@@ -46,11 +46,10 @@
#ifndef TOKENIZER_H
#define TOKENIZER_H
+#include <qfile.h>
#include <qstack.h>
#include <qstring.h>
-#include <stdio.h>
-
#include "location.h"
QT_BEGIN_NAMESPACE
@@ -99,7 +98,7 @@ class Tokenizer
{
public:
Tokenizer(const Location& loc, const QByteArray &in);
- Tokenizer(const Location& loc, FILE *in);
+ Tokenizer(const Location& loc, QFile &file);
~Tokenizer();
@@ -108,8 +107,8 @@ class Tokenizer
bool parsingFnOrMacro() const { return parsingMacro; }
const Location &location() const { return yyTokLoc; }
- QString previousLexeme() const { return QString(yyPrevLex); }
- QString lexeme() const { return QString(yyLex); }
+ QString previousLexeme() const;
+ QString lexeme() const;
QString version() const { return yyVersion; }
int braceDepth() const { return yyBraceDepth; }
int parenDepth() const { return yyParenDepth; }