cvs commit: src/usr.bin/tar getdate.y
Tim Kientzle
kientzle at FreeBSD.org
Sat Apr 23 11:38:32 PDT 2005
kientzle 2005-04-23 18:38:32 UTC
FreeBSD src repository
Modified files:
usr.bin/tar getdate.y
Log:
Overhaul getdate.y. In particular, remove minutes-based logic
(combine with existing seconds-based), treat '-' as punctuation rather
than a negative number indicator (eliminates several special cases),
use a single list of special words instead of several separate lists,
use table-driven abbreviation logic (eliminate duplicate word entries
and special-case abbreviation and plural handling). The result is
shorter, simpler (judging from comments, earlier maintainers didn't
understand the special handling for "negative years"), handles more
cases (e.g., "tu" is now a recognized abbreviation for "tuesday",
"3rd" is now equivalent to "third") and it has 2 fewer shift/reduce
conflicts.
Revision Changes Path
1.4 +571 -683 src/usr.bin/tar/getdate.y
More information about the cvs-src
mailing list