mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
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.
This commit is contained in:
parent
8d8311c95f
commit
ecf6d502eb
1 changed files with 555 additions and 667 deletions
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue