From owner-cvs-all@FreeBSD.ORG Sat Apr 23 18:38:32 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B5C216A4CE; Sat, 23 Apr 2005 18:38:32 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5297243D53; Sat, 23 Apr 2005 18:38:32 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3NIcWUL095044; Sat, 23 Apr 2005 18:38:32 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3NIcWrS095043; Sat, 23 Apr 2005 18:38:32 GMT (envelope-from kientzle) Message-Id: <200504231838.j3NIcWrS095043@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 23 Apr 2005 18:38:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/tar getdate.y X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2005 18:38:32 -0000 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