From a328050c647f0989e3db453157576b256e5cc11b Mon Sep 17 00:00:00 2001 From: helly Date: Sun, 16 Apr 2006 22:34:15 +0000 Subject: [PATCH] - Made two pass mode the default and dropped -t - Added -1 to force single pass generation --- CHANGELOG | 2 +- bootstrap/scanner.cc | 4 +-- globals.h | 2 +- htdocs/index.html | 2 +- htdocs/manual.html | 27 ++++++++------- main.cc | 32 ++++++++++-------- re2c.1.in | 28 ++++++++-------- scanner.re | 2 +- test/error1.c | 16 --------- test/error10.c | 2 -- test/error11.c | 2 -- test/error12.c | 2 -- test/error13.1.c | 5 +++ test/{error13.t.re => error13.1.re} | 0 test/error13.c | 50 +++++++++++++++++++++++++-- test/{error13.t.c => error14.1.c} | 24 +++++++------ test/{error14.t.re => error14.1.re} | 0 test/error14.c | 52 ----------------------------- test/error14.t.c | 1 - test/error2.c | 16 --------- test/error3.c | 16 --------- test/error4.c | 2 -- test/error5.c | 2 -- test/error6.c | 2 -- test/error7.c | 2 -- test/error8.c | 2 -- test/error9.c | 2 -- 27 files changed, 118 insertions(+), 179 deletions(-) create mode 100755 test/error13.1.c rename test/{error13.t.re => error13.1.re} (100%) rename test/{error13.t.c => error14.1.c} (68%) rename test/{error14.t.re => error14.1.re} (100%) delete mode 100755 test/error14.t.c 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