From: helly Date: Sun, 16 Apr 2006 22:34:15 +0000 (+0000) Subject: - Made two pass mode the default and dropped -t X-Git-Tag: 0.13.6~378 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a328050c647f0989e3db453157576b256e5cc11b;p=re2c - Made two pass mode the default and dropped -t - Added -1 to force single pass generation --- diff --git a/CHANGELOG b/CHANGELOG index 207975c4..9cc9e410 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,7 @@ Version 0.10.2 (2006-??-??) --------------------------- - Changed to generate YYMARKER only when needed or in single pass mode. -- Added -t switch to force two pass generation. +- Added -1 switch to force single pass generation and make two pass the default. - Fixed -i switch. - Added configuration 'yyfill:enable' to allow suppression of YYFILL() blocks. - Added tutorial like lessons to re2c. diff --git a/bootstrap/scanner.cc b/bootstrap/scanner.cc index 2e180c99..db242b72 100644 --- a/bootstrap/scanner.cc +++ b/bootstrap/scanner.cc @@ -1,4 +1,4 @@ -/* Generated by re2c 0.10.2.dev on Sun Apr 16 13:38:11 2006 */ +/* Generated by re2c 0.10.2.dev on Sun Apr 16 18:19:25 2006 */ #line 1 "scanner.re" /* $Id$ */ #include @@ -218,7 +218,7 @@ yy21: ++YYCURSOR; #line 110 "scanner.re" { - if (bUsedYYMaxFill && bLastPass && !tFlag) { + if (bUsedYYMaxFill && bSinglePass) { fatal("found scanner block after YYMAXFILL declaration"); } out.write((const char*)(tok), (const char*)(&cursor[-7]) - (const char*)(tok)); diff --git a/globals.h b/globals.h index 8c74f719..7cff108a 100644 --- a/globals.h +++ b/globals.h @@ -21,8 +21,8 @@ extern bool fFlag; extern bool iFlag; extern bool sFlag; extern bool wFlag; -extern bool tFlag; +extern bool bSinglePass; extern bool bLastPass; extern bool bUsedYYAccept; diff --git a/htdocs/index.html b/htdocs/index.html index 96687a9e..8fb8c03f 100755 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -79,7 +79,7 @@ provide re2c packages.

2006-??-??: 0.10.2