mirror of
https://github.com/amiwm/amiwm.git
synced 2026-03-24 01:24:15 +00:00
Use the noyywrap lex option instead of adding hacky yywrap functions
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
%option noyywrap
|
||||
%{
|
||||
#include <X11/Xmu/CharSet.h>
|
||||
#include <string.h>
|
||||
@@ -139,9 +140,6 @@ int parse_keyword(char *str, YYSTYPE *val)
|
||||
progname, yytext); }
|
||||
%%
|
||||
|
||||
#ifndef yywrap
|
||||
int yywrap() { return 1; }
|
||||
#endif
|
||||
#undef input
|
||||
#define input() ((*inptr)?(*inptr++):0)
|
||||
#undef unput
|
||||
|
||||
Reference in New Issue
Block a user