diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-07-12 16:21:55 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-07-12 16:21:55 +0000 |
commit | 111dbf8aa2ca776f325a36d40a0133fb1b16227f (patch) | |
tree | 132f76ffdb8debc1601058986565b7230a6041fa | |
parent | a333f71ba29c44d23efaf8517fa6117ec999bd33 (diff) | |
download | flex-git-111dbf8aa2ca776f325a36d40a0133fb1b16227f.tar.gz |
Fixed POSIXLY_CORRECT detection in scanner.
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | scan.l | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -1427,12 +1427,12 @@ void readin() * posiz, AND check for conflicting options. How far should we go * with this? Should we disable all the neat-o flex features? */ + /* Update: Estes says no, since other flex features don't violate posix. */ } if ( getenv("POSIXLY_CORRECT") ) { posix_compat = true; - /* TODO: See TODO comment above */ } if ( backing_up_report ) @@ -66,6 +66,11 @@ #define CHECK_YYMORE(str) \ if ( all_lower( str ) ) \ yymore_used = true; + +#define YY_USER_INIT \ + if ( getenv("POSIXLY_CORRECT") ) \ + posix_compat = true; + %} %option caseless nodefault stack noyy_top_state |