mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 04:01:17 +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++)
|
for (i = 0; keywords[i].token > 0; i++)
|
||||||
if (!strcasecmp(s, keywords[i].name)) {
|
if (!strcasecmp(s, keywords[i].name)) {
|
||||||
yylval = keywords[i].value;
|
|
||||||
return keywords[i].token;
|
return keywords[i].token;
|
||||||
}
|
}
|
||||||
Die("%s:%d: Unknown keyword `%s'\n", Opt_modedb, line, s);
|
Die("%s:%d: Unknown keyword `%s'\n", Opt_modedb, line, s);
|
||||||
|
@ -109,7 +108,8 @@ junk .
|
||||||
%%
|
%%
|
||||||
|
|
||||||
{keyword} {
|
{keyword} {
|
||||||
return FindToken(yytext);
|
yylval = FindToken(yytext);
|
||||||
|
return yylval;
|
||||||
}
|
}
|
||||||
|
|
||||||
{number} {
|
{number} {
|
||||||
|
|
Loading…
Reference in a new issue