summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-01-08 19:11:43 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-01-08 19:11:43 +0200
commite324fb1b604a9c7f8440644205dac651a4b07264 (patch)
tree75321a17f30f7d7ce26e7ae7845358bffd4d366a /codegen
parente641f9d118f36249dfdcd7932effb6f363a6a926 (diff)
Declare the exported and non-exported symbols of the libraries.
Diffstat (limited to 'codegen')
-rw-r--r--codegen/analyzer.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen/analyzer.l b/codegen/analyzer.l
index 2a06b40..3ea81cb 100644
--- a/codegen/analyzer.l
+++ b/codegen/analyzer.l
@@ -46,7 +46,7 @@ id [a-zA-Z][a-zA-Z_0-9]*
<REGISTER_TYPE,REGISTER_WRAPPER,ENUM,INSTRUCTION>{id} { yylval.Id = new QByteArray(yytext); return IDENTIFIER; }
-QGLIB_REGISTER_TYPE\( { yy_push_state(REGISTER_TYPE); return REGISTER_TYPE_BEGIN; }
+Q[A-Z]+_REGISTER_TYPE\( { yy_push_state(REGISTER_TYPE); return REGISTER_TYPE_BEGIN; }
<REGISTER_TYPE>{
:: { return SCOPE_RESOLUTION_OPERATOR; }
\) { yy_pop_state(); return REGISTER_TYPE_END; }
@@ -113,6 +113,7 @@ Q[A-Z]+_WRAPPER_FAKE_SUBCLASS\( { yy_push_state(REGISTER_WRAPPER); return R
[[:space:]]class { yy_push_state(CLASS); return CLASS_KEYWORD; }
<CLASS>{
+ [A-Z]+_EXPORT
{id} { yylval.Id = new QByteArray(yytext); yy_pop_state(); return IDENTIFIER; }
[[:space:]]*
. { yyerror(codegen, "Expected identifier after class keyword"); }