diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /buildtools/lib/parsers/qmake/qmake_lex.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/lib/parsers/qmake/qmake_lex.cpp')
-rw-r--r-- | buildtools/lib/parsers/qmake/qmake_lex.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/buildtools/lib/parsers/qmake/qmake_lex.cpp b/buildtools/lib/parsers/qmake/qmake_lex.cpp index 9fe37664..4d74571c 100644 --- a/buildtools/lib/parsers/qmake/qmake_lex.cpp +++ b/buildtools/lib/parsers/qmake/qmake_lex.cpp @@ -398,7 +398,7 @@ int yyFlexLexer::yylex() return 0; } -#define YY_DECL int QMake::Lexer::yylex() +#define YY_DECL int TQMake::Lexer::yylex() /* %if-c-only Standard (non-C++) definition */ /* %endif */ @@ -630,7 +630,7 @@ static yyconst flex_int16_t yy_rule_linenum[23] = /** @file qmake.ll -QMake Lexer +TQMake Lexer There are 3 types of identifiers recognized by this lexer: -id_simple: examples of such identifiers are qmake variables and scoped variables @@ -638,8 +638,8 @@ at the left of the operator in assignments (like "SOURCES" in "SOURCES+=foo.cpp -id_list: those are "value list identifiers" at the right side in assignments (like "foo.cpp goo.cpp" in "SOURCES+=foo.cpp goo.cpp"); -id_args: function arguments recognized as one identifier -(example: ""${QMAKE_FILE} is intended only for Windows!"" -in "!win32-*:!wince-*:error("${QMAKE_FILE} is intended only for Windows!")" statements). +(example: ""${TQMAKE_FILE} is intended only for Windows!"" +in "!win32-*:!wince-*:error("${TQMAKE_FILE} is intended only for Windows!")" statements). . To recognize those identifiers two additional start conditions are used: list and funcargs. @@ -1011,7 +1011,7 @@ YY_RULE_SETUP { BEGIN(vallist); mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() ); - return Parser::token::token::QUOTED_VARIABLE_VALUE; + return Parser::token::token::TQUOTED_VARIABLE_VALUE; } YY_BREAK case 9: @@ -2202,14 +2202,14 @@ void yyfree (void * ptr ) #line 203 "qmake.ll" -namespace QMake +namespace TQMake { Lexer::Lexer( std::istream* argin, std::ostream* argout ) : yyFlexLexer(argin, argout), mylval(0), m_lineEnding(None) { } - int Lexer::yylex( QMake::Parser::semantic_type* yylval ) + int Lexer::yylex( TQMake::Parser::semantic_type* yylval ) { mylval = yylval; return yylex(); @@ -2231,7 +2231,7 @@ namespace QMake } } -int QMakelex( QMake::Parser::semantic_type* yylval, QMake::Lexer* lexer) +int TQMakelex( TQMake::Parser::semantic_type* yylval, TQMake::Lexer* lexer) { return lexer->yylex( yylval ); } |