mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-24 21:12:27 +00:00
fix a compile error when using lex
This commit is contained in:
parent
3240ed57b4
commit
5f5456d2c0
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,6 @@ static int FindToken(const char *s)
|
|||
|
||||
for (i = 0; keywords[i].token > 0; i++)
|
||||
if (!strcasecmp(s, keywords[i].name)) {
|
||||
yylval = keywords[i].value;
|
||||
return keywords[i].token;
|
||||
}
|
||||
Die("%s:%d: Unknown keyword `%s'\n", Opt_modedb, line, s);
|
||||
|
@ -109,7 +108,8 @@ junk .
|
|||
%%
|
||||
|
||||
{keyword} {
|
||||
return FindToken(yytext);
|
||||
yylval = FindToken(yytext);
|
||||
return yylval;
|
||||
}
|
||||
|
||||
{number} {
|
||||
|
|
Loading…
Reference in a new issue