mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Make yylex() return int
This commit is contained in:
@@ -63,7 +63,7 @@ void lex_Init(void);
|
|||||||
void lex_AddStrings(const struct sLexInitString *lex);
|
void lex_AddStrings(const struct sLexInitString *lex);
|
||||||
void lex_SetBuffer(char *buffer, uint32_t len);
|
void lex_SetBuffer(char *buffer, uint32_t len);
|
||||||
int yywrap(void);
|
int yywrap(void);
|
||||||
uint32_t yylex(void);
|
int yylex(void);
|
||||||
void yyunput(char c);
|
void yyunput(char c);
|
||||||
void yyunputstr(char *s);
|
void yyunputstr(char *s);
|
||||||
void yyskipbytes(uint32_t count);
|
void yyskipbytes(uint32_t count);
|
||||||
|
|||||||
@@ -879,7 +879,7 @@ static uint32_t yylex_MACROARGS(void)
|
|||||||
fatalerror("Internal error in %s", __func__);
|
fatalerror("Internal error in %s", __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t yylex(void)
|
int yylex(void)
|
||||||
{
|
{
|
||||||
switch (lexerstate) {
|
switch (lexerstate) {
|
||||||
case LEX_STATE_NORMAL:
|
case LEX_STATE_NORMAL:
|
||||||
|
|||||||
Reference in New Issue
Block a user