diff options
-rw-r--r-- | bin/c11.l | 7 | ||||
-rw-r--r-- | bin/dehtml.l | 4 | ||||
-rw-r--r-- | bin/make.l | 7 | ||||
-rw-r--r-- | bin/mdoc.l | 7 | ||||
-rw-r--r-- | bin/sh.l | 7 | ||||
-rw-r--r-- | bin/shotty.l | 4 |
6 files changed, 6 insertions, 30 deletions
diff --git a/bin/c11.l b/bin/c11.l index aeffe254..b1f0b960 100644 --- a/bin/c11.l +++ b/bin/c11.l @@ -15,7 +15,7 @@ */ %option prefix="c11" -%option noyywrap +%option noinput nounput noyywrap %{ #include "hilex.h" @@ -139,11 +139,6 @@ register|restrict|return|static|struct|switch|typedef|union|volatile|while | .|\n { return Normal; } -%{ - (void)yyunput; - (void)input; -%} - %% const struct Lexer LexC = { yylex, &yyin, &yytext }; diff --git a/bin/dehtml.l b/bin/dehtml.l index 45efc5d1..799f0926 100644 --- a/bin/dehtml.l +++ b/bin/dehtml.l @@ -14,7 +14,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -%option noyywrap +%option noinput nounput noyywrap %{ enum Token { @@ -101,8 +101,6 @@ static bool isTag(const char *tag) { } int main(int argc, char *argv[]) { - (void)input; - (void)yyunput; setlocale(LC_CTYPE, ""); bool collapse = 0; diff --git a/bin/make.l b/bin/make.l index 6d0c73f9..6296716d 100644 --- a/bin/make.l +++ b/bin/make.l @@ -15,7 +15,7 @@ */ %option prefix="make" -%option noyywrap +%option noinput nounput noyywrap %{ #include "hilex.h" @@ -122,11 +122,6 @@ operator [:!]|:: .|\n { return Normal; } -%{ - (void)yyunput; - (void)input; -%} - %% const struct Lexer LexMake = { yylex, &yyin, &yytext }; diff --git a/bin/mdoc.l b/bin/mdoc.l index 2680b722..b6deacbe 100644 --- a/bin/mdoc.l +++ b/bin/mdoc.l @@ -15,7 +15,7 @@ */ %option prefix="mdoc" -%option noyywrap +%option noinput nounput noyywrap %{ #include "hilex.h" @@ -55,11 +55,6 @@ .|\n { return Normal; } -%{ - (void)yyunput; - (void)input; -%} - %% const struct Lexer LexMdoc = { yylex, &yyin, &yytext }; diff --git a/bin/sh.l b/bin/sh.l index 9fc241da..f26e3feb 100644 --- a/bin/sh.l +++ b/bin/sh.l @@ -15,7 +15,7 @@ */ %option prefix="sh" -%option noyywrap +%option noinput nounput noyywrap %{ #include <assert.h> @@ -168,11 +168,6 @@ reserved [!{}]|else|do|elif|for|done|fi|then|until|while|if|case|esac .|\n { return Normal; } -%{ - (void)yyunput; - (void)input; -%} - %% const struct Lexer LexSh = { yylex, &yyin, &yytext }; diff --git a/bin/shotty.l b/bin/shotty.l index 577696bb..7496e75d 100644 --- a/bin/shotty.l +++ b/bin/shotty.l @@ -14,7 +14,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -%option noyywrap +%option noinput nounput noyywrap %{ @@ -101,8 +101,6 @@ ESC \x1B %x OSC %% - (void)input; - (void)yyunput; pn = 0; {ESC}"[" BEGIN(CSI); |