shithub: rgbds

Download patch

ref: 2b6d9cd1e08284b462b8eaecbbca154791b923f5
parent: bf789dd7b3d0ed655f5e071f0b67ba5114d4b8e3
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Dec 10 08:32:18 EST 2020

Avoid using `yytoken_kind_t`

Apparently it was added in a fairly recent Bison version...

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -1472,7 +1472,7 @@
 
 /* Lexer core */
 
-static yytoken_kind_t yylex_NORMAL(void)
+static int yylex_NORMAL(void)
 {
 	dbgPrint("Lexing in normal mode, line=%" PRIu32 ", col=%" PRIu32 "\n",
 		 lexer_GetLineNo(), lexer_GetColNo());
@@ -1728,7 +1728,7 @@
 	}
 }
 
-static yytoken_kind_t yylex_RAW(void)
+static int yylex_RAW(void)
 {
 	dbgPrint("Lexing in raw mode, line=%" PRIu32 ", col=%" PRIu32 "\n",
 		 lexer_GetLineNo(), lexer_GetColNo());
@@ -1908,12 +1908,12 @@
 	return token;
 }
 
-static yytoken_kind_t yylex_SKIP_TO_ELIF(void)
+static int yylex_SKIP_TO_ELIF(void)
 {
 	return skipIfBlock(false);
 }
 
-static yytoken_kind_t yylex_SKIP_TO_ENDC(void)
+static int yylex_SKIP_TO_ENDC(void)
 {
 	return skipIfBlock(true);
 }