ref: 40006c6152935c420b2ad2ecf1ccdfde355fa215
parent: a37a09c09c1f8f5a847ef3117c12b8376d22d916
author: dbrotz <43593771+dbrotz@users.noreply.github.com>
date: Thu May 2 15:53:45 EDT 2019
Make yylex() return int
--- a/include/asm/lexer.h
+++ b/include/asm/lexer.h
@@ -63,7 +63,7 @@
void lex_AddStrings(const struct sLexInitString *lex);
void lex_SetBuffer(char *buffer, uint32_t len);
int yywrap(void);
-uint32_t yylex(void);
+int yylex(void);
void yyunput(char c);
void yyunputstr(char *s);
void yyskipbytes(uint32_t count);
--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -879,7 +879,7 @@
fatalerror("Internal error in %s", __func__);
}
-uint32_t yylex(void)
+int yylex(void)
{
switch (lexerstate) {
case LEX_STATE_NORMAL: