aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/lingo/lingo-lex.l')
-rw-r--r--engines/director/lingo/lingo-lex.l18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l
index 6a5cf0486c..e96a82e972 100644
--- a/engines/director/lingo/lingo-lex.l
+++ b/engines/director/lingo/lingo-lex.l
@@ -131,9 +131,9 @@ whitespace [\t ]
yylval.e[1] = g_lingo->_theEntityFields[field]->field;
if (g_lingo->_theEntities[ptr]->hasId)
- return THEENTITYWITHID;
+ return vTHEENTITYWITHID;
else
- return THEENTITY;
+ return vTHEENTITY;
}
warning("Unhandled the entity %s", ptr);
@@ -150,9 +150,9 @@ whitespace [\t ]
yylval.e[1] = 0; // No field
if (g_lingo->_theEntities[ptr]->hasId)
- return THEENTITYWITHID;
+ return vTHEENTITYWITHID;
else
- return THEENTITY;
+ return vTHEENTITY;
}
warning("Unhandled the entity %s", ptr);
@@ -175,17 +175,17 @@ whitespace [\t ]
yylval.s = new Common::String(yytext);
if (g_lingo->_handlers.contains(yytext)) {
- if (g_lingo->_handlers[yytext]->type == BLTIN && g_lingo->_handlers[yytext]->nargs == -1)
- return BLTINNOARGS;
+ if (g_lingo->_handlers[yytext]->type == vBLTIN && g_lingo->_handlers[yytext]->nargs == -1)
+ return vBLTINNOARGS;
}
return ID;
}
-{constfloat} { count(); yylval.f = atof(yytext); return FLOAT; }
-{constinteger} { count(); yylval.i = strtol(yytext, NULL, 10); return INT; }
+{constfloat} { count(); yylval.f = atof(yytext); return vFLOAT; }
+{constinteger} { count(); yylval.i = strtol(yytext, NULL, 10); return vINT; }
{operator} { count(); return *yytext; }
{newline} { return '\n'; }
-{conststring} { count(); yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return STRING; }
+{conststring} { count(); yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return vSTRING; }
.
%%