]> Savannah Git Hosting - gnulib.git/commit
parse-datetime2: new module
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Mar 2021 08:24:05 +0000 (00:24 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Mar 2021 08:27:58 +0000 (00:27 -0800)
commit4e7f59b25f2b3293d581fe7b4a83a6e706db9825
tree9d0c38c8a2d0755b0d0f9c47c13c94b478c1d80d
parent783f2967e23e6481941c1bf1e73897c66cb4195a
parse-datetime2: new module

This splits the old parse-datetime into two parts; the
first is parse-datetime2 which supports all the new bells
and whistles, the second is parse-datetime, which reverts to
its original intent.  This avoids some bogus diagnostics
when build GNU Tar with gcc -flto -fanalyze and
with --enable-gcc-warnings.  And it slims down the
executable a bit.
* NEWS: Mention this.
* lib/parse-datetime.y (parser_control) [!GNULIB_PARSE_DATETIME2]:
Omit parse_datetime_debug member.
(debugging): New function.  Use it everywhere the old code
would load parse_datetime_debug.
(parse_datetime_body): New static function, with the body
of the old parse_datetime2.  Set pc.parse_datetime_debug
only if GNULIB_PARSE_DATETIME2.
(parse_datetime2, parse_datetime): Use this new function.
(parse_datetime2) [!GNULIB_PARSE_DATETIME2]: Remove.
ChangeLog
NEWS
lib/parse-datetime.y