mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove noyywrap from src/link/lexer.l
Workaround for flex version 2.6.3. Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option noyywrap
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -98,6 +98,11 @@ extern int yyparse();
|
|||||||
|
|
||||||
extern FILE *yyin;
|
extern FILE *yyin;
|
||||||
|
|
||||||
|
int yywrap (void)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
void yyerror(char *s)
|
void yyerror(char *s)
|
||||||
{
|
{
|
||||||
errx(1, "%d:Linkerscript parse error: \"%s\"\n", nline, s);
|
errx(1, "%d:Linkerscript parse error: \"%s\"\n", nline, s);
|
||||||
|
|||||||
Reference in New Issue
Block a user