From 653033989f8697a2f3ff1ca83cd448de55321bb8 Mon Sep 17 00:00:00 2001 From: John Millaway Date: Fri, 16 Aug 2002 19:03:42 +0000 Subject: [PATCH] Got rid of flex -s warnings in tests. --- tests/test-basic-nr/scanner.l | 4 ++-- tests/test-basic-r/scanner.l | 2 +- tests/test-lineno-nr/scanner.l | 2 +- tests/test-lineno-r/scanner.l | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test-basic-nr/scanner.l b/tests/test-basic-nr/scanner.l index 25a4fd7..c284884 100644 --- a/tests/test-basic-nr/scanner.l +++ b/tests/test-basic-nr/scanner.l @@ -36,7 +36,7 @@ %} %option prefix="test" outfile="scanner.c" -%option nounput noyywrap yylineno warn nodefault +%option nounput noyywrap noyylineno warn nodefault IDENT [[:alnum:]_-] WS [[:blank:]] @@ -47,7 +47,7 @@ WS [[:blank:]] ^{IDENT}+{WS}*={WS}*[[:digit:]]+{WS}*\r?\n { return 102;} ^{WS}*#.*\r?\n { } ^{WS}*\r?\n { } -. { fprintf(stderr,"Invalid line.\n"); exit(-1);} +.|\n { fprintf(stderr,"Invalid line.\n"); exit(-1);} %% diff --git a/tests/test-basic-r/scanner.l b/tests/test-basic-r/scanner.l index 0422221..6e3510f 100644 --- a/tests/test-basic-r/scanner.l +++ b/tests/test-basic-r/scanner.l @@ -46,7 +46,7 @@ WS [[:blank:]] ^{IDENT}+{WS}*={WS}*[[:digit:]]+{WS}*\r?\n { return 102;} ^{WS}*#.*\r?\n { } ^{WS}*\r?\n { } -.|\r|\n { fprintf(stderr,"Invalid line.\n"); exit(-1);} +.|\n { fprintf(stderr,"Invalid line.\n"); exit(-1);} %% diff --git a/tests/test-lineno-nr/scanner.l b/tests/test-lineno-nr/scanner.l index 8e946de..4341335 100644 --- a/tests/test-lineno-nr/scanner.l +++ b/tests/test-lineno-nr/scanner.l @@ -51,7 +51,7 @@ DIGIT [[:digit:]] "yylineno++" yylineno++; "yylineno--" yylineno--; -[[:space:]]+ +[[:blank:]]+ {WORD} {DIGIT}+(\n{DIGIT}+)* \n diff --git a/tests/test-lineno-r/scanner.l b/tests/test-lineno-r/scanner.l index c9bb8dd..8933f5f 100644 --- a/tests/test-lineno-r/scanner.l +++ b/tests/test-lineno-r/scanner.l @@ -51,7 +51,7 @@ DIGIT [[:digit:]] "yylineno++" yylineno++; "yylineno--" yylineno--; -[[:space:]]+ +[[:blank:]]+ {WORD} {DIGIT}+(\n{DIGIT}+)* \n -- 2.50.1