1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
$NetBSD: patch-bg,v 1.1 2007/03/24 14:01:30 markd Exp $
--- buildtools/lib/parsers/qmake/qmakedriver.h.orig 2007-01-26 04:42:02.000000000 +1300
+++ buildtools/lib/parsers/qmake/qmakedriver.h
@@ -20,10 +20,8 @@
#ifndef QMAKEQMAKEDRIVER_H
#define QMAKEQMAKEDRIVER_H
-#include "qmakeast.h"
-
-#include <qvaluelist.h>
-#include <kurl.h>
+class QString;
+class KURL;
namespace QMake {
@@ -45,26 +43,11 @@ public:
initialize it on its own.
@return The result of parsing. Result is 0 on success and <> 0 on failure.
*/
- static int parseFile(const char *fileName, ProjectAST **ast);
- static int parseFile(QString fileName, ProjectAST **ast);
- static int parseFile(KURL fileName, ProjectAST **ast);
- static int parseString(const char* string, ProjectAST **ast);
-
-/* template<class Op>
- static void walkAST(Op &op, const ProjectAST *ast)
- {
-// op(ast);
- for (QValueList<QMake::AST*>::const_iterator it = ast->statements.constBegin();
- it != ast->statements.constEnd(); ++it)
- {
- const AST *child = *it;
- if (child->nodeType() == AST::ProjectAST)
- walkAST<Op>(op, static_cast<const QMake::ProjectAST*>(child));
- else
- op(child);
- }
- }
-*/
+ static int parseFile(const char *fileName, ProjectAST **ast, int debug);
+ static int parseFile(QString fileName, ProjectAST **ast, int debug);
+ static int parseFile(KURL fileName, ProjectAST **ast, int debug);
+ static int parseString(const char* string, ProjectAST **ast, int debug);
+
};
}
|