diff options
author | jkim <jkim@FreeBSD.org> | 2013-05-03 23:51:32 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-05-03 23:51:32 +0000 |
commit | eb004e0f1388470d70a4c8ffc653d593cc372887 (patch) | |
tree | 178d54373fb0edb2ba3c317479c4aa893565bb94 /usr.bin | |
parent | 0ceb3c977351928509aac9580e4929caa3985909 (diff) | |
download | FreeBSD-src-eb004e0f1388470d70a4c8ffc653d593cc372887.zip FreeBSD-src-eb004e0f1388470d70a4c8ffc653d593cc372887.tar.gz |
Improve compatibility with recent flex from flex.sourceforge.net.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ar/acplex.l | 4 | ||||
-rw-r--r-- | usr.bin/csup/token.l | 3 | ||||
-rw-r--r-- | usr.bin/xlint/lint1/scan.l | 3 |
3 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ar/acplex.l b/usr.bin/ar/acplex.l index 0acf5b7..a82db37 100644 --- a/usr.bin/ar/acplex.l +++ b/usr.bin/ar/acplex.l @@ -36,14 +36,14 @@ __FBSDID("$FreeBSD$"); #include "y.tab.h" -#define YY_NO_UNPUT -#define YY_NO_INPUT int lineno = 1; int yylex(void); %} +%option nounput +%option noinput %option noyywrap %% diff --git a/usr.bin/csup/token.l b/usr.bin/csup/token.l index 267e61f..69f5ea4 100644 --- a/usr.bin/csup/token.l +++ b/usr.bin/csup/token.l @@ -35,12 +35,11 @@ #include "misc.h" #include "token.h" -#define YY_NO_UNPUT - int lineno = 1; %} +%option nounput %option noyywrap %% diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l index 65d2d11..013a795 100644 --- a/usr.bin/xlint/lint1/scan.l +++ b/usr.bin/xlint/lint1/scan.l @@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$"); #include "cgram.h" #define CHAR_MASK (~(~0 << CHAR_BIT)) -#define YY_NO_UNPUT /* Current position (its also updated when an included file is parsed) */ pos_t curr_pos = { 1, "", 0 }; @@ -86,6 +85,8 @@ static int wcstrg(void); %} +%option nounput + L [_A-Za-z] D [0-9] NZD [1-9] |