Use the noyywrap lex option instead of adding hacky yywrap functions

This commit is contained in:
James Le Cuirot committed 2023-10-07 23:02:54 +01:00
1 parent d91710ba03
commit c3185246ca
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -1,3 +1,4 @@
%option noyywrap
%{
#include <stdio.h>
#include "gram.h"
@@ -6,7 +7,6 @@ extern int ParseError;
extern FILE *rcfile;
#undef yyin
#define yyin rcfile
#define yywrap() 1
extern int parse_keyword(char *);
void fixup_string(char *, char *);
#define YY_SKIP_YYWRAP