From: helly Date: Wed, 21 Mar 2007 22:25:45 +0000 (+0000) Subject: - Added new option --no-generation-date. X-Git-Tag: 0.13.6~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89922f6bf940f681405c66165ff65a5eeb47f82d;p=re2c - Added new option --no-generation-date. --- diff --git a/re2c/CHANGELOG b/re2c/CHANGELOG index 078c13f9..30fbdf4a 100644 --- a/re2c/CHANGELOG +++ b/re2c/CHANGELOG @@ -1,5 +1,7 @@ -Version 0.11.3 (????-??-??) +Version 0.11.3 (2007-??-??) --------------------------- +- Added new option --no-generation-date. +- Fixed issue with long form of switches. Version 0.11.2 (2007-03-01) --------------------------- diff --git a/re2c/bootstrap/parser.cc b/re2c/bootstrap/parser.cc index 6ae84b3f..fbf03cbe 100644 --- a/re2c/bootstrap/parser.cc +++ b/re2c/bootstrap/parser.cc @@ -1620,9 +1620,13 @@ void parse(Scanner& i, std::ostream& o) { in = &i; - o << "/* Generated by re2c " PACKAGE_VERSION " on "; - time_t now = time(&now); - o.write(ctime(&now), 24); + o << "/* Generated by re2c " PACKAGE_VERSION; + if (!bNoGenerationDate) + { + o << " on "; + time_t now = time(&now); + o.write(ctime(&now), 24); + } o << " */\n"; o << sourceFileInfo; diff --git a/re2c/globals.h b/re2c/globals.h index d38dffff..e1ca8021 100644 --- a/re2c/globals.h +++ b/re2c/globals.h @@ -25,6 +25,8 @@ extern bool sFlag; extern bool uFlag; extern bool wFlag; +extern bool bNoGenerationDate; + extern bool bSinglePass; extern bool bFirstPass; extern bool bLastPass; diff --git a/re2c/htdocs/index.html b/re2c/htdocs/index.html index 07f610be..3c35eddc 100755 --- a/re2c/htdocs/index.html +++ b/re2c/htdocs/index.html @@ -79,6 +79,11 @@ fixes which were incorporated.

Changelog

+

2007-??-??: 0.11.3

+

2007-03-01: 0.11.2